Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

how do you type this in binary

Name: Anonymous 2006-12-31 16:26

linmubotngui v

Name: Anonymous 2006-12-31 16:50 (sage)

00110100 00110011 00100000 00110110 01100100 00100000 00110111 00111000 00100000 00110111 00110000 00100000 00110110 00110010 00100000 00110110 01100100 00100000 00110011 00110001 00100000 00110011 00110001 00100000 00110101 00111001 00100000 00110110 01100100 00100000 00110011 00111001 00100000 00110011 00110000 00100000 00110110 00110010 00100000 00110110 01100100 00100000 00110110 00110100 00100000 00110011 00110001 00100000 00110110 00110001 00100000 00110101 00110011 00100000 00110100 00110010 00100000 00110011 00110010 00100000

Name: Anonymous 2006-12-31 16:53 (sage)

You forgot to specify encoding.

Name: Anonymous 2006-12-31 17:09

1111 1001 1111 1001 1001 1111 1001
1000 1001 1000 1010 1001 1001 1001
1111 1001 1000 1100 1111 1001 1001
1000 1001 1000 1010 0001 1001 1001
1000 1111 1111 1001 1111 1111 1111

Name: Anonymous 2007-01-01 0:10

/* Written by Anonymous
 * (c) Anonymous 2006
 * To be used under unix ^_^
 */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main(int argc, char *argv[]) {


    int dec, i, loop, wordloop, option = 0;
    FILE *fp;
   
    if(argc == 1) {
        printf("Usage: %s -[option] [string]\n   Options are: -d -f\n"
                "\n\t\t-d [string] Displays the letter of the binary value.\n"
                "\n\t\t-f [file] Reads from file and displays binary value.\n"
                "\nYou can use both options like -fd or -df\n", argv[0]);
        exit(1);
    }
    else if((argv[1][0] == '-')) { // checking for options..
        if(argv[1][1] == 'd')
            option += 1;
        else if(argv[1][1] == 'f')
            option += 2;
        if((argv[1][2] == 'f') && (option != 2))
            option += 2;
        else if((argv[1][2] == 'd') && (option != 1))
            option += 1;
        if(argc ==2)
            if(option > 1) {
            printf("No file given.\n");
            exit (1);
            }
            else if(option == 1){
                printf("No string given.\n");
                exit (1);
            }
    }
   
    switch(option) {
        case 0:
        case 1:
            for(wordloop=1; wordloop<argc; wordloop++)
                for(loop=0; loop<strlen(argv[wordloop]); loop++) {
       
                dec = (char)argv[wordloop][loop];
                   
                if((wordloop!=1) && (option == 1))
                    printf("%c:", argv[wordloop][loop]);
                if(!((wordloop==1) && (option == 1)))
                    for(i=7;i>=0;i--)
                        printf("%d", dec % 2), dec /= 2;
                printf(" ");
                }

                printf("\n");
                break;
        case 2:
        case 3:
            fp = fopen(argv[2], "r");
            if(fp == NULL) {
                printf("Can't open %s for reading.\n", argv[2]);
                exit (1);
            }
            while((dec = fgetc(fp)) != EOF) {
                if(dec != 10) {
                    if(option == 3) printf("%c:", dec);
                    for(i=7;i>=0;i--)
                        printf("%d", dec % 2), dec /= 2;
                    printf(" ");
                }
            }
            printf("\n");
            break;

        default:
            printf("Woot");
    }
    return 0;
}

Name: Anonymous 2007-01-01 0:39

hmm. interesting. im curious how the binary system works. im planning on becoming a binary programmer someday.

Name: Anonymous 2007-01-01 6:21

Actually I know someone who had to program shit in binary: he had to flip switches on some device or something to enter the opcodes for ASM. It sucked, he finally gave in and bought a keyboard or something.

Name: Anonymous 2007-01-01 6:32

Actually I know someone who had to program shit in Java: he had to use a fucked up over-engineered OO paradigm or something to do anything useful. It sucked, he finally gave in and used Ruby or something.

Name: Anonymous 2007-01-01 18:02

Actually i know someone who had to program shit in Whitespace: he had to use an unreadable source or something. It sucked, he finally gave up and broke his spacebar.

Name: Anonymous 2007-01-01 18:22

Actually I know someone who had to program shit in Python: he had to bang his tabulation key or something to enter the calls to methods. It sucked, he finally gave in and used Common Lisp or something.

Name: Anonymous 2007-01-01 19:38

Actually, I once had to program shit in binary:  I had to enter MIPS op codes manually as input into a simulation of a processor I made in a FPGA program.

Name: Anonymous 2007-01-01 22:15

Actually I know someone who had to program shit in Common Lisp: he had a hundred nested parens or something to print prime numbers. It sucked, he finally gave in and used Python or something.

Name: Anonymous 2007-01-02 7:50

0110110001101001011011100110110101110101011000100110111101110100011011100110011101110101011010010010000001110110

Here ya go.

Name: Anonymous 2007-01-02 13:47

It is 0, like the scumm you are!

Name: the lord of OMGWTF 2007-01-02 14:54

use l33t text for firefox, that'll mnake all more simple

Name: Anonymous 2007-01-02 14:58

>>15
use the spellchecker for firefox, that'll make all more simple

Name: the lord of OMGWTF 2007-01-02 15:06

i lol'd

Name: Anonymous 2007-01-02 18:06

It's too bad that od wouldn't do something like this.

Name: Anonymous 2007-01-03 0:43

heh od ..
Not all people have bash shells.
That's why i submitted that C code there..

Name: Anonymous 2007-01-03 3:25

not all people have c compilers.

Name: Anonymous 2007-01-03 7:35

>>20

There is a free C compiler for every modern platform.

Name: Anonymous 2007-01-03 9:40

>>21
there is a free bash shell for every modern platform, too.

Name: Anonymous 2007-01-04 0:51

PIME TARADOX

Name: Anonymous 2007-01-04 4:35

>>13
actually its 01110100011010000110100101110011

Name: anon 2007-01-04 20:32

All you have to do is find the ascii number for each char that you wish to convert. Then convert the ascii numbers into binary.

Name: Anonymous 2009-01-14 13:35

Satori

Name: Anonymous 2009-03-06 10:22

The first browser to   provide objects and   he said to   have invaded the.

Name: Anonymous 2011-02-03 1:56

Name: Sgt.Kabu㪡kimanힼ螚 2012-05-28 21:24

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2012-07-19 12:33

For the love of God
Just
Check
Them

Don't change these.
Name: Email:
Entire Thread Thread List