Code Snippets

Restart Services On RackSpace Managed Nodes That Require sudo Rights

Recently I was working on a project that was using RightScale to manage RackSpace cloud nodes. One of the requirements of the project was to have application nodes scale automatically thus they were required to automatically install software, configure settings, and start services automatically on the RackSpace CentOS nodes being used. Most everything was fairly straight forward however some of the services we were using would not start properly and initially because of the lack of logging from the services we were unable to figure out what the problem was. Below I describe the problem in more detail along with the solution which involved updating a configuration file on the CentOS Linux servers and then restarting the services.

Technology Insights

Rooting the HTC Evo 4g part 8 (Enabling Wireless N)

First of I would like to say that none of these hacks and files are my own work. This stuff was done by all the amazing phone developers over at XDA Developers. I am am simply writing a few posts on rooting the HTC Evo since most of the information was all spread out over the forums and I had a hard time gathering it all together in a organized manner.

The WiFi chip in the HTC Evo supports Wireless N technology, which allows for faster throughput on your WiFi connection. To use this you need a Wireless N capable AP or router.  For some reason HTC decided to disable the wireless n capability of this chip but this can be fixed. I am going to assume that the reason this was disabled was battery life but I am not really sure to be honest.  Anyway the hack used to be more complicated  but some of the nice folks over at XDA packages up a zip file which makes this hack a breeze.

Technology Insights

Install Brother MFC-5890CN On 64-Bit Windows 7 Ultimate

I needed to scan some documents to my 64-Bit Windows 7 Ultimate laptop earlier today at the computer shop so I had to install the shop’s MFC-5890CN printer/scanner/fax. The CD that came with the Brother MFC-5890CN device did not include Windows 7 drivers in 32-Bit or 64-Bit format but I was able to locate the drivers on the web. The instructions below will assist installing the device on Windows 7 64-Bit including the ability to scan documents and images from the MFC-5890CN device to your Windows 7 computer.

Technology Errors

Error Starting Ruby Script/Server On A Macbook Pro Running OSX With PostgreSQL, Ruby, & Mongrel

A friend contacted me the other day because he was having an issue starting his development environment which consists of Ruby, PostgreSQL, and Mongrel. Ruby communicates with PostgreSQL using the postgres-pr gem version 0.6.1. Starting things using “ruby script/server” from within his Ruby project had been working for months without issue and there had been no confguration changes to Ruby, Postgres, or Mongrel so it appeared to not be configuration related. After getting a brief explanation of the issue I logged into his laptop and attempted to start the server. Below is the error received when attempting to start the server using “ruby script/server” via a terminal window on the Macbook Pro.