Projects
As soon as I start working on some more interesting projects, they will be showcased here.
mmakefile
A program that generates a Makefile. mmakefile uses g++ to calculate dependencies.
GIMP Scripts
I manually scanned the 73 odd pictures I took in Malaysia. To make them viewable on my Web site, I wanted to convert the TIFF-encoded images to PNG images. Furthermore, I wanted a small thumbnail of each picture. I used the GIMP to accomplish this. I wrote the following scripts for GIMP 2.2:
Note that there is a much better way to do all of this: ImageMagick. It's a set of image manipulation utilities. Most (or all) of ImageMagick's functionality is accessible from shell-scriptable programs.
Google Maps Distance Calculator
Calculates the lengths of lines in KML files. This is very useful for determining the lengths of lines created on maps.google.com in the "My Maps" section. Simply copy the address of the KML file and paste it in the following field:
To locate the KML file, go to Google Maps, sign in, click the "My Maps" tab, and select a map. In the navigation bar about the map there is a blue icon that says "KML" beside it. Right-click the KML link and select "Copy Link Address" (or whatever similar option your browser displays). Paste the address in the field above.
For example, I went on a
bike ride
last night. To determine the distance I traveled, copy
the following link into the form:
http://maps.google.com/maps/ms?client=safari&ie=UTF8&oe=UTF-8&hl=en&msa=0&output=nl&msid=106478235329548511684.000001133248723a7c4cd
Stupid Random Albums
![]() |
A program to randomly select albums in iTunes. This is generally useful for updating an iPod. Download the program or the source code. The program is called stupid because I had to write it using the awful Apple Script. Stupid is quite inefficient; it takes around 1 minute to build a 1 gigabyte playlist. Note: iTunes 7 appears to randomly select entire albums when automatically creating an iPod playlist -- rendering this program redundant.