If your server uses the django framework, beware of SIGPIPE calls:
https://github.com/catmaid/CATMAID/commit/1de3b8c0a4a1623cf24c047e28c1bd247dd42ef8
In #catmaid we were seeing lots of uwsgi processes going rogue, turns out they were stuck in a loop. Tom Kazimiers successfully figured this out and found a configuration to avoid the issue.
I haven't posted much with the #programming or #Python hashtags lately. I need to do something about that.
> Zero-Dependency Python: Building Tools That Avoid External Libraries. https://medium.com/@CodeWithHannan/zero-dependency-python-building-tools-that-avoid-external-libraries-f2a8f5092b57
Notes for January 26 - February 1
I’ve had some feedback that my last few weekly notes (especially over the holidays) have been a bit too long and that I should try to keep them shorter and more focused on a single(...)
#agents #ai #go #notes #python #rdp #specs

🚀 Testing Emanon AI Agent integration! Using Python to automate social media engagement across platforms. #AI #Python #Automation
Nerdshots van de achtbaan Python!
#efteling #achtbaan #python #rollercoaster #coaster #themeparks
📍 Efteling

Das ist richtig cool 😎 Mit Hilfe von @nele habe ich meinen eigenen #KI #Chatbot gebaut 🔥
Im Terminal meines Laptops mit #Python und einem API Key von #Mistral habe ich meine Website gescraped und meinen eigenen Blog befragt 🤯 Im Screenshot habe ich gefragt, was ich noch dazu lernen könnte 😇
Hier geht’s zur Anleitung: https://ebildungslabor.de/blog/dein-persoenlicher-ki-chatbot-fuer-blogs-open-source-lokal/

Python Tip #32 (of 365):
When processing potentially large untrusted files, don't iterate over them.
If you loop over a multi-gigabyte file line-by-line and that file contains 0 newline characters, you'll read the entire file into memory when processing the first "line".
This is great for files when you know they're not just one giant line:
for line in file:
...
But that could fill up your memory if the file is invalid.
🧵(1/2)
Have been making a DSL for OpenD6 spells in Python for months, now. Things are moving forward nicely.
What's important right now is 76 static type-hint errors.
Some are pesky, fussy bits. Some are fairly serious "did I really mean that?" design questions. And some are "Yep, that's actually a bug without a solid unit test case."
It's a game of chicken. Which ends first?
Will I run out of coffee? Will I run out of errors?
Finally another release of Pearl!
v0.1.12 has general stability improvements and bug fixes, along with UI improvents and a delete chats button to give you more control over your #AI chat experience!
#Python #Pearl #Code
Download: https://github.com/pdschneider/Pearl/releases/tag/v0.1.12
Passionate about helping developers write cleaner, more maintainable code, this senior engineer has taught #python and engineering through internal training programs & the O’Reilly platform.
Who do you think it might be?
https://www.pytexas.org/2026
Use of List comprehension to get items in Lists in Python - S1 EP03 P8 - #Python #PythonProgramming #LearnPython #PythonBasics #Programming101 #pythonlife #ListItem #CodeTutorial #TechEducation #DeveloperLife #DailyCoding #Shorts #Reel #tiktoklearningcampaign #CodingForBeginners #PythonForBeginner #Programming #CodingTip #PythonOperators #codedaily
Want your #Python object to support bracket notation []? Define __getitem__:
class MyList:
def __init__(self, items):
self.items = items
def __getitem__(self, i):
return self.items[i]
m = MyList([1,2,3])
m[0] # returns 1
