Please consider donating: a local project in memory of my daughter

Archive for October, 2007

Delay the DOM ready event / Generate a dummy file

dd if=/dev/zero of=dummy.file bs=1000000 count=1 This will generate a 1Mb (approx) file. Useful for tests. In my particular case, I’m trying to delay the DOM ready event in JavaScript – so I’m going load a large file in a script tag – which will load before the DOM ready is fired. To delay the DOM [...]

Leopard – initial opinion

Among thousands and thousands of other Mac lovers out there, I too purchased my copy of Leopard for it to arrive on Friday. The ride wasn’t as smooth as I expected, and there were some roller coaster moments. There’s also a few small things that don’t work as expected, and there’s a few gems that [...]

LAMP in Leopard OSX 10.5 (PHP5 and Apache 2.2)

Following my how to setup your mac web development environment, and today moving to Leopard, my entire offline environment is broken – this is entirely due to the move from Apache 1.3 to Apache 2.2. This article will discuss the changes required to get your multi-host mac dev environment running again with PHP5, MySQL, Apache [...]

Prototype and jQuery – going from one to the other

During a conversion with John Resig at the FOWA he mentioned it would be useful to have a tutorial that explained what jQuery doesn’t do that Prototype does and visa versa, and in particular how X process is done in each library.

Fancy 5,000 cans of beer?

ASDA is well known in the UK as the penny saver, but this offer really takes the biscuit. ASDA is offering 20x330ml cans of Heineken for just 10p only! What’s even better, is the minimum order value is £25. So, that’s 5,000 cans of beer for £25…that’s one hell of a binge!

Accessible, degradable style control – part 2

As promised, the second instalment of accessible, degradable style control (that follows part 1). This entry will cover style sheet control, and although this has been covered by other posts in the past, often they rely entirely on JavaScript. This method does not.

Thousand separator regex

s/\d{1,3}(?=(\d{3})+(?!\d))/$&,/g The amount of code that goes in to formatting numbers can be silly sometimes, especially when you realise it can be done as a regex. Note that if the number has a DP longer than 2, it’ll format it – I suggest splitting out the DP first, and bash them back together. (via)