drupal

Persistant stack class for PHP

I made a simple class that provides a simple SQLite-based persistant FIFO stack class for PHP 5 (similar conceptually to Stack::Persistent in Perl).

A number of times I've written Drupal scripts that run out of memory while trying to process large amounts of nodes (changing taxonomy, etc.). Adding them to a persistant stack, then doing them in batches, is an easy way to remedy this.

Example usage:

Straight.com Case Study

A case study of the migration to Drupal of Straight.com is now on the Drupal.org front page.

Drupal on Ubuntu Snags

I ran into some snags while trying to use Ubuntu for offline Drupal development and have noted them down for future reference.

After getting LAMP installed, I added "AllowOverride All" to the necessary directories in the Apache config, but Drupal clean URLs wouldn't work. It turns out that, unlike Centos, Ubuntu doesn't enable mod_rewrite on Apache by default. The solution was enterning "sudo a2enmod rewrite".

Folks are using Multiforms... Yay!

According to Drupal usage stats, over 40 sites are using the Multiforms survey/contest module I developed with the help of Geoff Burke and Miles Kier. That's not a huge number, but will motivate me to clean up the code and improve the documentation. I've definitely learned a lot about Drupal, and development in general, since I started the project a year and a half ago.

Using Django's Databrowse With Inspectdb

The Django databrowse application is an interesting piece of software that I've wanted to try out ever since its creator, Adrian Holovaty, demoed it in Vancouver last year. Its purpose is to allow you to navigate data, using a web interface, looking for trends and other interesting aspects.

Emerging Python Modular Web Frameworks

Two projects I am watching with a lot of interest are Pinax and Drupy.

Haml for Drupal

I just committed a Drupal input filter for Haml to Drupal.org: http://drupal.org/project/haml. It depends on phpHaml, which in turn depends on PHP 5.

Sphinx Talk At Vancouver Drupal Camp

I'll be doing a talk this Friday at the sold-out Drupal Camp Vancouver on the fast and elegant Sphinx search engine. Sphinx is open source, straightforward, and used by folks like NowPublic and The Pirate Bay to provide scalable search.

A Tip for the Use of CSS Sprites

Using CSS sprites is a great way to increase site response by lessening the number of HTTP requests needed to fetch a page.

Updating sprites can be tricky though. Browsers will cache an image containing sprites which makes adding new sprites tricky. The easiest way to get a browser to recache an image containing spites is to change the filename.

Vancouver Drupal Camp 2008

On May 9-10, Vancouver will see its second ever Drupal conference, Vancouver Drupal Camp 2008. The event will feature multiple tracks and will take place at two downtown locations.

If you're interested in helping organize or sponsor, let the organizers know how you'd like to contribute on the wiki page!