Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,726 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,857 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Speaking binary

2 Pages V  1 2 >  
Reply to this topicStart new topic

Speaking binary

tygerberg
post 12 Jul, 2008 - 11:03 AM
Post #1


D.I.C Head

Group Icon
Joined: 14 Dec, 2006
Posts: 114



Dream Kudos: 25
My Contributions


Hi
Does anyone know of methods of learning binary quickly? I know of counting binary on your fingers. But to like to be able to quickly convert the binary into text and vice-versa using your brain power lol and not some app.

Basically to say this:

"I can read binary!"

and do that:

01001001 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100001

It might seem daunting or silly, but it's kinda cool and not everyone can do it.
User is offlineProfile CardPM

Go to the top of the page


AdamSpeight2008
post 12 Jul, 2008 - 11:35 AM
Post #2


D.I.C Addict

Group Icon
Joined: 29 May, 2008
Posts: 506



Thanked 34 times

Dream Kudos: 1900
My Contributions


QUOTE(tygerberg @ 12 Jul, 2008 - 07:03 PM) *

Hi
Does anyone know of methods of learning binary quickly? I know of counting binary on your fingers. But to like to be able to quickly convert the binary into text and vice-versa using your brain power lol and not some app.

Basically to say this:

"I can read binary!"

and do that:

01001001 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100001

It might seem daunting or silly, but it's kinda cool and not everyone can do it.



0100 4*16=64 1001 9 =64+9=73 I
0010 2*16=32 0000 0 = 32 + 0 []
0110 6*16=96 0011 3 = 96+3=99 c
0110 6*16=96 0001 1 = 96+1=97 a
0110 6*16=96 1110 14 = 96+14=110 n
0010 2*16=32 0000 0 [ ]
0111 7*16=112 0010 2 =112+2= 114 r
0110 6*16=64 0101 5 = 64+5=69 E
0110 6*16=64 0001 1 = 64+1=65 A
0110 6*16=64 0100 4 = 64+4=68 D
0010 2*16=32 0000 0 = 32+0 []
0110 6*16=96 0010 2 = 96+2=98 b
0110 6*16=96 1001 9 = 96+9=105 i
0110 6*16=96 1110 14 = 96+14=110 n
0110 6*16=96 0001 1 96+1=97 a
0111 7*16=112 0010 2 112+2=114 r
0111 7*16=112 1001 9 112+9=121 y
0010 2*16=32 0001 1 !
I can rEAD binary (more precisely)

32 = space
33 = !
65 - 90 =A to Z (or 64 + Alphabet position)
97 - 122 = a to z (or 96 + Alphabet position)

This post has been edited by AdamSpeight2008: 12 Jul, 2008 - 11:36 AM
User is offlineProfile CardPM

Go to the top of the page

born2c0de
post 13 Jul, 2008 - 06:18 AM
Post #3


printf("I'm a %XR",195936478);

Group Icon
Joined: 26 Nov, 2004
Posts: 3,757



Thanked 20 times

Dream Kudos: 2800

Expert In: C, C++, VB, VB.NET, C#, Java, x86 Assembly, Win32 API, Reversing

My Contributions


QUOTE
65 - 90 =A to Z (or 64 + Alphabet position)
97 - 122 = a to z (or 96 + Alphabet position)


It should be:
65 - 90 = A to Z ( or 65 + Alphabet position)
97-122 = a to z ( or 97 + Alphabet position)

We're talking binary here, 'alphabet position' can be 0.
wink2.gif
User is offlineProfile CardPM

Go to the top of the page

baavgai
post 13 Jul, 2008 - 07:22 AM
Post #4


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,582



Thanked 44 times

Dream Kudos: 325

Expert In: C, C++, Java, C#, ASP.NET, PHP, Perl, Python, Oracle, SQL Server, MySql, HTML, JavaScript, Lua

My Contributions


Well since we're talk binary...
A == 01000001
a == 01100001

Notice the difference? The most effecient way to upper case a lower case letter is "ascii AND 11011111", to lower "ascii OR 00100000" Knowing this, you can ignore case by just ignoring that bit.

For visually reading ascii letters, you actually only need to consider 5 bits. And, better yet, A starts at one. Knowing this, it shouldn't be too difficult to do in your head if you really wanted to.

And I thought my binary clock was geeky. tongue.gif
User is online!Profile CardPM

