Skip to main content

Posts

Showing posts from 2008

Elevator Story

There is a classic case in which the tenants of a large office building complained about the increasingly poor elevator service. A consulting firm specializing in elevator-related problems was employed to deal with the situation. It first established that average waiting time for elevators was too long. It then evaluated the possibilities of adding elevators, replacing existing elevators with faster ones, and introducing computer controls to improve utilization of elevators. For various reasons, none of these turned out to be satisfactory. The engineers declared the problem to be unsolvable. When exposed to the problem, a young psychologist employed in the building's personnel department made a simple suggestion that dissolved the problem. Unlike the engineers who saw the service as too slow, he saw the problem as one deriving from the boredom of those waiting for an elevator. So he decided they should be given something to do. He suggested putting mirrors in the elevator lobbies t

How to use the Firefox like a Pro?

I have consolidated some of the shortcuts to use the Firefox like a Pro. CTRL + T Opens a New Tab. CTRL + R Reloads Current Tab. ALT + Home Loads your Home/Start Page. CTRL + TAB Changes to Next Tab. CTRL + SHIFT + TAB Changes to Previous Tab. CTRL + Z Undo. CTRL + SHIFT + Z Redo. ESC Stop. CTRL + Click a Link Opens in a New Tab. CTRL + ENTER Auto Complete URL to .com SHIFT + ENTER Auto Complete URL to .net CTRL + SHIFT + ENTER Auto Complete URL to .org CTRL + SHIFT + T Restore Last Closed Tab ALT + download the linked file SHIFT + opens the link in a new window F5 reload the current tab CTRL + F5 reload the current tab and override the catch CTRL + change to the tab with this number Space scroll down CTRL + F4 close the current tab ALT + F4 close the window CTRL + N open an new firefox window CTRL + S download the current webside

How to deselect all the selection in a select ( combo ) box?

In a HTML page sometimes we may have to deslect all the selection in a select control of html. but as a user we can't do anything. But using Javascript programatically we can achieve this. Here is the sample code in Javascript. function clearSelect( selectObj ){ for (var i = 0; i < selectObj .options.length; i++) { selectObj .options[i].selected = false; } } note: we need to pass the select object as a parameter to this function. the alternative to this code is function clearSelect( selectObj ){ selectObj.selectedIndex = -1; }

Bug Fixing

The huge printing presses of a major Chicago newspaper began malfunctioning on the Saturday before Christmas, putting all the revenue for advertising that was to appear in the Sunday paper in jeopardy. None of the technicians could track down the problem. Finally, a frantic call was made to the retired printer who had worked with these presses for over 40 years. "We'll pay anything; just come in and fix them," he was told. When he arrived, he walked around for a few minutes, surveying the presses; then he approached one of the control panels and opened it. He removed a dime from his pocket, turned a screw 1/4 of a turn, and said, "The presses will now work correctly." After being profusely thanked, he was told to submit a bill for his work. The bill arrived a few days later, for $10,000.00! Not wanting to pay such a huge amount for so little work, the printer was told to please itemize his charges, with the hope that he would reduce the amount once he had to

Vanilla Ice Cream that puzzled Automobile company

This is a real story that happened between the customer of automobile company and its Customer-Care Executive. Pls read on..... A complaint was received by an automobile company: 'This is the second time I have written to you, and I don't blame you for not answering me, because I sounded crazy, but it is a fact that we have a tradition in our family of Ice-Cream for dessert after dinner each night, but the kind of ice cream varies so, every night, after we've eaten, the whole family votes on which kind of ice cream we should have and I drive down to the store to get it. It's also a fact that I recently purchased a new car since then my trips to the store have created a problem..... You see, every time I buy a vanilla ice-cream, when I start back from the store my car won't start. If I get any other kind of ice cream, the car starts just fine. I want you to know I'm serious about this question, no matter how silly it sounds "What is

The essence of trust is not in its bind, but in its bond

Little girl and her father were crossing a bridge. The father was kind of scared so he asked his little daughter, 'Sweetheart, please hold my hand so that you don't fall into the river.' The little girl said, 'No, Dad. You hold my hand.' 'What's the difference?' Asked the puzzled father. 'There's a big difference,' replied the little girl. 'If I hold your hand and something happens to me, chances are that I may let your hand go. But if you hold my hand, I know for sure that no matter what happens, you will never let my hand go.' In any relationship, the essence of trust is not in its bind, but in its bond. So hold the hand of the person who loves you rather than expecting them to hold yours... This message is too short......but carries a lot of Feelings.

Who is poor?

One day, the father of a very wealthy family took his son on a trip to the country with the express purpose of showing him how poor people live. They spent a couple of days and nights on the farm of what would be considered a very poor family. On their return from their trip, the father asked his son, "How was the trip?" "It was great, Dad." "Did you see how poor people live?" the father asked. "Oh yeah," said the son. "So, tell me, what did you learn from the trip?" asked the father. The son answered: "I saw that we have one dog and they had four. We have a pool that reaches to the middle of our garden and they have a creek that has no end. We have imported lanterns in our garden and they have the stars at night. Our patio reaches to the front yard and they have the whole horizon. We have a small piece of land to live on and they have fields that go beyond our sight. We have servants who serve us, but they serve others.

You reap what you sow!!

A boy was talking with his grandfather. “What do you think about the world situation?” he asked. The grandfather replied, “I feel like wolves are fighting in my heart. One is full of anger and hatred; the other is full of love, forgiveness, and peace.” “Which one will win?” asked the boy. To which the grandfather replied, “The one I feed.” (Origin Unknown) This simple story provides the essence of a life-changing law of the universe… You become what you think about . The words are almost too simple to “feel important.” However, if you “get it,” if you truly understand their meaning, you can forever harness the power of a positive attitude. Simply stated…if we choose to think positive thoughts, we’ll get positive results; if we think negative thoughts, we’ll get negative results. Pretend for a moment that every thought is a seed you sow in your fertile mind. Therefore, as I once heard someone say, “If you plant crabapple, don’t expect to harvest Golden Delic

