Friday, July 31, 2009

Window parent handler!!!

If there is a need to perform any operation in a parent window w.r.t the actions or events performed in the child window , but without refreshing the parent window , javascript comes in handy with its window.opener functionality.You can set/alter the values of the javascript variables in the parent window from the child window.You can also excecute the javascript functions of the parent window from the child window.Using this you can play with the entire DOM elements of the parent window.

For example,

window.opener.parent_variable1='XXX';
window.opener.parent_variable2=false;
window.opener.parent_function1();

PS :
Why did i write this?
Bcoz i will forget it in another 2 days.
And why did i write this (negligible)technical post?
Need to find the answer....
Will it be a start to write technical posts?
Should wait and see....

Driving Styles!!!

One hand on steering wheel, one hand out of window.
- Sydney

One hand on steering wheel, one hand on horn.
- Japan

One hand on steering wheel, one hand on newspaper, foot solidly on accelerator...
- Boston

Both hands on steering wheel, eyes shut, both feet on brake, quivering in terror.
- New York

Both hands in air, gesturing, both feet on accelerator,
head turned to talk to someone in back seat.
- Italy

One hand on horn,one hand greeting,one ear on cell phone,
one ear listening to loud music,foot on accelerator,
eyes on female pedestrians,conversation with someone in next car.

- Welcome to India!

Modern Banking explained !!!

A.) Bankers take more money from People and return less.
B.) Bankers take even more money from People and return even less.
C.) Bankers take HUGE amount of money from People and return nothing .

The above steps are further explained below:

1.) There are two types of people in the world - The Bankers and The People.

2.) The Bankers are smart, The People are stupid.

3.) People earn money by getting paid for hard work or selling something they have (businesses).

4.) Bankers earn money by taking more money from people and giving them back less money, they call this 'interest'(People keep their money in the bank on 2-3% interest, People take loans from the bank on 14-16% interest).

5.) Once the Bankers have a steady stream of money from the People as given in '4', they get bored and they decide to fool the people some more.

6.) The Bankers now come up with 'financial products' so that the People will give them more money thinking that they'll make more money (high return, more interest).

7.) The Bankers now give this money to people who'll not be able to pay back the high return, more interest.

8.) The Bankers declare a "financial crisis" keeping all the focus on the people who didn't pay back the high interest (which was always unrealistic).

9.) The Bankers then take more money from the People (Bailouts) to compensate for the defaulted loans.

10.) The Bankers don't have to repay this money to the people whom it was taken from because they have been told that their 'financial products' are now bust.

Now to Grades of stupidity of people:

1st grade - these people pay their taxes and put the rest of their earnings in the bank.

2nd grade - these people pay their taxes and put the rest of their earnings in the bank, in bank schemes (FDs, etc).

3rd grade - these people pay their taxes and put the rest of their earnings in the bank, in bank schemes (FDs, etc) and then take loans from the bank.

4th grade - these people pay their taxes and put the rest of their earnings in the bank, in bank schemes (FDs, etc) and then take loans from the bank and support bailouts for banks since there is a 'financial crisis'.

5th grade - these people pay their taxes and put the rest of their earnings in the bank ,in bank schemes (FDs, etc) and then take loans from the bank and support bailouts for banks since there is a 'financial crisis', and stop spending and put even more money in the bank because there is a 'financial crisis'.

I am currently in the 1st grade of stupidity, when this "financial crisis" gets better, I'll make more money and proceed to the next grades of stupidity, I hope I can cover all the grades in one lifetime, then I can be a successful man, I've always wanted to do something with my life, and I'll work very hard to achieve 'something' in life.

Monday, July 27, 2009

Are you a cracked pot???

An elderly Chinese woman had two large pots, each hung on the ends of a pole which she carried across her neck.One of the pots had a crack in it, while the other pot was perfect and always delivered a full portion of water.At the end of the long walks from the stream to the house, the cracked pot arrived only half full.

For a full two years this went on daily, with the woman bringing home only one and a half pots of water.Of course, the perfect pot was proud of its accomplishments.But the poor cracked pot was ashamed of its own imperfection, and miserable that it could only do half of what it had been made to do.

After two years of what it perceived to be bitter failure, it spoke to the woman one day by the stream. "I am ashamed of myself, because this crack in my side causes water to leak out all the way back to your house."

The old woman smiled, "Did you notice that there are flowers on your side of the path, but not on the other pot's side?"

"That's because I have always known about your flaw, so I planted flower seeds on your side of the path, and every day while we walk back, you water them."

"For two years I have been able to pick these beautiful flowers to decorate the table.
Without you being just the way you are, there would not be this beauty to grace the house."

Moral : Each of us has our own unique flaw. But it's the cracks and flaws we each have that make our lives together so very interesting and rewarding. You've just got to take each person for what they are and look for the good in them.

How about this circular in your office???

[ A circular was found in one of the office notice boards ]

Dear STAFF ,Please be advised that these are NEW rules and regulations implemented to raise the efficiency of our firm.

1) TRANSPORTATION:
It is advised that you come to work driving a car according to your salary.
a) If we see you driving a Honda, we assume you are doing well financially and therefore you do not need a raise.
b) If you drive a 10 year old car or taking public transportation, weassume you must have lots of savings therefore you do not need a raise.
c) If you drive a Pickup, you are right where you need to be and thereforeyou do not need a raise.

2) ANNUAL LEAVE :
Each employee will receive 52 Annual Leave days a year ( Wow! said 1employee). - They are called SUNDAYs.

3) LUNCH BREAK :
a) Skinny people get 30 minutes for lunch as they need to eat more so that they can look healthy.
b) Normal size people get 15 minutes for lunch to get a balanced meal tomaintain their average figure.
c) Fat people get 5 minutes for lunch, because that's all the time needed to drink a Slim Fast and take a diet pill.

4) SICK DAYS:
We will no longer accept a doctor Medical Cert as proof of sickness. - If you are able to go to the doctor, you are able to come to work.

5) TOILET USE :
Entirely too much time is being spent in the toilets.
a) There is now a strict 3-minute time limit in the cubicles.
b) At the end of three minutes, an alarm will sound, the toilet paper roll will retract, the door will open and a picture will be taken.
c) After your second offence, your picture will be posted on the companybulletin board under the "Chronic Offenders" category. d) Subsequent pictures will be sold at public auctions to raise money topay your salary.

6) SURGERY :
As long as you are an employee here, you need all your organs.- You should not consider removing anything. We hired you intact.- To have something removed constitutes a breach of employment.

7) INTERNET USAGE :
All personal Internet usage will be recorded and charges will be deductedfrom your bonus (if any) and if we decide not to give you any, chargeswill be deducted from your salary.- Important Note: Charges applicable as Rs.20 per minute as we have 4MB connection.

Just for information, 73% of staff will not be entitled to any salary fornext 3 months as their Internet charges have exceeded their 3 months salary.

Thank you for your loyalty to our company. We are here to provide apositive employment experience.

Therefore, all questions, comments, concerns, complaints, frustrations, irritations, aggravations, insinuations, allegations, accusations,contemplation, consternation and input should be directed elsewhere.