Happy 101010 (/epic triadic binary lesson)

Pyro Pilots Lounge. For all topics *not* covered in other DBB forums.

Moderators: fliptw, roid

Post Reply
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7737
Joined: Mon Aug 01, 2005 8:47 am
Location: 🍕

Happy 101010 (/epic triadic binary lesson)

Post by Isaac »

It's 10 - 10 - 10! I'm celebrating by staying in my room and studying for a test on Monday... Viva 101010!!
Heretic
DBB Admiral
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.

Post by Heretic »

Malformed binary. Your binary code must be divisible by 8 :lol:
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7737
Joined: Mon Aug 01, 2005 8:47 am
Location: 🍕

Post 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)!
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
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:

Post 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
Heretic
DBB Admiral
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.

Post 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
User avatar
Alter-Fox
The Feline Menace
Posts: 3164
Joined: Thu May 24, 2007 12:49 pm
Location: the realms of theory
Contact:

Post 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.
Sickone
MIA Host/Admin
MIA Host/Admin
Posts: 4265
Joined: Fri Jan 01, 1999 3:01 am
Location: Antelope Valley, Ca.
Contact:

Post 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\"
User avatar
snoopy
DBB Benefactor
DBB Benefactor
Posts: 4435
Joined: Thu Sep 02, 1999 2:01 am

Re:

Post by snoopy »

Yay 101010 day!
User avatar
Ferno
DBB Commie Anarchist Thug
DBB Commie Anarchist Thug
Posts: 15163
Joined: Fri Nov 20, 1998 3:01 am

Re:

Post 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
Heretic
DBB Admiral
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:

Post 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
User avatar
Sirius
DBB Master
DBB Master
Posts: 5616
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Post by Sirius »

Not being grouped into a full word doesn't make the binary \"malformed\", though. It's just numbers.
User avatar
Jeff250
DBB Master
DBB Master
Posts: 6539
Joined: Sun Sep 05, 1999 2:01 am
Location: ❄️❄️❄️

Post 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.
Heretic
DBB Admiral
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.

Post 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 *
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7737
Joined: Mon Aug 01, 2005 8:47 am
Location: 🍕

Post by Isaac »

ooOOOOOh! :o
User avatar
AlphaDoG
DBB Admiral
DBB Admiral
Posts: 1345
Joined: Sun Dec 25, 2005 10:35 am
Location: Mt. Vernon Illinois

Post by AlphaDoG »

LOL@ the error message.

\"Error: Malformed binary. Your binary code is must be divisible by 8.\"
It's never good to wake up in the shrubs naked, you either got way too drunk, or your azz is a werewolf.

Image
User avatar
Foil
DBB Material Defender
DBB Material Defender
Posts: 4900
Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:

Re:

Post 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 '*'.
Heretic
DBB Admiral
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.

Post 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.
User avatar
Isaac
DBB Artist
DBB Artist
Posts: 7737
Joined: Mon Aug 01, 2005 8:47 am
Location: 🍕

Post by Isaac »

Image
User avatar
Foil
DBB Material Defender
DBB Material Defender
Posts: 4900
Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:

Re:

Post 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.
Heretic
DBB Admiral
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:

Post 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
User avatar
Jeff250
DBB Master
DBB Master
Posts: 6539
Joined: Sun Sep 05, 1999 2:01 am
Location: ❄️❄️❄️

Re:

Post 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.
User avatar
Krom
DBB Database Master
DBB Database Master
Posts: 16138
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:

Post by Krom »

There are only 10 kinds of people in this world: those that understand binary and those that don't.
User avatar
Jeff250
DBB Master
DBB Master
Posts: 6539
Joined: Sun Sep 05, 1999 2:01 am
Location: ❄️❄️❄️

Post by Jeff250 »

Also, ASCII characters are technically 7-bits. ;)
User avatar
Foil
DBB Material Defender
DBB Material Defender
Posts: 4900
Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:

Re:

Post 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"?
User avatar
Spidey
DBB Grand Master
DBB Grand Master
Posts: 10808
Joined: Thu Jun 28, 2001 2:01 am
Location: Earth

Post by Spidey »

I don’t see any “*” but then again, I am using the bane of modern computing. (IE)
User avatar
Ferno
DBB Commie Anarchist Thug
DBB Commie Anarchist Thug
Posts: 15163
Joined: Fri Nov 20, 1998 3:01 am

Post by Ferno »

Image

my god, it's full of stars
Heretic
DBB Admiral
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:

Post 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.
User avatar
Foil
DBB Material Defender
DBB Material Defender
Posts: 4900
Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:

Re:

Post 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.
User avatar
TIGERassault
DBB Admiral
DBB Admiral
Posts: 1600
Joined: Tue Aug 10, 2004 3:33 pm

Re:

Post 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!
User avatar
SirWinner
DBB Fleet Admiral
DBB Fleet Admiral
Posts: 2700
Joined: Thu Nov 05, 1998 12:01 pm
Location: Oklahoma City, Oklahoma, United States of America
Contact:

Post 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!

:)
User avatar
Sirius
DBB Master
DBB Master
Posts: 5616
Joined: Fri May 28, 1999 2:01 am
Location: Bellevue, WA
Contact:

Re:

Post by Sirius »

TIGERassault wrote:Because Oct 31 is Dec 25!
Heh, clever. (Whoever first spotted it anyway, probably a long time ago...)
Post Reply