Setting up Solr May 8 2012

Few of my Ruby friends have a hard time setting up Solr for their Prod / EC2 servers. Solr is a Java web application and also come with a Jetty distribution so that you can just do -

java -jar SOLR_DOWNLOAD/example/start.jar

This however is not recommended for production as this is just running Solr on the bundled Jetty and Solr Admin is unsecured.

To setup a clean and secure Solr instance, I usually do the following -

  1. Copy the $SOLR_DOWNLOAD/example/solr directory somewhere else. For example $HOME/config/solr. This is now your solr config directory.

Old JBoss Video Mar 27 2012

Found this old “Migrating to JBoss” video I did a long time back. Good old days :)



Embracing JRuby - Part 1 Mar 23 2012

There is hardly any doubt that I am really in love with JRuby. It allows me to use the simplicity of Ruby and the power of Java. Highly robust application servers like Torquebox now fill the gap that was missing while deploying Rails application written in JRuby. In this first of a series of articles I will write how one can integrate Java applications with JRuby to create great products quickly and efficiently.

Calling Java from JRuby

The simplest example would be -

test_java.rb

require 'java'

Musings on India and Technology Mar 5 2012

Ah India, how I love thee one day and absolutely abhor thee the other. But I am not here to talk about politics or the recently concluded UP elections but I want to talk about technology and India. Today, I saw a few tweets about how well Indians are doing in Silicon Valley and also learned that one of the founders of Foursquare (an idea and a company I deeply admire) is Indian (or of Indian origin).

Back online we also see many posts of how mediocre Indian technologists are. It always makes me wonder of how a college graduate when placed in India stuggles with basic programming and in the US he goes on and makes a fortune for himself.