Archive for the ‘Features’ Category

How to install MySQL on Ubuntu/Debian

December 12th, 2007

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 all the latest software available.

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

December 12th, 2007

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.

Rails: calculated column caching

December 6th, 2007

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).

Bash it! – Number of messages in Postfix queue

November 15th, 2007

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?

September 26th, 2007

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, but what if you notice that your flash is not cleared, and is shown in one or more subsequent requests as well?

Rails 2.0 New Features

September 24th, 2007

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 years a lot of new and exiting features were added to Rails. However, now the time has come to evolve Rails further. No more new and exiting stuff, but fine tuning. Making things even better than they already are.

Content_for, yield and making sure something gets displayed

September 1st, 2007

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:

4e744f7c8e49381089cae92aba2174b6016

Blueprint 0.5 Rails Plugin released

August 31st, 2007

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

August 27th, 2007

This plugin is no longer available. Blueprint nowadays ships with a very good ‘compress’ script that allows you to generate all kinds of nice BluePrint layouts. Having a plugin to just copy some files seems a bit excessive.

Super Simple Authentication Plugin and Generator

August 24th, 2007

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 generate some code for you that allows you to easily protect your app with a simple password.