Archive for December, 2006

Textmate+Rails: Easy partials for better code

As you may know, I use TextMate for editing Rails code.
I’ve just been browsing the Rails bundle today and I came across some very interesting things. Today I’ll tell you about partials.
Partials are ERb templates. They are mostly HTML (or RJS or XML or whatever output format you use) and include some embedded Ruby to [...]


SVN: How often should you commit?

I often hear discussion about how often developers should commit their work to the central repository. Some say that you should only commit when you’re next ‘release’ is ready. Others say that you should commit every change you make in your code. There are even people who say you should commit your changes only at [...]


SVN: Merge a branch with your trunk

When created a TRY-branch a few days back to try some fancy new AJAX technology in my application. Not problems there, so now I want to merge the code in the branch with my trunk.
Since I’m a lone hacker, the trunk has not been touched since I created the branch. I have a checked-out working [...]


Show the current SVN revision in your Rails app

I’m current developing a Rails application. I deploy this application to a demonstration server using capistrano.
To streamline feedback and bug reporting I want to show the current revision number of the code that’s published on the demo server to show in the footer of every page.
First I looked into Subversion keyword expansion, but this is [...]


Announcing “Subversion Kick-Start”

With this post I officially announce my first book, “Subversion Kick-Start“.
Subversion is a popular version control system that’s used by many, many developers around the globe. Most developers know how to find their way around Subversion, but quite a lot do not.
SKS is for every software engineer who wants to learn how to put Subverstion [...]


Install ruby-mysql on Mac OS X 10.4 Tiger

You probably know that the built-in mysql code in Rails sucks. To rephrase that, the ruby-mysql gem contains better code, so you want that. Rails automatically detects if you have ruby-mysql installed or not, and uses it if you have it.
Most notably, you want to install this gem if you get dropped MySQL connections running [...]


Installing Rails on Ubuntu Dapper / Edgy

Installing Ruby on Rails on your Ubuntu box is not always as easy as it seems. Here’s a comprehensive overview of the steps you need to take. Mostly you’ll be using apt-get and gems, so it’s not all that hard after all.
This method was tested on both Dapper and Edgy systems. It may work on [...]


How to setup a Ubuntu development server - Part 2

Also read Part 1 - Subversion.
In this part I will tell you how to install Trac on top of your Subversion repositories on your Ubuntu development server. Trac offers you a wiki, roadmap, tickets (tracking system) and access to your SubVersion repository. All of this is bundeled in a very sexy web interface.
Well, let’s get [...]


How to setup a Ubuntu development server - Part 1

Since I’m starting some real work on my final school project, I want to install a Ubuntu development server here at home. I have a Pentium 4 box here that will perform that task.
In this first part I will show you how to install Subversion over WebDAV. All of this will be done in such [...]