Category Archives: HTML5

iOS 4.3 Geolocation in web apps

Update: problem solved(ish)! See below… Not again you Apple monsters! Last time it was multi touch that you decided to take from us, this time it’s geolocation. Upgrading my iPhone 3GS to iOS4.3 caused a mobile web app I’m working on to start throwing errors. Danged if I can figure out why. Here’s what I [...]

Choose your own cache.manifest

I love the HTML5 cache manifest functionality more than the internet itself. It lets me carry my crazy proof-of-concepts around in my pocket – offline – to test out on the train to-and-fro the way-to-work. The way it works is you add a link to a “manifest” file in the HTML tag. The browser sees [...]

Accelerometer in Javascript

The super-cool Google Jules Verne demo that went up today reminded me that I made an accelerometer tester for the iphone ages ago. It’s an offline app, so don’t be afraid to “add it to home screen” – and if you don’t want to get dizzy, then lock the phone to portrait mode! GO HERE [...]

WadBug – mobile web developer toolbar

Back in the dark ages of web development (2003) debugging tools were extremely limited. You just had to kind of “think like a browser” to figure out why something wasn’t working. Thankfully, those days were banished forever with the introduction of the extremely influential Web Developer Toolbar by Chris Pederick. A while ago I realised [...]

Argy-Bargy

As those of you with an interest in such things may know, I recently packed up my ruck sack and trundled over to Paris to work at a very cool French company – making some snazzy web apps, mobile apps, and a fantastic application framework. One of the mobile web apps required a scrolling area [...]

Instant: coffeescript on the go

Life’s too short to not write coffeescript on the train. So I made a HTML5 offline web app for your iPhone that lets you (try to) do just that. Head over and add Instant to your iPhone home screen, then click on the “Run” button to see the example coffeescript go.

Parcycle: A Particle System with HTML5 canvas

All this PPK “iPhone developers are stupid” awesomeness got me thinking. Now, if there’s one guy I’ve got respect for, it’s PPK. And if he tells me to ditch objective-c for JavaScript, then I’m damn well going to do it. Accordingly, I decide to create “Parcycle”: a Particle Emitter system that I re-wrote from a [...]

Game of Life

Conway’s Game of Life is a simple cellular automaton based on a few simple rules. There’s about fifty gabillion implementations of it around. Here’s mine: Game Of Life in Javascript (rendered, of course, on Canvas). I just followed the rules on the Wikipedia entry, so I’m not 100% sure it’s fully “Game Of Life Compliant”, [...]

Smoking Canvas

On the way to work today I remembered an old trick to create a “fire” effect: you randomly assign a colour to the pixels on the bottom row of the screen (in the same hue) and for each row above it take the average of the 3 pixels immediately below it, and 1 pixel that [...]