Monthly Archives: July 2009

Using Mac OS X 10.5′s keychain for ssh

The version of ssh that comes with Mac OS X 10.5.6 has a -K option that stores your passphrases in your system’s keychain. Run this:

Provide your passphrase once when asked, and keychain will provide the passphrase for you

Tagged with: , ,
Posted in Technical HOWTOs

How to add a version number to your hudson-built maven jar

Maven’s jar plugin will automatically add a “pom.properties” in your jar’s META-INF/maven/$groupId/$artifactId directory. If you build with hudson, there are a number of other values that you might want to include automatically, though, like the SVN revision number that the

Tagged with: ,
Posted in Technical HOWTOs

Simple PHP image rotation script

This blog has a rotating header — if you visit /header/ and bounce on reload, you’ll see a series of random images. Here’s how it works: The header is added to a div with the following CSS:

/header/ is

Tagged with:
Posted in Technical HOWTOs

How to add a version number to your maven webapp

I couldn’t find a simple recipe to add a version number to a maven-built webapp. The maven-war-plugin talks about how to filter, but no simple example is given.

Tagged with: , ,
Posted in Technical HOWTOs

Create new junit tests in Eclipse with a keystroke

The Galileo version of Eclipse doesn’t ship with a default keybinding for creating a unit test for the current class, but you can add one easily enough. Navigate to Preferences > General > Keys, and search for “junit test case”:

Tagged with: , ,
Posted in Technical HOWTOs

WordPress upgrade with svn sw

Most likely, it’s time to upgrade your instance of wordpress (given their releases are every couple weeks). The new built-in automatic upgrade works if you make your blog owned by the apache user, but if you have any local changes,

Tagged with:
Posted in Technical HOWTOs