Better HN
topnewbestaskshowjobs
Log inSign up

eidorb

101 karma · joined Jul 1, 2012 (14y ago) · 24 submissions

Submissions

comment 1y ago · link · parent

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...

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Minor’s accounts must also revoke “sign out” functionality in case they see some titties.

comment 1y ago · link · parent

See also:

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

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

comment 1y ago · link · parent

Massive grug.

comment 1y ago · link · parent

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 ;)

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Do what you enjoy. (This is easier said than done.) What else could you do, worry?

comment 1y ago · link · parent

Yes. Infest the rats' nest.

comment 1y ago · link · parent

Translation: https://f-ag.translate.goog/?_x_tr_sl=de&_x_tr_tl=en&_x_tr_h...

11.

Gestaltgesetze füR Websites (Gestalt Principles for Websites)(f.ag ↗)

2 points · by eidorb · 1y ago · 1 comment

comment 1y ago · link · parent

dang could change url to more hacky post in thread: https://x.com/oldmanscode/status/1862794071561126380

13.

Decabit Decoder(twitter.com ↗)

2 points · by eidorb · 1y ago · 1 comment

comment 3y ago · link · parent

This is useful on the USB support front: https://learn.microsoft.com/en-us/windows/wsl/connect-usb

15.

Ceremonial security and cargo cults(philvenables.com ↗)

76 points · by eidorb · 3y ago · 45 comments

comment 4y ago · link · parent

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]

comment 5y ago · link · parent

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

comment 10y ago · link · parent

First class support for swipe left/right gestures.

comment 10y ago · link · parent

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.

comment 13y ago · link · parent

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...

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

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.

comment 14y ago · link · parent

I guess you could use a series arrangement to get a binary encoding.