Archive of articles classified as' "web"

Back home

Download large file in chunks with Python using urllib2 to a temporary directory

4/12/2011

No Comments

List directories by date using PHP

1/12/2011

I struggled for an elegant way to list directories and files by date with PHP.  Here is the fruit of much Google-Fu.  This will list directories and files from newest to oldest.

1 Comment

Install node.js and npm from source on OS X

14/01/2011

You will need git, and all the xcode goodies. This is the easiest way to copy and paste your way to a working node.js and npm setup with OS X 10.6. Live on the bleeding edge!

No Comments

Create a thumbnail or resize an image with Imagemagick in PHP

28/11/2010

This is the most elegant way I could find to create an thumbnail for an image I want to resize with PHP and Imagemagick. The function will return a filename.

To install imagemagick using Ubuntu, just run

sudo aptitude install php5-imagick

No Comments