I am Hack Sparrow
Captain of the Internets.

Archive for November, 2011

Node.js Module – exports vs module.exports

You must be familiar with the exports object in Node.js modules, using which you create functions in your modules like this (assume in a file named rocker.js): [code] exports.name = function() { console.log('My name is Lemmy Kilmister'); }; [/code] which you call from another file thus: [code] var rocker = require('./rocker.js'); rocker.name(); // 'My name is Lemmy Kilmister' [/code ...

Install MongoDB on Ubuntu

Having a tough time trying to install MongoDB on Ubuntu? This post will show you how to get MongoDB running on your Ubuntu box. Instead of compiling from source, we will be installing MongoDB using apt-get. Compiling MongoDB is a pain in the ass with all its very specific dependencies, so I personally prefer installing the compiled binary. There are two MongoDB packages available for you to choose from - mongodb and mongodb-10gen. T ...

How to install Node.js on Ubuntu Linux

Although there is an official Linux installation documentation, and an unofficial installation script to help you install Node.js on Linux systems, things generally don't go smoothly or reliably. I will show you the core basics of installing Node.js on an Ubuntu system. These instructions will be immensely helpful if it is a Freshly installed Ubuntu system. Fi ...

Node.js Imagemagick Error: Command failed: execvp(): No such file or directory

So you are pretty excited to be using node-imagemagick with Node.js. You expect to be able to start doing magic on images instantly, but are stopped cold by this rather disappointing error message: [code] Error: Command failed: execvp(): No such file or directory at ChildProcess. (/home/ubuntu/node_projects/sb7/node_modules/imagemagick/imagemagick.js:6 ...

Sourceforge download does not start – Force it anyway

It is common experience that Sourceforge downloads are frequently slow as hell. Whatever may be the cause, most of the time one can bear the slow download, but when the download itself doesn't start you have a big problem. You click the download link and all you get is an infinitely busy browser - the server never times out, but your download doesn't start either. Solution: Install an ad blocking extension for your browser ...