October 2006 Archives

Sample Code: DDCustomOpenGLView

|

I've been working on a project that required an OpenGL view with double buffering and full screen support. Unfortunately, this means I needed to abandon the comfort of NSOpenGLView. I also wanted to use a Core Video display link to drive the animation, instead of an NSTimer. Due to some difficulties, I ended up pulling out this code from the project to work on it in isolation. Now that it's working, I think this code could be useful to others, so I'm releasing it in the tradition of Apple's sample code. I'm sure it's not perfect, so if you come across any improvements or areas where I did something really dumb, feel free to let me know. Without further ado, grab the tarball, and here's the readme:

Subversion and SSH

|

Subversion allows you to use SSH as the network protocol by using the svn+ssh:// scheme in the repository URL. One downside to this is that the only way to specify your remote username is in the URL, for example:

svn+ssh://dribin@svn.example.com/repo

This is all fine and dandy if you're just doing a checkout, but this can cause problems if you want to use the svn:externals property. If you include a username in your URL, no other user can use the external without your remote password. Ideally, you want to allow each user to use their own username in the URL. Unfortunately Subversion has no way to override the SSH username in the URL. The trick around this is to not use usernames in URLs at all:

svn+ssh://svn.example.com/repo

You can then specify your remote username in your $HOME/.ssh/config:

Host svn.example.com
        User dribin

About this Archive

This page is an archive of entries from October 2006 listed from newest to oldest.

August 2006 is the previous archive.

November 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Links

Powered by Movable Type 4.1