Skip to content

{ Category Archives } Tech

Computers, programming, etc.

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 [...]

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 [...]

Thoughts on Etech

I had the chance to attend O’Reilly’s Emerging Technology Conference this year in my hometown San Diego. I went in Ethan Kaplan’s stead as he was unable to go. I’d like to thank Cory Doctorow for helping in registering me on such short notice.
This was the largest conference I’ve been to. OSCMSS [...]

Logitech Control Center Blows

I recently purchased a new mouse: Logitech VX Revolution
The mouse rocks. The software that drives it does not.
Here’s a short list of issues I’ve had since using Logitech Control Center (v2.1.3) on my MacBook Pro (2.33GHz, 2GB):

Turning on/off the mouse, or removing/attaching the USB receiver triggers kernel panics at random.
It takes 10-15secs to register [...]

Flickr Collections

Finally! Flickr has introduced a way to organize sets. They’re calling their new feature “collections”. You can read more on the Flickr blog:

What are collections, you ask? A collection is a container into which you can place either sets or other collections, allowing you to create a hierarchy as deep as 5 [...]

drupal multisite setup with sub directories on single domain

I am testing out different installation profiles for Drupal 5.0 and wanted to create multiple “sites” on the same domain. Each site shares the same code base, but they are differentiated by sub-directories.
To set this up, creating a new sites folder is not enough. You also need to create a symbolic link in [...]

TextMate Blog » Subversion support and ssh key pairs

TextMate Blog » Subversion support and ssh key pairs
This article was a life-saver for getting painless svn_ssh:// connections to work.