Niku's Blog

Tracking who is reading or accessing your email.

Is anyone(boss or federal agencies) reading your email secretly?
Following are two simple techniques that can help you confirm your suspicion - it detects snoopers and can track the address of the computer that is watching your email.

One of the technique goes here,

Note:-For steps 3 & 4, create a free account on geocities.com or any free web service providing site.Create a dummy HTML file that contains Statcounter or Google Analytics tracking script.

1. Set up a Hotmail account in US and and a second email account with a non-U.S. provider. (eg.IndiaTimes.com)

2. Send an message between the email accounts which might be attracting or interesting to the email snooper or anyone who is monitoring your emails.

3. The message you send,should include the URL to  a webserver to which you have an access to server logs i.e link to the dummy file (containing the tracking code) located on the free web service account to which you have access(eg.geocities.com).The URL should only be known by you.The text of the message should encourage the email snooper to visit.

4. If the server log file ever shows this URL being accessed, then you know that you are being snooped on. The IP address of the access can also provide clues about who is doing the snooping.

The other technique uses Google Analytics for tracking the email impressions.

1. Create an email email message such that Urchin with the following HTML code to embed the __utm.gif image anywhere in your email message.

"<img src="http://www.google-analytics.com/__utm.gif" title="http://www.google-analytics.com/__utm.gif" target="_blank"http://www.google-analytics.c...?
utmt=imp&utmac=C& utmcsr=news1&utmcmd=e mail&utmctr=em&uc tr=k">"

The email impressions would be credited to the source "news1" and the medium "email". As soon as someone read your email, the impression will be registered on Google Analytics server as the gif file is downloaded on the spying computer.

2. If the email recipient has disabled automatic downloading of internet images, you can create a campaign link to track the email referrals. Tag these links using the utm_ campaign variables.

Continuing with the example above of an email message which you track using the source "news1" and the medium "email," your tagged link might look like this:

<a href="www.mywebsite.com/?utm_source=news1& ;utm_medium=email"

2 Comments

Engineers at their best

7 Engineers and 7 Doctors are going from PUNE to Mumbai, So they both gather at Pune Station. Both groups are desperately trying to prove their superiority.

SCENE 1 (PUNE- MUMBAI) :
------------------------- --------------
7 engineers take only 1 Ticket and 7 doctors buy all 7 tickets.. Doctors are desperately waiting for TC(Ticket Checker) to come...... When TC arrives, All 7 Engineers get in one toilet So when TC knocks, one hand come out with the ticket and the TC goes away....

NOW on return Journey All of them don't get a direct train to PUNE. So they all decide to take a Passenger till Lonavala, from there they can easily get a LOCAL(small distance running trains) to PUNE

SCENE 2 (MUMBAI - LONAVALA) :
------------------------- ---------------
Doctors decided, "this time we will prove that we too are equal"....All 7 Doctors take 1 Ticket Engineers don't buy any ticket at all...

TC arrives.... ALL DOCTORS IN ONE TOILET. ALL ENGINEERS IN THE OPPOSITE ONE.. One engineer gets out and knocks the door of Doctors toilet, One hand comes with the tickets, he takes the ticket and comes in engg. Bathroom... TC DRIVES out ALL the doctors from the toilet and they are heavily fined.

SCENE 3 ( LONAVALA) :
------------------------- ----------------
SO now both the group are on LONAVALA station. Doctors planning their move for last chance, they board the local to Pune. This time doctors decide that they will play the same (1 ticket) trick. ALL Doctors take 1 tickets...Engineers BUY all 7 tickets this time...

SO TC Comes.. All Engineers showed their tickets..... Doctors are still searching for toilet in the LOCAL train........... Conclusion: Technically intelligent people are geniuses, don't mess with Engineers.

0 Comments

Hilarious-Great jokes

Sikh: I saw my wife going to a movie with a strange man
Friend: Why didn't you follow them inside?
SIKH: Oye, no yaar I have already seen that movie

Ravan had 20 eyes but he sighted only woman ....you have only 2 eyes but you sight every woman
Now who is Ravan???????????????????? ?

Scientists are trying to figure out how long a person can live without brain..
Please tell them your age!!!!!!

Mistakes are not crime......if you correct them they are the key of success

FOR EXAMPLE....God created you ......He then created me

Dad to son: when I beat you how do you control your anger?
Son: I start cleaning toilet
Dad: How does that satisfy you?
Son: I clean it with your toothbrush

Munna bhai: agar bina daton ka kuta kate to kya karna chahiye?
Circuit: simple, bina sui ke injection lena chahiye

Bikhari: 50 paise de de maine 3 din se khana nahin khaya hai
Knjoos: 10 rupaye dunga , pahele ye bata 50 paise mein khana kahan milta
hai

Santa: Yaar bachpan mein 20 male se gir gaya tha
Banta: to fir bach gaya ya mar gaya?
Santa: yaad nahin hai bahut purani baat hai

 

Boy: mom, aaj mera dost ghar aa raha hai....ghar ke sab khilone chhupa de
Mom: tera dost chor hai kya?
Boy: nahin, woh  apne khilone pahechan lega

In aptitude test...River Kaveri is in which state?
SIKH: liquid state

INTERVIEW : Imagine, in a closed room , how can you escape if it caught
fire?
Sardar JI: Simple, stop imagining

SIKH starts shouting in a store...... where is my free gift with this
oil?
Shopkeeper : there is nothing free with this
SIKH: it is written CHOLESTROL FREE

SIKH 100 watt bulb par baap ka naam likh raha tha
Baap ne puchha "kya kar rahe ho?"
SIKH : baap ka naam roshan kar raha hoon

Two SIKHS were walking together
1st SIKH: Yaar mar gaya , meri biwi aur premika saath aa rahi hain
2nd SIKH: oye, main bhi ye hi bol raha tha.

2 Comments

Bug in Binary Search after twenty years

Binary Search which was written in 1986,detected a bug and it was reported to Sun recently when it broke someone's program, after lying in wait for nine years or so.
 
The original code go this way,

  1. public static int binarySearch(int[] a, int key) {
  2. int low = 0;
  3. int high = a.length - 1;
  4. while (low <= high) {
  5. int mid = (low + high) / 2;
  6. int midVal = a[mid];
  7. if (midVal < key)
  8. low = mid + 1;
  9. else if (midVal >; key)
  10. high = mid - 1;
  11. return mid; // key found
  12. }
  13. return -(low + 1);  // key not found.
  14. }

 

The bug is in this line:

5: int mid =(low + high) / 2;

The above line of code suggest that it sets mid to average value of low and high,trucated down to the nearest integer.It might appear correct,but it fails for large values of the int variables low and high.Specifically, it fails if the sum of low and high is greater than the maximum positive int value (2^31 - 1).The sum overflows to a negative value, and the value stays negative when divided by two.

Errors:
In "C" this causes an array index out of bounds with unpredictable results.
In "Java",it throws ArrayIndexOutOfBoundsExce ption.

So what's the best way to fix the bug? Here's one way:

5: int mid = low + ((high - low) / 2);

Probably faster, and arguably as clear is:

5: int mid = (low + high) >>> 1;

In C and C++ (where you don't have the >>> operator), you can do this:

5: mid = ((unsigned) (low + high)) >> 1;


The binary-search bug applies equally to mergesort, and to other divide-and-conquer algorithms. If you have any code that implements one of these algorithms, fix it now before it blows up. The general lesson that I take away from this bug is humility: It is hard to write even the smallest piece of code correctly, and our whole world runs on big, complex pieces of code.

2 Comments