HNHacker News
TopNewBestAskShowJobs

eidorb

101 karma · joined July 1, 2012

submissionscomments
eidorb··on Dynamically patch a Python function's source code at runtime
Another use case is applying small patches to a large function or method. Overriding would mean copy pasting largely similar code. It’s a bit ugly.

https://github.com/eidorb/ubank/blob/master/soft_webauthn_pa...

eidorb··on Measuring power network frequency using junk you have in your closet
I've been using a transformer & resistor voltage divider direct into audio in to decode Decabit signals (a form of ripple control aka audio frequency load control): https://web.archive.org/web/20140127003936/http://www.anime-...

I'll test if this antenna methods works as an alternative. I'd feel more comfortable sharing with others if mains voltages are eliminated entirely.

eidorb··on Australians to face age checks from search engines
Minor’s accounts must also revoke “sign out” functionality in case they see some titties.
eidorb··on Breaking WebAuthn, FIDO2, and Forging Passkeys
See also:

webauthn in software https://github.com/bodik/soft-webauthn

Unofficial bank API client using software passkey: https://github.com/eidorb/ubank

eidorb··on The Grug Brained Developer (2022)
Massive grug.
eidorb··on MonsterUI: Python library for building front end UIs quickly in FastHTML apps
I'm about 1/3 through https://hypermedia.systems. It feels right intuitively. But I kinda left off about 10 years ago with Flask and maybe a JS chart lib. Great times!

I can see hypermedia future -- it's lightweight iframes all the way down ;)

eidorb··on Begrudgingly Choosing CBOR over MessagePack
Yibico's python-fido2 library (https://github.com/Yubico/python-fido2) contains (a minimal) CBOR implementation too: https://developers.yubico.com/python-fido2/API_Documentation...

I found it wouldn't encode `None`s, but didn't dig at all, just worked around it.

Star count would place it about midway in the list.

eidorb··on OpenAI O3 breakthrough high score on ARC-AGI-PUB
Do what you enjoy. (This is easier said than done.) What else could you do, worry?
eidorb··on An artist who trained rats to trade in foreign-exchange markets (2014)
Yes. Infest the rats' nest.
eidorb··on Gestaltgesetze füR Websites (Gestalt Principles for Websites)
Translation: https://f-ag.translate.goog/?_x_tr_sl=de&_x_tr_tl=en&_x_tr_h...
eidorb··on Decabit Decoder
dang could change url to more hacky post in thread: https://x.com/oldmanscode/status/1862794071561126380
eidorb··on Windows Sandbox
This is useful on the USB support front: https://learn.microsoft.com/en-us/windows/wsl/connect-usb
eidorb··on WTFPython: Exploring and understanding Python through surprising snippets
I may have gone with the following. Yes, some characters are repeated, but I'm not playing code golf.

  stripped_lines = (line.strip() for line in buffer.readlines())
  non_empty_stripped_lines = [line for line in stripped_lines if stripped_lines]
eidorb··on Solving Algorithmic Problems in Python with Pytest (2019)
I like using doctest in these simple cases - the tests go in the docstrings!

(Also, it’s part of the standard library.)

https://docs.python.org/3/library/doctest.html

eidorb··on Operating Systems
First class support for swipe left/right gestures.
eidorb··on You hear a voice in your head when you're reading, right?
Ah-ha! This was a great insight for me. I can't not subvocalise when reading. But I too certainly don't subvocalise when reading code. Now I know what it's like.
eidorb··on Threading in Python
I've implemented something similar using Eli Bendersky's example [1] as a guide. His example adds a stop event. I pass my worker thread lambdas, so that arbitrary tasks can be carried out.

[1] http://eli.thegreenplace.net/2011/12/27/python-threads-commu...

eidorb··on For a Bit of Colored Ribbon
The network is built to cope with a peak demand that only occurs for a relatively small amount of time. By reducing the peak demand they can delay the capital expenditure of upgrading the network a number of years.
eidorb··on Using python and k-means to find dominant colors in images
I love subtle flairs like this. It's something that a lot of people would only notice if removed and I think that's an indicator of good design.
eidorb··on Never again be thwarted by restrictive “guest” wifi (e.g. on buses or airplanes)
I've been living in a hotel for a few weeks. The internet is just a little expensive - $20 for 50 MB or 3 hours, whichever comes first.

I had some time on my hands and got TCP over DNS working. It's obviously quite slow, but certainly useable. A fun exercise anyway.

eidorb··on How earphone remotes (with play/skip buttons) work on a single wire
I guess you could use a series arrangement to get a binary encoding.