HNHacker News
TopNewBestAskShowJobs

moreati

1,777 karma · joined April 28, 2011

Python and Ansible developer. Recovering Sherlock. Armchair supervillain. Pun usually intended. He/they.

https://moreati.org.uk/ https://social.moreati.org.uk/@alex

[ my public key: https://keybase.io/moreati; my proof: https://keybase.io/moreati/sigs/0NRA_TnGMfWlFUd7jrTrJqT2QOxC7wD7yEyjNtxLc4c ]

submissionscomments
moreati··on Pomsky – A portable, modern regular expression language
Some regex engines/dialects also allow pre-defined named subroutines (variables) with `(?(DEFINE) (?<name>pattern)...)` http://www.rexegg.com/regex-disambiguation.html#define, but it's a very niche feature. e.g. https://gist.github.com/moreati/9d974e5395829d737dc342715f15...
moreati··on Spaceport Cornwall awarded licence to host UK’s first space launch
There's been talk of a spaceport in Scotland as well (possibly a competing bid to this). The touted benefit of being further North was easier launches into polar orbits.
moreati··on Mom handcuffed, jailed for 8-year-old son walking half a mile
Not OP, speculating. On a Mac option + v types a √, which is a fairly easy typo.
moreati··on Dead USB Drives Are Fine: Building a Reliable Sneakernet
No, or very niche, and there's no guarantee that those few that do have write protect enforce it in hardware. For cases when you absolutely most not allow the flash content to be modified there are USB devices called write blockers. They're used mainly in forensics, where the data might be used as evidence in court and there needs to be clear chain of custody and an audit trail to say the bits analysed are the same as the bits when the device was first seized.
moreati··on Type of Barcodes and Their Usage
Was expecting a barcode that looked like a fish skeleton, it's actually barcodes in the bones of fish
moreati··on Ask HN: Favorite audio book for long drives?
A classic from my childhood, when it came on a brick-sized box of cassettes https://en.wikipedia.org/wiki/The_Lord_of_the_Rings_(1981_ra...
moreati··on The Ends of Education
PPE is https://en.wikipedia.org/wiki/Philosophy,_politics_and_econo... for anyone else unsure
moreati··on The Rise and Peak of Japanese Semiconductors
I'm a British english speaker, I pronounce it dram. I didn't know there are people who pronounce it D-RAM.
moreati··on Ask HN: Can I see your cheatsheet?
I use twitter https://twitter.com/search?q=from:moreati%20ansible%20tip&sr.... More generally I have a Firefox bookmark set up so "tm search term" searches my previous tweets.

If I ever get round to editting/refining these I plan to do it on https://devhints.io - https://devhints.io/xpath and https://devhints.io/bash are so nice.

moreati··on Ask HN: What's the coolest website you know?
It's https://simone.computer, going by syx's HN profile.
moreati··on Write HTML Right
Is there a tool to convert an existing HTML document into this style? E.g. strip out optional closing tags, without doing full minimisation/whitespace stripping.
moreati··on How we built a new, fast file transfer protocol
> AIMD

Additive Increase Multiplactive Decrease (for others wondering)

> a feedback control algorithm best known for its use in TCP congestion control. AIMD combines linear growth of the congestion window when there is no congestion with an exponential reduction when congestion is detected.

-- https://en.wikipedia.org/wiki/Additive_increase/multiplicati...

moreati··on Major breakthrough on nuclear fusion energy
https://www.youtube.com/watch?v=6Jx_bJgIFhI about pumped hydro at Dinorwig Power Station
moreati··on Great AA Alkaline Battery Test (2016)
Note, this is from 2016.
moreati··on Updated MinIO NVMe Benchmarks: 2.6Tpbs on Get and 1.6 on Put
Possibly a difference in terminology. Minio is in the same space as S3, Ceph, and HDFS - sometimes called blob store or block store. Each object might be part of a log, video or other large file/stream.

I would call an object store in which the objects are mostly < 1 kiB a key value store.

moreati··on Show HN: A pure bash web server. No netcat, socat, etc.
macOS 12 dropped PHP. It still has /usr/bin/python (CPython 2.7), but - any app the uses it triggers a message box about the the developer needing to update their app - before any REPL session it prints

""" WARNING: Python 2.7 is not recommended. This version is included in macOS for compatibility with legacy software. Future versions of macOS will not include Python 2.7. Instead, it is recommended that you transition to using 'python3' from within Terminal. """

There is no version of Python 3 included with the OS. The XCode app/developer tools include Python 3.8. I expect macOS 13 won't include any Python interpreter out the box

moreati··on Smartbolts
In the UK (and elsewhere?) Lorry tyres have plastic caps on the bolts, with arrows aligned to each other in pairs, or some regular pattern. It's easy to see at a glance if a bolt has loosened.

e.g. https://mechanics.stackexchange.com/questions/29690/what-are...

moreati··on Useful Old Technologies: ASN.1 (2013)
A warning, ASN.1 is disliked by many people in software security. It often features in security vulnerabilities involving TLS and LDAP/Active Directory. They would recommend against adopting ASN.1 for new projects.

I get the impression this partially due to a) most implementations being adhoc, of varying completeness, and written in C or C++ (e.g. OpenSSL); and b) sheer complexity of ASN.1 and other standards from that family/era.

