Archive by Author

Python: Beginner to Expert

This was lifted mainly from a Stack Overflow thread which I discovered from one of my favourite sites: Reddit /r/python. It details a few paths people can take to go form Python beginner to expert. Its one of the most insightful answers/postings I’ve come across on SO. Here’s the summary – link at the end: [...]

PHP Sinatra Clones (Microframeworks)

First off – Holy shit. April was the last time I posted on this blog. That’s got to be the biggest break in posting I’ve ever had since this blog was created. No idea why but I have shifted jobs and had a lot of work on managing a new toy shop (yes I know [...]

HTML5 – Browser Ability

Doing a quick test of the major browsers (on OSX Snow Leopard) and of the 160 HTML5 features tested these are the scores: Chrome 5.0.342.9b 137 Safari 4.0.5 113 (this is the score I got on Chrome Windows which suggests an older version of Webkit) Opera 10.10 38 (I expected much better from Opera as [...]

8 Code Snippet Sites

Snippet sites first cropped up as a way of sharing code with others in IRC and forums where formatted code with syntax highlighting wasn’t practical. Since then they’ve grown to provide version control, sharing and other features. Here’s a quick list of the major players. Personally – I’d recommend Github. dZone Snippets Part of the [...]

Comment Multiple Lines in Vim

Earlier today I was asked how to comment out multiple lines in Vim. Unfortunately I wasn’t too sure what the best way was and the only one I knew felt less than friendly. Anyway – after some research I’ve nailed a few different methods and thought I’d post them here for people to choose their [...]

Chrome Extension: Shiny MPs

Writing extensions for Chrome is so refreshingly simple it’s exciting. So as a result I produced another one and this time for a slightly more specialised use. If you’re UK-based and interested in politics then this plugin will enable you to keep tabs on your MP with their latest parliamentary updates and links to further [...]

Chrome Extension: Augment Search

Just released first Chrome Extension: Augment Search. Its been heavily inspired by BetterSearch which is available on Firefox. I wanted this mainly for myself nut thought it’d be worth releasing to. Will hopefully be the first of many. Get It Download from Google What It Does Adds links to other search results pages for: Google, [...]

Tabs vs. Spaces

Every time I’ve seen one of these “vs” posts its gone into great length about the philosophy behind such and such.  You’ll never convince someone based on ‘religious argument’. So I’m going to take a different approach here and state who does what and hopefully the weight of ‘who does what’ will make the point [...]

Epic Self Documenting Code

This is the best: switch (mIntegrationDirection) { case InventoryIntegrationDirection.DoTheSameChangeInShop: DoTheSameChangeInShop(GetChangedDataFromInventory(mLastSynchDate)); break; case InventoryIntegrationDirection.DoTheSameChangeInInventory: DoTheSameChangeInInventory(GetChangedDataFromShop(mLastSynchDate)); break; case InventoryIntegrationDirection.DoTheSameChangeInShopThenDoTheSameChangeInInventoryForNotChangedDataInInventory: DoTheSameChangeInShopThenDoTheSameChangeInInventoryForNotChangedDataInInventory( GetChangedDataFromInventory(mLastSynchDate), GetChangedDataFromShop(mLastSynchDate)); break; case InventoryIntegrationDirection.DoTheSameChangeInInventoryThenDoTheSameChangeInShopForNotChangedData: DoTheSameChangeInInventoryThenDoTheSameChangeInShopForNotChangedData( GetChangedDataFromShop(mLastSynchDate), GetChangedDataFromInventory(mLastSynchDate)); break; default: break; } Read how this travesty occurred at DailyWTF

GMail Downtime: Affected Small Subset of Users?

No it didn’t. According to a quote on the Telegraph website the GMail downtime affected only a small subset of users but if you look at the comments on the story it was hitting people in Florida, France, UK and Canada. That’s quite a big, “small subset”! This is the second time this month – [...]