Archive for January, 2007

Hacking GeSHi to Fix the Height of Code Blocks

When setting up this blog, which is powered by WordPress, I knew that there were going to be a lot of posts about code. In order to make the code readable, I wanted to implement some sort of syntax highlighting. I eventually came across a great plugin called Simple Syntax, which is powered by the GeSHi highlighter engine. However, it needed a few modifications before it did exactly what I wanted it to do.

click here to read the full article

User Registration, with Email Confirmation, in Ruby on Rails

User registration is function that is more or less common to all web applications. If your app has users, there has to be a way for them to register, right? Sometimes you want to add the extra step of confirming the user’s email address, to ensure that they have entered a valid address which they have access to. Here’s a way to handle user registration in Ruby on Rails that’s secure, robust, and handles email validation.

click here to read the full article