Thursday, December 25, 2008

Can my waiter truly calculate my age? Here is the trick behind it

I got this *magic for the year 2008* in my mailboxes so I thought I would share the secrets behind this magic trick flying around people's mailboxes.

Here is the original puzzle moving around on the internet that promises to calculate your age from the number of times you like to eat out at some place.

//////////////////////////////////////////////////////////////////////////////
YOUR AGE BY EATING OUT

Don't tell me your age; you probably would lie-but your waiter may know!

YOUR AGE BY DINER & RESTAURANT MATH……….
---------------------------------------

This is pretty neat

DON'T CHEAT BY SCROLLING DOWN FIRST!

It takes less than a minute. Take a paper & pen and Work this out as you read .

Be sure you don't read the bottom until you've worked it out!

This is not one of those waste of time things, it's fun.

1. First of all, pick the number of times a week that you would like to go out to eat. (more than once but less than 10)

2. Multiply this number by 2 (just to be bold)

3. Add 5

4. Multiply it by 50

5. If you have already had your birthday this year add 1758... If you haven't, add 1757.

6. Now subtract the four digit year that you were born.

You should have a three digit number. The first digit of this was your original number. (I.e., How many times you want to go out to restaurants in a week.)

The next two numbers are YOUR AGE ! ------ (Oh YES, it is!)

THIS IS THE ONLY YEAR (2008) IT WILL EVER WORK,

SO SPREAD IT AROUND WHILE IT LASTS……….
////////////////////////////////////////////////////////////////

Amazed by the results? Well to be true this trick can be tried any year by just increasing the number to be subtracted at step 5 as a year goes by...

Here is how I worked out the solution...

I chose the number of times that I would like to eat outside as 3 and my birth year is 1987. Here I go

1. 3
2. 3 * 2
3. (3 * 2) + 5
4. ((3 * 2) + 5) * 50
--------> (3 * 2) * 50 + 250
--------> 3 * 100 + 250
5. 300 + 250 + 1758
(the number of times that I like to eat outside (3) is shifted two places to the left cos of this step)
6. 300 + 250 + 1758 - 1987
(pay close attention to this part [250 + 1758 - 1987] cos here 250 + 1758 give you 2008 and subtracting 1987 from 2008 is obviously going to give me my age... duh!!)

So the final answer is 300 + 21 and you get the magic that this trick claims to put up.

The other lie that this trick imposes on us is that this magic will work only for this year... But if a bit of logic is applied, I say anyone who is born after 1758 can use this trick. All he has to do is change the number in step 5 appropriately... So if I want to calculate my age using this trick next year, I just add 1759 (if I plan to calculate after my birthday has passed) instead of 1758 in step 5. The problem here is that this trick wont work for people who are above 100 years old cos the hundredth place holds the number representing the number of times you eat outside. Try it!

Steps 2, 3 and 4 ensure that the number of times that you eat outside is shifted two places to the left by multiplying it with 100...

More to come if you enjoyed this...

Sunday, August 17, 2008

Synaptics Touchpad problem in Linux

I just got my laptop, my brand new DELL XPS M1530 preloaded with Windows Vista Home Edition. As soon as I opened it, I installed a partition manager and created revelant partitions to install Fedora. Now comes the part that had me confused for a whole 24 hour (no sleep).

Installating Fedora 9 was fine with the touchpad functioning except for the tapping click functionality that all touchpads have inbuilt. However, that did not bother me cos I hate the tapping click option anyway. Installation over, system reboots into Fedora and BOOM! The touchpad is dead. When I tried to play with it a bit, it started running around the screen as if it had never been so happy to see me, making a right-click and a left-click wherever it liked to. May be it was playing the "catch me if you can" game?!

After working for 4 days to figure out the problem, I still failed to obtain a solution. Above all I did not even have a USB mouse and this made be go back to the stone age of GUI computing --- typing commands and using the tab key to navigate though the GUI elements.

Tonight may be the sleep fairy ignored me and spared me the entire night which is when I embarked on a kind of campaign to surely find the solution. After a strenuous 4 hour search starting at 11 PM local time, I started to understand the problem and finally found the solution.

The Solution:

I tried many suggestion posted on various forums: primarily LinuxQuestions.org, FedoraForum.org and UbuntuForums.org. However, for my case the answer lay in UbuntuForums.org which stated that I change the grub.conf to add another kernel option i8042.nomux=1 and it worked on reboot. I still have not figured out the purpose of this kernel option and how it works. But once I do get to know its purpose, I will put it up in here.

So for now, as far as my understanding goes, add the kernel option i8042.nomux=1

As information on the purpose of this kernel option would be really appreciated.