Ye Meri Life Hai - Chirag Mehta

Be Good & Do Good!

Month: September 2006 (page 1 of 2)

IE extensions/add-on – the simplest way (context menu)

Extracted From Ankit Jain Ye Meri Life Hai!

Let’s go through Internet Explore for writing the simplest extension in just 5 minutes. So, what we wanted to do? Here I will show you how to access Html Dom and change it on the fly. All you need to know is a JavaScript and simple programming concepts. Here are the steps on MSDN that details adding a context menu to Internet Explorer.

Open Registry Editor and point it to HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\MenuExt
Create a new key that represents the text on the context menu. This may include ‘&’ for keyboard shortcut.

Create a blank Html file, say myMenu.html and open it in notepad. Clicking on the new item in the context menu this is the script file which gets executed. Point the default value of the key (created in the step 2) to this html file.

Create a binary value Contexts, and sets its value as 0×1. This can be 0×2 if you want our item to appear when we right click on an image. Or 0×10 if it should appear only it some text is selected. These values can also be binary OR-ed with each other.

Now open IE and right click (as whatever contexts you have set), you can see your new text appearing in the menu. Then we need to handle the event that Internet Explorer sends to the myMenu.html file. This should contain a script block. It receives an event as external.menuArguments. This menu argument contains a document object that is same as what we use in JavaScript to access the html of the webpage.

Read More

Left Brain, right brain.

While sitting at your desk, lift your right foot off the floor and make clockwise circles. Now while doing this, draw the number “6” in the air with your right hand.

Your foot will change direction and there’s nothing you can do about it.

Why we don’t have pointers in Java.

In an interview a candidate was asked the question “Why We don’t Have pointers in JAVA?”, to which he replied like this:

I married a widow who had a grown-up daughter. My father, who visited us quite often, fell in love with my step daughter and married her. Hence, my father became my son-in-law, and my step-daughter became my mother. Some months later, my wife gave birth to a son, who became the brother in law of my father as well as my uncle.

The wife of my father, that is my step daughter, also had a son. Thereby, I got a brother and at the same time a grandson. My wife is my grandmother, since she is my mother’s mother. Hence, I am my wife’s husband and at the same time her step-grandson; in other words, I am my own grandfather.

I guess that’s why we don’t have pointers in Java.


What do you call a sardar who drinks only beer? – Justbeer Singh.

What do you call a sardar who has only one drink? – Justone Singh.

What do you call a sikh female’s boyfriend? – Her-Pal Singh

What do you call a sardar who has only one hair ? – IK-BAL Singh

What do you call a sardar looking for happiness? – KHUSH-WANT Singh

What do you call a sardar living under-water? – Jalandhar Singh

What do you call a sardar living under-water and able to breath also?- Jalandhar Singh Gill.

Bengali who talks much – Chatter-jee

Director of ISRO satellite preparing to take off – B. Reddy

One who can’t be steady after a drink – P. K. Girpade

Dress-maa tame sara lago chho

Dress-maa tame sara lago chho,
Punjabi maa tame pyara lago chho;
Sari-ma koi-di tamne joya nathi,

Maate tame Kunwara lago chho.

Jivan maa JAS nathi,
Prem maa RAS nathi;
Dhandha maa KAS nathi,
Javu chhe swarg maa,
pan eni koi BUS nathi

Dil naa dardo ne pinaro shu jane,
prem naa rivajo ne jamano shu jane;
Chhe ketli taklif kabar maa,
Te uparthi phool muknaro shu jane!

Zindagi ne jiv-vani Filsufi samji lidhi,
Je khushi aavi jivan ma,
aakhri samji lidhi!

Shu karu fariyaad tari,
Fariyaad ma yaad chhe Fari fari ne yaad tari,
Ej mari fariyaad chhe!

Tu hase chhe jyare jyare,
tyare tyare tara gaal ma khada pade chhe.
Hu vicharu chhu betho betho,
ke mara sivay aa khada-ma ketla pade chhe!

