Creative, Informative and Entertaining Stuff for everyone

Monday February 6th 2012

Categories

Archives

Calender

February 2012
S M T W T F S
« Dec    
 1234
567891011
12131415161718
19202122232425
26272829  

‘Uncategorized’ Archives

How to copy file from local machine to remote server in linux

scp fileName userName@remoteServerIP:remoteServerFolderPath Example : >scp abc.txt root@XXX.XXX.XXX.XXX:/home/xyzFolder/ once you type this command, system will ask for the remote server login password.once password is verified , file get copied to remote server.

How to add or condition in mysql query in symfony

$c->add(TblUsersPeer::USR_TYPE,array(2,3,6),Criteria::IN); $c1 = $c->getNewCriterion(TblUsersPeer::USR_PARENTID,$this->getUser()->getAttribute('userid'),Criteria::EQUAL); $c2 = $c->getNewCriterion(TblUsersPeer::USR_PARENTID,null, Criteria::ISNULL); $c1->addOr($c2); $c->add($c1);

unicode issue in Perl CGI

When some special character(or other language data) is displayed as '? ? ? ? ?' in browser, then you have to make the following change. 1.In your table set the collation of the field that is to be displayed as "Binary". If this does not work then you can try the below option in your cgi script 2. Set the meta-type in your templates file [...]

To calculate date difference between two given dates

function timeDifference(startDate,endDate) { date1 = startDate; date2 = endDate; laterdate = date1.split("-"); laterY=laterdate; laterM=laterdate; laterD=laterdate; earlierdate = date2.split("-"); earlierY=earlierdate; earlierM=earlierdate; earlierD=earlierdate; var laterdate = new Date(laterY,laterM,laterD); var earlierdate = new [...]

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!