Archive for the ‘Ruby’ Category

Ruby IDE : Redcar

July 30, 2010 Leave a comment

It has been sometime that I have been using Ruby and RoR and I have always felt a void when it comes to a good IDE (I use Windows and Ubuntu). I have tried RadRails, Komodo, e editor to name a few. Last year I tried Redcar and liked it over all others. It had problems(and it was not supported on Windows) but there was a lot of active development going on and it looked promising. Then, for the next few months I never got back much to Ruby and never looked for an IDE. Last night I happened to google again and take a look at Redcar. I was amazed at the changes. It had almost all the things that I needed. There had been development to support it on Windows as well. The installation was as simple as running 2 commands..

gem install redcar

redcar install

I created a shortcut on my desktop to call the command using a cmd script and used one of its png images(<ruby-home>\lib\ruby\gems\1.8\gems\redcar-\plugins\application\icons) as an icon image. That is all the work I needed to do. Best of all it, runs on GPL. (Nothing better)

I decided to write this on my blog as an effort to help Redcar gain more audience. Apple users might call it a rip off or a clone of Textmate but I think Daniel Lucraft has done an excellent job.

Categories: IDE, Ruby Tags: , , , ,

Setting up Ubuntu for development

February 2, 2010 1 comment

I had to reinstall Ubuntu recently and this blog is a summary of setting Ubuntu up for development.

Installing Maven:

sudo apt-get install maven2

In the .bash_profile file in the $HOME directory set the MAVEN_REPO variable and export it. Add this line in the file : export MAVEN_REPO=$HOME/.m2/repository

Installing Sun JDK:

sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
sudo update-java-alternatives -l
sudo update-java-alternatives -s java-6-sun

In the .bash_profile file again, add these lines —
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin

Update: For installing JDK on Lucid Lynx read this post.

Installing MySql Server:

sudo apt-get install mysql-server

Set the root password when prompted.

Installing Samba:

sudo apt-get install samba smbfs

Installing openssh:

sudo apt-get install openssh-server openssh-client

Installing Ruby and RoR:
This link is a very good summary of doing that in Karmic Koala.

Installing Subversion:

sudo apt-get install subversion

Installing Client for Subversion:
RapidSVN is a very good tool for Ubuntu but recently I tried  RabbitVCS. This is in active development and is very close to TortoiseSVN in Windows.
To install RabbitVCS you need to download the deb package from their website and and install it using the following command (rabbitvcs_0.12.1-2~karmic_all.deb is the downloaded file)

sudo dpkg -i rabbitvcs_0.12.1-2~karmic_all.deb

Installing Eclipse, SpringIDE and Maven Plugin for Eclipse:
Eclipse can be easily installed by using package manager but I ran into some problems with the maven plugin when I used the eclipse that came with Karmic. When I used the Eclipse from their download site ,I did not have the problems.
Get SpringIDE plugin by providing this site in the “install new software” option in Eclipse: The ADJT features were giving problems when installing this plugin so I deselected them.
Get maven plugin from here :