Hot Posts:

Mar 20

Subversion command line option to switch repository root


Subversion command line option to switch repository root:
Finally I found the simple way to switch svn repository root for any existing project & checked out using Subversion
Command Line Option:


commandline@yourname$  svn switch --relocate OLD_REPO_URL NEW_REPO_URL


Your are done 🙂
~Ruitu

Feb 04

Solved Solr: Too many open files


Solved Solr Issue: FileNotFoundException : Too many open files
While running crawl using SOLR I ran into this issue where “Too Many Open Files” message appears in the logs.
Environment:
Linux: CentOS 4.5
Solr: 1.3
Tomcat: 6.0.10
Somehow this problem seems to be related number of file descriptors allotted to users on Linux system. You can check that by using command
ulimit -n
To change this settings:

  • Login as root
  • Edit /etc/security/limits.conf
  • Add the following entry
    “USERNAME” soft nofile 4096
    “USERNAME” hard nofile 32768

You are done 🙂

Jan 22

Resolved: Nutch 0.9 org.apache.jasper.JasperException


Nutch 0.9 org.apache.jasper.JasperException:
Development Environment:
Tomcat: 6.0.18
Nutch: 0.9
OS: Mac OS X 10.5.5
JDK: 1.6.07
I did fresh install of Nutch 0.9 and tried to deploy war file under Tomcat. I ran into issue where it started throwing the following exception:

org.apache.jasper.JasperException: /search.jsp(151,22) Attribute value language + “/include/header.html” is quoted with ” which must be escaped when used within the value

Solution:
Edit search.jsp & escape quotes on line 151.
\”/include/header.html\”
And you are done 🙂

Jan 17

Resolved: Eclipse Issue On Mac OS X


I ran into weird issue on Mac OS X with Eclipse
My environment:
OS: Mac OS X 10.5.5
Eclipse: 3.4
JDK: 1.6
I changed my default JDK from 1.5 to 1.6 under (/System/Library/Frameworks/JavaVM.framework/Versions).
Then I tried to open Eclipse & threw the following error
NSAddLibrary failed for /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjvm.dylib
Finally I found the solution:
Somehow JDK 1.6 is not supported in Apple’s native format for Java. To resolve this issue
Edit the eclipse/Eclipse.app/Contents/Info.plist;
Uncomment the line which points to -vm /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java. And you are done 🙂

Dec 11

Enable Colors in Mac OS X Terminal


Enable Colors in Mac OS X Terminal:


By default Mac OS X Terminal doesn’t have color support enabled for differentiating file types. If you are coming from Linux background this is really frustrating thing.
In general Unix system support ls –color option to enable console colors. But I found out that the underlying BSD system for Mac OS X doesn’t support this option. Instead of the color they have -G option.
Finally you can fix this color issue by using following command in the terminal
alias ls=’ls -G’

Dec 07

Update locate Database on Mac OS


Some Unix/Linux users might find it difficult to work without ‘locate’ command on Mac OS X.
Somehow Mac OS (10.5.5) doesn’t have updated database for ‘locate’. You will get following error:
`/var/db/locate.database’: No such file or directory
Here is the solution for enabling locate on Mac OS
sudo /usr/libexec/locate.updatedb
Wait for few minutes & your done.
~Ruitu

Nov 23

Solved: MP3 Support for XMMS


Solved: MP3 Support for XMMS:


Simple way to add MP3 support for XMMS Linux Audio Player:

You are done 🙂

Nov 23

IE4Linux – Internet Explorer on Linux Under Wine


IE4Linux: -Internet Explorer on Linux Under Wine:
I always wanted to access IE on Linux considering some applications are just compatible with IE. Finally I found the simple way to install Internet Explorer on Linux using Wine.
I followed this simple steps for installing internet explorer on Fedora Core 9.

  • Install Wine based on your Linux distribution.
  • According to ie4Linux, it requires one Microsoft package – cabextract. Install it using Linux package manager (synaptic, apt-get, yum, emerge etc)
  • Now do following steps in the terminal
    wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
    tar zxvf ies4linux-latest.tar.gz
    cd ies4linux-*
    ./ies4linux

You are done 🙂

Nov 20

KDE EMail Storage Location On Hard Disk


KDE EMail Storage Location On Hard Disk
I always wondered from where I can backup or recover my mails accessed using KMail. Here is the location of KMail inbox on your hard drive.
~/.kde/share/apps/kmail/mail/

Nov 19

Google Voice Search Out for iPhone


Google Voice Search Out for iPhone
Please check out
http://www.google.com/mobile/apple/app.html