[PostgreSQL] Take backup of the individual table in postgres
pg_dump -t <table-name> <database-name> > /tmp/file_name.dump
pg_dump dbname > outfile
People.update_all( "name = 'Joe'", "name ilike '%joe%'" )
cookies[:login] = { :value => "asdf", :expires => Time.now + 600} 
The above cookie will :expires in 10 min .
To Delete the Cookie in Ruby on rails:
cookies.delete :login
To Delete Cookie in Javascript:
createCookie(":login","",-1); 
This performs the duo action which are move and rename.This moves the source file from one directory to another directory. E.g:mv source_file_or_dir destination_file_or_dir  ln -s <original-folder-path> <sympoli-file or folder name>
Time.now # Returns Fri Mar 08 13:27:24 +0530 2013
Time.now.to_i # Returns the unix timestamp value 1362729785
Syntax:
string.gsub("<search char>","<replace Char>")string.gsub(/'/,"") #replce/remove single quotes from the string
fields array) as CSV and write it to the specified file handle. Returns the length of the written string, or FALSE on failure. delimiter parameter sets the field  delimiter (one character only). Defaults as a comma: ,.  enclosure parameter sets the field  enclosure (one character only) and defaults to a double quotation mark: ".