Running node.js in production.

Node.js is my new love !! In one of my latest projects I needed to set up a RESTFUL web service which in a nutshell would be a simple interface / API to a bunch of functions based tightly on the HTML standard commands GET, PUT, DELETE, etc.. I decided to go with a language […]

Controlling windows system from a Linux box.

Set up winexe. wget "" yum install winexe-1.00-9.1.x86_64.rpm   Test the connection <pre>telnet 139</pre> Now we can try the system out winexe -U "User 1" –password=secretpassword // 'cmd /C "whoami"' If you get : ERROR: Failed to open connection – ERRDOS:ERRnomem then it’s probably a Windows 7 box run reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" […]

Installing latest ImageMagick on Ubuntu 12.04

So …   At time of writing Latest version can be found here : wget “” sudo apt-get install build-essential checkinstall && sudo apt-get build-dep imagemagick tar xzvf ImageMagick-* cd ImageMagick-6.8.6-9 ./configure –prefix=/opt/imagemagick-6.8 && make

How to allow includes, Basic Auth from outside .htaccess

This .htaccess file does the following: Allow SSI lines 1/2/3 Reauire Authenitcation for all outside except those from a particular IP the rest .. Options +Includes       AddType text/html .shtml .html AddOutputFilter INCLUDES .shtml .html AuthType Basic AuthName “Password Required For INGG Monitor” AuthUserFile /var/www/passwords/password.file Require valid-user Order deny,allow Deny from all Allow […]

Installing latest ImageMagick on Centos 6.3

When I needed ImageMagick on Centos the default installer came with a version some 400 verison back. Installing the latest version was a bit wiry so here it goes:   wget “” yum install bzip2-devel freetype-devel libjpeg-devel libpng-devel libtiff-devel giflib-devel zlib-devel ghostscript-devel djvulibre-devel libwmf-devel jasper-devel libtool-ltdl-devel libX11-devel libXext-devel libXt-devel lcms-devel libxml2-devel librsvg2-devel OpenEXR-devel yum install […]