About Archive Tags RSS Feed

 

I have finally found my place in everything

20 May 2007 21:50

Sorry to everybody on Planet Debian who have been forced to see a lot of older posts of mine.

I switched from Typo to Mephisto - another Ruby on Rails blog.

The reason? Typo seems to suck memory like a .. big sucky thing.

Posting a new comment would take the system-load on my VM up to 2, which is not acceptible. I'm prepared to suffer a little with my decision to never install, host, or admin a PHP-based application, but not that much.

Mephisto seems nice, although the importing of old posts was a little fraught with peril. Thankfully the system, when used with Mongrel and an Apache proxy seems fast, stable and not too memory intensive.

The only thing that didn't happen properly was the closing of comments on all the older entries. Comments on new entries appeared to be correct in the sense that they should be automatically disabled after 7 days.

Here's how I fixed that:

skx@skx:~$ script/console production
1
2
3
Article.find(:all).each do |a|
 a.update_attribute :comment_age, -1
end

| No comments