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
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.
In: Ruby on Rails, Server Config · Tagged with: redis, resque, system_timer
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.
In: Server Config · Tagged with: postgresql, utf8
sqlite3 Issues – Error installing sqlite3 – sqlite3 requires Ruby version >= 1.9.1
In: Ruby on Rails, Server Config · Tagged with: sqlite3-ruby, Ubuntu Lucid Lynx 10.04
RubyGem nokogiri failed to install – libxslt is missing – Error installing nokogiri
#or
libxml2
Full Error Stacktrace:
In: Ruby on Rails, Server Config · Tagged with: nokogiri, rubygems, Ubuntu Lucid Lynx 10.04
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
Fixed this by installing
gem uninstall memcached && gem install memcached
Full Error Stacktrace:
In: Ruby on Rails, Server Config, Ubuntu Tricks · Tagged with: Memcached, rubygems, Ubuntu Lucid Lynx 10.04
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 scene, and Textmate is awesome. It is yet to be matched by another text editor.
There are some things that I don’t like about Mac, or I guess I prefer about Ubuntu/Linux. The procedure to install something on a Linux machine is so painless. Ruby Gems works really well. Xapian is a breeze to install on a linux machine, Postgresql installs with one command in less than 20 seconds! The last time I installed Postgresql on a Mac (and had the development headers, so you can install the gem..) it took the good part of an hour.
We have now all been blessed with the latest LTS (long term support) Ubuntu release. It is pleasant on the eyes, right out of the box! It fast the fastest boot time I have seen (I have used WinXp, Vista, Win7, OSX)
I would be confident when I say almost all Ruby on Rails deployments are to a linux environment. Probably Red Hat, but I prefer Ubuntu just because of the ease of use and my familiarity of it. So to get yourself up and running on Ubuntu Desktop and Developing Ruby on Rails, follow below! Read the rest of this post »
In: Ruby on Rails, Server Config · Tagged with: Ubuntu Lucid Lynx 10.04
Package ‘adobe-flashplugin’ is Virtual when installing Flash on Firefox or Chrome – Ubuntu Lucid Lynx 10.04 64
Trying to install Flash on Ubuntu 10.04 64 bit fails with the error
Package ‘adobe-flashplugin’ is Virtual
I managed to install it with the following pasted into terminal.
In: Ubuntu Tricks · Tagged with: Chrome, Firefox, Flash, Lucid Lynx 10.04
Share Keyboard and Mouse between Two or Multiple Computers
I have three computers at my desk. No reason other than I am a geek. I have a desktop, nice beasty thing. I have a Tablet Laptop and I have a netbook.
I wanted to connect them all up so that I could use the screen space on them, put twitter on one maybe, gmail on another.
The answer is Synergy
Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems, each with its own display, without special hardware. It’s intended for users with multiple computers on their desk since each system uses its own monitor(s).
It is easy to setup and seems to be in the repos, install by:
You then need to have a config file, it has a default name but I prefer to call it .synergy, mine as follows.
Read the rest of this post »
In: Ubuntu Tricks · Tagged with: synergy
