homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam

The Geek Culture Forums


  New Poll  
my profile | directory login | | search | faq | forum home
  next oldest topic   next newest topic
» The Geek Culture Forums   » The Archives   » The Big Archives   » No! Not 0101011101101001011011100110111001101001011100000110010101100111!

 - UBBFriend: Email this page to someone!    
Author Topic: No! Not 0101011101101001011011100110111001101001011100000110010101100111!
synrg
Mini Geek
Member # 623

Rate Member
Icon 1 posted July 10, 2001 07:36      Profile for synrg   Author's Homepage     Send New Private Message       Edit/Delete Post 
Even the 10000101100001110010011011001100001110111011001001110011
would be less dull.
--
SynrG

Posts: 72 | From: Halifax, NS, Canada | Registered: Jan 2001  |  IP: Logged
DoctorWho

Gold Hearted SuperFan!
Member # 392

Member Rated:
5
Icon 6 posted July 10, 2001 10:55      Profile for DoctorWho     Send New Private Message       Edit/Delete Post 
Actually I prefer 101010

After all, it is the answer to life, the universe and everything.

------------------
CrawGator

"Insanity is the exception in individuals. In groups, parties, peoples, and times it is the rule."

- Friedrich Nietzsche (1844 - 1900)


"Facts, or what a man believes to be facts, are always delightful. Get your facts first, and then you can distort 'em as much as you can please."

- Mark Twain (1835 - 1910)


Posts: 1694 | From: The TARDIS | Registered: Apr 2000  |  IP: Logged
AgingAmigaoid
Mini Geek
Member # 764

Member Rated:
5
Icon 1 posted July 10, 2001 16:06      Profile for AgingAmigaoid     Send New Private Message       Edit/Delete Post 
But wouldn't 0101011101101001011011100110111001101001011100000110010101100111 be better than 01010010011001010110010001101101011011110110111001100100?

Posts: 83 | Registered: Apr 2001  |  IP: Logged
synrg
Mini Geek
Member # 623

Rate Member
Icon 1 posted July 11, 2001 05:25      Profile for synrg   Author's Homepage     Send New Private Message       Edit/Delete Post 
quote:
Originally posted by AgingAmigaoid:
But wouldn't 0101011101101001011011100110111001101001011100000110010101100111 be better than 01010010011001010110010001101101011011110110111001100100?

Well, corrupt sentient bits would probably feel right at home there, yes. 8)


Posts: 72 | From: Halifax, NS, Canada | Registered: Jan 2001  |  IP: Logged
Burnum
Discontinued


Icon 1 posted July 12, 2001 09:57            Edit/Delete Post 
Yes, but why does 0101011101101001011011100110111001101001011100000110010101100111 mean Winnipeg? What's so wrong with 0101011101101001011011100110111001101001011100000110010101100111?
IP: Logged
Greg Wooledge
Alpha Geek
Member # 165

Rate Member
Icon 1 posted July 13, 2001 05:12      Profile for Greg Wooledge   Author's Homepage     Send New Private Message       Edit/Delete Post 
quote:
Yes, but why does 0101011101101001011011100110111001101001011100000110010101100111 mean Winnipeg?

It's a base-2 rendering of the ASCII numbers corresponding to the letters of "Winnipeg", all crammed together without separators.

First, break it into octets:



  • 01010111
  • 01101001
  • 01101110
  • 01101110
  • 01101001
  • 01110000
  • 01100101
  • 01100111

Then take each of those numbers, which is in base 2 (binary), and convert it into the matching letter on the ASCII chart.

One simple way to do this in a Unix shell is to convert them to octal, then use echo '\NNN\NNN\NNN' for each of the octal values NNN. In bash, you'll have to use echo -e to force System V echo semantics. On a pure BSD system without bash I don't think you cant do it easily at all.

