The factory pattern in Python with __new__
Python’s __new__ function allows you to implement the factory pattern in a nice elegant syntax.
Python’s __new__ function allows you to implement the factory pattern in a nice elegant syntax.
So, I’ve finally got round to joining the machine readable party that is the semantic web.
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.
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.
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).
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).
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.
Today I was experimenting with PHP5’s magic methods, and I found myself wanting an extra one, something like __getIndex(),
Today I had massive troubles setting up a github repository, having never done it before.
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!)