News for hackers. Stuff that matters.
Re:macOS menu bar app that shows how full the ISS urine tank... by hoten on Tuesday December 24, 2024 @11:57PM (#42506937)
If I remember correctly, the book addressed this. 26 division of a circle was too much for reliable determination of which sign the camera was pointing at, so 16 (hex) made the angles more workable.

If we're talking efficiency, I wonder why he didn't consider Morse code. Well I guess that's easy, even though it's faster it takes a skilled operator to read it in realtime, and he had little time to write any individual bit of information down (cumbersomely writing in sand is slow)

Re:macOS menu bar app that shows how full the ISS urine tank... by Thorrez on Wednesday December 25, 2024 @02:45AM (#42507537)
You can't represent 26 possibilities with a single hex digit. So it'll require 2 hex digits.

If you're going to require 2 digits, then that can be done with 2 decimal digits as well. So there's no need for hex, and no need for ascii tables.

However, if you need more than just the 26 letters, e.g. if you also need numbers and/or punctuation, then ascii might be useful, and hex might be useful to encode ascii into 2 digits.

Re:macOS menu bar app that shows how full the ISS urine tank... by vasco on Wednesday December 25, 2024 @03:16AM (#42507642)
If I send you this: 48697468657265

Why do I need to send it to you 2 digits at a time? It's valid hex that converts to ascii, only 1 symbol at a time, which is how he communicated.

He could've done it with just a card for 0 and another for 1 if he really wanted.

Re:macOS menu bar app that shows how full the ISS urine tank... by Thorrez on Wednesday December 25, 2024 @03:42AM (#42507717)
I didn't say it needs to be sent 2 digits at a time.

The points of my previous comment:

* Ascii is only needed if we need to encode things other than just letters (or if case matters).

* Hex is only better than decimal if hex allows the number of digits to be reduced. If we need to only encode 26 elements, then hex doesn't reduce the number of digits compared to decimal, so hex has no advantage over decimal in the 26-element case.

Using just 0 or 1 will increase the number of digits needed, so has a clear disadvantage compared to hex or decimal.

Re:macOS menu bar app that shows how full the ISS urine tank... by vasco on Wednesday December 25, 2024 @05:11AM (#42508004)
> Hex is only better than decimal if hex allows the number of digits to be reduced. If we need to only encode 26 elements, then hex doesn't reduce the number of digits compared to decimal, so hex has no advantage over decimal in the 26-element case

He had more than 26 things to encode, I believe he started with numbers, letters and a question mark.

> Using just 0 or 1 will increase the number of digits needed, so has a clear disadvantage compared to hex or decimal

Using 0 or 1 decreases that to only 3 cards (including question mark), and increasing the safety margin to 120° on the setup he had. It'd take longer but be more robust.

Re:macOS menu bar app that shows how full the ISS urine tank... by Thorrez on Thursday December 26, 2024 @12:44AM (#42513371)
>He had more than 26 things to encode

Ok, then hoten's comment had an error which propagated to my comments:

>26 division of a circle was too much for reliable determination of which sign the camera was pointing at

Re:macOS menu bar app that shows how full the ISS urine tank... by shortrounddev2 on Wednesday December 25, 2024 @03:47AM (#42507737)
He later painstakingly translates machine code transmitted via the camera to the rover which patches the software to allow him to chat via text, so hex came in handy
Re:macOS menu bar app that shows how full the ISS urine tank... by unsupp0rted on Wednesday December 25, 2024 @09:28AM (#42508926)
Too bad he didn't know Hangul (Korean writing system). He could have managed to communicate well enough with half a dozen chars.