Author Archives: roop

Publicly available geodata for national and subnational boundaries

At long last, it is finally feasible to get good-quality geodata online for:

Level 0 a.k.a. international borders
Level 1 a.k.a subnational or first level administrative borders (e.g. states or provinces)
Level 2 a.k.a. second-level administrative borders (e.g. districts or counties)

This has been the holy grail for a while, and can be assembled fairly easily in Quantum GIS (QGIS) or some [...]

Getting git clone to work between MacPorts installations

If you use MacPorts to install git, then the various git programs (git, gitk, etc.) will be installed in MacPorts’ usual /opt/local/bin directory. This, however, seems to screw up the git clone operation which complains about not finding the git-upload-pack binary.
Trying the –upload-pack option to pass in a nonstandard location for the upload-pack binary on [...]

Getting a PHP build which supports GD under OS X 10.5

Obtain Liyanage’s PHP5 module with built-in GD (etc.) support:

curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
tar xvfz php5-5.2.5-6-beta.tar.gz
sudo mv php5 /usr/local/
sudo chown -R root:admin /usr/local/php5

Edit /etc/apache2/httpd.conf to ignore the Apple-installed module and load the new Liyanage module:
# LoadModule php5_module        libexec/apache2/libphp5.so
LoadModule php5_module        /usr/local/php5/libphp5.so
 

Monitoring Rails’ log output while using Mongrel

If you install the Mongrel web server for Ruby, Rails is smart enough to start using it by default when you invoke script/server. However neither script/server nor mongrel_rails start (the recommended way to invoke Mongrel for a Rails project) will tail the rails logfile at log/development.log and give you the debug output you are accustomed [...]

A recipe for IMAP with Gmail and Mail.app

In Firefox

Install Greasemonkey
Install Gmail Macros

In Gmail

Enable Imap
Use shortcuts and macros for yanking/labelling:

“e” archive
Shift-”3″ trash
+”L0″ respond (-”B0″)
+”L1″ action (-”B1″)
+”L2″ hold (-”B1″)

In Mail.app

Install Mail Act-on
Configure Mailbox Behaviors

DO store drafts (and “Use This Mailbox” ‘Drafts’ for drafts)
DON’T store sent
DO store junk (and “Use This Mailbox” ‘Spam’ for junk — I think)
DON’T move deleted to [...]