Archive for ◊ February, 2010 ◊

SpringSource Tool Suite Buttons
Tuesday, February 23rd, 2010 | Author:

After installing SpringSource Tool Suite 2.3.0 on Ubuntu 9.10, various IDE buttons were not working. The fix is to set the right value for GDK_NATIVE_WINDOWS before running it, e.g. have a file in /usr/bin that looks something like:

#!/bin/sh
export GDK_NATIVE_WINDOWS=1
/usr/lib/springsource/sts-2.3.0.RELEASE/STS

That’s it for now.

Upgrade Rails Database in Production Environment
Tuesday, February 16th, 2010 | Author:

To upgrade a database which is not in the development environment, use the RAILS_ENV parameter to rake db:migrate.

For example:
$ rake db:migrate RAILS_ENV="production" VERSION=9