Weeknotes 2022-04-18
Met a lot of people last week. Spent the first half of the week going to this years PyCon DE despite I thought I wouldn't. This was really cool (day 1, day 2, day 3). After that I spent the last half of the week attending family appointments. Avoided to catch fire / covid, ffp2 ftw. Somebody was more successful than me reversing the kptncook app and opened an github issue to notify me about that. How awesome is that? As soon as I'll be able to spent more time on computer stuff I'm going to enhance my kptncook-scraper accordingly.
Things I Learned
- auto_error in fastAPI allows you to test for different authentication methods (cookie, bearer token, etc), but using an authentication middleware as in django is probably a cleaner solution
- It's not possible to return values from dependencies declared at router level in fastapi, but you could attach stuff to the request and use it as a container for additional state
Articles
-
A reworked TCP zero-copy receive API
/ Zero-copy TCP receive | According to those articles, it should be possible to do zero copy tcp from one socket to another. For example serve a file directly from django to a client while fetching it from an object store like minio.
-
Nice guide on how to use f-strings
-
spectrum-4 ethernet leaps to 800g with nvidia circuits
Hmm, that's kind of fast, I guess..
-
Great documentation about how the transformer neural net architecture works
-
More interesting than the content is who wrote it.. there's a broad trend for a while and now it starts to get recognized
Software
-
Uses attrs / cattrs and it's main purpose is to aggregate settings from different sources like password managers etc. I mostly use pydantics BaseSettings for things like this.
-
Folium - Python data, leaflet.js maps
Makes it easy to visualize data from python with leaflet on maps
-
Library to validate, document and profile your data..
-
Had to link to wikipedia, because it's not possible to find out what the software does from looking at the official website (hate things like that)
-
MPNet: Masked and Permuted Pre-training for Language Understanding
Used by idealo
-
SentenceTransformers is a Python framework for state-of-the-art sentence, text and image embeddings
Also used by idealo
-
Faiss is a library for efficient similarity search and clustering of dense vectors
Used by idealo for product clustering
-
idealo
Videos
Podcasts
-
Sonderfolge: Genesen, aber nicht gesund Das Coronavirus-Update
About 10% get long covid..
-
#275 – Rick Rubin: Legendary Music Producer Lex Fridman Podcast
Studio recording is the opposite of a performance..
-
Removing Python's Dead Batteries (in just 5 years) Talk Python To Me