Bloaargh Refresh

Bootstrap screenshot

In 2007 I moved my blog from my own bespoke CMS into Drupal. Back then, Drupal 6 was the state of the art and so that's what I used.

Drupal 7 came out just under two years ago, but for many and varied reasons there was a significant lag before contributed modules were updated to work with the newer Drupal core. I happily kept working mainly with Drupal 6 until I got a job developing new sites using Drupal 7 at the start of this year.

Telescope cam debugging

Webcam Pro 9000

I was reminded the other day that if you want to do planetary astrophotography, hacking up a webcam is a cheap and easy way to computerise image capture. Better still, software exists to process videof rames into a single higher quality still image.


A spot of researching which webcams are best suited for this found a page explaining how to hack a Logictech Webcam Pro 9000. Better still, my corner discount computer parts shop actually still stocks these for all of $35 a piece.

Testing times

Crash test dummy

Over the past week or two I've spent my time working on a Drupal install profile. It uses a custom theme, a bunch of features and a set of modules that allows us to use Aegir to quickly provision a standard website for research centres and projects and associated with our university faculty.

To make sure this install profile keeps working as we make incremental improvements to it, I decided it would be nice to have some tests. For instance, to check that the correct theme is enabled, that the various roles defined in the features we use have the correct level of access to the nodes defined there as well and that blocks are placed in the correct regions with the correct visibility settings.

Unfortunately, the default DrupalWebTestCase class doesn't run profile install tasks, so my tests all failed horribly no matter what I did. 

Cheesy open source

Mmmm, delicious!

What's better than cheese? Nothing, surely.

Actually, there is: open source cheese. And stop calling me Shirley.

Last saturday I finally cashed in on last year's birthday present, a one-day cheese making course at the William Angliss instutute of TAFE taught by Giorgio Linguanti of La Latteria fame. The course teaches how to make fresh mozzarella and a basic pecorino style cheese called primosale.

Over the course of the day, Giorgio explained that he thinks the australian cheese industry is quite closed and not many producers are happy to share ideas and recipes with each other. That's as opposed to the part of Italy he's from, where people are forever talking with each other about how to make better and more interesting cheeses.

So in the spirit of open source cheese, here is Giorgio's mozzarella recipe, which makes a delicious cheese.

Date ordinals: An ugly solution to an ugly problem

Root out the unilingualist oppression!

A friend bumped into what appears to be a very irritating problem yesterday with the PHP date_format() function, which is used by format_date() to show date and time strings on Drupal. This function uses the "S" format character, which returns the english ordinal number suffix for the current day of the month. E.g: "st" on the first day, "nd" on the second day, and so on. (And the date() function does too, coincidentally)

The problem is that when you're working in a non-english locale, the ordinal suffixes returned remain the english ones. Oops.

Drupal Groups Email Filtering

You've got way too much mail

Many Drupal users and developers are members of groups.drupal.org and will be getting email from the site when people post new messages and replies to threads. Of these people, many probably also like to organise their email in folders, for easy reference in the future.

A common way to do this is by creating email filter rules that look at email subject lines or other headers and perform an action based on what these headers contain.

SecureBoot Database

Since I can see which way the wind is blowing with SecureBoot, I thought it prudent to create a database much reminiscent of the Linux hardware compatibility lists of yesteryear.

After some pointing and clicking in Drupal, the site is ready, for "beta" values of ready. You can access it at http://secureboot.osda.asn.au/

If you have a moment, please sign up and add your hardware to the system.

Value Added Tax?

Could it be? No! Never!

A few weeks ago I saw a tweet by the Drupal Assciation asking for feedback on, amongst other things, how it could make being a DA member more attractive. The survey appears to still be open, so if nothing else please go fill it out.

However, before you do so I would draw your attention to question 15:

How much would the following benefits interest you in becoming a Member (or renewing your Membership)?

and in particular one of the options listed there:

Sensible API Calls Initiative

Frightened and confused

More than once I've had people ask for help because the concept and naming of hooks in Drupal both frightens and confuses them. FRIGHTENS and CONFUSES. Sadly, this is a very common occurrence.

In order to address this problem, the SAC (Sensible API Calls) Initiative has been formed. Our first task has been to clarify and simplify alter hooks throughout Drupal. We've opened issue #1510984 on drupal.og and posted an initial patch, which addresses how the alter API is called.