Converting the binary to octal is extremely simple. If you're lazy like me, you use a calculator like bc. But if you're a budding young geekling, you can do it in your head. Octal is base 8, which is 2 to the third power. This means that if you group the bits (binary digits) in triplets starting from the least significant bit, each triplet can be replaced by a single octal digit. (In hexadecimal (base 16) it's the same thing, but you group 4 bits at a time.)

So, 01010111 (our first number) is grouped into (01)(010)(111), since we start from the right. Converting each group to its octal digit, we get (1)(2)(7), or 127 base 8. (In C notation, we would write it 0127.) Then we use our handy Unix shell (or an ASCII table) to learn that 0127 is W. Repeat for each digit.

Advanced geeks will realize that you can also decode the binary into ASCII with a couple lines of perl. But that's a different lesson.


Posts: 256 | From: Lorain, OH, USA | Registered: Jan 2000  |  IP: Logged
AgingAmigaoid
Mini Geek
Member # 764

Member Rated:
5
Icon 1 posted July 13, 2001 18:56      Profile for AgingAmigaoid     Send New Private Message       Edit/Delete Post 
Wow! to think I just had to type
pipe strliteral b0101011101101001011011100110111001101001011100000110010101100111|translate a2e|console
To decode the binary, convert to EBCDIC and display on my console.

What I can't figure out is what synrg thinks is less dull!


Posts: 83 | Registered: Apr 2001  |  IP: Logged
kimagure
Highlie
Member # 135

Rate Member
Icon 11 posted July 13, 2001 19:32      Profile for kimagure   Author's Homepage     Send New Private Message       Edit/Delete Post 
HUH?
Posts: 588 | From: Houston, Texas, USA | Registered: Jan 2000  |  IP: Logged
ASM65816
SuperBlabberMouth!
Member # 712

Member Rated:
2
Icon 1 posted July 14, 2001 12:01      Profile for ASM65816   Author's Homepage     Send New Private Message       Edit/Delete Post 

/*
* 1997-2000 Metrowerks Corp.
*
* Questions and comments to:
*
*
*/

char place[] = "0101011101101001011011100110111001101001011100000110010101100111"
"* Even the 10000101100001110010011011001100001110111011001001110011"
"* But wouldn't 0101011101101001011011100110111001101001011100000110010101100111"
"* be better than 01010010011001010110010001101101011011110110111001100100 ?*";

#include

int main(void)
{
char *ch;
unsigned char ch_val;
printf ("whatever ....\n\n");
for (ch=place, ch_val=0; *ch; ch++) {
if (*ch == '*')
printf ("\n");
if (*ch == '0')
ch_val = 2*ch_val;
if (*ch == '1')
ch_val = 2*ch_val+1;
if (ch_val > 63) {
printf ("%c", ch_val);
ch_val = 0;
} /* end of if (ch_val) */
} /* end of for () */
printf("\n\nHello World, this is CodeWarrior!\n");

return 0;
}

... of course my assumption is that you're not using spaces, numbers, or punctuation.

Lift Code from Others ?! Why I'd NEVER do anything like THAT !

------------------
Once a proud programmer of Apple II's, he now spends his days and nights in cheap dives fraternizing with exotic dancers....


Posts: 1035 | From: Third rock from sun. | Registered: Mar 2001  |  IP: Logged
ASM65816
SuperBlabberMouth!
Member # 712

Member Rated:
2
Icon 4 posted July 14, 2001 12:09      Profile for ASM65816   Author's Homepage     Send New Private Message       Edit/Delete Post 
AAAiigh !!! It mangled the source !

Things missing:
/*
* 1997-2000 Metrowerks Corp.
*
* Questions and comments to:
* mailto:[email protected]
* http://www.metrowerks.com/
*/

#include

I'm sure any other problems are easily corrected. I would have posted Assembly code 18 years ago (6502 series).

------------------
Once a proud programmer of Apple II's, he now spends his days and nights in cheap dives fraternizing with exotic dancers....


Posts: 1035 | From: Third rock from sun. | Registered: Mar 2001  |  IP: Logged
lemko
Mini Geek
Member # 753

Rate Member
Icon 1 posted July 14, 2001 13:14      Profile for lemko   Author's Homepage     Send New Private Message       Edit/Delete Post 
My pathetic attempt at binary:
00100000 01011100 00100000 01011100
00100000 01011100 00100000 01011100
00100000 00001101 00100000 01011100
00100000 01011100 00100000 01011100
00100000 01011100 00100000 00001101
01111100 00100000 01111100 00100000
01111100 00100000 01111100 00100000
00001101 01111100 00100000 00100000
00100000 01111100 00100000 01111100
01011100 01111100 00001101 00100000
01011100 00100000 01011100 00100000
01011100 00100000 01011100 00100000
00001101 01111100 01011100 01111100
01011100 01111100 01011100 01111100
01011100 01111100 00001101

I don't currently have access to something that could translate binary to ascii for me, so I had to do this by hand. I'll be really surprised if it works.


Posts: 57 | From: New York City | Registered: Apr 2001  |  IP: Logged
ASM65816
SuperBlabberMouth!
Member # 712

Member Rated:
2
Icon 3 posted July 14, 2001 21:20      Profile for ASM65816   Author's Homepage     Send New Private Message       Edit/Delete Post 
lemko quote:

    My pathetic attempt at binary:
    00100000 01011100 00100000 01011100

Converting to Binary is easy....


  • Use a Text Editor that has an ASCII Table in Hexidecimal.
  • Convert from Hex to Binary Using: 0=0000 1=0001 2=0010 3=0011 ... A=1010 ... F=1111
  • To Get 7-bit ASCII, drop the Leading Zero.

Naturally, the "Best" way to do things is to spend 4 hours figuring out the "Easy" way, instead of Doing it the Hard way in 15 minutes.

------------------
Once a proud programmer of Apple II's, he now spends his days and nights in cheap dives fraternizing with exotic dancers....


Posts: 1035 | From: Third rock from sun. | Registered: Mar 2001  |  IP: Logged
Greg Wooledge
Alpha Geek
Member # 165

Rate Member
Icon 1 posted July 16, 2001 06:16      Profile for Greg Wooledge   Author's Homepage     Send New Private Message       Edit/Delete Post 
lemko: your message is all spaces, pipelines, backslashes and carriage returns. If that was your intent, then it worked....
Posts: 256 | From: Lorain, OH, USA | Registered: Jan 2000  |  IP: Logged
AgingAmigaoid
Mini Geek
Member # 764

Member Rated:
5
Icon 3 posted July 16, 2001 15:39      Profile for AgingAmigaoid     Send New Private Message       Edit/Delete Post 
quote:
What I can't figure out is what synrg thinks is less dull!

Oh!!! synrg posted an 8 letter word in 7 bit ASCII not a 7 letter in 8 bit ASCII!!

Whew! I feel much better, that was *really* bugging me!


Posts: 83 | Registered: Apr 2001  |  IP: Logged
Tau Zero
BlabberMouth, the Next Generation
Member # 195

Member Rated:
4
Icon 12 posted July 16, 2001 16:09      Profile for Tau Zero     Send New Private Message       Edit/Delete Post 
What, he didn't make it 9 bit (with parity)?  He's so cheap, he won't even throw in two bits.
Posts: 1772 | Registered: Jan 2000  |  IP: Logged
synrg
Mini Geek
Member # 623

Rate Member
Icon 1 posted July 17, 2001 07:42      Profile for synrg   Author's Homepage     Send New Private Message       Edit/Delete Post 
quote:
Originally posted by Tau Zero:
What, he didn't make it 9 bit (with parity)? He's so cheap, he won't even throw in two bits.

What can I say? I'm scotch.
--
SynrG


Posts: 72 | From: Halifax, NS, Canada | Registered: Jan 2001  |  IP: Logged
lemko
Mini Geek
Member # 753

Rate Member
Icon 1 posted July 17, 2001 08:52      Profile for lemko   Author's Homepage     Send New Private Message       Edit/Delete Post 
quote:
Originally posted by Greg Wooledge:
lemko: your message is all spaces, pipelines, backslashes and carriage returns. If that was your intent, then it worked....

That, in fact, was my intent:
 _ _ _ _
| | | | |
|   | |_|
|_|_|_|_|

I was trying to do something like that (I forget what it was now). Unfortunately, it didn't turn out right.


Posts: 57 | From: New York City | Registered: Apr 2001  |  IP: Logged
synrg
Mini Geek
Member # 623

Rate Member
Icon 1 posted July 17, 2001 10:09      Profile for synrg   Author's Homepage     Send New Private Message       Edit/Delete Post 
How about this? (HTML-enhanced for the binary-vision impaired.)


100100001000001001000010000010010011001001100100101000000100001
100100001000001001000010000010010011001001100100101000000100001
100100001000001001000010000001000001001001010000001000000100001
100100001000001001000010000001000001001001010000001000000100001
100100010010001001000010000001000001001001010000001000000100001
100100010010001001000010000001000001001001010000001000000100001
100100001000001001000010000001000001001001010000001000000100000
100100001000001001000010000001000001001001010000001000000100000
100100001000001001000010000010010011001001100100101000000100001
100100001000001001000010000010010011001001100100101000000100001

--
SynrG


Posts: 72 | From: Halifax, NS, Canada | Registered: Jan 2001  |  IP: Logged
-ct-
BlabberMouth, the Next Generation
Member # 209

Icon 4 posted July 17, 2001 12:06      Profile for -ct-   Author's Homepage     Send New Private Message       Edit/Delete Post 
in other words,

wazzzzzzzaaaaaaapppp!!!!


Posts: 1906 | From: nowhere, man | Registered: Jan 2000  |  IP: Logged
nemo
Discontinued


Icon 1 posted July 19, 2001 10:06            Edit/Delete Post 
perl -e 'print pack "B*","$ARGV[0]"' 0101011101101001011011100110111001101001011100000110010101100111
and
perl -e 'print unpack "B*","$ARGV[0]"'
Redmond
Are easiest I think. And certainly didn't take 4 hours to write. :-P

IP: Logged


All times are Eastern Time  
  New Poll   Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | Geek Culture Home Page

2015 Geek Culture

Powered by Infopop Corporation
UBB.classicTM 6.4.0



homeGeek CultureWebstoreeCards!Forums!Joy of Tech!AY2K!webcam