Archive for the ‘Ruby on Rails’ Category

Redis will not time out. Try installing the SystemTimer gem.

WARNING: Could not find a good alternative for performing time outs — connecting to Redis will not time out. Try installing the SystemTimer gem. rake aborted! undefined method `get’ for nil:NilClass WARNING: Could not find a good alternative for performing time outs — connecting to Redis will not time out. Try installing the SystemTimer gem.rake [...]

Posted on July 27, 2010 at 3:03 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config · Tagged with: , ,

sqlite3 Issues – Error installing sqlite3 – sqlite3 requires Ruby version >= 1.9.1

Errors as follows, common problem is not having the header files installed or installing the gem sqlite3 when you actually want sqlite3-ruby. sudo gem install sqlite3 ERROR:  Error installing sqlite3: sqlite3 requires Ruby version >= 1.9.1. Fix with:

Posted on July 6, 2010 at 1:48 pm by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails, Server Config · Tagged with: ,

RubyGem nokogiri failed to install – libxslt is missing – Error installing nokogiri

Had trouble installing nokogiri until I installed dependencies. libxslt is missing #or libxml2 sudo apt-get install libxslt-dev libxml2-dev Full Error Stacktrace:

Posted on June 29, 2010 at 2:22 pm by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails, Server Config · Tagged with: , ,

Memcached – Libmemcached already built; run ‘rake clean’ first if you need to rebuild.

Trying to install memcached ruby gem on Ubuntu 10.04 Lucid Lynx and I get the error Libmemcached already built; run ‘rake clean’ first if you need to rebuild. Fixed this by installing sudo apt-get install libsasl2-dev gem uninstall memcached && gem install memcached Full Error Stacktrace:

Posted on June 28, 2010 at 2:10 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: , ,

Developing Ruby on Rails on Ubuntu Lucid Lynx 10.04

Developing for any Web Application can be helped by developing in the same environment as the deployment.  For me this means that running Ubuntu Desktop and deploying onto Ubuntu Server is a no brainer.  Most Ruby on Rails developers you’ll find today use a Mac and Textmate.  I learnt Ruby on Rails in the same [...]

Posted on June 8, 2010 at 2:54 pm by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails, Server Config · Tagged with: 

Sending Emails with Rails, multipart html plain with Attachments

When trying to send attachments along with type versons of an email (html and plain text) you might notice that there is no content in your email message.  While I found this out too.  Simple if not over the top solution. The trick is that you have to put the html and plain part inside [...]

Posted on June 3, 2010 at 5:36 am by Jordan Carter · Permalink · One Comment
In: Ruby on Rails · Tagged with: , ,

what changes did I just pull from git?

Ever wanted to see what changes you just pulled from github? This little command will show you the changes for the last commit, if the pull resulted in more commits being pulled then add a couple more ‘^’s to HEAD^ git diff HEAD^ HEAD

Posted on May 14, 2010 at 4:12 pm by Jordan Carter · Permalink · Leave a comment
In: Ruby on Rails · Tagged with: 

Git cherry-pick

cherry-pick is a useful Git command, especially if you are working in an Agile team. We used it for the first time today on our project. Team member A lets call him “James” made a feature and put it onto master. Team member B lets call him “Jordan” later refactered some code from “James”‘s feature.  [...]

Posted on May 14, 2010 at 1:15 pm by Jordan Carter · Permalink · 2 Comments
In: Ruby on Rails · Tagged with: