[Google]

Poor mans offsite backup

Before I got some proper offsite backup space* I used to make tarballs of files and dump them in my gmail. Not the most elegant solution but it worked and is free (I know about gmailfs, but I could never get it to work reliably).

This is the script I used to send the files:

#!/usr/bin/env [...]

Convert files to UTF-8

I occasionally come across text files with weird squiggles or numbers in them were there should be characters. Usually it’s accented characters, but in extreme cases I’ve seen it happen with speech marks.

The problem of course is that the files are not ASCII, and text files don’t store what character set they were created [...]

Build numbers in interpreted code

When I write a program I like to include a build number in the version. Usually I go version.revision.build. The version only ever gets bumped for things that are practically a complete rewrite, and sometimes not even then. The revision gets bumped for new features or major bug fixes and the build [...]

Twitter to XMPP (Jabber)

The other day I noticed that irssi (the IRC client I use) had a XMPP plugin. It occurred to me that since I’m on IRC a lot it would be really cool to pull microblog feeds into irssi via this plugin.

For identi.ca this was a doddle, since laconica supports XMPP natively. Twitter however [...]

Moving from svn to git

I’ve spent most of the evening trying to figure out how to use git. For a long time I’ve wanted to have the repositories for some of my personal projects available on the web. For a time I was allowing external access to my apache internal apache server, but I’m wary about that [...]