Category Archives: Computing

Post Redirect Get in Rails

Photo by Terry Bain

Post/Redirect/Get (PRG) is a web application design pattern used to supply users with nice, GET-generated results pages that bookmark and reload with ease.

Say you have a results page with a filtering form at the top. The user might alter filtering options, and submit a form [...]

Fixing slow rake on Leopard

Photo by JBAT

In the past few months, as a result of my clumsiness, I’ve been working on a new, Leopard-enabled MacBook. When replacing my wet and dying Tiger MacBook of yore, my one hope was that my daily executions of rake to test Harvest would execute a little [...]

open_id_authentication plugin and remember me

Do you run a Rails website that allows traditional username/email/password login and OpenID authentication? Do you know for sure that your “remember me” feature is working? Please do check…I’ll wait…

Good, now that you realize your “remember me” feature is not working for the OpenID login on your site, I’ll show you an easy way [...]

Ventorium: my lark of a project

Over the past few weeks, in spare moments, I put together a little Twitter bot which allows the service to blow off some steam. Ventorium works pretty simply. Follow “ventorium” on Twitter. Send @ventorium a message. See what spews forth from ventorium’s maw.

I must keep the secret to how ventorium writes [...]

Five Rails tips

Ryan Bates, of the excellent Railscasts, is running a contest to generate a bevy of Rails tips on the web. (And look, Harvest is part of the grand prize package. W00T!)

Here’s my contribution:

Handy test helper to check your layout:

Do you have any layout variability served up in your controllers? Maybe you’re doing [...]

Virtual Teamwork or You Can Go Home Again

Over the past year I have entered into a new world of working from home as part of a “virtual team.” This team situation carries with it most of the issues of a typical team as well as its own, unique hurdles. Working in a home office adds even more particulars.

In less than [...]

A Rails way to track additional schema info

Photo by rachel is …

Right now at Harvest we are baking a few pans of Twitter integration. We’re not sure if they’ll turn out moist and delicious, but hopefully they stop short of dry and forgettable. It’s been a fun, and somewhat frustrating, process getting this feature [...]

ActiveResource HTTP basic auth with email address

As I’ve started to play around here and there with ActiveResource, I’ve noticed lots of complaints about how ActiveResource’s implementation of HTTP basic auth leaves a lot to be desired. Specifically with regard to its lack of support for email addresses as usernames. This won’t work:

class Expense < ActiveResource::Base   self.site = "https://barry@bjhess.com:password@website.com" end

Turns out [...]

HOWTO commit an incremental Rails upgrade to SVN

Photo by LeChatMachine

My relationship with Subversion is an ever growing one. Right now it is growing itself straight into git. I’m not sure how happy Subversion is with me. It’s complicated.

But it is nowhere near as complex as my process for committing a Rails upgrade to [...]

Move server configuration files into your repository

Photo by Chambo25

Are you a programmer? Do you hate any process that involves SSH’ing into a server and editing files directly in production? Would you like to get rid of this non-source controlled hackery? Damn right you would!

If you’re deploying an application to a server, get [...]