python

Back Open Paginator
17.08.2025 18:24
scy (@scy@chaos.social)

#Python #FloatingPointNumber #IEEE754





Show Original Post


17.08.2025 18:16
brunoamaral (@brunoamaral@mastodon.social)

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 scripts to support fetching the latest post from the API and sending it via .

forum.ghost.org/t/how-to-send-




Show Original Post


17.08.2025 17:25
nostarch (@nostarch@mastodon.social)

Not sure if this cat dreams of Python scripts or tuna snacks. Either way, this library is in good paws. 🐱📚





Show Original Post


17.08.2025 17:00
d120de (@d120de@toot.kif.rocks)

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 d120.de/vktut

Falls ihr Erstis seid: Meldet euch einfach an über d120.de/vkreg

Wir hoffen, wir sehen euch beim Vorkurs!

#programmieren #coding #vorkurs #python #snek #passtso





Show Original Post


17.08.2025 16:42
habr (@habr@zhub.link)

Ищем порт на коммутаторах D-Link

Предисловие. Есть у нас сеть. Не вдаваясь в подробности, состоит она из нескольких десятков коммутаторов D-Link и Cisco. Последние выполняют роль агрегаторов трафика, а D-Link занимаются доступом. Соответственно много VLAN, много устройств. И очень часто, пользователи меняют свое расположение, а вместе с ними переезжают их компьютеры и МФУ. Всё это дело хоть и подключается к нумерованным розеткам, часто поиск порта на коммутаторе для замены VLAN довольно долог и не удобен. Кроме того, техники, которые занимаются непосредственно подключением оборудования, не имеют доступа на коммутаторы. Им приходится глазами искать кабель в стойке, а потом просить инженеров проверить VLAN. Хотелось как-то упростить процесс. Я уже давно неспешно изучаю Python в качестве дополнительного образования. В основном для применения в автоматизации на работе и дома. Ну тут вот и сошлось: Python, проблема и статья на Хабре Python3. Автоматизация конфигурации мультивендорного сетевого оборудования / Хабр . Прямо брать код из ее не стал, такой функциональности не требуется. Да и хотелось самому разобраться, опираясь на идею. Написание кода началось с запроса к GigaChat, заодно было интересно проверить насколько он хорошо пишет скрипты. Не буду утомлять приводя весь цикл нашего общения, остановлюсь кратко: сперва GigaChat выдал скрипт на основе библиотеки paramiko, после уточнения, что нужно для Telnet выдал и эту версию. После нескольких итераций, в том числе с асинхронными функциями, остановился на библиотеке telnetlib. В Python 3.12 есть ее замена telnetlib3, т.к. сама telnetlib вырезана в релизе - устарела. ИИ вполне можно использовать для написания небольших скриптов, как отработка идеи или небольших функций в проектах. Однако стоит проверять код, т.к. в части случаев он получается совсем не рабочий. Ну и заодно - изображение в начале текста тоже сделал GigaChat, я то рисовать не умею.

habr.com/ru/articles/937954/

#Python #коммутаторы #dlink #системное_администрирование




Show Original Post


17.08.2025 15:28
machinelearningsite (@machinelearningsite@mastodon.social)

Understand the fundamentals of Bayes’ Theorem and see its real-world application in based text classification.

machinelearningsite.com/unders




Show Original Post


17.08.2025 15:12
taoofmac (@taoofmac@mastodon.social)

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(...)

taoofmac.com/space/dev/python





Show Original Post


17.08.2025 14:46
nicemicro (@nicemicro@fosstodon.org)

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




Show Original Post


17.08.2025 13:24
cheukting_ho (@cheukting_ho@fosstodon.org)

Check out my #workshop at #EuroSciPy about #FastAPI Tuesday 19th 10:30AM: euroscipy.org/schedule/

Book a 1-1 #TeaWithCheuk on Thursday 21st: calendly.com/Cheuk/tea-with-ch

#Python #community #LetsCode




Show Original Post


17.08.2025 13:24
cheukting_ho (@cheukting_ho@fosstodon.org)

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





Show Original Post


17.08.2025 10:13
hanscees (@hanscees@ieji.de)

Help needed!
any #python knowledgeable person want to help with a coding problem using @beeware? On #linux
The code is here: github.com/beeware/toga/discus

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





Show Original Post


17.08.2025 09:57
TechKeysX (@TechKeysX@mastodon.social)

S1 EP1 T1 - Most basic machine learning example





Show Original Post


1 ...1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 ...1547
UP