How do venvs actually work? The python "binary" inside a venv is just a symlink to the system wide python. The activate script effectively sets VIRTUAL_ENV and prepends PATH. So why can't I have the same effects by just setting those two environment variable manually? Why can't modules of packages installed inside the venv be found by gunicorn when setting both env variables in a systemd unit and starting gunicorn that was installed by apt?
#python #ubuntu #gunicorn
Un par de cursos de Youtube sobre programación https://myblog.clonbg.es/un-par-de-cursos-de-youtube-sobre-programacion/ #Programación #VueJs #Python https://clonbg.es

contexto: Certificación vibe-coding
objetivo: Escribir un texto humorístico utilizando HTML
#Python Software Libre Innovacion Cursos #Spanglish #Anzoategui #Lecheria
#Python Friday #298: Fancy Progress Bars With Alive-Progress
https://pythonfriday.dev/2025/09/298-fancy-progress-bars-with-alive-progress/
Happy Friday! It’s time for the “official unofficial” list of tech, entrepreneur, and nerd events happening in Tampa Bay and surrounding parts. I compile this list every week with the help of #Python and #JupyterNotebook and publish it on Tampa Bay’s tech blog, Global Nerdy!

Microsoft announced disabling some of its services for the occupation after discovering they were being used to surveil the people of Gaza.
Do you see this as just a PR move under public pressure?
Or is it the beginning of a real stance by tech companies against violations?
I’d love to hear your thoughts 👇
#gaza #palestine #microsoft #apple #google #python #developer #ios #israel

Heard of ML but don't know where to start? This guide breaks down Decision Trees, Random Forests, and Gradient Boosting, all with Python and scikit-learn. Time to move past the buzzwords and into the code!
What's one ML concept that still makes your head spin?
#MachineLearning #Python #DataScience #AI #Programming
https://craftedsilicon.com/getting-started-with-machine-learning-a-beginners-guide-to-decision-trees-random-forests-gradient-boosting/
Just released a modernized version of my Produce & Publisher server, which I have maintained for more than 12 years.
https://pypi.org/project/pp.server/
The "do something and if it fails return None" pattern is responsible for a lot of strange bugs in Python code. Stop doing this! None is a valid return type only if "no result" is a valid result. Yeah, in languages like Rust or Haskell the Option monad is pretty popular, but they also force handling it properly. In dynamic languages, you end up with "None" strings, math errors when doing arithmetic operations on None, or even less pretty bugs. In such a case, None should be returned only in cases where user should expect it as a valid result, so is expected to handle it properly. Otherwise, it begs for bugs.
Aprender Django https://myblog.clonbg.es/aprender-django/ #Programación #Python https://clonbg.es

Ever wondered how Netflix knows what you’ll binge next? Or how banks catch fraud within seconds? That’s the magic of Data Science—the art of turning raw data into powerful insights. 📊✨
In this blog, you’ll uncover the fundamentals of Data Science, and the latest trends shaping the future of AI & analytics. 🚀
https://drchetandhongade.com/technology/data-science-tech-guide/
#DataScience
#MachineLearning
#ArtificialIntelligence
#BigData
#TechTrends
#Analytics
#CareerInTech
#Python
#AI
#FutureOfWork
#DeepLearning
#DrChetanDhongade
الدرس (3)
أساسيات كتابة الكود
تعتمد كتابة أكواد لغات البرمجة على أساسيات يؤدّي تجاهلها إلى وقوع أخطاء في الصياغة (Syntax Error) التي تظهر في زمان ترجمة الكود المصدري (Source Code) وتحويله إلى كود الآلة (Machine Code)، ولذا فإنّ إجادة لغة ما يعتمد في الخطوة الأولى على التعرف على هذه الأساسيات والعمل على مراعاتها بحذافيرها. نعم، هناك أيضاً توصيات اختيارية غير إلزامية يأتي الحثّ على مراعاتها في إطار تحسين مقروئية الكود المصدري، وعدم مراعاة التوصيات لا يؤدّي إلى وقوع أخطاء صياغية.
ههنا سنذكر الأكثر أهمية من بين الأساسيات:
1- لغة بايثون تطبّق حساسية الأحرف (Case Sensitivity)، وهذا يعني أنّ كلمة average تختلف عن كلمة Average
2- تعتمد لغة بايثون على مبدأ التثليم (Indents) "أي وضع مسافة بادئة في أول السطر" وتستعملها في تعيين البلوكات البرمجية، لذا انتبه لاستعمالك (Tab) في بداية السطور.
3- لا نحتاج إلى ":" في آخر الأمر، ولكن إذا أردنا كتابة أكثر من أمر في سطر واحد وجب إفهام مفسّر لغة بايثون (Python Interpreter) ذلك بالفصل بينها بعلامة ":" بهذا الشكل: x = 1; y = 2; z = 3
4- إذا أردت أن تقسّم أمراً برمجياً وكتابته في أكثر من سطر، يجب عليك إدراج علامة "\" بين أجزائه عند نهاية كل سطر. ولكن يمكن تجاوز هذه القاعدة إذا كان الأمر البرمجي مما يشتمل على الرموز المزدوجة مثل: [] أو () أو {}.
total = item_1 + \
item_2 + \
item_3
5- لكل لغة برمجة طريقتها في إعلان المتغيرات، وقد سهّلت بايثون الأمر بعدم اشتراطها تعيين نوع المتغير حين إعلانه، ولكن يظلّ من الواجب أن يتمّ التصريح بالإعلان عن المتغير ولو بإعطائه قيمة قبل استعماله في البرنامج. فمثلاً الأوامر التالية صحيحة:
x=5
y=7
z=x+y
إذ إعلنت عن x وy بإعطائها قيم صريحة، وأما z فقد أعلنت عنه بإعطائه قيمة مستنبطة وهي ناتج الجمع.
7- تستخدم كل لغة برمجة مجموعة من الكلمات، فلا يُسمح باستخدامها كأسماء للمتغيّرات، وهذه الكلمات في لغة بايثون هي:
and, assert, break, class, continue, def, del, elif, else, except, exec, False, finally, for, from, global, if, import, in, is, lambda, None, nonlocal, not, or, pass, print, raise, return, True, try, while, with, yield.
#بايثون #لغات_برمجة #python #programming_languages