Sources: following software security researchers/practioners on Twitter, a few podcasts, here, etc.

moreati··on Show HN: NFC Passport/ID for remote user registration
For others wondering https://en.wikipedia.org/wiki/N26

> N26 (known as Number 26 until July 2016) is a German neobank headquartered in Berlin, Germany. N26 currently operates in various member states of the Single Euro Payments Area (SEPA) and in the United States.

moreati··on Ansible Techniques I Wish I’d Known Earlier
Over the years I've tweeted Ansible tips, and Ansible Gotchas for my own memory and others

https://twitter.com/search?q=from%3Amoreati%20ansible%20tip&... https://twitter.com/search?q=from%3Amoreati%20ansible%20gotc...

moreati··on Silent changes to Western Digital’s budget SSD may lower speeds by up to 50%
For anyone else unfamiliar: shucking is buying a USB harddrive purely for the drive inside, discarding the outer case/USB interface https://www.datahoards.com/whats-the-meaning-of-shucking-a-h...
moreati··on Anime Video Encoding Guide for X265 (HEVC) & AAC/Opus (2019)
The author is choosing not to name names, i.e. they aren't pointing a finger at the specific person/site they're criticizing.

"cough" or mumble is a slightly humorous shorthand/convention for this. It suggests an audio transcript mistake, that conveniently doesn't reveal the guilty party.

moreati··on Watchy: Open-source E-Paper Watch with ESP32
RYF is probably Respects Your Freedom <https://ryf.fsf.org/main-page>, for others wondering.

> The "Respects Your Freedom" certification program encourages the creation and sale of hardware that will do as much as possible to respect your freedom and your privacy, and will ensure that you have control over your device.

moreati··on Nuclear Power at McMurdo Station, Antarctica
> on Mars there's no electric ground.

I'm intrigued. Is it due to much drier conditions? Grain size? Mineral composition? Combinations? Anywhere I could read a bit more?

moreati··on Practical Reed-Solomon for Programmers
Thanks. I have 30 examples I got from the API, many moons ago https://github.com/moreati/chirppy/blob/master/examples.json. My finite field knowledge is not up to solving it analytically, my attempts to brute force it are in https://github.com/moreati/chirppy/blob/master/trials.py. That includes functions to go between the characters, and integer representations.
moreati··on Practical Reed-Solomon for Programmers
A semi-related question/puzzle. Is it possible to reverse engineer parameters of a Reed Solomoon function?

Given one or more known inputs/outputs of a Reed Solomon function with known symbol size, message length, number of parity symbols. Is it possible to calculate the other parameters (polynomial coefficients, primitive element etc)?

I failed to find an answer a few years ago, when trying to interoperate with chirp.io (now gone). https://math.stackexchange.com/questions/663643/discover-par...

moreati··on A New Future for Icanhazip
That will return an IPv6 address, if you have IPv6 connectivity. That's normally be fine, but for occasions it isn't there is

    dig +short -4 myip.opendns.com a @resolver1.opendns.com
moreati··on Apple, FedEx and the cookie apocalypse
In British English "an absolute dog" can be slang meaning "extremely slow", e.g. "this 386 runs like an absolute dog, compared to my Thread Ripper".

My best guess is that's how GP was using it.

moreati··on Noisy appliances: How loud is your house?
In the UK most homes don't have a hot water tank. We have a wall mounted gas boiler, that heats water on demand. These are often located in the kitchen.
moreati··on Replacing Elasticsearch with Rust and SQLite (2017)
For anyone else unfamiliar

"""

Greylog Extended Log Format (GELF) is a log format that avoids the shortcomings of classic plain syslog:

* Limited to length of 1024 bytes – Not much space for payloads like backtraces

* No data types in structured syslog. You don’t know what is a number and what is a string.

* The RFCs are strict enough but there are so many syslog dialects out there that you cannot possibly parse all of them.

* No compression

""" -- https://docs.graylog.org/en/4.0/pages/gelf.html

It can be sent over UDP or TCP. Looks like each log entry is a JSON object, with standardised field names/formats.

← PreviousPage 2 of 9Next →