Friday, March 26, 2010

Disable jQuery Lightbox close when clicked outside popup

To remove the closing functionality of the jQuery Lightbox popup when clicked outside the popup I changed the functions as follows


$("#overlay").click(function(){ end(); }).hide();
$("#lightbox").click(function(){ end();}).hide();


$("#overlay").click(function(){ });
$("#lightbox").click(function(){ });

Wednesday, March 10, 2010

Gem installation without documentation

In order to install gem without documentation I used the following command

sudo gem install dm-timestamps -v=0.10.2 --no-rdoc --no-ri

Tuesday, March 02, 2010

Update installed gem version

In order to update the gem I used following commnad under Ubuntu

sudo gem update --system

Monday, March 01, 2010

Replace string with shell script parameter using sed command

In order to change string inside a file using shell script I used the following command in the shell script, where inside myFile.xml, oldString is the string I want to replace with the string contained in the first parameter passed to the shell script.

sed -i 's/oldString/'"$1"'/g' /home/healthy/myFile.xml