>They’re children. They don’t need to know where bacon and hot dogs come from.
not sure about that. Around age 7 i saw a full butchering of a pig at my grandmother's farm, and i was still happily eating pork for the next 20+ years, and i don't remember anybody in my childhood not knowing where the bacon is coming from. I stopped eating beef and pork though about 20 years ago exactly for the reason where it comes from.
Btw, "They don’t need to know where ... come from" can be said by the powers-to-be about people of any age.
You’ll never learn it by reading something. You have to experience it. Get your hands dirty.
Write a simple single-threaded http server that takes strings and hashes them with something slow like bcrypt with a high cost value (or, just sleep before returning).
Write some integration tests (doesn’t have to be fancy) that hammer the server with 10, 100, 1000 requests.
Time how performant (or not performant) the bank of requests are.
Now try to write a threaded server where every request spins up a new thread.
What’s the performance like? (Hint: learn about the global interpreter lock (GIL))
Hmm, maybe you’re creating too many threads? Learn about thread pools and why they’re better for constraining resources.
Is performance better? Try a multiprocessing.Pool instead to defeat the GIL.
Want to try async? Do the same thing! But because the whole point of async is to do as much work on one thread with no idle time, and something like bcrypt is designed to hog the CPU, you’ll want to replace bcrypt with an await asyncio.sleep() to simulate something like a slow network request. If you wanted to use bcrypt in an async function, you’ll definitely want to delegate that work to a multiprocessing.Pool. Try that next.
Learning can be that simple. Read the docs for Thread, multiprocessing, and asyncio. Python docs are usually not very long winded and most importantly they’re more correct than some random person vibe blogging.
VHS-Decode did get a mention in these comments previously but probably beyond the reach (or patience) of even most hackers. But good information on decks and theory:
In the (original) spirit of this site, where people get curious and go off and solve impossible problems, I can point to this guy who gets it. He rants better than I do.
The last useful decks were built 25 years ago. Even then there's acres of bad advice on the internet, specifically around prosumer decks with built-in TBC that isn't sufficient to provide a proper signal to a modern video capture card.
So find any S-VHS deck that actually runs well, S-Video out into a external TBC. Blackmagic owns the cheap-but-great category for capture. Then ffmpeg to suit your storage budget.
Beyond that, things are so screwed up online around preservation technology and knowledge that my advice is to seek the services of a professional if the material is important. Or go ahead and DIY if you're just doing amateur stuff or you're a hoarder trying to justify your conditions. But try to refrain from posting your secret sauce; it likely isn't. Organize and post the videos instead. Most won't, because they know they look like shit and they can't handle the feedback.
I appreciate the reply. It does feel like most resources online are just the summary of 3 web searches and boom they’re an expert. Thanks for the links and info.
Sorry I was half asleep! Meant that you can easily look at the code in the script and audit what it does – you can just run `cat` in it and you’re done!
But it’s much harder to inspect what the imports are going to do and be sure they’re free of any unsavory behavior.
1. Assuming IEC refers to cables we plug a desktop PSU into mains/wall: IEC can carry up to 1800w vs 100w PoE++
2. Powerline networking is considerably slower and less reliable than CAT5/6. Additionally, building code for running power lines is much more strict than low voltage CAT5/6
Nerdsniped: You're describing a IEC 60320 C13 cable - they're technically only spec'd for 10A, which means you're looking at ~1200W, not 1800.
(However, UL will list them for the full 15A -> 1800W, and I'm sure plenty carry that. And for that matter, I suppose you can get twice that in Europe on 240v...)
reply