I am migrating my site to @ghost.org and found a problem when it asked me to configure a Mailgun account to send newsletters. So I've updated one of my #Python scripts to support fetching the latest post from the API and sending it via #Postmark. https://forum.ghost.org/t/how-to-send-newsletters-via-postmark-api/59669
Not sure if this cat dreams of Python scripts or tuna snacks. Either way, this library is in good paws. 🐱📚
#Linux #Python #Cybersecurity #programmerhumor #cats #bookstodon #books

Liebe Studis,
wir suchen für den Programmiervorkurs vom 29.9. bis 02.10. Tutoren, welche bei Fragen in den Übungen helfen.
Die Anforderungen: Grundlegendste Kenntnisse im Bereich Programmieren und Pythonsyntax.
Es ist auch möglich, nur an einzelnen Tagen anwesend zu sein.
Die Anmeldung erfolgt über https://www.d120.de/vktut
Falls ihr Erstis seid: Meldet euch einfach an über https://www.d120.de/vkreg
Wir hoffen, wir sehen euch beim Vorkurs!
#programmieren #coding #vorkurs #python #snek #passtso

Ищем порт на коммутаторах D-Link
Предисловие. Есть у нас сеть. Не вдаваясь в подробности, состоит она из нескольких десятков коммутаторов D-Link и Cisco. Последние выполняют роль агрегаторов трафика, а D-Link занимаются доступом. Соответственно много VLAN, много устройств. И очень часто, пользователи меняют свое расположение, а вместе с ними переезжают их компьютеры и МФУ. Всё это дело хоть и подключается к нумерованным розеткам, часто поиск порта на коммутаторе для замены VLAN довольно долог и не удобен. Кроме того, техники, которые занимаются непосредственно подключением оборудования, не имеют доступа на коммутаторы. Им приходится глазами искать кабель в стойке, а потом просить инженеров проверить VLAN. Хотелось как-то упростить процесс. Я уже давно неспешно изучаю Python в качестве дополнительного образования. В основном для применения в автоматизации на работе и дома. Ну тут вот и сошлось: Python, проблема и статья на Хабре Python3. Автоматизация конфигурации мультивендорного сетевого оборудования / Хабр . Прямо брать код из ее не стал, такой функциональности не требуется. Да и хотелось самому разобраться, опираясь на идею. Написание кода началось с запроса к GigaChat, заодно было интересно проверить насколько он хорошо пишет скрипты. Не буду утомлять приводя весь цикл нашего общения, остановлюсь кратко: сперва GigaChat выдал скрипт на основе библиотеки paramiko, после уточнения, что нужно для Telnet выдал и эту версию. После нескольких итераций, в том числе с асинхронными функциями, остановился на библиотеке telnetlib. В Python 3.12 есть ее замена telnetlib3, т.к. сама telnetlib вырезана в релизе - устарела. ИИ вполне можно использовать для написания небольших скриптов, как отработка идеи или небольших функций в проектах. Однако стоит проверять код, т.к. в части случаев он получается совсем не рабочий. Ну и заодно - изображение в начале текста тоже сделал GigaChat, я то рисовать не умею.
https://habr.com/ru/articles/937954/
#Python #коммутаторы #dlink #системное_администрирование
Understand the fundamentals of Bayes’ Theorem and see its real-world application in #Python based text classification. #machinelearning
https://machinelearningsite.com/understanding-naive-bayes-in-python/
Python
Python is one of my favorite programming
languages due to its terseness and amazing flexibility, and after decades using it I find it quite amusing that it is now the language of c(...)
#data #development #programming #python #science #scripting
https://taoofmac.com/space/dev/python

There was something interesting going on on one of my systems:
If a certain function in #Python was called as a separate process with the #multiprocessing library, then the sort_values function of #Pandas would just hang (and therefore the process would never produce the output I was waiting for). Called from the main process was OK.
The solution was to change the sorting algorithm by the `kind="stable"` parameter. Weird.
#ArchLinux #Linux #programming #parallelization
Check out my #workshop at #EuroSciPy about #FastAPI Tuesday 19th 10:30AM: https://euroscipy.org/schedule/
Book a 1-1 #TeaWithCheuk on Thursday 21st: https://calendly.com/Cheuk/tea-with-cheuk
Will you be at #EuroSciPy? I can't want to meet you all there. I will be giving a #workshop about #FastAPI on Tuesday, and if you want to have a 1-1 with me, please see the link below to book a time #TeaWithCheuk on Thursday ❤️ #Python #community #LetsCode

Help needed!
any #python knowledgeable person want to help with a coding problem using @beeware? On #linux
The code is here: https://github.com/beeware/toga/discussions/3698
I am trying to update a table that #toga shows on screen. To problems:
1. the code that is supposed to fire when pressing the start button fires spontaneously.
2. the table doesn't update.
The problem is somewhere in using classes I suspect and I really don't understand that very well. Trying to code conways game of life with #wolf and #deer

S1 EP1 T1 - Most basic machine learning example #machinelearning #linearregression #python #jupyternotebook #jupyter #datascience #alogrithim #statistics #coding #codingforbeginners #deeplearning #mathematics #dataengineering #learncoding