-
Archives
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- March 2010
- February 2010
- December 2009
- November 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- February 2009
- January 2009
- November 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- January 2005
- October 2004
-
Meta
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: ssh-add -K [path to private keyfile] Provide your passphrase once when asked, and keychain will … Continue reading
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 … Continue reading
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: #headerimage{ background: url("/header/") … Continue reading
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.
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”: … Continue reading
WordPress upgrade with svn sw
Most likely, it’s time to upgrade your instance of wordpress (given their releases are every couple weeks). Backup the db and code: mkdir -p ~/.archive mysqldump blog | gzip > ~/.archive/blog-$(date '+%Y%m%d').sql.gz cd ~/public_html ; tar czf ~/.archive/blog-$(date '+%Y%m%d').tgz blog … Continue reading