Page 1 of 1

Happy 101010 (/epic triadic binary lesson)

Posted: Sun Oct 10, 2010 7:49 am
by Isaac
It's 10 - 10 - 10! I'm celebrating by staying in my room and studying for a test on Monday... Viva 101010!!

Posted: Sun Oct 10, 2010 7:52 am
by Heretic
Malformed binary. Your binary code must be divisible by 8 :lol:

Posted: Sun Oct 10, 2010 8:07 am
by Isaac
Hahha! Oh man, I would get the time code \"October 10, 2010 10:10am\" but I've now got to be somewhere by 10 (central time)!

Re:

Posted: Sun Oct 10, 2010 8:32 am
by Krom
Heretic wrote:Malformed binary. Your binary code is must be divisible by 8 :lol:
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. :P

Posted: Sun Oct 10, 2010 9:45 am
by Heretic
I was thinking more along lines as below.
Computers 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.
http://en.wikipedia.org/wiki/Bit

Posted: Sun Oct 10, 2010 10:04 am
by Alter-Fox
And DNA \"words\" are in groups of 3 base pairs.
But they're called \"codons\".
And many of you probably know this already.

Posted: Sun Oct 10, 2010 12:46 pm
by Sickone
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\"

Re:

Posted: Sun Oct 10, 2010 1:24 pm
by snoopy
Yay 101010 day!

Re:

Posted: Sun Oct 10, 2010 2:20 pm
by Ferno
Heretic wrote:Malformed binary. Your binary code must be divisible by 8 :lol:
binary is base two.

http://mathworld.wolfram.com/Binary.html

/slap

Re:

Posted: Sun Oct 10, 2010 3:25 pm
by Heretic
Heretic wrote:I was thinking more along lines as below.
Computers 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.
http://en.wikipedia.org/wiki/Bit
/dick

Posted: Sun Oct 10, 2010 5:42 pm
by Sirius
Not being grouped into a full word doesn't make the binary \"malformed\", though. It's just numbers.

Posted: Mon Oct 11, 2010 12:41 am
by Jeff250
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.

Posted: Mon Oct 11, 2010 5:38 am
by Heretic
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 *

Posted: Mon Oct 11, 2010 5:44 am
by Isaac
ooOOOOOh! :o

Posted: Mon Oct 11, 2010 8:14 am
by AlphaDoG
LOL@ the error message.

\"Error: Malformed binary. Your binary code is must be divisible by 8.\"

Re:

Posted: Mon Oct 11, 2010 12:57 pm
by Foil
Heretic wrote:Ok since you are not getting the joke...
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?

On the other hand, what you don't seem to get is that '101010' is perfectly valid binary.
Heretic wrote:Yes that site is wrong because that it actually converts to *
Wrong. The site is quite correct.

101010 = 00101010 = 42 = The ASCII code for '*'.

Posted: Mon Oct 11, 2010 1:35 pm
by Heretic
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.

Posted: Mon Oct 11, 2010 2:32 pm
by Isaac
Image

Re:

Posted: Mon Oct 11, 2010 3:21 pm
by Foil
Heretic, you need to stop making assumptions. To wit:
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?
Yes, I did. Why are you assuming otherwise?
Heretic wrote:You add 2 zeros to get yours.
No, I didn't. Why are you assuming otherwise?

Entering '101010', you get the error message, but you also get the '*' result (which again, is quite correct).
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.
Yes, I did. [...Do I need to say it again?]

I didn't mention it, simply because it's one of the more overused sci-fi quips.

Re:

Posted: Mon Oct 11, 2010 3:47 pm
by Heretic
Foil wrote:Heretic, you need to stop making assumptions. To wit:
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?
Yes, I did. Why are you assuming otherwise?
Heretic wrote:You add 2 zeros to get yours.
No, I didn't. Why are you assuming otherwise?

Entering '101010', you get the error message, but you also get the '*' result (which again, is quite correct).
Care to lie again

Image

I see no * in the image. I also doubt Dog seen a * when he typed in 101010

Re:

Posted: Mon Oct 11, 2010 3:51 pm
by Jeff250
Heretic wrote:Malformed binary. Your binary code must be divisible by 8 :lol:
If a binary number is divisible by 8, that just means that it's three least significant bits are 0 (since 2^3 == 8). In other words, it's any binary number of the form

*000,

where * is zero or more 0's or 1's.

Posted: Mon Oct 11, 2010 3:54 pm
by Krom
There are only 10 kinds of people in this world: those that understand binary and those that don't.

Posted: Mon Oct 11, 2010 3:54 pm
by Jeff250
Also, ASCII characters are technically 7-bits. ;)

Re:

Posted: Mon Oct 11, 2010 3:56 pm
by Foil
Heretic wrote:Care to lie again
...
I see no * in the image. I also doubt Dog seen a * when he typed in 101010
Here you go again making assumptions.

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. :roll:



P.S. "seen"?

Posted: Mon Oct 11, 2010 4:03 pm
by Spidey
I don’t see any “*” but then again, I am using the bane of modern computing. (IE)

Posted: Mon Oct 11, 2010 4:08 pm
by Ferno
Image

my god, it's full of stars

Re:

Posted: Mon Oct 11, 2010 4:13 pm
by Heretic
Krom wrote:There are only 10 kinds of people in this world: those that understand binary and those that don't.
I thought it was

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.

Re:

Posted: Mon Oct 11, 2010 4:15 pm
by Foil
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
Ha! I like that one. I've never seen it before.

Re:

Posted: Mon Oct 18, 2010 11:42 am
by TIGERassault
Fun fact: it was my birthday then!

Yesh, I was 20 on 10/10/2010!


Dan Browne could write a book on me!
Krom wrote:There are only 10 kinds of people in this world: those that understand binary and those that don't.
Why do programmers keep mixing up Halloween with Christmas?


Because Oct 31 is Dec 25!



...
Okay, I'm leaving, I'm leaving! No need to get violent!

Posted: Mon Oct 18, 2010 7:23 pm
by SirWinner
Heretic wrote:Malformed binary. Your binary code must be divisible by 8 :lol:
Since when is BINARY ( Base 2 ) OCTAL ( Base 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:

Posted: Tue Oct 19, 2010 1:14 am
by Sirius
TIGERassault wrote:Because Oct 31 is Dec 25!
Heh, clever. (Whoever first spotted it anyway, probably a long time ago...)