Check out my latest project: Code Dumper

Archive for the 'Code' Category

How to detect if a font is installed (only using JavaScript)

In the pursuit of an idea I had recently, one tiny feature of the web site would be to detect whether the user had X font installed. I've looked at flash solutions, since a SWF had access to enumerate the fonts, but ultimately if it could be done without flash, it would/should be faster and smarter. So [...]

jQuery API Update: offline and anywhere

I've been beavering away at the API behind the scenes for a little while, and if you follow me on Twitter you've probably already seen the API browser has already been upgraded. The key change I've made is to de-couple the API search engine from the front end. What this has resulted in, is a [...]

maxlength plugin

It's a fairly common design pattern to want to limit the number of characters the user can input in a field whilst giving feedback to the user on how much they have left. So I've built a little jQuery plugin to do the work for me.

Query String to Object via regex

Just sharing a nice little code snippet that makes use of regular expressions instead of loops for converting.

Twitter script upgrades & JSONP hacking

Given that recently Twitter has been going up and down like a yo-yo (and I'm sure they're working on it), I've upgraded the twitter script to support timeouts. Twitter have also messed with the API...

window.onresize hangs IE6 and IE7

Another bug that I've not seen before that caused some confusion. Actually, the bug almost makes sense, except that it leaves IE6 and IE7 completely hanging.

Code Dumper

Code Dumper is a personal project of mine that I've used to practise some new skills on. It's a code dumping repository with a couple of features that I think makes it unique from the other code bins. Where possible, I'll blog about how particular aspects of the project so that they can be re-used [...]