Doobta jeevan na tame swaas chho,
kahu kem ke tame kaik ‘khaas’ chho,
Tame phool nahi pan jamin par ugta ghaas chho,
sachu kahu, tame ek moto Traas chho.

Loko kahe-chhe ke – Hasya tena ghar vasya!
Parantu e kon jane chhe ke –
Ghar vasya pachhi ketla hasya.?

પ્રણયનું નામ?

Ack : – Jay Vora

તમને જોઇને વળે ફૂલોને પસીનો
તેને ઝાકળનું નામ આપું તો કેવું?

મુખડૂં ઢંકાય જો ફરફરતી લટોથી
તેને ચંદ્રગ્રહણનું નામ આપું તો કેવું?

મીઠડી બે વાત કરી ભીંજાવો હૈયાને
તેને શ્રાવણનું નામ આપું તો કેવું?

તમારા જ સ્વપ્નમાં વીતે રાતલડી
તેને જાગરણનું નામ આપું તો કેવું?

હંમેશા ડૂબી જઉ નયનની ગહેરાઇમાં
તેને વમળનું નામ આપું તો કેવું?

સાન-ભાન ભુલાવું તમારા ઇશારે
તેને વશીકરણનું નામ આપું તો કેવું?

આપણા દિલમાં ઉગી લીલીછમ લાગણી
તેને કૂંપળનું નામ આપું તો કેવું?

નજરથી નજર મળતાં શરમાય નજર
તેને પ્રણયનું નામ આપું તો કેવું?

50 Facts each of you to know…

1 The word “queue” is the only word in the English language that is still pronounced the same way when the last four letters are removed.

2 Beetles taste like apples, wasps like pine nuts, and worms like fried bacon.

3 Of all the words in the English language, the word ‘set’ has the most definitions!

4 What is called a “French kiss” in the English speaking world is known as an “English kiss” in France.

5 “Almost” is the longest word in the English language with all the letters in alphabetical order.

6 “Rhythm” is the longest English word without a vowel.

7 In 1386, a pig in France was executed by public hanging for the murder of a child

8 A cockroach can live several weeks with its head cut off!

9 Human thigh bones are stronger than concrete.

10 You can’t kill yourself by holding your breath

Read More ……….. in Comments…………….

Sign In Seal – Introduced by Yahoo Mail

A sign-in seal is a secret message or image that you select to help protect your account from phishing — a scam that tries to steal your password or personal information by spoofing a legitimate web site.

When you create a sign-in seal for your computer, you can be sure you’re on a legitimate Yahoo! site each time you use this computer to sign in to Yahoo!. Just look for the custom text or image you set up on this computer. If it’s not there, you might have landed on a “spoofed” site.

Your sign-in seal is saved on the computer you created it on. If you use more than one computer or browser, you may want to create a sign-in seal for each one.

Read More

Save your time of registering ..

Have you ever gone to a website that asks for your email address? (haven’t we all). You know that the moment you type it in, it is streaming across the net on its way to every spam database in the world. You simply can’t be that careless with your personal email address.

What if there was a website that any and every email address you can think of already exists. And you use any one you like, anytime you like – just by thinking one up.

So its Mailinatorâ„¢

Imagine ur self in a Sprite Ad

Your Colleague : Hey!! Kya yahan baitha mail forward
karta rahta hai yaar !! Naye packages dekh…. Naye language seekh. Night out Maar….Fundoo programming kar like me….! Do something cool man !!
You : Achha! To usse Kya hoga ..
Your Colleague: Impression!!! Appraisal !!!
Har appraisal main tu No 1!
Hike in salary !! Extra Stocks
You : Phir kya hoga…
Your Colleague : Project Leader ban jaayega..Phir Project Manager !!!
Phir Business Manager ! One day U will be a
Director of the Company man !!
You : Acchha to phir kya hoga…
Your Colleague : Abe phir tu aish karega! Koi kaam nahin karna padega !
Araam se office aayega aur MAIL check karega.
You : To ab main kya kar raha hoon????

“Dikhawe pe na jao, apni akal lagao. Programming hai waste, trust only copy-paste “

Powered by ctrl C
Driven by ctrl V

Older posts