Techwarelabs Community

Techwarelabs Community (https://www.techwarelabs.com/community/index.php)
-   General Board (https://www.techwarelabs.com/community/forumdisplay.php?f=7)
-   -   01000010 01101001 01101110 01100001 01110010 01111 (https://www.techwarelabs.com/community/showthread.php?t=489)

Keefe 05-25-2002 12:22 AM

01000010 01101001 01101110 01100001 01110010 01111
 
01001001 01100110 00100000 01111001 01101111 01110101 00100000 01100011 01100001 01101110 00100000 01110010 01100101 01100001 01100100 00100000 01110100 01101000 01101001 01110011 00100000 01111001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01101111 01110110 01100101 01110010 00101101 01100101 01100100 01110101 01100011 01100001 01110100 01100101 01100100 00101110

vee_ess 05-25-2002 03:31 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
01101000 01100101 00100000 01101000 01100101 00100000 01101000 01100101 00101110 00100000 01001001 00100000 01100001 01101101 00100000 01110011 01101111 00100000 01100011 01101111 01101111 01101100

it says: he he he. I am so cool.

vee_ess 05-25-2002 03:37 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
01101000 01100101 01110010 01100101 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01100100 01100101 01100011 01101111 01100100 01100101 01110010 00101110

it says: here is the decoder.

use the decoder in qbasic which is provided in previous message.

vee_ess 05-25-2002 03:40 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
01101000 01100101 01110010 01100101 00100000 01101001 01110011 00100000 01110100 01101000 01100101 00100000 01100101 01101110 01100011 01101111 01100100 01100101 01110010 00101110

it says: here is the encoder.

which you also use in qbasic, and it self-explanatory...IM me for any questions.

Uranium-235 05-25-2002 11:36 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
01001000/01100101/01110010/01100101/00100000/01101001/01110011/00100000/01100001 01101110/01101111/01110100/01101000/01100101/01110010/00100000/01100101/01101110/01100011/01101111/01100100/01100101/01110010/00101110/00100000/01001001/00100000/01110111/01110010/01101111/01110100/01100101/00100000/01100001/00100000/01101100 01101111/01101110/01100111 00100000/01110100/01101001/01101101/01100101/00100000/01100001/01100111/01101111/00101110/00100000/01000001/01101100/01110100/01101000/01101111/01110101/01100111/01101000/00100000/01101001/01110100/00100000/01110101/01110011/01100101/01110011 00100000/01100110/01101111/01110010/01100101/01110111/01100001/01110010/01100100/00100000/01110011/01101100/01100001/01110011/01101000/01100101/01110011/00100000/01100010/01100101/01110100/01110111/01100101/01100101/01101110/00100000/01100101/01100001/01100011/01101000/00100000/01100010/01101001/01101110/00101101/01100001/01110011/01100011/01101001/01101001/00100000/01100100/01101001/01100111/01101001/01110100

it says: Here is another encoder. I wrote a long time ago. Although it uses foreward slashes between each bin-ascii digit
http://dynamic2.gamespy.com/~extreme/scripts/binary.php

Keefe 05-25-2002 11:39 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
01000110 01110101 01100011 01101011 00100000 01111001 01101111 01110101 00100001

Uranium-235 05-25-2002 11:42 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
oh yeah and the source

Code:

<?php
      //binary.php
      //binary, the way it should be (ascii -> binary str)
      //8-bit ONLY (characters)
      
switch($convert)
{
      case true:
      for($i = 0; $i < strlen($ascii); $i++)
            $strarr[$i] = ord(substr($ascii, $i, 1));      
      
      for($i = 0; $i < count($strarr); $i++)
            $binary_str_pre[$i] = dec_2_bin($strarr[$i]);
      
      $ascii_bin_str = implode("/", $binary_str_pre);
      
      ?><input type="text" size="150" value="<?php print($ascii_bin_str); ?>"><?php
      
      break;
      default:
?>

<title>ASCII to binary</title>
<form action="binary.php" method="post">
<input type="hidden" name="convert" value=true>
String to Convert: <input type="text" name="ascii" size=70><input type="submit">
</form>
<?php
      break;
}


function dec_2_bin($dec)
{
$base = 128;
for($i = 0; $i < 8; $i++)
{
      if ($dec >=  $base)
      {
            $dec -= $base;
            $bin .= '1';
      }
      else
            $bin .= '0';

      $base /= 2;
}
return $bin;
}





?>


vee_ess 05-26-2002 12:22 AM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
you guys aren't using ascii, are you? ??? I thought the prog was bugged but i did it by hand and that isn't ascii at all. :o

10101110 11001110 10100110 00000100 10000110 11001110 11000110 10010110 10010110 00000100 11110110 01001110 00000100 00101110 10100110 00110110 00110110 00000100 11001110 00101110 10000110 01110110 00100110 10000110 01001110 00100110

vee_ess 05-26-2002 12:33 AM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
I figured it out...I had the same problem. to encode ASCII, you must start out with the last bit and move over to the first one in each byte, but in you go through the bytes in order. what you link does is place each of the bytes backwards because you are most likely using one variable, check my prog...

FOR y = 8 TO 1 STEP -1
IF total >= (2 ^ (y - 1)) THEN
total = total - (2 ^ (y - 1))
byte$ = "1" + byte$
ELSE
byte$ = "0" + byte$
END IF
NEXT y
binary$ = binary$ + byte$

notice i put the "1" + byte$ instead of byte$ + "1": the 1 needs to go before the other ones in the byte because it is going in reverse order...

11000110 00010110 10000110 01110110 11100110 10100110 00000100 10011110 11110110 10101110 01001110 00000100 11000110 11110110 00100110 10100110 00000100 00001110 00110110 10100110 10000110 11001110 10100110

it says: change your code please

(cuz it will be more convenient than mine then...)

Uranium-235 05-26-2002 03:45 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
are you telling me to change mine? I don't see anything wrong with it

vee_ess 05-26-2002 04:06 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
10011110 11110110 10101110 00000100 10000110 10010110 01110110 00101110 00000100 10101110 11001110 10010110 01110110 00000100 10000010 11001010 11000010 10010010 10010010 10000100 10000100

it says: you aint usin ASCII!
it is usin the opposite of it... instead of 00010001 it says 10001000!!! ( i had tha same problem)

Uranium-235 05-26-2002 08:56 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
Actually, its the way I was taught binary.


let's take u

Code:

 0    1   1   1   0 1 0 1
  |    |    |   |    | |  | |
128 64 32 16  8 4 2 1 = 117 (ascii u)

Even though its read from left to right, the binary digits are calculated from right to left, kind of like IP addresses are done. It's the way I've been taught binary in highschool, and in my college basic computer class (required class - totally ez though, considering my expirence level ;) )

TheRogue 05-27-2002 02:24 AM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
you guys all go stuck keys or sommat?

Keefe 05-27-2002 02:27 AM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
Hey RogueProtoKol, you are kind of like price... he he

the artist formerly known as prince

SpyderBite 05-27-2002 09:47 AM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
Quick story..

My second year in college, my french professor was trying to convince me to major in English/French (double major) in order to translate English novels in France. I was a CIS major at the time.

After many skipped classes spent in the computer lab at SIU, my french professor decided to surprise me with a second quiz in addition to our normal weekly one. It was completely written in hexadecimal and binary.

I got an 85% on the test written in French and a 100% on the other. Needless to say my french professor gave up her quest to convert me to a liberal arts major. ;)

vee_ess 05-27-2002 10:12 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
Uranium-235, are you sure? you might be right...if you are i feel like an @$$. cuz that is the way i was taught in high, but your high school is probablly better than mine, i will guarantee it. just in case, i am makin an ammended version of my programs into one, and changing it so it is the way it should be.

you know what, you probably are right...why else would Keefe also do it like that? i apologize I was wrong again. i am on a streak.   this sux.

Keefe 05-27-2002 10:24 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
vee_ess...you have the coolest avatar!

vee_ess 05-27-2002 10:26 PM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
merci and hell yeah

Uranium-235 05-28-2002 12:37 AM

Re: 01000010 01101001 01101110 01100001 01110010 0
 
yeah it's a visiontek card.

I have the coolest sig though. hands down


All times are GMT -5. The time now is 05:08 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.