Broadway Legend Joined: 1/31/04
Rob & Craig,
Both the "Adults Smoking" and "Eddie Varley" threads are "stuck" on 32767 views though both have passed this number...
Did we blow a circuit with all this activity? Are the hamsters in the system rioting on their treadmills? Has RightSaidRick run off with you?
Curious minds would love to know!
Patrick Wilson Fans --New "UnOfficial Fan Site". Come check us out!
It's The Craigster's fault.
Everyone back, the site's gonna blow
and the first person who turns that commment into a sexual innuendo joke gets it deleted!
Yep... That was the maximum number for the data type I was using to track the views. We've graduated now from "SmallInt" to "MediumInt" for those keeping technical track.
We live in exciting times.
Ok.. the next person who turns this into geekspeak also gets it deleted
kidding Rob!
Broadway Legend Joined: 1/31/04
Rob,
And in Earth terms this means...
Patrick Wilson Fans --New "UnOfficial Fan Site". Come check us out!
Say ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh!
Broadway Legend Joined: 3/4/04
I actually understood that. *sob*
To put it simply, it means computers can't really count forever, beacon.
To make it a little more complicated, when you program a computer, a number isn't just a number. It's a type of number- a data type. Different types of numbers take up different amounts of space and are handled differently by the computer. I guess the limit of "smallints" that the computer could handle was 32767. By changing the data type to "medint," Rob made the computer able to count higher.
Feel free to tell me I'm an idiot if I put that incorrectly, Rob. My programming experience is minimal at best. :)
The sad thing is, I actually do know the significance of 32767 and what a small_int is. Damn Computer Science.
Broadway Legend Joined: 3/4/04
I only learned C, but I think I have the general idea. *twitch* Not that *twitch* Comp Sci *twitch* scarred me for life or anything.
*twitch*
*twitch*
But the question remains: "will you return the 32,767 posts to the South Korean who finished third?"
Zoles, you must change that icon. I'm at work and it's very dangerous for me to be looking at that.
Have you seen your own icon, Matt? Talk about dangerous......
same right back at you.
It could be the new motto:
32,767, measure you're life in posts :P
Oh God I am scared!! I actually understood all the geek speak!
NOOOOOOOOOOOOOOO!
Broadway Legend Joined: 5/7/04
So why 32767? Seems kinda random.
Broadway Legend Joined: 1/31/04
Rob and Craig,
Mominator's right...what is the next magic number?
We can set it as a goal on the "Adults Smoking" thread. LOL!
Patrick Wilson Fans --New "UnOfficial Fan Site". Come check us out!
We've broken through...there are now more 'hits' on the adult thread....
What's our new limit??
Woo Hoo!! A new goal! Unless they give us something beyon Legend.
So why 32767? Seems kinda random.
It's a Computer Science thing. It's how numbers (and information in general) is stored in your computer.
Forgive me if some of this is wrong (it's been awhile since I studied this):
Basic integers (or ints) are stored as a 16-digit binary number in your computer, a.k.a 16 bits. For example:
0000000000000010 = the decimal number 2
0000000000001010 = the decimal number 10
0100000000000000 = the decimal number 16384
The first digit in the 16-digit string signifies if the number is positive (0) or negative (1).
So, if you're only dealing with positive numbers (such as a count of number of reads, which we're doing here), you only have 15 binary digits to play with: 0 101010101010101 (one 0 followed by 15 binary digits), where the first digit (the separate 0) means the entire number is positive.
So 2^15 = 32768
ie. 32768 possibilities of making a 15-digit number of 1's and 0's.
Another way of seeing it is: you have 16 binary digits. So you can make:
2^16 = 65536 different numbers
But you have to divide in half, because half your numbers are positive, and half are negative:
65536 / 2 = 32768 positive numbers
Finally, you have to minus 1, because the number 0111111111111111 represents positive infinity (this is the iffy part I don't remember - is this true? Someone correct me if it's not).
So really, you only have 32768 - 1 = 32767 positive numbers that can be made from 16 binary digits.
I'm guessing this is now fixed because, instead of using int (basic integers), he can use a "long" (larger integers) or something. Thus the count can now be much, much higher if need be.
Any questions?
Broadway Legend Joined: 12/28/03
My head hurts.
owww, mine too.
thanks, though.
Broadway Legend Joined: 6/25/03
?
My head now hurts as well... It's a 'mediumint' now which should get us up to 16,777,215, since we're using unsigned (all positive) values.
Videos