03 Mar 2009

DrupalCon DC geeks: Win a signed book!

garfield's picture
Senior Architect and Consultant
4

DrupalCon DC is begins tomorrow! Palantir is out in full force this year, with no less than ten members of the team on hand. Try and find us around the conference (we're the ones with baseball shirts; go team!) for a free Drupal API reference card or Zen theming reference card. For all that coding on the plane home after the conference. (Admit it, you know you'll be doing it.)

And while you're at it, participate in the Palantir DrupalCon Geeky Code Contest to win a signed copy of Learning Drupal 6 Module Development! See below for details.

Palantir will be giving away two copies of Matt Butcher's book, Learning Drupal 6 Module Development, personally signed by the author himself. To enter, post a comment below that describes Drupal or some major Drupal system or module using only valid PHP/SQL or XHTML/CSS code. We'll be giving out one book for the best PHP snippet and one for the best XHTML/CSS snippet.

Example:

<?php
foreach ($sites as $site) {
if (hacks_core($site)) {
God::kill(new Kitten());
}
}
?>

<geek style="position: Taiwan">JohnAlbin</geek>

Rules:

  1. All code must be well-formed. Some creative license is allowed (e.g., fake CSS attributes), but it's better if you can use just real tags, attributes, and Drupal functions.
  2. Bad puns are encouraged. Inside jokes are OK as long as we get them.
  3. All entries should be posted as replies to this blog post. The codefilter module is enabled for comments.
  4. Keep it clean! There are minors reading.
  5. Include a link to your user profile on the DCDC web site so that we can identify you.
  6. Entries will be judged by how much laughter they generate among the Palantiri. Yes, a very objective measurement.
  7. All entries should be posted by noon on Friday.

We'll be announcing the winners and signing books at the Palantir booth during the last break on Friday, about 4:30 pm.

Comments

Code freeze

function code_freeze() {
  while(!empty($bugs[VERSION]['critical'])) {
    $bug = next(($bugs[VERSION]['critical']);
    $issue = NULL;
    do {
      $fix = patch($bug);
      if (version_compare(VERSION, '7', '>')) {
        $fix .= assertTestExists($bug);
      }
      submit($issue, $fix)
      review($issue);
    } while ($issue->status != RTBC);
    commit($fix);
  }
}

DBTNG

<?php

define('DBTNG', 'http://drupal.org/node/225450');
define('TOO_MANY_FOLLOWUPS', 352);

$followup_count = 0;
while ($followup_count < TOO_MANY_FOLLOWUPS) {
$followup_count++;
$followup = new FollowUp(DBTNG);
$followup->number = $followup_count;
$followup->type = 'unnecessary';
$followup->save();
}

?>

And the winner is....

Congratulations to Dmitri "dmitrig01" Gaskin for his winning entry!

DrupalCon was so busy/interesting/social …

… that I kept forgetting about this. Cool contest though :)