What is Bleen?

"Scientists at CalTech announced today that they have discovered a new number; that new number is bleen. They claim it come between six and seven." — George Carlin

adj. - Of an object, blue when first observed before a specified time or green when first observed after that time. See also grue. — Wiktionary

In Dutch Danish, bleen means "diaper."

Applying a Patch from drupal.org in 2 Seconds or Less

I used to apply patches from drupal.org by goeing to the issue page where the patch has been posted, downloading the patch to my desktop (or wherever) and then applying it using git apply /path/to/file.patch. Today I figured out a better way.

Open your favorite terminal application <cough>iterm2</cough> and cd to the git repository to which you want to apply the patch. Then type

Read on

Speedup Drupal 6 ... turn off Update Status

It turns out that the Update module that comes with Drupal runs some pretty hefty queries. While trying to debug a crazy mysql error we were seeing on one of the sites I work on (http://drupal.org/node/361563) it occured to me that there is no reason why we should have the update module enabled on our production site at all.

Turning it off on production (while leaving it on on staging) gave the site a nice litte pick-me-up especially after clearing the cache.

Read on

Debugging Memory Problems During Cron Run

Recently my cron stopped running completely and when I would manually visit mysite.com/cron.php I'd get a message like this:

Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in ...

So how do I debug this? I went to module.inc then added a bit of code to module_invoke_all();

Read on

Customizing Drupal Forms: What I just learned

I've been working on a project that required some pretty heavy-duty customizations to how the user registration form looks and while getting everything to work I learned a few things that have changed the way I look at customizing forms in Drupal. Here is a quick summary of what I already new, and what I know now.

Read on

Drush is my friend

Drush (Drupal + Shell) is a set of scripts that lets you control your Drupal site directly from the command line. Without every touching your mouse you can clear the cache, do an SQL Dump ,and even download and enable modules directly from drupal.org. 

Since inserting Drush into my workflow I've saved hours of downloading modules and adding them into my svn repositories (drush dl); grabbing top-level information about my sites (drush st); and even running some quick code snippits (drush eval).

Sooo good.

Read on

Pages

Follow

May 19
The @mlb should have a penalty box. If you make an error you have to go to the box for 1 batter (or 2 depending on how stupid the error was)
May 17
The interwebs ... they are-a-changin: http://t.co/JWO6pviG
May 16
@djmayer7 prepare yourself ... @ColbertReport & @TheDailyShow are off for two weeks this time around
May 09
Just saw a man use a cartoonishly oversized net to capture ~20 pigeons, jump in a van and drive away. #WTF #OnlyInNY