I am Hack Sparrow
Captain of the Internets.

Archive for Linux

RSYNC Tutorial with Examples

Need a fast and efficient way to synchronize files on two systems? Looking for an alternative to FTP / SCP / RCP? RSYNC is the right tool for it! RSYNC's syncing capability makes it an excellent alternative to FTP and other file transfer tools like SCP and RCP. Why would one want to use RSYNC for file transfer? It is efficient (does not transfer files which are already in sync), safe (uses ...

Node.js compilation error on Ubuntu – Install using apt-get

This post this written for people who will encounter this mysterious Node.js compilation error. [code] *** glibc detected *** /usr/lib/gcc/i686-linux-gnu/4.6.1/cc1plus: malloc(): smallbin double linked list corrupted: 0x0a4a0eb8 *** ... /home/$USER/Downloads/node-v0.6.15/deps/v8/src/ia32/lithium-ia32.cc: In member function 'int v8::internal::HTemplateInstruction::OperandCount() [with int V = 2]': /home/$USER/Downloads/node-v0.6.15/deps/v8/src/ia32/lithium-ia32.cc:2265:3: internal compi ...

Make Forever.js Reboot-Proof with Cron

Some time ago, I wrote a post on keeping Node.js apps running even after logging out from the shell. It was cool and all, but soon you will soon realize that Forever alone is not enough. Because, on system reboots, Forever itself is killed. Who will restart your app now? There are many options for handling this kind of scenario, but today we wi ...

Kill a suspended process on Linux Terminal

A process stops responding normally. When you try to exit it using Ctrl C, it prints ^C instead. Whatever you type just prints on the screen, the process seems to be stuck, and you hate restarting a new instance of the terminal. Try Ctrl \ If that doesn't help, send the process of the background using Ctrl ...

The Vim Survival Kit

Has Vim's vast options intimidated you to the point of not even daring to learn the basics? Fear not, for the Captain is here with you. In this post I will show you the most basic and useful commands that every Vim user should know. First off, there is a difference between Vi and Vim. Vim is like the improved version of the Vi editor (Vim == proved). If you are on Ubuntu, you need to install Vim first. The default Vi edi ...