Features

How to install MySQL on Ubuntu/Debian

It may seem easy for some, but for others, installing MySQL on Ubuntu or Debian Linux is not an easy task. This article explains to you how to install the MySQL Server and Client packages on a Ubuntu/Debian system.
First of all, make sure your package management tools are up-to-date. Also make sure you install [...]


Run Internet Explorer 5, 5.5, 6 and 7 natively on Mac OS X Leopard or Tiger

As a web developer, you probably know all about browsers. They suck. Well, some more than others. But, if you develop apps for Windows users, you’ll have to test your app with Internet Explorer.
Now, as a good Rails developer, I’m using a Mac. I can test apps with FireFox, Safari and Opera without problems. [...]


Rails: calculated column caching

Sometimes you’re working on a Rails project and you think: “hey! This should be easy!”. Well, most of the time it is. I’m working on a project that allows people to rate objects (what they really are doesn’t matter at all).
I’m using the acts_as_rateable plugin which creates an extra database table containing all ratings. [...]


Bash it! - Number of messages in Postfix queue

Got bash? Here’s a nice snippet that will return the number of messages currently in the postfix queue.

postqueue -p | tail -n 1 | cut -d’ ‘ -f5

Feel free to post any updates or improvements.


Flash not clearing after a request?

We all know “The Flash” to be a very useful tool in almost every application we write. What does “The Flash” actually do?
The flash provides a way to pass temporary objects between actions. Anything you place in the flash will be exposed to the very next action and then cleared out.
Well, that’s all nice, [...]


Rails 2.0 New Features

As David Heinemeier Hansson already told us all during his RailsConfEurope 2007 keynote, it’s time to take off the party hats. It’s no longer at time to celebrate all the new stuff we get. It’s time to celebrate what we have already.
With this statement DHH ends the revolution of Rails. During the past three [...]


Content_for, yield and making sure something gets displayed

You may have heard of a very nice Rails technique that used content_for and yield to stuff custom blocks of content into a layout. For example, in a view you could add a block like this:

<% content_for :sidebar do %>
This goes into the sidebar when viewing this action!
<% end %>


Blueprint 0.5 Rails Plugin released

A few days ago BlueprintCSS 0.5 was released (read the Olav’s posts here). I’ve updated the plugin accordingly. The most important change is the use of 24 (!) instead of 14 columns.
Installation and usage of the plugin have not changed. See my original announcement for more information.


BlueprintCSS Rails Generator

I think that, if you’re a web developer, you’ve seen the BlueprintCSS framework. BlueprintCSS offers quite a bit of CSS code that allows you to quickly and easily build a grid-based layout, using pure CSS.
That’s, of course, all very nice, but you should be able to plug it in into your Rails app. And now [...]


Super Simple Authentication Plugin and Generator

I hereby proudly announce my Super Simple Authentication plugin and generator.
All right, what does it do? Sometimes you need to protect your actions and controllers, but you don’t want to go about installing restful_authentication or anything like that. Adding a simple password for certain actions would suffice. So, I wrote a little plugin that can [...]