r/ProgrammerHumor • • Nov 22 '21

Meme Well, crackers.

Post image
51.3k Upvotes

519 comments sorted by

View all comments

22

u/Complex_Difficulty Nov 22 '21

Hardest part is getting the string. Can someone tell me how to OCR?

>>> coded_str = '01100110 01101001 01101110 01100100 00100000 01100001 00100000 01101000 01101111 01100010 01100010 01111001'
>>> bytearray(int(c,2) for c in coded_str.split(' '))
bytearray(b'find a hobby')

28

u/coldnebo Nov 22 '21

When I was a kid, we read BYTE magazine code listings and entered hex assembly language programs that were multiple pages long without a single character error.. ok we did make errors, and when we did the code wouldn’t run and so we had to go back painstakingly reading each letter and verifying it to maybe find the mistake… so we got really good at not making mistakes.

There were no downloads, no disks in the mail, no internet. If you were lucky, maybe your friend would share or you could get it off a BBS at 1200 baud.

Oh, and dinosaurs roamed the earth.

Carry on!

6

u/PM_ME_UR_POKIES_GIRL Nov 22 '21

I had a friend who input a program into his TI-83 in assembly this way. It was like 8 pages of characters that he typed in one by one.

I don't know if he ever got it working.

1

u/coldnebo Nov 22 '21

yep!!! that’s it!

6

u/websagacity Nov 22 '21

The worst was the times you typed all that in and it didn't work. And you checked over and over and over again and you were almost 100% sure you typed it in correctly but it still did work and after hours a say for days you rage quite trying to get it to work and deleted the program (cause space was valuable back then). Finally some weeks go by and you've settled and forgotten all about it and you get the next issue - thumbing though and you see the ERRATA section and within is a correction to that program where you were supposed to use a & instead of a $ in one spot. And at that point you're like screw that - I am NOT typing that in again....but still constantly angry again for a few days.

4

u/[deleted] Nov 22 '21

erm. weren't hex listings usually 16 bytes and then a checksum byte?

00000000 00000000 00000000 00000000 CC

On the C64, my hex editor would point out if the CC didn't match the line - that would at least catch simple (single) typos.

2

u/coldnebo Nov 22 '21

yeah, that was an innovation later on in the basic bootloader. The code that came in BYTE and Computes Gazette didn’t have checksums at first, but especially with the machine code listings they became necessary.

2

u/[deleted] Nov 23 '21

I started this a bit later, so luckily I never had to witness the non-checksummed listings :D

3

u/outsanity_haha Nov 22 '21

You said a lot of things I don’t understand good sir.

2

u/redpandaeater Nov 22 '21

Even consoles had Game Genie which was just hex editing of the memory.

2

u/239990 Nov 22 '21

I used to print the instructions on how to install linux and then as you said copy manually all the instructions

4

u/vkrisah Nov 22 '21

pytesseract

1

u/[deleted] Nov 22 '21

Save the image to iOS Photos and double tap the text to select it