Friday, August 21, 2009

Goal Setting

Five Rules to set yourself up for Success

You think about what you want to be doing in your life? Are you clear about what your main objective at work is at moment? Do you know what you want to achieved by the end of today?

If you want to succeed, you need to set goals. Without goals you lack of focus and direction. Goal setting allows you to take control of your life direction and it also provides you a benchmark for determining whether you are actually succeeding.

To achieved your goal, however, you need to know how to set them.

Here are the Five Golden Rules of Goal Setting.

Rule 1: Set Goals that Motivates You.
Rule 2: Set SMART Goals.
Rule3 : Set Goals in Writing.
Rule4 : Make an Action Plan.
Rule5 : stick With it.

Monday, August 17, 2009

Install Mysql on UBUNTU

MySQL Workbench can be easily installed on Ubuntu/Gnome. Just download the binary .deb file from the MySQL web site for workbench (currently named mysql-workbench-oss-5.1.16-1_i386.deb), save it to your home directory. Then run:

sudo apt-get install liblua5.1-0 libzip1
sudo dpkg -i mysql-workbench-oss-5.1.16-1_i386.deb (adapt the name accordingly)
Then, you have MySQL Workbench listed under "Applications > Programming".

Sunday, August 16, 2009

Vertical Bar Graphs with CSS and PHP

Follow this link .....

Friday, August 7, 2009

Zend Framework on ubuntu

Follow me ....
  • Download Zend Framework (.rar or .tar) from
  • Un-rar and copy this folder to /var/www/
  • Remove version number from that downloaded folder for example,Zend Framework-1.9.0 to Zend Framework.
  • Goto Terminal type :
  • gedit ~/.profile
An editor will open like below image.
  • Now type the path where you past Zend Framework but must follow the placement of line, see below image.
  • Now save and close this file.
  • Next in Terminal type :
  • gedit /etc/apache2/httpd.conf
An editor will open like below image.
  • Now simply type an ALIAS which you want to reference to your website on localhost, for instance for my website i write " mywebz ", but must follow the format : Alias /mywebz "/var/www/myweb/public"
For more help see below image.
  • Now save and close this file.
  • Atlast to set the above configuration you must restart the apache server.
  • To resatrt apache server, in Terminal type :
  • sudo /etc/init.d/apache2 restart

To test your configuration, in Terminal type :
  • echo $PATH
If you see the path like this:
then fine.
  • Now type in Terminal :
  • cd /var/www/web_folder
  • Finally type :
A list of Zend Framework eill appear like below image.
Congratulation ... !
You have installed Zend Framework successfully .

Saturday, August 1, 2009

jQuery: Working with Checkboxes

In jQuery sometime you have to work with checkboxes. Find a checkbox by its attributes, Check a checkbox is checked or not and check a checkbox. Their are some related tricks.

Find checkboxes:
$('input[type="checkbox"]') (get all checkboxes)
$('input[name="mycb"]') (get checkbox named mycb)

Get checkboxes Attributes:
$('#myCheckbox').attr('name') (return name of checkbox)
(return true or false)

Checked or Not:
$('#myCheckbox').is(':checked') (return true if checked)

Check/Uncheck a Checkbox:
$('input[name="mycb"]').attr("checked",false); (uncheck named mycb)
$('input[type="checkboxes"]').attr("checked",true); (check all)