john's blog

How To Section

“Can’t connect to local MySQL server through socket” on Mac OS X Leopard

I keep having to do this and I'm writing this here so that I remember how to fix it:

PHP is trying to connect through /tmp/mysql.sock by the /etc/my.cnf file is pointing to /var/mysql/mysql.sock.

So I just put a symlink in tmp to redirect the connection:
ln -s /var/mysql/mysql.sock /tmp/mysql.sock

Drupal Views Module and XHTML valid links

This isn't the first time that the Views Module has spit out invalid code. It's not a huge issue, but I've seen Views spit out div blocks without a close tag, just causing me all kinds of headaches in IE.

Why your website should support Internet Explorer 6

I mean, who uses Internet Explorer 6 (IE6) anyway?

Well according to this wikipedia article...about 17% of us. Clearly a significant share of the market.

Alfresco on Mac

So I'm considering an Alfresco installation for a client to be hosted on an XServe Mac OS X Server. Alfresco seems like a viable open source replacement for Sharepoint. And I'd like to believe that, but I'm currently having troubles with the install on my local machine. So I'm going to log my attempt at solving this problem for future posterity.

Apache in 32 bit vs. 64 bit mode on Mac OS X

While trying to do some ahah uploading for a 5.x Drupal module I'm porting to core 6.x, I discovered some problems with my local 32-bit apache setup on my Mac OS 10.5 development machine.

Ad hoc Drupal node creation

This is how one creates a node in code:
http://drupal.org/node/60479#comment-114666

Drupal Block Info field

The block data are clearly saved in the blocks table in the database. But the info field isn't. To get this, one needs to go in two different directions.