What's been on my mind
Drupal Johannesburg

Drupal - find what variables are available in a template
';
print_r(get_defined_vars());
print '';
?>
Heard about this on the lullabot drupal podcast, did a quick search and came across this post.
Useful list of 15 iGoogle productivity gadgets

Web developer toolbar for IE (Internet Explorer)
Firefox images getting extra space when in table cell
.header-image {display:block}
Drupal CCK email field errors: "doesn't have a default value query"
Ran into this error a couple of times before when adding content to a CCK email field in MySQL 5.0.27: user warning: Field 'field_email_email' doesn't have a default value query:
It seems the email field is initially set up to not allow null values. To fix this check out this patch or just update the field in phpMyAdmin: ALTER TABLE `table_name` CHANGE `field_email_email` `field_email_email` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL
How Drupal's CCK already provides a safely formatted cck field for display
Came across an interesting post when investigating some "n/a" text appearing in a CCK node field when not logged in. I was using the code echo content_format('field_description', $field_description[0]);
to safely format and output the description field. Not sure exactly why it happens but it turns out that there's no need to actually do it that way as CCK already provides a safe string of that field for outputting to the browser that is already formatted accordingly.
Drupal path not available to anonymous users in view block
if ($type == 'block' && arg(0)=='node')
{
$node = node_load(arg(1));
$path = $node->path;
$args = array();
$args[0] = '';
if (!empty($path))
{
$args[0] = $path;
}
return $args;
}
phpMyAdmin "Save as file" file name template
%Y%m%d%H%M%S-__DB__
This will save your files in the following format: 20070815152612-databasename.sql