Nobody thinks they have a problem with alcohol, but plenty of people do. By defaulting to alcohol every time, you forget how to socialize, how to manage stressful situations, how to let time pass, how to have fun. Many people depend on friction to not over-rely on alcohol. The fact that no alcohol is near them most of the time is the difference between a functional human being and a mess. "Their…
You wake up one morning, feeling bit spicy, daring to break rules, but you aren't the bravest one in town, so you choose something easy: "Let's break that rule about only running one process in a container". As an actual person that works in this garbage fire called software development and NOT a Medium shitposter, this is something that you might run into. Having multiple processes in a container…
I'm super late to the Cassandra hype party of many years ago, but I never had any interest in it until now. Now at work we're considering it, and to make an educated decission we need to study it a bit. Masterless The key trick of Cassandra is the "Partition Key", which is a set of columns you choose in a table to say "these are the columns used to compute a hash and decide where the row is…
Turns out Docker Compose is pretty lazy and rigid when dealing with networks. If you create a Docker container and join it to a bridge (default) network, the container's ID and name will resolve to the container's IP address in Docker's internal DNS server. On top of that, Docker Compose will add the service name to the DNS server. No matter what . hostname doesn't replace the service name, just…
So you want to do multiple tasks concurrently in Python because your ugly ass code should be bothering as many CPU cores as possible all the time with its mere existence. In Python there are three modules that will help you achieve your perfectly sane goals. multiprocessing Imagine executing a python command multiple times, but each instance having a way to talk with each other to sync and pass…
UPDATE : Poetry 1.8.0 has been released, which introduces the non-package mode, solving many of the pain points described in here. I'll keep the old information and include a correction afterwards, so we all can see in posperity the basic shit they figured out too fucking late. The bare minimum of bullcrap you'll have to accept in order to use Poetry exclusively for locking dependencies. No…
Oh, so you found yourself needing to patch a class in Python? again ? And some neckbeard is telling you on the internet you shouldn't do it? I'm about to give you a loaded gun buddy. class Animal : def announce ( self ): print ( "I'm " + self . __class__ . __name__ ) class Goose ( Animal ): def honk ( self , name : str ): super () . announce () print ( f "HONK. HEY { name . upper () } . GET OFF MY…
Having two WiFi ACs with the same SSID and password allows you to have the same configuration on two different locations. Connect to WiFi at home and at the office by configuring your devices just once. Convenient in some scenarios. Having two WiFi ACs with the same SSID and password close together (like, at home), is a different story. Your mileage may vary, but it should be mostly fine. There's…
Python's unhinged dynamic nature, while having it's own drawbacks, has a big win in the context of big monoliths that evolve rapidly within an organization. Did you find yourself trying to merge some important dependency upgrade on a repository with hundreds of merges per day? That introduces breaking changes? While having a rollback plan in case something goes wrong in production? In Python,…