A Floppy Disk is Technically a Letter

  Рет қаралды 3,948

Computing: the Details

Computing: the Details

Күн бұрын

It turns out that, in the UK, a floppy disk is technically a letter that you can send with Royal Mail with just a first class stamp stuck to the front. So that's how I'm going to use up all my old stamps before they become invalid and are replaced with the barcode stamps.

Пікірлер: 14
@IIAOPSW
@IIAOPSW 9 ай бұрын
Never underestimate the throughput of a floppy disk in the royal mail.
@Bobbias
@Bobbias Жыл бұрын
I like the write once read never 1 liner at the end. (Though to be fair, Ruby is one of the languages I've never dabbled in)
@5omebody
@5omebody Жыл бұрын
i mean... in this case it's "read never" only because it lacks formatting ... but yeah ruby _does_ like its abbreviated naming. to be fair, it's only to be expected from a language largely inspired by perl...
@TheLukemcdaniel
@TheLukemcdaniel 9 ай бұрын
In the US, our "forever" stamps cover the first ounce. That's it. No other restriction, so we can do this too. In fact, a 5.25" floppy roughly weighs ~12 grams/~.72 oz. An 8" floppy weighs about 2oz(at least I think. I've only found one "source" and it's google's additional info). So, i guess you could send it with 2 stamps.
@viquezug3936
@viquezug3936 9 ай бұрын
You got your conversion wrong
@DrorF
@DrorF Жыл бұрын
Now give us an explanation of how that command works 😁
@globalincident694
@globalincident694 Жыл бұрын
It's in Ruby. The puts ("put string") command sends its argument to the output, which I'm assuming in this case is being piped to a file elsewhere. The argument is on the next line, so this is technically a two line program. The data on the floppy is in the variable recov, which is split into lines, then the map command is called with the strip function to remove the newline character from each line. The map function is called again, and uses split to split each line after every space character, and then uses an index to remove the space character from each result. At this point we have an array of lines, with each line an array of 4 digit hex codes; the flatten function concatenates the lines, converting this to just a single array of 4 digit hex codes. After this point, we use the map and flatten functions again to split each 4 digit hex code into two 2 digit hex codes (the last hex code in the array had only 2 digits to start with, so no need to do anything to that.) Then finally we map each pair of digits onto a character (specified as a byte), join every character together into a string, then decode the result from base 64 to produce a zip file. Unzipping and further steps are completed manually by the human, outside of the code.
Жыл бұрын
Next do an Enigma ciphertext with enough data and redundancy to be decoded unambiguously. For example, the entire script of Bee Movie.
@SweetEiche
@SweetEiche 3 ай бұрын
i got curious and checked the regulations in my home country (Germany) sadly they're much more restrictive, with a minimum width/height, as well as the requirement that letters be at least 1.4x as wide as they're tall you could Maybe still send a floppy if you put it in an envelope, but that's no fun
@JungleLibrary
@JungleLibrary Жыл бұрын
Use the stamps as legal tender! Haha
@miguelguthridge
@miguelguthridge Жыл бұрын
Oh that is spectacular
@enfys02
@enfys02 2 жыл бұрын
Haha, brill stuff :)
@NithinJune
@NithinJune Жыл бұрын
very cool
echo is broken: a follow-up video
7:14
Computing: the Details
Рет қаралды 11 М.
bash's echo command is broken
9:14
Computing: the Details
Рет қаралды 81 М.
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 27 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 211 МЛН
How I made a compiler that you can Fax your code to
14:48
Computing: the Details
Рет қаралды 11 М.
Why my Word document terminal emulator sucks
9:56
Computing: the Details
Рет қаралды 3,5 М.
Bevy: A quick introduction
7:20
Isaac Corbrey
Рет қаралды 13 М.
Solving Advent of Code with a ZX Spectrum (2022, Part 1: days 1 to 5)
12:41
Computing: the Details
Рет қаралды 13 М.
terminal.doc: A word document that's a terminal emulator
8:58
Computing: the Details
Рет қаралды 2,6 М.
I built a laptop for EMF Camp 2024
7:48
Computing: the Details
Рет қаралды 1,9 М.
ZX Spectrum Printing Banners Like it's 1982 (kinda)
6:21
Computing: the Details
Рет қаралды 1,5 М.
A very silly CPU monitor
4:22
Computing: the Details
Рет қаралды 177 М.
Call the compiler, fax it your code
2:18
Computing: the Details
Рет қаралды 70 М.
I found a ZX Spectrum demo in a box of old tapes.
5:25
Computing: the Details
Рет қаралды 818
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 27 МЛН