Better HN
topnewbestaskshowjobs
Log inSign up

mgdm

36 karma · joined Apr 7, 2011 (15y ago) · 16 submissions

Submissions

comment 3w ago · link · parent

Amazing he managed to see the documentary so long before it was filmed

comment 1mo ago · link · parent

About that: https://dotplan.space/about

comment 1y ago · link · parent

I have been meaning to do it for ages! I got as far as finding a paper on the topic and reading it and then forgetting all about it. Nice work.

comment 3y ago · link · parent

I think it's something along the lines of there being a model of HP printer which was advertised as being wifi-only, and apparently had no USB port, but if you removed a strategically-placed sticker you'd find this was a lie.

comment 3y ago · link · parent

Something that I'm not seeing mentioned in these comments (I may just have missed it) is that you can precompute the hash of the static part of the string and then extend it with the numbers in a loop, saving some cycles. This is because the full hex representation of a SHA hash gives you the entire internal state of the algorithm. This can lead to security vulnerabilities:

https://en.m.wikipedia.org/wiki/Length_extension_attack

comment 3y ago · link · parent

"Knock Nah Heard", I think?

comment 3y ago · link · parent

Perhaps Crafting Interpreters?

https://craftinginterpreters.com/

comment 3y ago · link · parent

FWIW, the author's name is Coglan, not Cogland.

comment 3y ago · link · parent

I was concerned that this might remove USB Ethernet support entirely, but I believe that the protocol prefered for this on Linux is called CDC-ECM:

https://stackoverflow.com/questions/65321405/linux-cdc-ecm-d...

This may not help if the objective is to connect to a Windows host, though.

comment 4y ago · link · parent

I don’t believe any modern browser supports HPKP any more, due to how hard it was to set up and operate.

comment 5y ago · link · parent

Exactly this! I’ll fix it after work.

comment 5y ago · link · parent

Hah. Yeah. I had another account for a little while but then HN started to let me reset the password for this one quite recently, so here I am.

comment 5y ago · link · parent

I just wanted to be slightly more descriptive and less likely to collide with other tools.

14.

Systemd Socket Activation(mgdm.net ↗)

4 points · by mgdm · 5y ago · discuss

comment 5y ago · link · parent

It's not really a binding. It doesn't link to anything in systemd, it's just aware of the convention used by systemd to pass the file descriptors into the process. The actual code being executed from that repository is around 60 lines, I guess:

https://github.com/coreos/go-systemd/blob/main/activation/li...

I just used that rather than writing it myself because it felt like it didn't add much to the story. Also the code was actually written on macOS, it still runs fine without systemd.

Edit: I'd be quite interested to see if passing file descriptors in this way would be a goal in, for example, the proposed Alpine service manager. A quick scan of the proposal didn't show me anything obvious, but I'll go and read it in more detail.

16.

Building a GSM network with Open Source(h-online.com ↗)

4 points · by mgdm · 14y ago · discuss