Why Promises are more flexible than callbacks

Every now and then I see an article explaining why Promises in Javascript are awesome. And almost in all cases they never quite go into enough depth about exactly how Promises offer more flexibility than callbacks. In this post I shall attempt to ...

Javascript generator delegation and coroutine performance

I am currently building a web app framework on top of Koa, the generator-based middleware framework for node.js. If you are not familiar with Generators then I highly recommend reading Toby Ho’s introduction to Generators. Towards the end of that ...

Automated deployment with Docker - lessons learnt

(The information in this article pertains to Docker v0.7. I have also a written a more recent post on using Docker) Recently for my client’s project we decided to automate our staging server deployments using Docker, as a pre-cursor to rolling ou...

Cloud Primecoin mining on Ubuntu 12.04 with auto restart

Following some helpful instructions, I got myself a new cloud server at Digital Ocean to start mining Primecoins with. I wanted to have the miner running automatically and continuously, and being restarted even if the server itself got rebooted fo...