The factory pattern in Python with __new__

Python’s __new__ function allows you to implement the factory pattern in a nice elegant syntax.

 

Joining the semantic web party

So, I’ve finally got round to joining the machine readable party that is the semantic web.

 

Git Nosetest Pre-commit Hook

I wrote a simple little git pre-comit hook today (inspired by Cosmin Stejerean’s hook).

It gets a list of directories from a git config setting tests.directories and runs nosetests against all directories.

 

Rooting a g1 (the easy way)

Yesterday, I finally got round to rooting my G1, after many months of wanting to do it but being a bit scared about the whole bricking scenario.

 

My Trip To Oxford (A catalogue of errors)

Yesterday, I set off on the metal beast that is the CrossCountry train from Birmingham to Oxford, in search of cultural enlightenment (and a job).

 

Web.py MongoDB Sessions

I was playing around with web.py a little while ago, building this little app to allow house sharers to easily manage micro-payments and debts (it’s quite handy for me and my girlfriend).

 

In defence of mobile apps

I’ve been hearing a lot lately about why iPhone/Android/Symbian/<insert mobile platform here> apps won’t make you money and have a lot of other drawbacks, especially since I work at Wapple, a mobile web solutions provider.

 

Mimicking an array in PHP

Today I was experimenting with PHP5’s magic methods, and I found myself wanting an extra one, something like __getIndex(),

 

Whitespace and tabs in Git

Today I had massive troubles setting up a github repository, having never done it before.

 

Mobile Analytics

Today I’ve open sourced my mobile analytics software, under the name “Mobtrack” (This is a really bad name — if anyone has a better one then please let me know!)