November 27, 2009

lxEdit

November 22, 2009

Ruby gem

gem build [gem's name].gemspec
sudo gem install [gem's name]
sudo gem uninstall [gem's name]

=================

response.body in RSpec

November 10, 2009

Solr



sudo rake solr:install

1./ apt-get install tomcat5.5 libtomcat5.5-java tomcat5.5-admin tomcat5.5-webapps
2./apt-get install solr-common solr-tomcat5.5 libxpp3-java
3./ etc/init.d/tomcat5.5 restart

java -jar start.jar

Uninstall solr: sudo apt-get remove solr-tomcat5.5

jar xvf filename to extract .war file

#------------- Delete all docs in Solr
<delete><query>*:*</query></delete>

#------------- Sting Case Insensitive
<fieldType name="string_ci" class="solr.StrField" sortMissingLast="true" omitNorms="true" positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>