Naveed Ramzan Blog

A blog for IT Youngsters

Personal Goal Setting

Plan (s) how we want to live our life

Everyone want to live life on his/her own way. They feel that if they plan their life then of course their decisions, tours, moments and schedule of other things will be pre-planned.

So, They set out a major journey with no real idea of destination? Probably not!

Do You want to set goal ?

Goal setting is a powerful process for thinking about your ideal future, and for motivating yourself to turn your vision of this future into reality.

The process of setting goals helps you choose where you want to go in life. By knowing precisely what you want to achieve, you know where you have to concentrate your efforts. You’ll also quickly spot the distractions that can, so easily, lead you astray.

Starting to Set Personal Goals

You set your goals on a number of levels:

  • First you create your “big picture” of what you want to do with your life (or over, say, the next 10 years), and identify the large-scale goals that you want to achieve.
  • Then, you break these down into the smaller and smaller targets that you must hit to reach your lifetime goals.
  • Finally, once you have your plan, you start working on it to achieve these goals.

Setting Lifetime Goals

  • Career
  • Financial
  • Education
  • Family
  • Artistic
  • Attitude
  • Physical
  • Pleasure

Setting Smaller Goals

Once you have set your lifetime goals, set a five-year plan of smaller goals that you need to complete if you are to reach your lifetime plan.

Then create a one-year plan, six-month plan, and a one-month plan of progressively smaller goals that you should reach to achieve your lifetime goals. Each of these should be based on the previous plan.


  • S – Specific (or Significant).
  • M – Measurable (or Meaningful).
  • A – Attainable (or Action-Oriented).
  • R – Relevant (or Rewarding).
  • T – Time-bound (or Trackable).

Further Goal Setting Tips

  • State each goal as a positive statement
  • Be precise
  • Set priorities
  • Write goals down
  • Keep operational goals small
  • Set performance goals, not outcome goals
  • Set realistic goals


PHP tips and tricks to improve website speed

  • Echo is faster than print
  • Wrap your string in single quotes (’) instead of double quotes (”) is faster because PHP searches for variables inside “…” and not in ‘…’, use this when you’re not using variables you need evaluating in your string
  • Use sprintf instead of variables contained in double quotes, it’s about 10x faster
  • Unset or null your variables to free memory, especially large arrays
  • Avoid magic like __get, __set, __autoload
  • Use require() instead of require_once() where possible
  • Use full paths in includes and requires, less time spent on resolving the OS paths
  • str_replace is faster than preg_replace, str_replace is best overall, however strtr is sometimes quicker with larger strings. Using array() inside str_replace is usually quicker than multiple str_replace
  • “else if” statements are faster than select statements aka case/switch
  • Error suppression with @ is very slow
  • To reduce bandwidth usage turn on mod_deflate in Apache v2 or for Apache v1 try mod_gzip
  • Close your database connections when you’re done with them
  • $row[’id’] is 7 times faster than $row[id], because if you don’t supply quotes it has to guess which index you meant, assuming you didn’t mean a constant
  • Use <?php … ?> tags when declaring PHP as all other styles are depreciated, including short tags
  • ++$i is faster than $ i++, so use pre-increment where possible
  • In OOP, Methods in derived classes run faster than ones defined in the base class
  • Never trust user data, escape your strings that you use in SQL queries using mysql_real_escape_string, instead of mysql_escape_string or addslashes. Also note that if magic_quotes_gpc is enabled you should use stripslashes first
  • Avoid the PHP mail() function header injection issue