Thursday, September 27, 2007

Would you like to know if your mobile is original or not ?????

Press the following on your mobile*#06# and the-international mobile equipment identity number appears. Then check the 7th and 8th numbers:


1

2

3

4

5

6

7 th

8 th

9

10

11

12

13

14

15

Phone serial no.

x

x

x

x

x

x

?

?

x

x

x

x

x

x

x


If the Seventh & Eighth digits are 02 or 20 this means your cell phone was assembled in Emirates which is very Bad quality

If the Seventh & Eighth digits are 08
or 80 this means your cell phone was manufactured in Germany which is fair quality

If the Seventh & Eighth digits are 01 or 10 this means your cell phone was manufactured in Finland which is very Good

If the Seventh & Eighth digits are 00 this means your cell phone was manufactured in original factory which is the best Mobile Quality


If the Seventh & Eighth digits are 13 this means your cell phone was assembled in Azerbaijan which is very Bad quality and also dangerous for your health
.

Sunday, September 23, 2007

Determining if an integer is a power of 2

Ever wondered how to find if an integer is a power of 2 in a single statement,
this is a piece of code 4 u...

unsigned int v; // we want to see if v is a power of 2
bool f; // the result goes here

f = (v & (v - 1)) == 0;

Note that 0 is incorrectly considered a power of 2 here. To remedy this, use:

f = !(v & (v - 1)) && v;

This is how it works...

Case 1: Let v = 10 ,v - 1 = 9

Lets test v & (v-1)==0

v = 1010, v = 1001

1010 (v)

& 1001 (v-1)
------
1000 v & (v-1)(8 in decimal form)
------
v & (v -1) == 0 -> 8 (which is treated as true)== 0(false)

Hence, false is returned and 10 not a power of two.

Considering the alternative

!(v & (v - 1)) && v

!(8) && 10 -> 0 && 1 -> 0(Remember, any number greater than 0 in C is considered
as true and its negation is false i.e. 0 as '!' is
a logical operator.)

Case 2: Let v = 8 ,v - 1 = 7

Lets consider v & (v-1)==0

v = 1000, v = 0111

1000 (v)
& 0111 (v-1)
------
0000 v & (v-1)(0 in decimal form)
------
v & (v -1) == 0 gives 0 == 0 Returns true

Hence 8 is a power of two.

Considering the alternative

!(v & (v - 1)) && v

!(0) && 8 -> 1(true) && 1 (true)-> 1(true)(Remember, any number greater than 0 in C considered as true and its negation is false i.e. 0 as '!' is a logical operator.)

Hence 8 is a power of 2.

Friday, September 21, 2007

A Small Funny Tutorial on Pointers from Stanford

Wednesday, September 19, 2007

Punctuation Matters!!!




...it really matters..isn't it???

Wednesday, September 05, 2007

Indian 'Thriller' - Chiranjeevi Song Getting World Wide Popularity

Well most of the people who either belong to Andhra Pradesh or ever heard of Tollywood know about Chiranjeevi, The Megastar. Well there is a movie of him called 'DONGA' released in late 80's in which there was a song whose video was copied from Micheal Jackson's 'Thriller'. You can check dis out here

And dis video in YouTube became so popular that it got
Views: 4,348,504 | Comments: 8990 | Favorited: 23000 times

Due to its popularity in YouTube, there came a subtitle version of it too...

Due to its increasing popularity, people started making their own videos of this very old telugu song imitating Chiranjeevi Dance Steps in it..

A Comedian Version of it..

Last but not the least, a group of people gave a small performance too based on dis..
Watch out for the cheer from the crowd..


I always wished Indian Cinema should get international recognition but never dis way ;-)

Tuesday, September 04, 2007

14 year old crashes his dad's new 50 grand car minutes after its bought

This is the story of an happy father and an over enthusiastic son. When happiness, love together encourages over enthusiasm, this is what going to happen



How Hard Disk Works???

Ever wondered who actually the read/write, Copy/Paste, Format operations are performed in the Hard Disk??? Check dis out..


Monday, September 03, 2007

RGV ki (D)AAG - Movie Review By Rajeev Masand

Check out dis video of Rajeev Masand in anger reviewing the movie RGV ki (D)AAG