Month: November 2010

Linux Commands

Naveen Nayak November 4, 2010 No Comments Linux

Include Date in a file name – we will create a file named – On the command prompt check these commands out. Check out other date formats from man pages – The outermost pair of quotes tells shell to execute the command and substitute result in the place. The inner quotes are used to […]


Naveen Nayak November 4, 2010 No Comments Linux

Open CRON       sudo crontab -e Check if a CRON job is executing  – use this entry in the cron tab – this will create the file called cron_running.txt in your Desktop every minute       * * * * * touch ~/Desktop/cron_running.txt Troubleshooting CRON       check the file /var/log/syslog  

Jquery Tips

Naveen Nayak November 3, 2010 No Comments Javascript

Contains common Jquery code Display jQuery version alert(jQuery.fn.jquery); Find how many check boxes have been checked var count = $(‘input[type=checkbox]:checked’).length; Get ID, class of an element var element_id = $(this).attr(‘id’);   or element_id =; var class = $(this).attr(‘class’);   or class = this.class; Set the attribute of an element $(this).attr(‘class’, ‘new-class’); $(this).attr(‘title’, ‘new-title’); Set […]

Page 1 of 1