Tag Archives: ruby

Explorations in Go: A dupe checker in Go and Ruby

I’ve recently started exploring the new(ish) programming language “Go”. Go is intended to be a systems programming language and offers speed and low-level API along with some sweet features and the beginnings of a great standard library. At Carbon Five … Continue reading

Posted in Everything Else | Tagged , | 23 Comments

Valium extracts Model attributes without instantiating ActiveRecord objects

I was recently on a project that captures and logs data as ActiveRecord models.  Each datum had 10 or so numeric attributes.  One story required pulling out all the values for a particular attribute in a time range (i.e. all … Continue reading

Posted in Web | Tagged , , | 2 Comments

Rails 3 Upgrade Tip: Invalidate Session Cookies

I recently finished working with Kathryn Aaker on upgrading Eggs, her farm CSA management software, to Rails 3. While there is a lot of good information out there on upgrading from Rails 2 to 3, we did run in to … Continue reading

Posted in Everything Else | Tagged , , , | 2 Comments

Browser session cookies and Dalli

A while back one of our clients requested that Rails sessions be stored in session cookies (i.e. a cookie that will expire when the browser is closed). This was for security reasons so your cookie couldn’t be read off the … Continue reading

Posted in Web | Tagged , | 2 Comments

Using RVM on TeamCity build agents

We have been using TeamCity to manage the continuous integration, testing, and deployment of many of our recent projects. We have also been using RVM on all of our recent Rails projects to allow us to install multiple ruby versions … Continue reading

Posted in Web | Tagged , , , , , | 4 Comments

How to install rails on CentOS 5.4 x64

1. Download ruby source wget http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz tar -zxvf ruby-1.8.7.tar.gz 2. Install dependencies sudo yum install gcc sudo yum install gcc-c++ sudo yum install zlib-devel sudo yum install openssl-devel sudo yum install readline-devel sudo yum install sqlite3-devel 3. Build ruby from … Continue reading

Posted in Web | Tagged , , , | 4 Comments