Technology Insights

ActionView::TemplateError (comparison of Fixnum with nil failed) on line #38 of app/views/layouts/base.rhtml

The below error is another error related to upgrading Redmine. I imagine part of the reason I had a lot of errors is because I hadn’t upgraded this installation of Redmine, which we really just use for development, for a long time. In fact the upgrade took this installation of Redmine from 0.8.3 to Redmine 0.9.3. After I completed all of the steps in the Redmine upgrade I attempted to bring up the Redmine site in my Chrome browser but I received a 500 error from the LiteSpeed web server. The resolution was easy and is displayed below along with more details regarding the error.

Technology Insights

Adding Redmine Project Error: ActiveRecord::StatementInvalid (Mysql::Error: Unknown column projects_count in field list

I was working on a project today for a client and after the initial research I realized that the project actually warranted an entire sub project account in Redmine. The reasoning behind this was even though the project would be using the same Ruby project code as the primary project this specific side project would need to allow access to the tickets for one of our partners. The easiest way to allow the partners accounts access to only a specific set of tickets, their own wiki, etc. would be to generate a sub Redmine project underneath of the primary Redmine project. So obviously the first thing to do was to add the project so I could start configuring it and this is where I ran into the initial issue. I received an internal server error when attempting to add the sub project within Redmine. Below I describe the issue, what I think caused the issue, and the end resolution that allowed me to start adding sub projects within Redmine again.

Technology Errors

Upgrade Redmine Rake Migrate Error: uninitialized constant ActionController::AbstractRequest

I ran into an issue earlier where adding a sub project to an already existing Redmine project produced an error and after a little bit of troubleshooting determined that upgrading Redmine would resolve the issue. During the upgrade process I ran into some other issues including a specific migration error using rake that is noted below. The upgrade process involved upgrading Redmine 0.8.3 to Redmine 0.9.3.

Technology Insights

How to Switch Between Different Versions of GCC and G++ in Backtrack 4 Final (Or Any Version Of Ubuntu)

I had a Backtrack user on IRC today asking about using different versions of GCC in Backtrack. Since Backtrack is based on Ubuntu Linux this article will apply to any version of Ubuntu but I wanted to write something specifically for Backtrack users. There are many reasons for needing different versions of GCC and G++. One of the main ones is installing a program which requires a kernel module to be built. What happens is that if the kernel was built with GCC-4.1 and GCC has since been updated to GCC-4.3 sometimes the build will fail dude to a kernel/GCC –version mismatch. Below I detail the steps to downgrade from GCC-4.3 to GCC-4.1 on Backtrack Linux.

Technology Insights

Take The Hard Drive Out Of The Case: SimpleDrive Model #96300-41001-170

A friend of mine who is a DJ dropped one of his friends external hard drives in the dark the other night while spinning at a club. Once he got home he attempted to plug his friends external USB hard drive, which is a 1TB SimpleDrive (model #96300-41001-170), into his computer but it was not being recognized. Once he tried a couple of other things he gave me a call to see if I could look at it. Without going into details about what was wrong with the hard drive itself I thought others might find it useful to have instructions including pictures about how to remove the hard drive from the SimpleDrive case. Below I describe how to remove the hard drive from a external USB 1 Terabyte SimpleDrive.