HNHacker News
TopNewBestAskShowJobs

tzot

274 karma · joined June 14, 2020

Just an earthbound misfit, I.
submissionscomments
tzot··on Alexandria Search
I can only assume that Firefox associates filled-in data with the name of the input control; in this case, “q”, which is probably typical for a search inputbox.
tzot··on Why does Google use location for language rather than browser settings?
> When I ask Google Assistant "where am I?" on my phone it tells me I'm in Manchester. Nice.

> When I ask the same question on my Bluetooth headphones it says Liverpool. I can't get it to work. It's been like that for a year. Can't get any support.

Maybe Google's own analytics suggest that very few people in Manchester use Bluetooth gadgets, ergo you are in Liverpool.

Or (more seriously even if as unlikely perhaps) maybe you have a duplicate Bluetooth MAC address, the other one located in Liverpool. Do you have Bluetooth turned on when not using your headphones? Does the answer depend on Bluetooth being on?

tzot··on CPython, C standards, and IEEE 754
At work we had a very-late-technical-debt-move from “Python 2.7/Django 1.7” to “Python 3.8/Django 3.2” (with lots of associated libraries moving forward too) and we managed to reach a point where our codebase was common and functioning in either environment; the process was… bloody, to say the least, and obviously I wouldn't wish for others to ever have to go through a similar ordeal, but it was feasible.

In any case, I don't think that in the Python ecosystem there will ever be another jump of the same magnitude as 2 to 3.

tzot··on CPython, C standards, and IEEE 754
The quote was:

> "The more 'it's-only-Python-if-it-has-X' restrictions we have, the less appealing we become."

We the Python language?

tzot··on CPython, C standards, and IEEE 754
In CPython 2, a `str` was bytes period; no encoding was enforced, these bytes were not necessarily valid UTF-8, and a `unicode` had either UTF-16 or UTF-32 in-memory representation (decided at compilation time). In CPython 3, a `bytes` is bytes and a `str` has ASCII/UTF-16/UTF-32 in-memory representation (decided at runtime). So CPython 2 strings were not “bytes of UTF-8”, and that is why strings `'\xfc\xf7\xe9'` worked fine, they even printed fine in the proper environments.
tzot··on Show HN: I made a web game called Almost Pong
Flapping Pong?
tzot··on Fengari – Lua for the Browser
Σελήνη/Selene (the ancient name) is Luna: our moon. Lowercase φεγγάρι/feggari/fengari is moon: you would say «δίδυμα φεγγάρια του Άρη» for “Mars' twin moons”.¹ In the same vein, capitalized Ήλιος/Helios is Sol: our sun. Lowercase ήλιος means any sun.

¹ Trivia: “satellite” is «δορυφόρος» = spear bearer; from the protectors of kings or powerful men in general, who typically encircled their protectees.

tzot··on Essence: Desktop operating system built from scratch
This video is already included in the web page under the “Watch a demonstration of the system running on real hardware. Recorded in October 2021.” paragraph.
tzot··on RFC8890 – The Internet Is for End Users
Any automatic removal of common words when slugifying the article title was quite unfortunate here: “We Fight for the Users” vs “we-fight-users”.
tzot··on Harmful Defaults in Django
> My biggest objection to that naming scheme would be the numbering. If you have multiple people working on an app, it is likely that you at some point get multiples of a number as people add models simultaneously. What happens if there are multiples using a single number?

We have this happen at work, when merging branches; this is what `./manage.py makemigrations --merge` exists for.

tzot··on LibreLogo: Programming Environment in LibreOffice
I did a double take when I got the info from a LO startup tooltip.
tzot··on Asmrepl: REPL for x86 Assembly Language
Thanks; my assembly experience was with earlier processors, with a single argument for their test instruction (kind of like calling x86 test with two same arguments). I should have checked what the x86 test instruction does before replying.
tzot··on Asmrepl: REPL for x86 Assembly Language
I believe in most (if not all) architectures that have it, a test instruction is the same as comparing to zero; so testing zero sets the zero flag :)
tzot··on The split personalities of shell usage
A renamed `expr` of the shell.
tzot··on The split personalities of shell usage
> if{= 1==2} {err 'math is broken'} {out 'math works'}

So you ended up with kind of like TCL's choices (`then`, `else`, `elseif` are optional; prefix expressions with `=` (`expr` in TCL's case, although it's implied in `if`, `while` conditionals) )

tzot··on We are recreating the entire planet in Minecraft
I assume you mean (0.5m)³, which is 0.125m³.
tzot··on Crazy Clock
So is that the “Weeping Angel” clock?
tzot··on My Favorite One Liners
Or plain `>&2` since the `1` is implied for '>'
tzot··on My Favorite One Liners
It's one more process to run, so `cat single_file | ` can be easily substituted with `<single_file `.
tzot··on My Favorite One Liners
`grep . *` has different output than `cat` if `*` expands to more than one filename: every line is prefixed by the filename it exists in.
tzot··on CAPTCHAs don’t prove you’re human – they prove you’re American (2017)
Like random3821 commented, it's about American English not being “proper” English (while supposedly if the US of A were a British colony, it would be “proper”.)
tzot··on CAPTCHAs don’t prove you’re human – they prove you’re American (2017)
I remember a flame war between US-English and UK-English speakers, where one of the former said “if it weren't for us, you'd be speaking German now” and one of the latter ones said “if it weren't for the French, you'd still speak English now”.
tzot··on Geometry Reveals How the World Is Assembled from Cubes
Doesn't this point to the same article as https://news.ycombinator.com/item?id=25171662 ?
tzot··on Have Fruits and Vegetables Become Less Nutritious? (2011)
I remember a joke from my childhood, where an American tourist is browsing a local farmer's market commenting how small everything is compared to American produce, so when the tourist sees watermelons and asks “and what are these?”, the annoyed vendor just says “oh, they're just peas”.
tzot··on Have Fruits and Vegetables Become Less Nutritious? (2011)
> The flavors were sublime with tomatoes rich in umami intermingling with spicy olive oil and savory farmer's cheese.

And then you can dip bite-sized chunks of fresh bread, one by one, in the mixture of the olive oil and the vegetable/cheese juices; the sensation is more-or-less indescribable. The price of Greek salad used to be low (compared to main dishes) in restaurants some decades ago, but after noticing that lots of tourists just ate a salad plus the provided bread, the tourist industry raised the price.

tzot··on Metal Spheres Swarm Together to Create Freeform Modular Robots
It also sounds very similar to Mike, the computer at the Moon in “The Moon Is a Harsh Mistress”, which predates the 80s.
tzot··on Bongo Cat
How else could it be? https://youtu.be/ALBViu_o-cw
tzot··on Diolkos
s/diodos/diolkos/
tzot··on [dead]
The site is presented to me in Polish, which I don't understand. Is there a link to an English version of the site?
tzot··on This page is a truly naked, brutalist HTML quine
It's very useful when having stuff like that:

  <style type="text/css">
  .code-line::before {content: '>>> ';}
  </style>
  <div class="code-line">print 12</div>
  <div class="code-line">a = [i**2 for i in range(10)]</div>
Then the reader can copy the actual code without the interpreter's prompt.
← PreviousPage 5 of 6Next →