geeky holiday humor
Oct. 19th, 2005 12:04 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Found on the net...
Question:
Why do computer programmers confuse Hallowe'en and Christmas?
Answer:
Because oct31=dec25.
Question:
Why do computer programmers confuse Hallowe'en and Christmas?
Answer:
Because oct31=dec25.
no subject
Date: 2005-10-19 04:23 pm (UTC)So, I'm at a loss. Can you please translate? :)
no subject
Date: 2005-10-19 04:39 pm (UTC)hex is the same, with 16 numbers per digit, 0-9, A=10, F=15.
dec is decimal, at its latin root: dec = 10. its the number system we normally use.
so where oct 31 = 3*8 + 1 = 25.
dec 25 = 2 * 10 + 5 = 25.
oct and hex are standards in computers, especially at the hardware level, because it makes dealing with "binary" (where instead of 10, 8, or 16, each digit represents 2) much easier.
i can go hex2A instead of 00101010 and its much easier to see what's happening for us with experience at these things.
no subject
Date: 2005-10-19 05:50 pm (UTC)no subject
Date: 2005-10-19 04:42 pm (UTC)In the decimal number system (what we normally use), the first number (on the right!) is how many ones we have, the second is how many tens, and the third is how many hundreds. So with 347, we have 7 ones plus 4 tens plus 3 hundreds.
With octal (also called base 8), we still have ones on the far right, then eights (instead of tens), then sixty-fours (instead of hundreds). So oct245 would be 5 + 4x8 + 2x64, or 165 in decimal.
So oct31 is three eights plus one, or twenty-five in decimal.
no subject
Date: 2005-10-19 05:56 pm (UTC)no subject
Date: 2005-10-19 06:13 pm (UTC)no subject
Date: 2005-10-20 03:16 am (UTC)(of course you do realize that I've got a compulsion to share that joke with my up-and-coming-geek of a son... hopefully I'll forget it by tomorrow morning...)