Blog

InnoDB on Ubuntu?

May 3, 2011 — vkareh
Filed under:

I'm currently working on a Drupal 6.x website that recently changed its database storage engine to InnoDB. I was not very aware at the time, but it does have some issues while running on Ubuntu.

Of course, I do all my development locally and I recently upgraded to the shiny new Ubuntu 11.04. For a while I blamed the ridiculously slow speed of this particular database to the OS upgrade, as, for some reason, I had to re-install my entire LAMP stack after the upgrade; the MyISAM to InnoDB switch happened around the same time.

Render Arrays

February 2, 2011 — vkareh
Filed under:

It seems that documentation on renderable arrays for Drupal 7 is lacking.

I was working on upgrading the Multistep module to Drupal 7, and turns out that the navigation/progress-bar block was still returning an HTML string. Unacceptable. I need to fix that by returning Render Arrays instead.

nid in $form_state

December 7, 2010 — vkareh
Filed under:

The other day I had an interesting "chicken-and-egg" problem. I'm creating a new module that does the following:

  1. A user creates a node
  2. The node creation generates a list of follow-up nodes (with references to itself) to be created by the user at a later date
  3. When the user goes to create these follow-up nodes, the list should be updated to include the nid of both nodes, and which follow-up sequence this was for

Eclipse for Drupal in Ubuntu

October 30, 2010 — vkareh
Filed under:

It took me a while to finally break down and install Eclipse and actually use it for Drupal development. In my mind it was one of those daunting tasks that I never thought I'd complete. Once you start using it for real, though, it feels like you finally got the Swiss Army knife you've always wanted, but now it's too big to fit in your pocket.