How to call mail client on click of a button using javascript?

There are situations mail id from a text box needs to be populated in the outlook or any other mail client by calling mailto: Here is the one way to do it. <html>     <head>         <script>         function sendMail(){             var mailToId = document.forms[0].mailId.value;             var mailto_link = 'mailto:'+mailToId;             win = window.open(mailto_link,'tempWindow');             if (win && win.open &&!win.closed) win.close();         }         </script>     <head>     <body>         <form name= "mailForm" >             <input type = "text" value="< Mail Id >" name="mailId">             <input type = "button" value="Send Mail "onclick= "sendMail()" >         </form>     </body> </html> Here is the link which talks about mailto syntax : http://www.ianr.unl.edu/internet/mailto.html Blogged with

THE SUCCESS OF MARRIAGE

Once upon a time a married couple celebrated their 25th marriage anniversary. They had become famous in the city for not having a single conflict in their period of 25 years. Local newspaper editors had gathered at the occasion to find out the secret of their well known "happy going marriage". Editor: Sir . It's amazingly unbelievable. How did you make this possible? " Husband recalling his old honeymoon days said: " We had been to Shimla for honeymoon after marriage. Having selected the horse riding finally, we both started the ride on different horses. My horse was pretty okay but the horse on which my wife was riding seemed to be a crazy one. On the way ahead, that horse jumped suddenly, making my wife topple over. Recovering her position from the ground, she patted the horse's back and said "This is your first time". She again climbed the horse and continued with the ride. After a while, it happened again. This time she again kept calm

Two small stories

A sales rep, an administration clerk, and the manager are walking to lunch when they find an antique oil lamp. They rub it and a Genie comes out. The Genie says, I will give each of you just one wish . Me first! Me first! says the admin clerk. I want to be in the Bahamas, driving a speedboat, without a care in the world. Poof! She is gone. Me next! Me next! says the sales rep. I want to be in Hawaii,relaxing on the beach with my personal masseuse, an endless supply of Pina Coladas and the love of my life. Poof! He is gone. OK, you are up, the Genie says to the manager. The manager says: I want those two back in the office after lunch. Moral of the story: Always let your boss have the first say. A little bird was flying south for the winter. It was so cold the bird froze and fell to the ground into a large field. While he was lying there, a cow came by and dropped some dung on him. As the frozen bird lay there in the pile of cow dung, he began to realize how warm he was. The dung

Shay, The Hero!!!

I got this touching story through mail from my friend Ganesh . I thought to share the story with others... At a fund raising dinner for a school that serves learning-disabled children, the father of one of the students delivered a speech that would never be forgotten by all who attended. After extolling the school and its dedicated staff, he offered a question: 'When not interfered with by outside influences, everything nature does is done with perfection. Yet my son, Shay, cannot learn things as other children do. He cannot understand things as other children do. Where is the natural order of things in my son?' The audience was stilled by the query. The father continued. 'I believe, that when a child like Shay, physically and mentally handicapped comes into the world, an opportunity to realize true human nature presents itself, and it comes in the way other people treat that child.' Then he told the following story: Shay and his father had walked past a park

Aircraft Engineers

After every flight, UPS pilots fill out a form, called a "gripe sheet," which tells mechanics about problems with the aircraft. The mechanics correct the problems; document their repairs on the form, and then pilots review the gripe sheets before the next flight. Never let it be said that ground crews lack a sense of humor. Here are some actual maintenance complaints submitted by UPS ' pilots (marked with a P) and the solutions recorded (marked with an S) by maintenance engineers. By the way, UPS is the only major airline that has never, ever, had an accident. P: Left inside main tire almost needs replacement. S: Almost replaced left inside main tire. P: Test flight OK, except auto-land very rough. S: Auto-land not installed on this aircraft. P: Something loose in cockpit S: Something tightened in cockpit P: Dead bugs on windshield. S: Live bugs on back-order. P: Autopilot in altitude-hold mode produces a 200 feet per minute descent S: Cannot reproduce problem o

Working for google can be mind blogging

Here are some interesting questions that Google asks you when you try a position in Google . I am not sure how legitimate they are, but here are a few for your amusement 1. How many golf balls can fit in a school bus? 2. You are shrunk to the height of a nickel and your mass is proportionally reduced so as to maintain your original density. You are then thrown into an empty glass blender. The blades will start moving in 60 seconds. What do you do? 3. How much should you charge to wash all the windows in Seattle? 4. How would you find out if a machine’s stack grows up or down in memory? 5. Explain a database in three sentences to your eight-year-old nephew. 6. How many times a day does a clock’s hands overlap? 7. You have to get from point A to point B. You don’t know if you can get there. What would you do? 8. Imagine you have a closet full of shirts. It’s very hard to find a shirt. So what can you do to organize your shirts for easy retrieval? 9. Every man

Flock New browser to the social network

Last week I have read about a browser called Flock in a regional  NEWS paper. I thought, one more browser what a big deal. Then I thought why don't to give a try. Then I downloaded the browser and installed and tried. It has lot of cool features: blog publishing tool to the all popular blog sites publish photos directly to your flickr you can view photos of flickr in a media bar based on firefox These are all the cool features that I like in the browser. I have yet check about the security and other features. These are my initial thoughts. This Blog I have published using Flock Blogged with Flock