Skip to: Site menu | Main content

michael's blog

Dave Matthews Band

Gwen and I were lucky enough to be in the front row for the July 9 Dave Matthews Band show in Tampa.

Submitted by michael on Thu, 07/10/2008 - 8:00pm
Filed under:

Mt. Washington Summit

Gwen and I recently took a short hiking trip to New Hampshire. While there, we hiked up Mt. Washington via the Ammonoosuc Ravine Trail.

Submitted by michael on Fri, 07/04/2008 - 10:00pm
Filed under:

Role Playing: Clear the Cache

Maybe this was covered somewhere on drupal.org awhile back, but either I wasn't searching using the correct terms or I just plain missed it. I'm talking about how to avoid issues when programmatically modifying user roles.

I was working on a module that automatically adds and removes user roles when certain conditions are met. The code to remove and add a user role is pretty straight-forward:

db_query("DELETE FROM {users_roles} WHERE uid = %d AND rid = %d", $user->uid, $rid_to_delete);
db_query("INSERT INTO {users_roles} (uid, rid) VALUES (%d, %d)", $user->uid, $rid_to_add);

I thought this was all I needed to do. My initial testing didn't find anything unexpected, so I moved on to something else.

Submitted by michael on Mon, 05/12/2008 - 1:43pm
Filed under:

Orlando Drupal User's Group Presentation

Yesterday I gave a presentation to the Florida Drupal User's Group at the Orlando Public Library.

We had about a dozen people show up, and there's a lot of interest in future meetups. So much so, in fact, that we went ahead and scheduled monthly meetings (3rd Saturday of every month). We have topics and speakers lined up for the meetups through October. See the meeting wrapup for all the info.

Here's some links to some stuff we discussed that I promised to post:

Submitted by michael on Sun, 04/13/2008 - 11:31am
Filed under:

Automatic Configuration of TinyMCE in Drupal

At Drupalcon Boston I was in a session that Boris Mann of Raincity Studios was giving and he made a throwaway comment about how TinyMCE doesn't actually suck - if you know how to configure it correctly.

Well, I always thought it sucked and caused more problems than it solved, so I contacted Boris and asked him how he configures TinyMCE. He pointed me to a Bryght install profile for Drupal that automatically sets up various TinyMCE profiles.

Submitted by michael on Wed, 03/19/2008 - 11:19am
Filed under: