Rails Database Config Parameters for PG Gem

I’ve noted how difficult it is to get a complete list of parameters that can be used in the Rails’ config.database.yml file. I understand this is because there are different parameters for the different library layers. Still, I would like a more complete list somewhere, especially given that the parameter names can be confusingly similar …

Continue reading ‘Rails Database Config Parameters for PG Gem’ »

Integrating R and Ruby

I did my time with rsruby, rinruby and Rserve-Ruby-client. In retrospect I should have trusted the Rserve-Ruby-client readme which details the problems with rsruby and rinruby. rsruby – dealbreaker is that this is not stable, there are a few other downsides including complex data conversions and compilation issues but enough said. rinruby – slow, but more importantly fails …

Continue reading ‘Integrating R and Ruby’ »

The easiest way to migrate a database from MySQL to PostgreSQL

I had to do this recently for a project. The difficult piece was sorting through the opinions of what the best tools and procedures for handling this migration was. So I tried a few until I found one that worked so well, so quickly that I decided it was worth sharing. Firs tthings I used …

Continue reading ‘The easiest way to migrate a database from MySQL to PostgreSQL’ »

The easiest way to get ruby 1.9 debugging functionality on Ubuntu 12.04

I’ve come across a number of posts giving instructions on how to get debugging to work with ruby 1.9.x and they all seem to involve downloading gems and installing them. Here is what I did on my Ubuntu 12.04 workstations that was very easy though not trivial to figure out. sudo gem install linecache19 –pre …

Continue reading ‘The easiest way to get ruby 1.9 debugging functionality on Ubuntu 12.04’ »

Building xen-4.2.1 packages on Ubuntu 12.04

First install build dependencies. This list may not be complete as some necessary libraries and tools may have already been installed on my test machines. This is what I used to get the packages to build successfully: apt-get install build-essential python-dev gettext bin86 bcc iasl uuid-dev libncurses5-dev pkg-config libglib2.0-dev libyajl-dev git gcc-multilib texinfo fakeroot Then download, …

Continue reading ‘Building xen-4.2.1 packages on Ubuntu 12.04’ »

Fixing “uninitialized constant” errors in rake tasks when using Rails threadsafe! mode

I ran into this problem where I was getting “uninitialized constant” errors when running rake tasks. These are tasks which had been working and I verified that the proper paths were set (eager_load_paths). When searching I saw information about config.threadsafe! being a problem so I disabled it and the problems vanished. However, I wanted to …

Continue reading ‘Fixing “uninitialized constant” errors in rake tasks when using Rails threadsafe! mode’ »