Error message

Deprecated function: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in require_once() (line 915 of /var/www/

New 234x60 banner

Why get into blogging?

Problem with mysql_query quoting of parameter values

I had some code which wasn't working:

mysql_query("UPDATE pracs SET name='{$name}', email='{$email}', webaddr='{$webaddr}', phone='{$phone}', level='{$level}', lineages='{$lineages}', description='{$desc}', password='{$password}' WHERE id={$id}");

In debugging the code I found that the correct values were reaching this statement, but the database wasn't being updated with the new values. Huh?

Well, the official documentation at says

// Formulate Query
// This is the best way to perform a SQL query

Looking back at Battlestar Galactica, Season 1

As I noted earlier I'm rewatching the modern Battlestar Galactica episodes preparing for the coming airing of season 4.5. This is the second half of the fourth season and is due to be the climactic ending of an awesome series. I just finished rewatching the first season and have some thoughts.

Battlestar Galactica series 4.5 coming, and the first of the webisodes

Battlestar Galactica is coming, really, perhaps sooner than some had thought -- in the latest Galactica Quorum was some surprise about how soon the final part of the final season will be. I started rewatching the entire series a while back and am in the middle of the first season. And on you can now find 10 webisodes they'll be publishing until the middle of January. The 'webisode' is something they ( have done in earlier inter-season gaps and I suppose it's meant to get people back into the swing of clanging hatches and fraking and cylon attacks.

Looking at creating a custom search engine w/ Google

Google offers a way to create a Custom Search Engine which means that you can define your own search engine and offer it for others to use. It's even possible to generate income by running your own search engine. The custom search engine has a strictly limited set of sites from which search results are drawn.

Methods to assist announcing Drupal-hosted content to social bookmarking & sharing sites

There are lots of social sites which facilitate sharing links to stories between the site members. They vary in form, but have a lot of similarity, with the main function being to post on a common site a story title, link, and description. A lot of traffic can be generated from these sites and thus it's useful to a website proprietor if their content gets promoted into these social sites. However there are dozens of these sites, with different mechanisms to post into each.

Blogging using Drupal

Drupal is a very feature-rich and comprehensive content management system. While Drupal is very flexible and can be used for nearly any kind of web site, one of its main core competencies is as a blogging platform.

Caprica City trailer

A trailer for the Battlestar Galactica prequel, Caprica City, is available. I suppose this is why there's such a long hiatus between season 4 and season 4.5? Anyway...

UPDATE: The video is no longer available on youtube because NBC is too clueless and asserted copyright control.

Hmm.. "My family name is not Adams, it is Adama" ... I'd noticed recently that the name 'Adama' is very much related to 'Adam' and that could be partial symbolic background to the Adama family in Battlestar Galactica.

Blog Theme module for Drupal

The Blog Theme module allows individual users to select different themes for their personal blog pages. Drupal allows easy switching of themes in that there is a theming layer which is very flexible in making the presentation of a drupal site customizable. This Blog Theme module uses that facility to allow a different theme to be used for blog postings by each user.

Activity Stream module for Drupal

The Activity Stream module for Drupal is a form of aggregation for Drupal. You configure it with a list of RSS feeds and it makes copies of (new) items as postings on your site. The idea is to collect all your "activity" from across several websites and collect all that on one site.


Subscribe to Front page feed