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
- Weeklog from Johannes
- 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.
- Python f-strings | 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..
- The Illustrated Transformer | Great documentation about how the transformer neural net architecture works
- A Web Renaissance | More interesting than the content is who wrote it.. there's a broad trend for a while and now it starts to get recognized
- Typed Settings | 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
- Great Expectations | Library to validate, document and profile your data..
- Checkmk monitoring software | 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
- Label propagation algorithm | idealo
- Twitter thread about cool command line tools | Need to look at threads like this every now and then
- How to build your own python
- Someone is even more annoyed by the education system than me :)
- Sdes for @PyConDE PyCon DE 2022 keynote "Python 3.11 in the web browser – A journey"
- Thread about the elon musk twitter takeover from someone who ran reddit for a while
- Python objects can define their own formatting mini-languages for f-strings by defining __format__ | pretty cool
- How can you break out of a #python double loop? Use a generator to make it a single loop instead! | neat trick
- Episode #278: Multi-tenant Python applications (PythonBytes)
- 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)