Machina improba

Content Management

Now brought to you by Drupal 6

After much work, I've finally been successful in upgrading this blog to Drupal 6. This is the third attempt, and the first one that wouldn't have had me editing the database to fix the bork-ups that 'upgrading' modules between versions created. All of this caused me to remember why I was hesitant to upgrade before now.

The Downside of Keeping a Corporate Blog

Back in December, Chrysler purchased a full-page ad in many US newspapers 'thanking' Americans for bailing them out (to the tune of half a million dollars, no less). This was very unpopular: it provoked widespread outrage, and nowhere is that more obvious than the blog entry of it where many commenters have expressed their anger.

Drupal Security Updates - 5.8 / 6.3 and OpenID module 5.x-1.2

This morning I received notice of two security update releases in my inbox: one about Drupal core being upgraded, another about the OpenID module containing a security vulnerability before 1.2.

Since upgrading Drupal core is such a pain, I've generated a patch (it's attached to this post: click on '1 attachment' to retrieve it) for upgrading your existing sites from 5.7. If you're not running a 5.7 site, please don't try to use it.

Using Disposable Email accounts for Drupal testing.

If you're working on some feature that requires you to create many user accounts, here's a tip I find helpful. Use a service like Spaml that creates disposable email accounts just by going to the site.

Drupal allows valid email addresses as usernames. If you can reduce your user creation process to just those fields which accept as valid an email address, you can just go down the form, tab, ctrl+v, tab... and then hit 'Submit'.

Building on Drupal to Reduce Costs

Building upon Drupal because it's 'cheaper' is a very poor reason to build on Drupal. It may be cheaper in the end than hacking up some closed-source commercial CMS to include the functionality that Drupal provides in its core distribution. But there's at least one thing to keep in mind:

Three Basic Steps to Optimizing Drupal

There are a few simple steps you can take to optimize Drupal. Drupal is a large, heavy system: every advantage counts.

This initial benchmark is taken without any of the variables which I'm going to test: css aggregation, mod_deflate, and apc.


ab -n100 http://drupal.shadowlife.ca/drupal-5.7/


Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 0
Processing: 24 40 20.4 31 123
Waiting: 21 34 17.2 28 119
Total: 24 40 20.4 31 123

The 'Walled-Garden' Social Networking Site

In Jakob Neilson's alertbox newsletter for this week:

FACEBOOK AND METCALFE'S LAW

We are getting close to the bursting of Bubble 2.0, so it's a good idea to
review some of the precursors of Bubble 1.0.

In 1999, I wrote an article "Metcalfe's Law in Reverse" about the problems
of so-called walled gardens, where a service cuts itself off from the
Internet and tries to add value by being closed.

> http://www.useit.com/alertbox/990725.html

To Drupal or not to Drupal, that is the question?

I've been working with wordpress a long time. Since early 2005 IIRC. So I'm rather reluctant to give it up.

The main problem is that it's a hard system to make into a fully-fledged website. It was designed to be a blog -- an extensible blog, mind you -- and anything else is just an add-on hack. The 'pages' metaphor is teh suck.

A Foolish Misunderstanding of Software Dev Costs

When using a CMS, make sure that you understand what it is capable of. Or find someone who does. Or find someone who doesn't want to cheat you out of a boatload of money.

Otherwise, you'll end up like this person mentioned in this post and solicit $80k (or $25k) in donations to build a 'new system' because you demonstrate a serious deficiency of understanding how it works.

The source post I've linked to contains a lot of sarcasm, but here's the technical rundown.

$80k to do what?

Drupal as a platform

Drupal logo

I've been working with the CMS Drupal since about February now, and I must say that I'm amazed with it.

On the surface, Drupal is almost scary complex: the stock install has many options and many features. Beyond this there's a large library of third-party modules, and a very involved developer community which has produced the very extensive handbook covering every facet of Drupal.

And you aren't stuck with the default theme, or the default look and feel. Theming a site is relatively straightforward: it's just as easy as a Wordpress theme, perhaps even easier. If you are content with a pre-built theme, there is an extensive directory of themes created by third parties

You can theme specialized functions: most of the modules that have been in development for some time have functions you can override to customize the look and feel of particular site components. This makes it very, very easy to customize your site without needing to change the core code at all.

So where to start? Download and install 5.2 (the newest as of this writing). 5.x has a nice web-based installer whereas earlier versions didn't. It's much more user-friendly.

A caution: if you use 5.2 you can only use modules and themes intended for Drupal 5.x: Drupal 5.0 broke backwards compatibility with existing modules and themes.

The handbook is the place to start, but where? Some good spots are:

Drupal is very complex, and very powerful. Be prepared to spend many hours understanding it, and expect to spend spend time hitting dead ends when you first start using it.

Regardless of the complexity, it is worth knowing how to use. But it's not for everyone. Or many hosting providers. The wikipedia page outlines the technical difficulties:

The installation of Drupal (and its modules) requires access to a database as well as certain high-level privileges, including the ability to use SQL commands such as SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, and LOCK TABLES. Some Web hosting providers, however, do not offer these features. Anyone who wishes to use Drupal should ensure that their host offers these features before they begin installation.

At first that may not seem significant, but you'd be surprised how many providers don't give regular users the ability to use LOCK TABLES.

So who's using Drupal? Many, many sites. If you see '/node' in the URL at any point, that's a good giveaway.

Recent convertees are Warner Brothers Records, and Eclipse.

Drupal creator Dries Buytaert has a category index of posts which list drupal-based sites. Even Jabber is relaunching their site using drupal.