Archive for October, 2009

  • Heading home from Tucson after a week's education on IBM's XIV product. First piece of formal education for many many months #
  • Gee thanks Southwest. 30 min delay from TUS means I now fly TUS>SAN>PHX>AUS & add 4 hrs to my travel time. First (and last) flight with you #
  • @alexbfree because they provide necessary sevices and screw their customers as a result? in reply to alexbfree #
  • Hey car makers. Calling 30 MPG 'incredible' doesn't stop it from actually being 'shit'. #

Powered by Twitter Tools

  • Sounds good. Matt's El Rancho? #
  • Summer must be over: just switched the HVAC over to heat for the first time since we moved in :( #
  • Crap! Car battery dead for second time in 36 hours #
  • @timdp if your source doesn't support JSONP, then you can always build a simple proxy on your server in reply to timdp #
  • @nerdist Twitter accounts have RSS feeds: http://bit.ly/DAT2Y. Use that to update your page in reply to nerdist #
  • In San Diego waiting for flight to Tucson. Marvelling at the fact that some airports still can't cope with high volumes of travellers #

Powered by Twitter Tools

  • Anyone in Austin know where I can get some grey paper in austin after 9pm, for art work? #
  • @sonjarainey saves the day! #
  • High humidity + central A/C = condensation on the *outside* of glass surfaces…. freaky! #
  • @acarback oh yeah… i get the physics… it's just my entire life experience has seen it the other way round in my houses. in reply to acarback #
  • @acarback england :) english houses get sweaty on the inside. seems austin houses get sweaty on the outside in reply to acarback #
  • I just entered a drawing for gift certificates, free food,
    and prizes by tweeting this. Visit http://dine123.com for details! @DineOnDemand #
  • @Adora cat-heter? in reply to Adora #

Powered by Twitter Tools

All of my websites are currently running on a VPS server provided by HostIcan. I recently discovered a little quirk involving VPS servers and RubyGems.

I’ve started learning Ruby on Rails and the Ruby part uses things called ‘Gems’ in a similar way to Perl using Modules. Where you read ‘gem’, thing ‘cpan’.

I wanted to install a new gem on my server to support some Paypal integration, but ‘gem’ kept segfaulting on me.

If you’re like me, you’ll see this behaviour:

root@server [~]# gem install rubygems-update
Bulk updating Gem source index for: http://gems.rubyforge.org
Terminated

It turns out that ‘Bulk updating…’ part gobbles up memory like it’s going spare and leads to a segfault.

The way to avoid this problem is to update RubyGems… but to do that, you need to use ‘gem’… and that leads to a segfault… and around we go again.

To break the cycle, you simply use:

gem update --system --no-update-sources

to prevent the updating of sources.

Once I’d done that, I found that I was still getting segmentation faults. Also, when I ran:

root@server [~]# gem install activemerchant --no-update-sources

I now got

ERROR:  could not find activemerchant locally or in a repository

So the problem still wasn’t resolved!

The only solution was to force my system to the latest version of RubyGems. Unfortunately, this was not in my local repository. However, a manual update was pretty simple:

cd /tmp
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -xvzf rubygems-1.3.5.tgz
cd rubygems-1.3
ruby setup.rb

Job done!

Powered by Twitter Tools