Pages

Monday, November 30, 2009

Look to the horizon, spread your wings, and fly. : Inspiration email

Look to the horizon, spread your wings, and fly

The nest of young eagles hung on to every word as the Master Eagle described his exploits. This was an important day for the eaglets. They were preparing for their first solo flight from the nest. It was the confidence builder many of them needed to fulfill their destiny.

"How far can I travel?" asked one of the eaglets. "How far can you see?" responded the Master Eagle.

"How high can I fly?" quizzed the young eaglet. "How far can you stretch your wings?" asked the old eagle.

"How long can I fly?" the eaglet persisted. "How far is the horizon?" the mentor rebounded.

"How much can I achieve?" the young eagle continued. "How much can you believe?" the old eagle challenged.

Frustrated by the banter, the young eagle demanded, "Why don't you answer my questions?"

"I did."

"Yes. But you answered them with questions."

"I answered them the best I could."

"But you're the Master Eagle. You're supposed to know everything. If you can't answer these questions, who can?"

"You." The old wise eagle reassured. "Me? How?" the young eagle was confused.

"No one can tell you how high to fly or how much to dream. It's different for each eagle. Only God and you know how far you'll go. No one on this earth knows your potential or what's in your heart. You alone will answer that. The only thing that limits you is the edge of your imagination."

The young eagle, puzzled by this asked, "What should I do?"

"Look to the horizon, spread your wings, and fly."

Sunday, November 29, 2009

Tips for more efficient SQL

