He is such an interesting character to me. I've read a few of his books and some principles he brings up are super interesting and overlooked imo, while majority of the stuff he writes about uses the most handwave-y explanations.
Yes, breaking it up would work, but that is not a solution for streams.
The regex is dead simple: /Authorization: Basic (.*)\ngrant_type=refresh_token/
"." does not match newline, so I'm basically looking two lines that conform to a template.
Specific cases can be transformed with some grep/awk magic, but IMO the concept of pattern matching against a stream is interesting regardless.
Can somebody eli5 how this works, or point me to some description? Let's say I'm pip installing it. How does the rust code turn into something that python can call?
As an engineer, saying that $20k, the price of a cheap car, is 1/1000th of a GDP of a whole country does not pass the smell test. Google says that Yemen's GDP is $21.61b, so a drone is 0.0000925% of the GDP. In other words it's about a million drones per year for Yemen, and about 7.7 million interceptors per year for the US.