Happy 101010 (/epic triadic binary lesson)
Happy 101010 (/epic triadic binary lesson)
It's 10 - 10 - 10! I'm celebrating by staying in my room and studying for a test on Monday... Viva 101010!!
- Krom
- DBB Database Master
- Posts: 16125
- Joined: Sun Nov 29, 1998 3:01 am
- Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
- Contact:
Re:
Binary can be a string any length, the only limitation is it must be made of only zeroes and ones. 6 bits is just as valid as 8.Heretic wrote:Malformed binary. Your binary code is must be divisible by 8
-
- DBB Admiral
- Posts: 1449
- Joined: Wed Apr 14, 2010 6:54 pm
- Location: Why no Krom I didn't know you can have 100 characters in this box.
I was thinking more along lines as below.
http://en.wikipedia.org/wiki/BitComputers usually manipulate bits in groups of a fixed size, conventionally named \"words\". The number of bits in a word varies with the computer model; typically between 8 to 80 bits; or even more in some specialized machines.
-
- MIA Host/Admin
- Posts: 4265
- Joined: Fri Jan 01, 1999 3:01 am
- Location: Antelope Valley, Ca.
- Contact:
Actually I always arguer the point the an 'int' varies in size from processor to processor. A word is 16 bits.
In any case, since some of my early work was on 4 bit processors. I certainly don't judge someone's bianary by it's length... Just like a bunch of guys.
\"My binary is longer than your binary\"
In any case, since some of my early work was on 4 bit processors. I certainly don't judge someone's bianary by it's length... Just like a bunch of guys.
\"My binary is longer than your binary\"
Re:
binary is base two.Heretic wrote:Malformed binary. Your binary code must be divisible by 8
http://mathworld.wolfram.com/Binary.html
/slap
-
- DBB Admiral
- Posts: 1449
- Joined: Wed Apr 14, 2010 6:54 pm
- Location: Why no Krom I didn't know you can have 100 characters in this box.
Re:
/dickHeretic wrote:I was thinking more along lines as below.
http://en.wikipedia.org/wiki/BitComputers usually manipulate bits in groups of a fixed size, conventionally named "words". The number of bits in a word varies with the computer model; typically between 8 to 80 bits; or even more in some specialized machines.
Intel calls 16 bits a word on x86, but that's because they are trying to preserve decades of backwards compatibility in their ISA. It would make more sense to call a word 64 bits though on a new x86 processor. Newer ISA's like MIPS call a word 32 bits, although again this is probably a misnomer for the newer 64-bit MIPS processors. And of course you can always go back in time...
Trying to make sense of the size of C types like 'int' is even trickier, since this is determined by your ABI, which can vary by operating system and even compiler. For instance, on a 64-bit x86 processor, on Windows, 'long int' is 32 bits, but on the same machine running Linux, it's 64 bits. This is fun to deal with if you're trying to write cross-platform code. I think that the coolest feature of C99 are these uint64_t style types where you can specify the exact width of your integer.
Trying to make sense of the size of C types like 'int' is even trickier, since this is determined by your ABI, which can vary by operating system and even compiler. For instance, on a 64-bit x86 processor, on Windows, 'long int' is 32 bits, but on the same machine running Linux, it's 64 bits. This is fun to deal with if you're trying to write cross-platform code. I think that the coolest feature of C99 are these uint64_t style types where you can specify the exact width of your integer.
-
- DBB Admiral
- Posts: 1449
- Joined: Wed Apr 14, 2010 6:54 pm
- Location: Why no Krom I didn't know you can have 100 characters in this box.
Ok since you are not getting the joke I'll have to explain it better. A binary bit is a 1 or 0 when arranged in a in set of 8 you get value of 256 represented by 0-255. The same 8 bit in a ASCII chart and can be mapped to characters of text. Now go to this site and do a Binary conversion of 101010 and see what you get for text.
Yes that site is wrong because that it actually converts to *
Yes that site is wrong because that it actually converts to *
- Foil
- DBB Material Defender
- Posts: 4900
- Joined: Tue Nov 23, 2004 3:31 pm
- Location: Denver, Colorado, USA
- Contact:
Re:
No, we get it. Of course 6 bits doesn't make an 8-bit ASCII character code. But why would you even consider that, much less make an inane joke about it?Heretic wrote:Ok since you are not getting the joke...
On the other hand, what you don't seem to get is that '101010' is perfectly valid binary.
Wrong. The site is quite correct.Heretic wrote:Yes that site is wrong because that it actually converts to *
101010 = 00101010 = 42 = The ASCII code for '*'.
-
- DBB Admiral
- Posts: 1449
- Joined: Wed Apr 14, 2010 6:54 pm
- Location: Why no Krom I didn't know you can have 100 characters in this box.
So you didn't go to the site did you? You didn't put in the small 101010 did you? You add 2 zeros to get yours. Seems like dog went there and put it in and found the message. Of course it's a valid binary. 101010 is also the ultimate answer to the ultimate question of life, the universe, and everything. Bet you didn't even pick up on that either did you.
- Foil
- DBB Material Defender
- Posts: 4900
- Joined: Tue Nov 23, 2004 3:31 pm
- Location: Denver, Colorado, USA
- Contact:
Re:
Heretic, you need to stop making assumptions. To wit:
Entering '101010', you get the error message, but you also get the '*' result (which again, is quite correct).
I didn't mention it, simply because it's one of the more overused sci-fi quips.
Yes, I did. Why are you assuming otherwise?Heretic wrote:So you didn't go to the site did you?
Yes, I did. Why are you assuming otherwise?Heretic wrote:You didn't put in the small 101010 did you?
No, I didn't. Why are you assuming otherwise?Heretic wrote:You add 2 zeros to get yours.
Entering '101010', you get the error message, but you also get the '*' result (which again, is quite correct).
Yes, I did. [...Do I need to say it again?]Heretic wrote:101010 is also the ultimate answer to the ultimate question of life, the universe, and everything. Bet you didn't even pick up on that either did you.
I didn't mention it, simply because it's one of the more overused sci-fi quips.
-
- DBB Admiral
- Posts: 1449
- Joined: Wed Apr 14, 2010 6:54 pm
- Location: Why no Krom I didn't know you can have 100 characters in this box.
Re:
Care to lie againFoil wrote:Heretic, you need to stop making assumptions. To wit:
Yes, I did. Why are you assuming otherwise?Heretic wrote:So you didn't go to the site did you?
Yes, I did. Why are you assuming otherwise?Heretic wrote:You didn't put in the small 101010 did you?
No, I didn't. Why are you assuming otherwise?Heretic wrote:You add 2 zeros to get yours.
Entering '101010', you get the error message, but you also get the '*' result (which again, is quite correct).
I see no * in the image. I also doubt Dog seen a * when he typed in 101010
Re:
If a binary number is divisible by 8, that just means that it's three least significant bits are 0 (since 2^3 == . In other words, it's any binary number of the formHeretic wrote:Malformed binary. Your binary code must be divisible by 8
*000,
where * is zero or more 0's or 1's.
- Foil
- DBB Material Defender
- Posts: 4900
- Joined: Tue Nov 23, 2004 3:31 pm
- Location: Denver, Colorado, USA
- Contact:
Re:
Here you go again making assumptions.Heretic wrote:Care to lie again
...
I see no * in the image. I also doubt Dog seen a * when he typed in 101010
Two others see the translation, but because you didn't (psst, try any other browsers?), you think "it must be a lie"?
[That puts you up to five unfounded assumptions now...]
You're a frigging riot.
P.S. "seen"?
-
- DBB Admiral
- Posts: 1449
- Joined: Wed Apr 14, 2010 6:54 pm
- Location: Why no Krom I didn't know you can have 100 characters in this box.
Re:
I thought it wasKrom wrote:There are only 10 kinds of people in this world: those that understand binary and those that don't.
There are only 10 types of people in the world - those who understand ternary, those who don't, and those who mistake it for binary
I don't see in chrome and I don't see it in IE I don't see it in Firefox. So pray tell which browser you are using.
- Foil
- DBB Material Defender
- Posts: 4900
- Joined: Tue Nov 23, 2004 3:31 pm
- Location: Denver, Colorado, USA
- Contact:
Re:
Ha! I like that one. I've never seen it before.Heretic wrote:There are only 10 types of people in the world - those who understand ternary, those who don't, and those who mistake it for binary
- TIGERassault
- DBB Admiral
- Posts: 1600
- Joined: Tue Aug 10, 2004 3:33 pm
Re:
Fun fact: it was my birthday then!
Yesh, I was 20 on 10/10/2010!
Dan Browne could write a book on me!
Because Oct 31 is Dec 25!
...
Okay, I'm leaving, I'm leaving! No need to get violent!
Yesh, I was 20 on 10/10/2010!
Dan Browne could write a book on me!
Why do programmers keep mixing up Halloween with Christmas?Krom wrote:There are only 10 kinds of people in this world: those that understand binary and those that don't.
Because Oct 31 is Dec 25!
...
Okay, I'm leaving, I'm leaving! No need to get violent!
- SirWinner
- DBB Fleet Admiral
- Posts: 2700
- Joined: Thu Nov 05, 1998 12:01 pm
- Location: Oklahoma City, Oklahoma, United States of America
- Contact:
Since when is BINARY ( Base 2 ) OCTAL ( Base 8 )?Heretic wrote:Malformed binary. Your binary code must be divisible by 8
Have programmed computers for almost 33 years... nobody notified me of any changes to Binary since I first learned it in the late 1970's.
The date 10/10/10 should be represented at 10102010 which doesn't fit as Binary since there are only 2 possible digits of 0 and 1 in Base 2... Or did someone forget Y2K? (Year 2000)
Wheeeeeee!
Hope you had a great birthday!
Re:
Heh, clever. (Whoever first spotted it anyway, probably a long time ago...)TIGERassault wrote:Because Oct 31 is Dec 25!