Friday, June 11, 2010

Excellent Vim Resources for Javascript

Here's Broofa's excellent Javascript indenting function
http://vim.wikia.com/wiki/Improved_Javascript_Indent_script_for_Vim

Saturday, May 22, 2010

Ubuntu 10.04 Lucid, Apache Solr and Solr Cell

I just got Ubuntu 10.04 LTS Lucid installed and noticed that Apache Solr 1.4 is now available as a package! Wohoo!

It turns out that this package doesn't include the awesome Solr Cell, and if you use Solr without Cell... why?

So here's how to fix this little problem.

First, get yourself setup with Solr (I am using Jetty here).
sudo apt-get install solr-jetty

Create a folder for Solr Cell libraries
sudo mkdir -p /usr/share/solr/lib

Now we need to get Solr distribution from Apache
wget http://apache.mirrors.tds.net/lucene/solr/1.4.0/apache-solr-1.4.0.tgz
tar -xvf apache-solr-1.4.0.tgz
cd apache-solr-1.4.0/
sudo cp dist/apache-solr-cell-1.4.0.jar /usr/share/solr/lib/
sudo cp contrib/extraction/lib/*.jar /usr/share/solr/lib/

Restart Jetty.

That's all. From now on your call to update/extract will work just fine.