September 18th, 2009, Code
LaTeX and typesetting goodness

As I progressively include more and more math in my research and the documents I write become larger and larger, I have been gradually learning the LaTeX typesetting system.  Simply put, there is no better method for creating distinctive documents that don’t shout ‘I’m Times New Roman!’, or worse, ‘I’m Comic Sans!’ (don’t even get me started on Papyrus!).

A great way to learn the ins and outs of LaTeX was to put it to use updating my resume, as hand-formatting those beasts in the past has lead me to no end of ‘why can’t Word just do this…’-syndrome. In case you like LaTeX and want to use my resume and cv class, feel free (and browse the repository for my examples).  It was originally based on the moderncv class but I found that too casual and clunky, so a good deal has been rewritten and I have not yet updated the license or documentation.

August 18th, 2009, Code
Galleria

This is the Django package I developed to run the photo backend on this site.  It is based on Justin Driscoll’s ImageKit but differs from most web photo album software (including Justin’s Photologue) in that it is designed to mirror a large filesystem of photos with minimal user intervention.

Features:

  • Django-powered database organization of all your photos (and potentially other media with some hacks), with all the templating and Python scripting Django has to offer
  • Automatically catalogs new photos on your server’s hard drive and incorporates them into the Django database, organized by the folder hierarchy of your photo directory.  That is, you never have to manually upload and organize photos.  Ever.  Just rsync or FTP photos from home to your server, and run the glLocalSync command through the Django admin shell (or set it up to run automatically via cron).
  • Automatically deletes photos and folders from the Django database when they are removed from your local folder (this can be turned off).
  • Various permission levels to control public visibility of photos and folders
  • All the fun image conversion and precaching available from ImageKit and ImageMagick.

The source is available in my galleria.git repository.  Install it like any ol’ Django app and add the variable GALLERIA_LOCAL_SYNC to your settings.py (this is the path containing your hierarchy of photos, not the Django media directory).  You’ll also need the ImageKit mentioned above.  Sorry but at this point there is no documentation and comments are probably sparser than ideal, but the source should be fairly straightforward for anyone interested in running or modifying it.

July 30th, 2009, Code
Embedding Django in PHP

Here’s a quicky I solved while developing this site.  I’m an avid lover of Python and so Django was an obvious framework for this site; however, all the prebuilt goodies like Wordpress run in crusty old PHP.  How could I build the custom backends I need without recoding the wheel?
Read more…

July 2nd, 2009, News
The server is up…

New domain name for life!

June 6th, 2009, News
Opening the mind’s eye

Watch Dr. Sinha’s lecture on Project Prakash to the MIT Alumni Association.