The Archives


I’m Attending


Tag Archives: heroku

Heroku, Rails 3, memcache and You

Posted in: Programming by Steve on October 29, 2010

Since Codemasher uses the CodeMash REST API, I didn’t want to bog it down with requests from the website. So I looked up how to use caching with Heroku.

Here is how I did it:

First, edit your Gemfile to include dalli as your cache client:

group :production do
  gem 'dalli'

Add this line to your environments/production.rb:

config.cache_store = :dalli_store

Finally, if you haven’t enabled the free 5MB memcache addon for Heroku, execute this from your application directory (command line/terminal):

heroku addons:add memcache:5mb
My First Real Rails App

Posted in: Programming by Steve on October 27, 2010

codemasher As CodeMash approaches, I wanted to build something that would get me more formally introduced to rails 3.  I also wanted to set it up so others could see it and view how I was coding it so I could get some direction.

So I present to you, the Codemasher. It’s a quick and dirty website that returns a random session to attend.  It uses the REST API provided from the CodeMash website and is the simplest site I could come up with.  I have deployed an example up on Heroku at

I hope to have it working where it remembers the sessions that you didn’t like. Another thing is to set it up to look at the sessions that will happen in the next chunk of time slot(s) so you could look at it at the end of a session and try to find another session to go to.

It was inspired by WTFSIMFD ( but without the curse words.

All of the code is available on github at  Please take a look and see how you like it, and if you would make improvements to it, I’m all ears.

My First Rails Application

Posted in: Programming by Steve on April 2, 2010

After CodeMash, I decided it was time to see what the hubub was about with rails, so I picked up a Mac, a few books and a lot of beer.  The result is my first website built using rails and Heroku.  There’s not much to it right now other than my resume, but I’m looking at building a contact form as well.   So it’s not much of an application other than an HTML page rendered using rails, but at least it’s the start of something new.


Here’s to learning more in the coming months!