Easy fix.
Easy fix.
Tweezers.
When you realize how many wars were averted because of them.
Where you rotate so far right you end up at the left.
One Docker env variable and one line of code. Not a heavy lift, really. And next time I shell into the container I don’t need to remind everyone to activate the venv.
Creating a venv in Docker just for the hell of it is like creating a symlink to something that never changes or moves.
I can think of only two reasons to have a venv inside a container:
If you’re running third-party services inside a container, pinned to different Python versions.
If you do local development without docker and scripts that have to activate the venv from inside the script. If you move the scripts inside the container, now you don’t have a venv. But then it’s easy to just check an environment variable and skip, if inside Docker.
For most applications, it seems like an unnecessary extra step.
Installed RabbitMQ for use in Python Celery (for task queue and crontab). Was pleasantly surprised it also offered MQTT support.
Was originally planning on using a third-party, commercial combo websocket/push notification service. But between RabbitMQ/MQTT with websockets and Firebase Cloud Messaging, I’m getting all of it: queuing, MQTT pubsub, and cross-platform push, all for free. 🎉
It all runs nicely in Docker and when time to deploy and scale, trust RabbitMQ more since it has solid cluster support.
Since nobody’s brought it up: MQTT.
It got pigeonholed into IoT world, but it’s a pretty decent event pubsub system. It has lots lf security/encryption options, plus a websocket layer, so you can use it anywhere from devices, to mobile, to web.
As of late last year, RabbitMQ started suporting it as a supported server add-on, so it’s easy to use it to create scalable, event-based systems, including for multiuser games.
I actually like it when these code helpers guess from one line what the rest should be and suggest it. It’s even more fun when it keeps guessing and the suggestions get progressively more whacky. Then they just start making completely unrelated shit up.
Once you say no, it goes back to the beginning and meekly repeats the very first suggestion, like a scolded puppy.
The impression I had was thst subinterpreters could be launched from the python side. This writeup implies you need to write a C extension to make use of it.
Will have to do more research…
Nice writeup! Be good if, at some point, they covered how threading and multiprocessing impacts opcode processing, especially when it comes to those globals.
She was the co-author of the second edition of Bunnie Huang’s New Essential Guide to Electronics, for those looking to make hardware in Shenzhen: https://arstechnica.com/gadgets/2023/12/a-new-essential-guide-to-electronics-by-naomi-wu-details-a-different-shenzen/
TLDR: People need to go touch grass.
Cleaning up the kitchen every night.
Used to leave dishes in the sink during college, then do them when it got full. Got a side job as a bartender, where you had to clean up every surface after the last shift, ready for people the next day. Applied it to home. Has stuck ever since.
Fortunately, married a woman who had the same habits. We’ve never gone to bed with a dirty kitchen, even after a group gathering.
Tried bash, Make, and awk/sed. All hit brick walls. Finally landed on pyinvoke. Two dependencies to install on any new machine. Never had problems. Also, easy to debug and modify as projects evolve.
Funny story: when SO first started, started answering questions in domains I had experience in. The gamification was fun. After a year, questions got repetitive, so stopped.
A few years later. Googling a tech question. Top answer. Checked. Looks good.
Scroll down. It’s my own answer from way back when.
First time I felt old.
Flashback to 5pm (a lifetime ago), and everyone at work switching to playing Marathon for next 30-60m to unwind before heading home.
The backlash on this will be glorious.
If starting out: on web, Python and Typescript will take you far. On mobile, Swift and Kotlin. On Windows/Mac, C# and Swift. You’re on your own for Linux desktop.
RemindMe! 3y “reply to this thread”.