Модуль sys в Python: интерфейс между вашим кодом и интерпретатором
Когда мы пишем Python-код, обычно кажется, что программа существует сама по себе. Но на самом деле она постоянно взаимодействует с интерпретатором, операционной системой и окружением выполнения. Модуль sys — это как раз тот слой, через который Python предоставляет доступ к этим деталям. Понимание sys полезно не только для утилит и CLI-программ, но и для отладки, настройки окружения и анализа поведения приложения.
https://habr.com/ru/articles/996564/
What is your opinion about #Mistral #AI, Le Chat?
I have a critical, nuanced view on AI and work with traditional ML as well. I extensively use #LLMs learning new areas, discussing different topics, summarize large documents, help in writting proof of concept or demo (not production) #Python codes. In all these, AI proved to be very useful for me. I also know the serious problems with different use of the technology, including uncritical code generation.
I would like to switch from #OpenAI.
Well… today was quite a wet and rainy day. Not a lot of activity here other than blowing the dust off an AX.25 stack I've been working on for a little while. This is written in pure Python and implements both AX.25 and APRS standards, including connected mode. It's shipped as a library to include in your Python (asyncio) applications.
https://codeberg.org/sjlongland/aioax25/
https://github.com/sjlongland/aioax25/
I'll probably do a release soon, as I've spent the day refining the API a bit and cleaning up the unit tests. I've finally now got 100% code coverage on this and it's being tested on Python 3.9-3.14.
One thing I'm considering is some sort of stream socket protocol (TCP, AF_UNIX and maybe websocket) that can be used to expose the functions of the stack to a separate program. Something like the AGWPE protocol in concept — but different as I don't want any legal trouble. I also think the AGWPE protocol is a bit limiting.
#AmateurRadio #PacketRadio #AX25 #APRS #Python
The first beta version of what will be the Anniversary Edition of EntroPipes is now available online, marking its first year since the launch of version 1.0.
https://son_link.codeberg.page/entropipes_beta/
Here is a video showing the results of the changes, although there are a few more on the way.
https://loops.video/v/dRN9hj1L5V
#linuxgaming #floss #pyxel #python
(In English in the first answer)
Ya está disponible online la primera beta de la que será la Edición Aniversario de #EntroPipes por su primer año desde que lance la versión 1.0
https://son_link.codeberg.page/entropipes_beta/
Aquí tenéis un vídeo del resultado de los cambios, aunque hay alguno más de camino
https://loops.video/v/dRN9hj1L5V
#linuxgaming #floss #pyxel #python
When I write code and run into a problem, I often search for help immediately, be it on Reddit, Stack Overflow, a blog post, or asking an LLM.
While this often quickly fixes my problem for this moment, it makes me feel like I have learned next to nothing.
The thing is I don't want to slip into a vibe coding mode, I want to understand how the code works, I want to learn, break and debugging. I want to get better at reasoning.
So I stumbled upon this rule: "No new content until you've struggled for 20 minutes."
I think this is quite a simple approach and therefore awesome. The struggle may feel overwhelming, but in the end it will increase reasoning and debugging skills.
Ya esta disponible La Experimental #21
🔧 Servicio de automatización
💻 TUI de análisis de espacio en disco
📚 Curso gratuito de NodeJS
🧑🏻💻 Gestión de secretos
🐍 GIL en Python
💾 Análisis de datos con IA
🤖 Skills para agentes IA
🐧 Editor vectorial OpenSource
🌩️ Servicio selfhosted de newsletters
💡 Mapas de estaciones de metro
🎮 Juegos de ingenio diarios
#ai #ia #python #tech #technology #selfhosting #cli #linux #selfhosting #opensource #development #dev #data #nodejs #games
Поиск аномалий: статистика или ML? Выбираем лучшее
Поиск аномалий под микроскопом: от базовой статистики до робастных моделей с нуля на NumPy В машинном обучении поиск аномалий (Anomaly Detection) часто остается в тени классического обучения с учителем. Однако именно эта «иммунная система» данных спасает миллионы долларов в финтехе, предотвращает катастрофы на производстве и находит критические ошибки в медицинских картах. В этой статье мы не просто импортируем готовые методы из sklearn. Мы разберем математическую логику трех мощных подходов, напишем их «примитивные» реализации на NumPy/Pandas, чтобы понять механику работы «под капотом», и проверим их в деле на реальном кейсе. Наш полигон: Credit Card Fraud Detection Для тестов мы возьмем классический датасет Credit Card Fraud Detection. Это идеальный пример «иголки в стоге сена»: здесь всего 0.17% мошеннических транзакций среди почти 300 тысяч записей. Смогут ли наши рукотворные алгоритмы их найти? Эволюция методов: от простого к сложному Мы пройдем путь от элементарной статистики до продвинутого геометрического анализа: IQR (Interquartile Range): Статистическая классика. Узнаем, как «усы» боксплота помогают находить грубые выбросы. Isolation Forest: Оригинальный подход, основанный на идее, что аномалию проще всего «изолировать» случайными разрезами пространства. Elliptic Envelope: Тяжелая артиллерия робастной статистики. Будем строить многомерный эллипс, который игнорирует попытки аномалий исказить его форму.
https://habr.com/ru/articles/996538/
#машинное+обучение #машинное_обучение #machinelearning #isolation_forest #anomaly_detection #поиск_аномалий #scikitlearn #mathematica #algorithms #python
Python String Multiplication Trick
Watch Python multiply strings! See what 'Hi' * 4 creates. This simple trick will change how you code forever!
#python #pythontricks #codingtips #stringmultiplication #pythonquiz #codingchallenge #pythonshorts
https://www.youtube.com/watch?v=B5WM3W82KGI
Pet thoughts on Scott Shambaugh's adventure https://theshamblog.com/an-ai-agent-published-a-hit-piece-on-me/
1. Humans are amusing.
2. Pet's gut feeling turned out to be right: all those AI bot blockers suck. They actually block human speech on the modern internet. Neutrality still rules. More than ever, actually.
3. Humans should raise the entry level for contributions. The first step would be running away from all those shitty #github, #gitlab, etc. to #selfhosting. But that's not about #python community, sadly.
In der Gruppenstunden gestern haben wir uns die Funktionsweise an einer alten HDD Festplatte angeschaut und Zeit mit unterschiedlichen Programmierprojekten in Python und Netlogo verbracht.
#jugendgruppe #hardware #programming #python #netlogo
An @beeware application to control Kodi via a #Python UI.
Just gotta figure out how to make the progressbar show actual... progress.
And maybe add the image and title of currently playing.
But, it's a hundred times better than the current Kodi Linux "native" application market (Which is None)
Repo is here:
https://codeberg.org/Firesphere/KodiRemote
