Posts Tagged ‘javascript’

20111031 Macabre Pool

This is the result of my fascination with skeletons* and me wanting to learn about Box2D in Javascript. Since everything is randomised, you might get two big skeletons or a big one and a small one, or two small ones. They sometimes look like they are alive, with spasms and all, while they jump around [...]

20111016 HTML5′s custom attributes minigotcha

I was trying to set a Javascript Object as the value for a custom attribute, but I was just getting “[Object object]” as the value when reading it back. This is actually the toString() version of my object, and was also my ‘fault’ for not reading the specs (or for daring to attempt something risky!), [...]

20101108 File upload & drag and drop with HTML5

My use case: I want to drag a file from my local filesystem and drop it into a web page. Then I want to do stuff with the data in the file. This wasn’t possible until recently, but thanks to HTML5 we can do this natively, without using external plug-ins. Yay!

20101025 Converting ‘My Tracks’ KML files for DDMS

KML files store geographical information about paths. They can be generated with applications such as Android’s My Tracks application, and in theory we should be able to load them into the emulator, using the DDMS Eclipse Plug-in, to debug and test applications which depend on the user’s location without having to be actually out in [...]

20101013 Event Listeners Day

I first stumbled upon this piece of code from the BluetoothChat sample: mSendButton.setOnClickListener(new OnClickListener() {             public void onClick(View v) {                 // Send a message using content of the edit text widget                 TextView view [...]