Archive for March, 2008

Ugh, more snow.

Sunday, March 23rd, 2008

This is what I woke to this morning.
snow_sm
A fresh coat of snow.  Ugh.  Its around this time that Minnesotans start to really hate that beautiful white power from hell.  I mean, I’ll take a foot of snow over below zero temps any day, but really, it is almost April… throw us a bone Mother Nature!

Got a new monitor

Thursday, March 20th, 2008

monitor

Yup, brand new 24 inch Samsung. I’m always amazed what an extra 4 inches will do for your screen real estate. I love it.

Slicehost problems with Gem *FIXED*

Monday, March 17th, 2008

Today I set up 470.johnyerhot.com and set up a Rails app I worked on to run there, but I needed to install the Pdf-writer Gem for proper functionality. Low and behold when I tried

sudo gem install pdf-writer

I was greeted with nothing, just

Updating Gem source index for: http://gems.rubyforge.org

and that was it. After searching and searching I realized the the version of Gem I had installed was 0.94 and that was the problem.

The solution is as follows:

wget http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz
tar zxvf rubygems-1.0.1.tgz
cd rubygems-1.0.1
ruby setup.rb
sudo gem update

You just need to manually install the updated Gem. Cinch.

Drupal | Front Page Module + Nice Menus = Headache

Monday, March 3rd, 2008

I’ve spend all morning trying to get this to work.  I am using nice menus and the frontpage modules in Drupal for a project at work and I could not for the life of me get the nice menu to work on the newly created frontpage I set up using “full” type of front page.

After hours of banging my head on the desk I’ve figured it out.

    <?php
$block = module_invoke(’nice_menus’, ‘block’, ‘view’, 1);
print $block['content'];
?>

Yes that is it.  This will print out the contents of the nice menus block.  Ugh.