Ian Lewis Ian Lewis is a web developer living in Tokyo Japan. His current interests are in Django, python, alternative databases and rapid web application development.
About Me...

Windows Vista SuperFetch

I don't use Windows Vista that often but when I do it would thrash at the hard drive constantly for hours. Not knowing what the problem is I looked it up and it is aparently the "SuperFetch" service. Using the following steps to disabled it stops the thrashing on the hard drive almost immediately. * Go to control panel > administrative tools > services. * Right click on the "SuperFetch" [...]

Using mercurial on windows with cygwin

So for the longest time, well, about 5 months, I have used the mercurial package in cygwin as my mercurial at work where I run windows on my desktop. I use cygwin as my terminal on windows because it's unix like and window's command line is a piece of shit. No sane command/path completion nothing. Scripting is a nightmare etc. Anyway, the reason I used it was because I was under the false imp[...]

Backup with rsync

I wanted to have a simple incremental backup system I could use on my machine to backup to an external drive so I came across this post on Benno's blog. Basically it involves using rsync with the --link-dest option to compare files you are backing up against an previous backup and only create new copies when the files have been modified since the previous backup. The rsync command would look [...]

Setting output of a program to a variable in Windows Batch

I recently had to do this to get TortoiseMerge working with Mercurial within Cygwin. It turned out to be pretty easy and I couldn't believe that a lot of people were saying that you had to route the output to a temporary file and then read it back into your program or some such garbage. Anyway, behold!! > for /f "tokens=1" %%A in ( '"cygpath -w %1"' ) do set TMergePath1=%%A It's kind of a [...]