Skip to content

{ Author Archives }

Command-line cron for Drupal

We have over 100 sites setup in a multi-site shared code-base environment. Cron runs every 10 minutes on every site. In order to prevent saturating our bandwidth with frequent cron calls, we setup a command-line php script that bootstraps Drupal and invokes cron. This has very little overhead since it bypasses [...]

Tagged , ,

Drupal Case Study on MCR: FeedAPI, SimplePie Parser, and Cron

Last week at WBR, we re-launched the website for My Chemical Romance. The site’s built on Drupal 6.x and showcases blogs, photos, and tweets directly from the band members.

To aggregate the Twitter feed, we used the FeedAPI module and associated SimplePie parser. Cron runs every 10 minutes to ensure the content [...]

Tagged , , , ,

BADCamp Slides and Code

My BADCamp slides and code are available below.
Database Syncronization
http://badcamp.net/session/database-synchronization

SlideShare
PDF (8.6 MB)
Code and “knowledge base” (zip)

Core Crazy
http://badcamp.net/session/core-crazy

SlideShare
PDF (7.5 MB)

Tagged , ,

Quick Look from the command line!

For all you Leopard users out there, here’s a handy trick to use Quick Look from the command line.
Leopard ships with a command called ‘qlmanage’. The -p option shows a preview of the file passed to the command. In the terminal, type the following:

qlmanage -p thefile

You can extend this by creating the following shell script:

#!/bin/bash
qlmanage [...]

Spinwatch: Southwest (Finally) Apologizes To Mini-Skirted Customer

Spinwatch: Southwest (Finally) Apologizes To Mini-Skirted Customer: This is yet one more reason why I love Southwest Airlines. They admit to their mistakes and are “somehow” able to spin them into good PR opps.
My favorite personal Southwest experience earlier this year:
I was on a flight from San Diego to Oakland on Februrary 14. [...]

How I Improved My Feed Reader, 2 Simple Hints

I use NetNewsWire as my main RSS reader on the Mac. Until recently, I had a hard time keeping up on all my feeds. However, I recently employed 2 tricks to greatly improve my productivity for perusing my feeds and finding the gems.
Tip #1: Flatten the Feeds
For the longest time, I tried [...]

Rangers’ 30 runs sets AL record in rout of Orioles

ESPN - Rangers’ 30 runs sets AL record in rout of Orioles - MLB: The Texas Rangers beat the Orioles 30-3 today… and that was just game 1 of a doubleheader. My god!
They also won game 2 by a measley score of 9-7 (which is still high for San Diego standards).
By contrast, the [...]

PETA ranks Petco 10th most ‘vegetarian friendly park in MLB

San Diego Metro News | SignOnSanDiego.com — PETA ranks Petco 10th most ‘vegetarian friendly park in MLB: I find this story slightly ironic, considering this.

Google Street View Car Hit San Diego in March ‘07

This one’s for all of you UCSD’ers.
First, the smoking gun: La Jolla Village Theatres
Notice the show dates for the upcoming Saturday Night Movie Madness shows:
Mar 31 - Donnie Darko
Apr 7 - Star Trek IV
Apr 14 - Army of Darkness
It is likely this image was captured during the last week of March: tinyurl.com/yswydb

Additionally, those familiar [...]

Voldemort and Kif

The new trailer is out for Harry Potter and the Order of the Phoenix.
While watching this, I immediately thought that Voldemort looks exactly like Kif from Futurama. Has nobody else noticed this?… Or cared?
I tried searching the blogosphere (technorati, google blogs, etc.) for any related posts and was surprised to no one else [...]