How To – Persist Rails or IRB Console Command History After Exit

Sick of not having Ubuntu rails or irb terminal not saving your command history after exiting the console?  Try this little trick to fix it up!

Append into your ~/.irbrc the following Read the rest of this post »

Posted on September 14, 2010 at 11:46 am by Jordan Carter · Permalink · 3 Comments
In: How To, Ruby on Rails, Ubuntu Tricks · Tagged with: , , ,

How To – Installing Ruby on Rails on Ubuntu Lucid Lynx 10.04 Server

Install required packages

sudo apt-get install build-essential git-core zlib1g-dev libssl-dev libreadline5-dev

The required packages for installing Ruby Enterprise, and Git thrown in for good measure.

Install Ruby Enterprise

Download ruby-enterprise-1.8.7-2010.02.tar.gz & Install

wget http://rubyforge.org/frs/download.php/71096/ruby-enterprise-1.8.7-2010.02.tar.gz
tar xzvf ruby-enterprise-1.8.7-2010.02.tar.gz
sudo ./ruby-enterprise-1.8.7-2010.02/installer

May take a long time to get past the “Generating RI…” bit
Also, ignore the  “The following gems could not be installed”

Should get the following screen after a lot of waiting..

Install ‘Target directory’ as default (press enter) Read the rest of this post »

Posted on September 13, 2010 at 5:55 pm by Jordan Carter · Permalink · One Comment
In: How To · Tagged with: , , , , , ,

Jesse Schell – Future of Games – DICE 2010: “Design Outside the Box” Presentation

PS3 GamesE3 2011Guitar Hero 5
Posted on August 28, 2010 at 10:57 pm by Jordan Carter · Permalink · Leave a comment
In: Gaming, Video · Tagged with: , ,

Google Analytics – An Error Has Been Detected – updated 28/08/10

An Error Has Been Detected
Please try again. Thank you for your patience.

Head over to this post http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=0cc9910ab2927f12&hl=en

And put your email address into this form https://spreadsheets.google.com/viewform?key=pKyhdPcaY98d84kyJhdBELg

Apparently they will fix it later.

I am waiting, hope I get my life back soon.

Update 25/08/2010
From the number of people having read this post I can assume this isn’t a small issue.  @googleanalytics has this to say

There is an issue that’s currently preventing a subset of users from logging in. We are aware, and are working on the fix. #googleanalytics

https://twitter.com/googleanalytics/status/22017333859

Posted on August 24, 2010 at 6:40 pm by Jordan Carter · Permalink · Leave a comment
In: News · Tagged with: 

Brain Simulation on Super Computer – Henry Markram – 2009 Global Ted

Posted on August 23, 2010 at 6:17 pm by Jordan Carter · Permalink · Leave a comment
In: Artifical Intelligence · Tagged with: , ,

Google Top Search Queries with Rank in Web Master Tools

Google has been working hard on it’s Web Master Tools suite available to web site owners.  It provides excellent tools for managing and optimizing you website.  I covered some of it’s benefits in my other posts SEO for large Dynamic sitesSEO for Large Dynamic sites – II.

A new feature they have released (upgraded) is showing watch searches / keywords are getting the attention of your website.  This is great to see what people are searching for and what they are seeing of your website.

Read the rest of this post »

Posted on August 22, 2010 at 4:46 pm by Jordan Carter · Permalink · One Comment
In: SEO

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 aborted!undefined method `get’ for nil:NilClass

sudo gem install system_timer

If that doesn’t work and you follow the resque configuration guide from http://github.com/defunkt/resque which uses config/initializers/resque.rb make sure you have upgraded all your gems (make sure you update rubygems itself) and if you are running Ubuntu/Debian I suggest you install redis from source and configure monit to start and monitor it.

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

ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)

createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)

HINT:  Use the same encoding as in the template database, or use template0 as template.

createdb: database creation failed: ERROR:  new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII)HINT:  Use the same encoding as in the template database, or use template0 as template.

createdb my_prod -E UTF8 -T template0
Posted on July 27, 2010 at 12:11 pm by Jordan Carter · Permalink · One Comment
In: Server Config · Tagged with: ,