All articles

Thursday, 9 February 2012
A Fabric function for git tagging

Using Fabric with git-flow

Thursday, 2 February 2012
Solving MySQL connection problems caused by a dead name server

MySQL's DNS lookups can cause serious problems

Monday, 23 January 2012
Friday, 13 January 2012
Introducing unittest-xml: testing XML in Python

A simple module for making XPath assertions

Friday, 6 January 2012
Rewriting codeinthehole.com

Yet another RST blog

Thursday, 5 January 2012
How to set-up MySQL for Python on Ubuntu

This doesn't stick in my head

Saturday, 20 August 2011
Tuesday, 16 August 2011
Console logging to STDOUT in Django

Undocumented option required to avoid STDERR

Thursday, 11 August 2011
Sunday, 22 May 2011
Multi-scp: copying a file to all hosts in your SSH config

Using node.js to copy a file to multiple remote hosts

Wednesday, 20 April 2011
Coloured output while doing TDD with Django and Fabric

Providing simple coloured feedback

Sunday, 13 March 2011
Domain-model-mapper - A PHP Data Mapper implementation

A lightweight implementation of the Data Mapper for PHP 5.3

Saturday, 12 March 2011
Commandlinefu presentation at Confoo 2011

Link to slides available here

Friday, 4 February 2011
Wednesday, 10 November 2010
nurl - an immutable URL object for node.js

A URL value object for node.js

Friday, 5 November 2010
mysqldump with wildcard table matching

Using the fu to enhance mysqldump

Friday, 3 September 2010
Sunday, 22 August 2010
Phing trick for avoiding deploying debug code

Using the fu with with phing to prevent further embarassments

Thursday, 28 January 2010
php
Return false with prudence

Returning false to indicate an error is wrong

Tuesday, 13 October 2009
Javascript refactoring for customising shared libraries

Structuring a javascript file for repeating use and customisation

Thursday, 9 July 2009
A pseudo-code job advert and its discontents

A cringe-worth and divisive recruitment technique

Sunday, 31 May 2009
Deploying cron jobs using Phing

A phing pattern for deploying cron scripts

Monday, 25 May 2009
Auto-generating an FAQ with Prototype

A lazy way of generating an FAQ

Sunday, 24 May 2009
Inspecting Javascript objects

Simple introspection methods

Wednesday, 6 May 2009
Phing, Xinc and Nabaztags

Using Phing to command a Nabaztag

Wednesday, 15 April 2009
Ingenious use of an anonymous function

An element Lambda employment

Sunday, 15 March 2009
Using a Phing filter to flush browser caches

Using a filterchain to set a cache-busting query parameter

Tuesday, 3 February 2009
Thursday, 22 January 2009
Current pet project: Command-Line-Fu

Creating a site for sharing commands

Sunday, 11 January 2009
Saturday, 10 January 2009
Phing task to update Twitter status

Simple PHP extension to Phing for Tweeting

Sunday, 4 January 2009
Deploying to a shared hosting environment using Phing

Using Phing's FtpDeployTask to good effect

Sunday, 14 December 2008
Monitoring MySQL with Ganglia and gmetric

A simple bash script for pushing MySQL stats in Ganglia

Saturday, 6 December 2008
Sunday, 23 November 2008
Checking all MySQL tables

Using the commandline to build a string of CHECK commands

Saturday, 8 November 2008
Javascript cookie objects using Prototype and JSON

Simple class-based wrapper to using cookies

Friday, 7 November 2008
Date conditional redirects with mod_rewrite

Using mod_rewrite to redirect based on the date

Friday, 31 October 2008
php
Creating large XML files with PHP

Using PHP's DomDocument to create large XML files

Sunday, 26 October 2008
Monitoring MySQL

watch ing mysqladmin ftw

Wednesday, 22 October 2008
Following log files with tail -f

Simple trick to watch progressive updates to a file

Thursday, 10 November 2005
Writing a Thesis in LaTeX

A short guide to getting things to look nice