Tips for more efficient SQL

  • Never do a calculation on an indexed column (e.g., WHERE salary*5 > :myvalue).
     
  • Whenever possible, use the UNION statement instead of OR conditions.
     
  • Avoid the use of NOT IN or HAVING in the WHERE clause. Instead, use the NOT EXISTS clause.
     
  • Always specify numeric values in numeric form and character values in character form (e.g., WHERE emp_number = 565, WHERE emp_name = ‘Jones’).
     
  • Avoid specifying NULL in an indexed column.
     
  • Avoid the LIKE parameter if = will suffice. Using any Oracle function will invalidate the index, causing a full-table scan.
     
  • Never mix data types in Oracle queries, as it will invalidate the index. If the column is numeric, remember not to use quotes (e.g., salary = 50000). For char index columns, always use single quotes (e.g., name = ‘BURLESON’).
     
  • Remember that Oracle’s rule-based optimizer looks at the order of table names in the FROM clause to determine the driving table. Always make sure that the last table specified in the FROM clause is the table that will return the smallest number of rows. In other words, specify multiple tables with the largest result set table specified first in the FROM clause.
     
  • Avoid using subqueries when a JOIN will do the job.
     
  • Use the Oracle “decode” function to minimize the number of times a table has to be selected.
     
  • To turn off an index you do not want to use (only with a cost-based optimizer), concatenate a null string to the index column name (e.g., name||') or add zero to a numeric column name (e.g., salary+0). With the rule-based optimizer, this allows you to manually choose the most selective index to service your query.
     
  • If your query will return more than 20 percent of the rows in the table, a full-table scan may be better than an index scan.
     
  • Always use table aliases when referencing columns.

Thoughtful Email : Letter from the CPU.. Go Green!

Save our Earth… Go Green.

 

Hi,

I am with you all day long, whenever you look at me, i do give a bright radiation in response, i don't mind you being with me for more than 11 hrs on some days though i don't understand y u stare at me continuously. Still i continue to expect you to be back and stare at me when u go for your tea breaks, lunch / dinner but sometimes you don't tell me that you are leaving home and i end up waiting for you to be back for a long time. Sometimes even 2 or more days. My vision and brain goes tired. Please switch me off when you leave for the day so that i will be able to get up cheerfully to welcome you when you wake me up the next morning.  

From the heart of computer
Yours sincerely,
your System's CPU :-)

Note: "Let your computer too have its nights and weekends"

                                                                                                                                                    

 

Switch Off!

Your PC is the most important tool at work.
Do you realize how little you take care of it?


Take a moment to read this

After an average working day you go home to rest.
But leave your computer switched-on.

60,000 PCs running idle for >10 hours a day waste over 30 million units of power annually!

This is equivalent to 28,000 tons of CO2 emissions in a YEAR!

Powering a conventional computer all day releases 1,500 pounds of carbon dioxide.
 Given that a tree absorbs between 3 to 15 pounds of carbon dioxide per year, it would take between 100 and 500 trees to offset these emissions for just a year!

Shocked? There’s more to it.

A typical desktop PC with a 17" flat panel LCD monitor requires   cid:image001.jpg@01C9B397.B318F280
about 100 watts (65 for the computer and 35 for the monitor)     

of the total electricity used at least 50 percent is wasted     


Did you know that your PC consumes a mere 5% of power
when it is on STANDBY mode?


Energy conservation does not have to be complex or costly.
Simple actions like switching off your computer when leaving your workspace for an extended time or keeping it on standby can make a BIG difference!


SWITCH OFF or STANDBY and YOU can help the world Go Green

 

Very nice Forwarded email : Six Minutes: This is worth reading.

Six Minutes: This is worth reading.

 

ONE. Give people more than they expect and do it cheerfully.

TWO.
Marry a man/woman you love to talk to. As you get older, their conversational skills will be as important as any other.

THREE.
Don't believe all you hear, spend all you have or sleep all you want.

FOUR.
When you say, "I love you," mean it.

FIVE.
When you say, "I'm sorry," look the person in the eye.

SIX.
Be engaged at least six months before you get married.

SEVEN.
Believe in love at first sight.

EIGHT.
Never laugh at anyone's dream. People who don't have dreams don't have much.

NINE.
Love deeply and passionately. You might get hurt but it's the only way to live life completely.

TEN.
In disagreements, fight fairly. No name calling.

ELEVEN.
Don't judge people by their relatives.

TWELVE.
Talk slowly but think quickly.

THIRTEEN.
When someone asks you a question you don't want to answer, smile and ask, "Why do you want to know?"

FOURTEEN.
Remember that great love and great achievements involve great risk.

FIFTEEN.
Say "God bless you" when you hear someone sneeze.

SIXTEEN.
When you lose, don't lose the lesson .

SEVENTEEN.
Remember the three R's: Respect for self; Respect for others; and responsibility for all your actions.

EIGHTEEN.
Don't let a little dispute injure a great friendship.

NINETEEN.
When you realize you've made a mistake, take immediate steps to correct it.

TWENTY.
Smile when picking up the phone. The caller will hear it in your voice.

TWENTY-ONE.
Spend some time alone.


A true friend is someone who reaches for your hand and touches your heart.

ATM Theft : Reverse PIN Entry - Read the IMP Message ....

ATM Theft : Reverse PIN Entry - Read the IMP Message ....

 

Many time you must have read in forwarded emails that.. input ATM pin in reverse and the nearest police station would be on alert for a suspected robbery case…

 

BUT THIS IS WRONG and by exercising this in such situation can actually kill you.

 

Please read

 

http://www.hoax-slayer.com/reverse-pin-ATM.shtml

 

http://urbanlegends.about.com/library/bl_reverse_pin.htm

 

http://kaulonline.com/blog/2009/01/reverse-pin-on-atm-reality-or-hoax/

 

http://en.wikipedia.org/wiki/ATM_SafetyPIN_software

 

Update : However , recently a sensational murder in Canada has forced government to consider this to implement.

 

From:
Sent: Friday, June 19, 2009 12:35 PM
To:

Subject: Fwd: ATM Thief's - Read the IMP Message in attachment...

 

PLEASE FORWARD THIS EMAIL TO EVERY FRIEND, COLLEAGUE AND RELATIVE OF YOURS…

VERY IMPORTANT AND INTERESTING


Read carefully


WHEN A THIEF FORCES YOU TO TAKE MONEY FROM THE ATM, DO NOT ARGUE OR RESIST,

YOU MIGHT NOT KNOW WHAT HE OR SHE MIGHT DO TO YOU.   WHAT YOU SHOULD DO IS TO

PUNCH YOUR PIN IN THE REVERSE, I..E IF YOUR PIN IS 1254, YOU PUNCH 4521.  


THE MOMENT YOU PUNCH IN THE REVERSE, THE MONEY WILL COME OUT BUT WILL BE

STUCK INTO THE MACHINE HALF WAY OUT AND IT WILL ALERT THE POLICE WITHOUT THE NOTICE OF THE THIEF.
EVERY ATM HAS IT; IT IS SPECIALLY MADE TO SIGNIFY DANGER AND HELP. NOT
EVERYONE IS AWARE OF THIS.

FORWARD THIS TO ALL YOUR FRIENDS AND THOSE YOU CARE  



 

Nice websites for java server side programming tutorial

Nice websites for java server side programming tutorial
-------------------------------------------

http://www.javaranch.com/carl/scwcd/
http://www.javaprepare.com/scwd/quests/questions.html
http://www.javaranch.com/carl/SCWCD.htm