Archive for February, 2007

Photo Friday: Sky

Star Filled Night

I had a wonderful wander through my Flickr photo stream to find the perfect candidate for the Sky challenge from Photo Friday. This was taken out at Sibbald lake and northern star is somewhere just out of frame in the upper left. Across the lake is the private camp that cast wonderful lights on the lake

Comments

An Ugly New Website

Lauren is a Drama Queen

I've been thinking about getting away from Typo for a little while now. It's a decent little engine, and was my first real run with Ruby on Rails, but there was a couple of things that were always under my skin.

After some looking on the net, I found that all the cool kids are using Mephisto for their web logging needs. I grabbed a copy and took it for a spin on my test site, and was quite impressed. I decided I would share with you all how I made the transition, although I think I was the last person using Typo.

The first thing was to make sure I didn't mangle my current, production database so I created a new one through the web panel and then:

mysqldump -u olduser -p oldpassword -h mysql.existinghost.com existing_database \
| mysql -u testuser -p testpassword -h mysql.testhost.com testing_database

I now had a testing_database that I could wreck havoc with. Next I needed the bleeding edge of Typo, so that I could migrate my database to the current version. I couldn't do this with my current version because I wasn't ready to upgrade my production site to the newest Typo. Therefore I:

svn checkout http://svn.typosphere.org/typo/trunk typo_delete
svn checkout http://svn.techno-weenie.net/projects/mephisto/trunk .

Now I had the lastest version of Mephiso installed in my testing webroot, and typo where I could use it. I then updated the database.yml files for both applications so that typo pointed to the testing database, and Mephisto had production set to a brand new database, as well as the typo entry set to the testing database. Once that was done, I started the migration

cd typo_delete
rake db:migrate VERSION=56

You needed to specify the version to stop at, because the bleeding edge of Typo breaks the Mephisto conversion script. Then we are ready to bootstrap the new database, and migrate the data over

cd ../mephisto
rake db:bootstrap
script/runner "Mephisto.convert_from :typo" -e production

At this point I could not log into the admin application with my old Typo user. The problem was that my user appeared to be missing a validation time, so I logged into the database and:

update users set activated_at = now(), admin = 1 where login = 'wdevauld';

Now I was able to get into the admin applet and check out my articles.

The final conversion I made before switching over was to pre-populate all my tags. I believe that tagging is the future of the internet, and quite a few sites I use (Del.icio.us and Flickr are at the top) implement tagging rather well. I don't want to get caught up in sets, categories or sections so from now on it's all Tags all the time. Most of my Typo articles were categorized to some extent, and the conversion pulled them over into sections. I wanted to pre-populate all my tags with my sections (previously my categories) so I dove into the rails production console and

Article.find(:all).collect do |article|
   Tagging.set_on(article, article.sections.collect{|i|i.name}.reject{|i|i=="Home"}.join(', '))
 end

There in three easy lines of code I had all my articles tagged with their section names. It was a shame I had to pull the Home section out, but under mephisto everything is in 'Home' and I didn't need a 'Home' tag with every old article in it. The last bit of meat to get me happy enough to switch production over was to facilitate the old permanent links, so I edited config/environment.rb to include:

Mephisto::Routing.redirect 'articles/*' => '$1'

and I was ready enough to go. The old RSS feed doesn't work anymore, because Mephisto facilitates Atom feeds, and that's the way it's going to be. Those that are tech savvy enough to use a feed reader for my blog, are surely not going to be stumped enabling the Atom feed.

This is the first post under the new regime, and I've been compiling a list of what I still need to do in order to be happy again:

  • Fill the sidebar up again:
    • Recent Del.icio.us tags
    • Monthly archives
    • Flickr stream
    • Blog-roll
    • Perhaps some feedburner love
  • Code formatting
  • Automagic pings to all my favorite sites
  • Way more Style!

I was hoping to participate in the CSS Reboot this spring, but I want to have the new look in place before them. Although with how busy I've been lately, I think May 1 is a reasonable deadline.

Comments

if (Xbox 360 == Toast) :

Three Lights of Death

My electronics weren't very happy with me this weekend. First my computer decided that my processor wasn't what it claimed, and then my X-Box decided that it wasn't going to work any more either.

The PC was easy enough to get going, I simply underclocked it to a point that it started working again. It's limping along for the time being, but unfortunately the final repair is going to be far reaching, as I don't believe you can even buy processors for that motherboard anymore. If I want the speed again, I'm going to have to upgrade.

The X-box died shortly after finishing a movie and when I threw Burnout back into the unit, I was confronted with the Red LEDs of Death. I went through the online support, and once everything was finished it told me: Yes, there is something wrong with your X-Box. Actually, their wording was closer to: "possibly a dashboard update error, there is no solution at present the console must be sent back to MS for repair".

Without either PC or X-Box my electronic entertainment has been downgraded to PopCap on my mini.

Comments

PhotoFriday: Strange

Lighthouse Boat

I didn't initially have anything come to mind when I saw this week's Photo Friday challenge. I stewed about thinking about Smashening photos, night shots and pretty much anything I may have captured that was out of the norm. I was cruising through my collection and I passed over the line in the past where I switched from film to digital.

Back when I was still hammering silver crystals with light, I had a delightful trip to Ireland where I took this photo. I thought it rather strange seeing a lighthouse attached to a boat. Seems like the kind of thing some amazing practical jokes are formed around.

Comments