Go to the top of the page

AdamSpeight2008
post 13 Jul, 2008 - 10:48 AM
Post #5


D.I.C Addict

Group Icon
Joined: 29 May, 2008
Posts: 506



Thanked 34 times

Dream Kudos: 1900
My Contributions


QUOTE(born2c0de @ 13 Jul, 2008 - 02:18 PM) *

QUOTE
65 - 90 =A to Z (or 64 + Alphabet position)
97 - 122 = a to z (or 96 + Alphabet position)


It should be:
65 - 90 = A to Z ( or 65 + Alphabet position)
97-122 = a to z ( or 97 + Alphabet position)

We're talking binary here, 'alphabet position' can be 0.
wink2.gif


I was thinking 1st Letter of Alphabet = A
A=1
B=2
etc
User is offlineProfile CardPM

Go to the top of the page

NickDMax
post 18 Jul, 2008 - 08:16 PM
Post #6


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,756



Thanked 34 times

Dream Kudos: 525
My Contributions


Well first of we are not talking about reading binary. Since binary are numbers and not letters. We are talking about decoding binary ascii.

If I were to work on this task I would approach it in three steps:

Step 1, convert a nibble to hex.
Step 2, using step 1, convert a byte to hex
Step 3, learn to recognize ASCII characters in HEX which for me is already mostly done.
User is offlineProfile CardPM

Go to the top of the page

LowWaterMark
post 12 Aug, 2008 - 01:25 AM
Post #7


D.I.C Head

**
Joined: 30 Jul, 2008
Posts: 88


My Contributions


Better yet, how do you pronounce binary. If I found $125, I'd say, "I found one hundred twenty-five dollars". In binary world, if I found $1111101, I wouldn't say, "I found one one one one one one zero one dollars". Or would I?

This is so important.
User is offlineProfile CardPM

Go to the top of the page

NickDMax
post 12 Aug, 2008 - 06:30 PM
Post #8


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,756



Thanked 34 times

Dream Kudos: 525
My Contributions


Well you could say: "I found one one one one one zero one dollars", or you could say, "I found one 64, one 32, one 16, one 8, one 4, one 1 dollars."

Generally the first is the norm. Not really sure why...
User is offlineProfile CardPM

Go to the top of the page

no2pencil
post 12 Aug, 2008 - 06:32 PM
Post #9


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 4,950



Thanked 27 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


QUOTE(AdamSpeight2008 @ 13 Jul, 2008 - 01:48 PM) *

I was thinking 1st Letter of Alphabet = A
A=1
B=2
etc

There's no 2 in binary! ** Epic Fail **

QUOTE

> Bender: It was horrible! A nightmare!
> Fry: What happened?
> Bender: I dreamt I was in a place of 0's and 1's and all of a sudden...
> I saw a two *whimper*
> Fry: It's ok Bender, don't worry. There's no such thing as 2's.
User is online!Profile CardPM

Go to the top of the page

NickDMax
post 12 Aug, 2008 - 09:33 PM
Post #10


2B||!2B

Group Icon
Joined: 18 Feb, 2007
Posts: 2,756



Thanked 34 times

Dream Kudos: 525
My Contributions


QUOTE
Calculon: Have you got an extra GOTO 10 line?
User is offlineProfile CardPM

Go to the top of the page

LowWaterMark
post 13 Aug, 2008 - 01:00 AM
Post #11


D.I.C Head

**
Joined: 30 Jul, 2008
Posts: 88


My Contributions


QUOTE
"I found one one one one one zero one dollars" . . . is the norm. Not really sure why. . .
as per NickDMax

Why is this the norm? In base ten we have placeholders in the English language to let us know if we're in the 10^4, 10^3 10^2 column, or whatever. You know, ten-thousand, thousand, hundred . . .

What do creatures that speak base two do? There are lots of tribal cultures that use base 5 (five fingers - makes sense). I wonder how they count?
User is offlineProfile CardPM

Go to the top of the page

1lacca
post 13 Aug, 2008 - 02:56 AM
Post #12


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,724



Thanked 9 times
My Contributions


But ASCII is sooo last century...
User is offlineProfile CardPM

Go to the top of the page

2 Pages V  1 2 >
Fast ReplyReply to this topicStart new topic
Time is now: 9/8/08 10:01AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month