How to write a custom widget for jQuery Mobile

I needed to write a custom widget for the jQuery Mobile library but couldn’t find any step-by-step documentation on how to do it in the official docs. A search on Google didn’t result in any better luck. In the end it turned out to be quite easy t...

Comparison of RequireJS and Hem for JS minification

As I’ve hinted at in previous posts</a> I’ve been using RequireJS for a while now to help “modularize” my client-side Javascript code and make it easy to package it into minified and compressed script files at deployment time. And ditto for ...

Notes on using RequireJS with Backbone and/or Spine

For a project I’m currently working on I’ve decided to jump on the Javascript bandwagon with full weight. I intend to code in CoffeeScript, use either Spine or Backbone to give me a light-weight MVC architecture, and then deploy it all together in...

Idea for a local app based social network

Here’s a crazy idea which popped into my head the other day. What if we could build a secure social network using a local app manipulating locally stored data? Why would we want to do this? After all there are a number of alternative, open [sourc...

Asynchronous implementation of LZW algorithm in Javascript

I’m quite pleased to announce availability of my latest mini-project - an efficient Javascript implementation of the Lempel-Ziv-Welsh (LZW) compression algorithm. It’s only 4 KB (minified size) and available right now from Github where you’ll also...