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....
Friday, July 31, 2009
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!
- 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.
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.
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.
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.
Friday, March 13, 2009
Are U a Garbage Truck???
One day I hopped into a taxi and we took off for the airport. We were driving in the right lane when suddenly a car jumped out of a parking space right in front of us. My taxi driver slammed on his breaks, skidded, and missed the other car by just inches! The driver of the other car whipped his head around and started yelling at us. My taxi driver just smiled and waved at the guy. And I mean he was really friendly.
So I asked, "Why did you just do that? This guy almost ruined your car and sent us to the hospital!"
This is when my taxi driver taught me what I now call "The Law of the Garbage Truck."
He explained that many people are like garbage trucks. They run around full of garbage, full of frustration, full of anger, and full of disappointment. As their garbage piles up, they need a place to dump it and sometimes they'll dump it on you. Don't take it personally.
Just smile, wave, wish them well, and move on. Don't take their garbage and spread it to other people at work, at home, or on the street.
Moral : Successful people don't let garbage trucks take over their day. Life's too short to wake up in the morning with regrets, so… Love the people who treat you right. Forgive the ones who don't. Life is ten percent what you make it and ninety percent how you take it!
So I asked, "Why did you just do that? This guy almost ruined your car and sent us to the hospital!"
This is when my taxi driver taught me what I now call "The Law of the Garbage Truck."
He explained that many people are like garbage trucks. They run around full of garbage, full of frustration, full of anger, and full of disappointment. As their garbage piles up, they need a place to dump it and sometimes they'll dump it on you. Don't take it personally.
Just smile, wave, wish them well, and move on. Don't take their garbage and spread it to other people at work, at home, or on the street.
Moral : Successful people don't let garbage trucks take over their day. Life's too short to wake up in the morning with regrets, so… Love the people who treat you right. Forgive the ones who don't. Life is ten percent what you make it and ninety percent how you take it!
Friday, January 2, 2009
One Minute Manager !!!
The One Minute Manager, by Ken Blanchard and Spencer Johnson, is a remarkable book about management. It is about a young man who is in search of an effective manager and is willing to work for one.
In his search, he meets some ‘autocratic’ managers who are only concerned about the results. Their organizations gained while their people lost. He also meets ‘democratic’ managers who are concerned only about the people. Their people gained while their organizations lost. He was looking for an effective manager who was interested in the people as well as the results so that both the people and the organization gained in his management.
Then the young man comes across a manager who calls himself “the one minute manager” as it took very little time for him to get big results from people.
The one minute manager shares the secrets of his success with the young man, which are as follows:
FIRST SECRET: One Minute Goals
One minute goal setting is about being aware of what is expected from the beginning. When deciding upon the desired goal and the performance standards, it is recorded on a single sheet of paper. One minute goal setting is so called because it should take only one minute to be able to read it.
Why One Minute Goals work
One minute goal setting is an important tool for management because it provides immediate feedback to the worker; this feedback turns into motivation. If you are playing football and you are not aware of how many points you scored, you would lose interest in the game after a certain point. On the other hand, if you know you need 5 points to win and you have scored 3 points, you will try your best to get the other 2 points.Unless you are sure of what is it that you need to do, you keep beating around the bush without producing the accurate results. Say, for example, if I ask you to clean the room, you would not know whether to sweep the room, place everything in order, arrange the books in the shelf or do all the three. On the other hand, if I ask you to sweep the room and arrange the books, you know exactly what you need to do. As a result, both you and me are satisfied with the job.One minute goals work in a similar manner, where both the employee as well as the employer knows what is expected from the beginning of a task. Writing is important so that you can periodically view your performance against your target and check your progress. Thus, one minute goals help you to perform better and produce efficient results.
SECOND SECRET: One Minute Praisings
After the one minute goal setting, the second step in one minute management is to catch people doing something right. This is when the one minute praisings are given. One minute praisings are so called because it hardly takes a minute for you to tell someone that he or she did a good job. There is no need to elaborate when you can simply say that he or she he did something good and you noticed it. One minute praisings include praising the people immediately, telling them what they did right, how you feel about it and encourage them to do more of the same.
Why One Minute Praisings work
Let's consider a very simple example. A child does not learn to walk straight away. When you teach a child to walk, you don’t expect him to start walking as soon as he stands up. He first toddles, and then he tries to stand up and falls in the first few attempts. Then he wobbles a few steps and you cuddle him and hug him, making him feel that he has done something worth praising. He then tries to do more of the same and finally learns to walk. In the same way, one minute praisings is a way of encouraging your staff.One minute praisings show that you are genuinely interested in your people and care for them and their success. One minute praisings aim at catching people ‘doing something right’ rather than catching them ‘doing something wrong’ like most other organizations. Although the two might seem to be the same thing, there is a lot of difference. If you emphasize on catching people doing something wrong, their main aim is simply to do no wrong, not necessarily go above and beyond and produce great results. This produces mediocrity because everyone will tend to walk the middle line. For exceptional results you need your people to put in their best.
THIRD SECRET: One Minute Reprimands
One minute reprimands are given as soon as an employee does something wrong. One minute reprimand has two parts. The first half includes telling the people that what they did wrong, how you feel about it and then let it sink in with a few seconds of uncomfortable silence. Then in the second half you tell the people how much you think they are capable of and how much you value them. One important aspect of one minute reprimands is that it criticizes the work not the doer. The employee is not blamed as a person, only his work is accused of not being up to the desired level. And once it's over, it's over.
Why One Minute Reprimands work
One minute reprimands are highly effective because the feedback is immediate, unlike the annual reviews where you are charged for things committed several weeks or months ago. If you were being scolded for a mistake you made 7-8 months back, it would hardly make any impact on you, whereas if you are being scolded for a mistake you made yesterday, it will surely affect you. If a mistake is pointed out as soon as it is made it can easily be corrected. Since one mistake is pointed at one time, the people hear it seriously and your message is easily conveyed to them.
PS : This is anice article from http://www.dumblittleman.com/2008/12/3-key-lessons-we-can-learn-from-one.html
In his search, he meets some ‘autocratic’ managers who are only concerned about the results. Their organizations gained while their people lost. He also meets ‘democratic’ managers who are concerned only about the people. Their people gained while their organizations lost. He was looking for an effective manager who was interested in the people as well as the results so that both the people and the organization gained in his management.
Then the young man comes across a manager who calls himself “the one minute manager” as it took very little time for him to get big results from people.
The one minute manager shares the secrets of his success with the young man, which are as follows:
FIRST SECRET: One Minute Goals
One minute goal setting is about being aware of what is expected from the beginning. When deciding upon the desired goal and the performance standards, it is recorded on a single sheet of paper. One minute goal setting is so called because it should take only one minute to be able to read it.
Why One Minute Goals work
One minute goal setting is an important tool for management because it provides immediate feedback to the worker; this feedback turns into motivation. If you are playing football and you are not aware of how many points you scored, you would lose interest in the game after a certain point. On the other hand, if you know you need 5 points to win and you have scored 3 points, you will try your best to get the other 2 points.Unless you are sure of what is it that you need to do, you keep beating around the bush without producing the accurate results. Say, for example, if I ask you to clean the room, you would not know whether to sweep the room, place everything in order, arrange the books in the shelf or do all the three. On the other hand, if I ask you to sweep the room and arrange the books, you know exactly what you need to do. As a result, both you and me are satisfied with the job.One minute goals work in a similar manner, where both the employee as well as the employer knows what is expected from the beginning of a task. Writing is important so that you can periodically view your performance against your target and check your progress. Thus, one minute goals help you to perform better and produce efficient results.
SECOND SECRET: One Minute Praisings
After the one minute goal setting, the second step in one minute management is to catch people doing something right. This is when the one minute praisings are given. One minute praisings are so called because it hardly takes a minute for you to tell someone that he or she did a good job. There is no need to elaborate when you can simply say that he or she he did something good and you noticed it. One minute praisings include praising the people immediately, telling them what they did right, how you feel about it and encourage them to do more of the same.
Why One Minute Praisings work
Let's consider a very simple example. A child does not learn to walk straight away. When you teach a child to walk, you don’t expect him to start walking as soon as he stands up. He first toddles, and then he tries to stand up and falls in the first few attempts. Then he wobbles a few steps and you cuddle him and hug him, making him feel that he has done something worth praising. He then tries to do more of the same and finally learns to walk. In the same way, one minute praisings is a way of encouraging your staff.One minute praisings show that you are genuinely interested in your people and care for them and their success. One minute praisings aim at catching people ‘doing something right’ rather than catching them ‘doing something wrong’ like most other organizations. Although the two might seem to be the same thing, there is a lot of difference. If you emphasize on catching people doing something wrong, their main aim is simply to do no wrong, not necessarily go above and beyond and produce great results. This produces mediocrity because everyone will tend to walk the middle line. For exceptional results you need your people to put in their best.
THIRD SECRET: One Minute Reprimands
One minute reprimands are given as soon as an employee does something wrong. One minute reprimand has two parts. The first half includes telling the people that what they did wrong, how you feel about it and then let it sink in with a few seconds of uncomfortable silence. Then in the second half you tell the people how much you think they are capable of and how much you value them. One important aspect of one minute reprimands is that it criticizes the work not the doer. The employee is not blamed as a person, only his work is accused of not being up to the desired level. And once it's over, it's over.
Why One Minute Reprimands work
One minute reprimands are highly effective because the feedback is immediate, unlike the annual reviews where you are charged for things committed several weeks or months ago. If you were being scolded for a mistake you made 7-8 months back, it would hardly make any impact on you, whereas if you are being scolded for a mistake you made yesterday, it will surely affect you. If a mistake is pointed out as soon as it is made it can easily be corrected. Since one mistake is pointed at one time, the people hear it seriously and your message is easily conveyed to them.
PS : This is anice article from http://www.dumblittleman.com/2008/12/3-key-lessons-we-can-learn-from-one.html
Subscribe to:
Posts (Atom)