As I have showed in my earlier post How to run .exe on a Webpage but that code runs only on Internet Explorer. Here after the demand of my readers I am going to show you how can you achieve this task through Firefox browser.
In the above code you can clearly see that in "href" attribute I am calling a user-defined function LaunchApp() and functionality of this function is shown as follows:
In the above code you can see the use of JavaScript privileges API. You can add one line of code asking permission to enable a privilege that can allow your script to access your target.
In Mozilla Firefox there are certain privileges that are associated with specific targets, In our code we are using "UniversalXPConnect" privilege to give Unrestricted access to browser APIs using XPConnect. After assigning privileges just running your local .EXE file by using Mozilla Firefox built in classes. That's it just use above code and do let me know your experience about it through comments.
These are the few questions asked in HR interview (some of them already known to us)!! The answers are really stunning and inspiring. Thinking out of box!
A must read… Question 1: You are driving along in your car on a wild, stormy night, it's raining heavily, when suddenly you pass by a bus stop, and you see three people waiting for a bus:
An old lady who looks as if she is about to die.
An old friend who once saved your life.
The perfect partner you have been dreaming about.
Which one would you choose to offer a ride to, knowing very well that there could only be one passenger in your car?
Answer:
This is a moral/ethical dilemma that was once actually used as part of a job application.
* You could pick up the old lady, because she is going to die, and thus you should save her first;
* or you could take the old friend because he once saved your life, and this would be the perfect chance to pay him back.
* However, you may never be able to find your perfect mate again.
The candidate who was hired (out of 200 applicants) had no trouble coming up with his answer. Guess what was his answer?
He simply answered:
"I would give the car keys to my Old friend and let him take the lady to the hospital. I would stay behind and wait for the bus with the partner of my dreams."
Sometimes, we gain more if we are able to give up our stubborn thought limitations. Never forget to "Think Outside the Box."
Question 2: What will you do if I run away with your sister?" Answer: The candidate who was selected answered " I will not get a better match for my sister than you sir"
Question 3: Interviewer (to a student girl candidate) – What is one morning you woke up & found that you were pregnant. Girl – I will be very excited and take an off, to celebrate with my husband.
Normally an unmarried girl will be shocked to hear this, but she managed it well. Why I should think it in the wrong way, she said later when asked
Question 4: Interviewer: He ordered a cup of coffee for the candidate.
Coffee arrived kept before the candidate, then he asked what is before you? Answer:Candidate: Instantly replied "Tea"
He got selected.
You know how and why did he say "TEA" when he knows very well that coffee was kept before.
(Answer: The question was "What is before you (U – alphabet)
Reply was "TEA" ( T – alphabet)
Alphabet "T" was before Alphabet "U"
Question 5: Where Lord Rama would have celebrated his "First Diwali"? Answer: People will start thinking of Ayodya, Mitila [Janaki's place], Lanka etc…
But the logic is, Diwali was a celebrated as a mark of Lord Krishna Killing Narakasura.
In Dusavataar, Krishnavathaar comes after Raamavathaar.
So, Lord Rama would not have celebrated the Diwali At all!
Question 6: The interviewer asked to the candidate "This is your last question of the interview.
Please tell me the exact position of the center of this table where u have kept your files." Answer
Candidate confidently put one of his finger at some point at the table and told that this was the central point at the table.
Interviewer asked how did u get to know that this being the central point of this table,
then he answers quickly that sir u r not likely to ask any more question, as it was the last question that u promised to ask…..
And hence, he was selected as because of his quick-wittedness. ……..
Question 7: A man and his son are in a car crash. The father is killed and the child is taken to hospital gravely injured. When he gets there, the surgeon says, 'I can't operate on this boy – for he is my son!!!' How can this possibly be? Answer: The surgeon cannot operate on her own son; she is his mother.
Question 8: There are six eggs in the basket. Six people each take one of the eggs. How can it be that one egg is left in the basket? Answer: The last person took the basket with the last egg still inside.
Question 9: How could a baby fall out of a twenty-story building onto the ground and live? Answer: The baby fell out of a ground floor window.
Question 10: Acting on an anonymous phone call, the police raid a house to arrest a suspected murderer. They don't know what he looks like but they know his name is John and that he is inside the house. The police bust in on a doctor, an engineer, a lawyer and a fireman all playing poker. Without hesitation or communication of any kind, they immediately arrest the fireman. How do they know they've got their man? Answer: The fireman is the only man in the room. The rest of the poker players are women.
Never forget to "Think Outside the Box."
Got this in internet, thought its good to share with you readers.
Image Source: teluguone.com
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to edit your files. I prefer using vim editor.
After doing some experiments and knowing some important commands, I though to share with you. So i have written few commands point wise which may be useful for you while editing multiple files using vim (not GVIM, although these commands are valid there too.)
In today’s world every business or technology professional must be able to work and adjust their daily duties from anywhere. There are some that spend just as much time on their phones working as they do on their computers. An IT professional’s working life is all about storing, retrieving, transmitting, and manipulating data. To do so in a work environment increasingly reliant on mobile devices they need the right apps on their phones so that they can access this data anytime they need to. Here are 5 of the most beneficial mobile device apps for people working in Information Technology.
Visitor Rating: 5 Stars