Tuesday, February 23, 2010

Installing Sphinx for ubuntu

I installed Thinking Sphinx by following the step posted in hackido.com
This helped me alot simple and fast installation.
For mysql the thinking sphinx was running cool, but there was a problem I faced as we were not using mysql, we were using postgresql for one of our project.
So I followed the post by freelancing-god.github.com.
./configure --with-pgsql
./configure --with-pgsql=/usr/local/include/postgresql
pg_config --pkgincludedir
make
sudo make install

And then I indexed the Thinking Sphinx for project and started the same, which was successfully started.

Monday, February 22, 2010

Installing netbeans on Ubuntu

Installing netbeans on Ubuntu is very easy. I installed it on Karmic(Ubuntu 9.10)
For netbeans we need to add sun-java6-jdk and the command for that is
sudo apt-get install sun-java6-jdk

Once the sun-java6-jdk is installed we then start to install netbeans and there are 2 steps for it, both are very easy.
First just with one command which is
sudo apt-get install netbeans
or even we can install that from Synaptic Package Manager. Just search for netbeans which will also find dependencies and install tha same what ever required. The problem I faced for this installation was that I didnt get the latest version of netbeans.
Second is we go to the netbeans.org download the netbeans from download page. This page gives you the list of technologies for which you need the software. Just see which ever you need. For me it was for ruby.
Once you are complete with download go to the folder where your .sh file of netbeans is downloaded and then type
chmod +x (filename).sh

Once the file is being extracted go to the Home folder. There we can find the netbeans-(version_no) for me it was netbeans-6.8. After that go in the bin folder and run
./netbeans

This will start the netbeans and will also create a desktop shortcut.

Tuesday, February 16, 2010

Using Fastercsv to import data

Fastercsv is best for importing data in ruby on rails application.
For this we just need to add the gem.
gem install fastercsv