Skip to main content

Posts

Zend Form with Decorator Class

you have to make some changes in this code according to you need but it wil help you alot.... 1: View: <?php echo $this->food; ?> <?php echo $this->cab; ?> 2:Controller:  public function indexAction(){      $ReimbursermentFood=new Form_Webchutney( array('selectForm' => '__FOOD_REIMBURSEMENT'));   $ReimbursermentCab=new Form_Webchutney( array('selectForm' => '__CAB_REIMBURSEMENT')); $Employeearray=array();       $Employeearray['AccountManager']='Account Manager';   $Employeearray['aktel']=' aktel ';   $Employeearray['saurabh.patel']='saurabh patel';   $ReimbursermentFood->setAction('/user/reimbursement/food');   $ReimbursermentFood->setAttrib("id","foodForm");   $AccountManager = $ReimbursermentFood->getElement('AccountManager');   $AccountManager->setLabel(

Usefull commond for linux server

1: grep -r "aktel" /mnt/*      : find aktel word in all file within /mnt directory 2: ls -al ,vdir,     : list of directory with details 3:awk -F':' '{ print $1}' /etc/passwd list of user 4:  mv -u *.sql.gz /mnt/.backup/2012/sql/ move all file sql.gz(change accourding to your need ) file to your folder ;

Secure Copy (scp) Example

First add your id_dsa  for you server  Then try these command. Copy the file "foobar.txt" from a remote host to the local host $ scp root@remotehost.edu:foobar.txt /some/local/directory Copy the file "foobar.txt" from the local host to a remote host $ scp foobar.txt your_username@remotehost.edu:/some/remote/directory Copy the directory "foo" from the local host to a remote host's directory "bar" $ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar Copy the file "foobar.txt" from remote host "rh1.edu" to remote host "rh2.edu" $ scp your_username@rh1.edu:/some/remote/directory/foobar.txt \ your_username@rh2.edu:/some/remote/directory/ Copying the files "foo.txt" and "bar.txt" from the local host to your home directory on the remote host $ scp foo.txt bar.txt your_username@remotehost.edu:~ Copy the file "foobar.txt" from the local ho

How To Get the RSS Feed Of A Facebook Fan Page

Get the URL of the Facebook fan page https://www.facebook.com/akteleducation Get the page ID of the Facebook fan page 124527140956099 Create the RSS feed address http://www.facebook.com/feeds/page.php?format=atom10&id= 342800190154 Enter the RSS feed address into your favorite RSS reader Thank you.