python

Back Open Paginator
04.12.2025 13:04
AFoucart (@AFoucart@social.sciences.re)

#adventofcode en #python, jour 4.

Une première grille! J'aime bien les problèmes 2D dans Advent of Code, et ici clairement le fait d'avoir résolu les puzzle l'an dernier m'a grandement accéléré pour directement trouver une bonne manière de représenter les données.

notes.adfoucart.be/aocode25/da




Show Original Post


04.12.2025 12:56
dhobern (@dhobern@scicomm.xyz)

I'm getting ready to build a new ("better") #RaspberryPi-based #AutomatedMothTrap that includes all the features I've played with in different models (automated and manual scheduling, GPS, temperature, humidity, etc.). I want to include at least a basic low-power UI rather than expecting the user to ssh in from a phone or laptop. This is important if I expect to share copies for non-programmers to operate themselves.

So I've been mucking around today writing a library for a configurable settings/config menu that will work with just a 16x2 LED display and a rotary encoder with push switch as the controller.

Here is a #video of the UI for editing the trap coordinates (simulated for now on a Linux terminal). I'm quite please with how it's going. Pushing the button opens a lower menu level or an editable sub-field. Turning the knob cycles through possible values. Hence coordinates being split into hemisphere and DMS even though I want decimal coordinates.

The #Python is the configuration for the menu partly explored in the video. It has two submenus with two items under each (plus an automatically generated Return option in each submenu).

#entomology #insect #moth #data





Show Original Post


04.12.2025 12:34
meuon (@meuon@fosstodon.org)

New rabbit hole: Python and tkinter
Needed a little desktop thing, which may be sharable later. Started for Perl and WX Widgets.. Seems that world is fallow. Hadn't played with Python in a long time, it's time to re-explore. Python and tkinter looks like it will work. Need to add some regex (re). And off we go. I miss semicolons already. #python




Show Original Post


04.12.2025 12:32
habr (@habr@zhub.link)

Контроль качества переводов на основе ИИ

А вы задумываетесь иногда, что вот хочется что-то сделать такое, чтобы как-то выбиться из общей массы разработчиков? Сейчас придумаю идею, реализую, стану зарабатывать много денег? Все же так думают? Или только я один. Да вот поэтому я и делаю постоянно какие-то проекты. И да, все они простые и не выдающиеся, но, наверное, главное — не унывать. Утешаю я себя так.

habr.com/ru/articles/973100/

#python #nlp #llm #перевод #локализация #qa #open_source #cli #api




Show Original Post


04.12.2025 12:22
aoetk (@aoetk@fedibird.com)

最近gRPCをおべんきょしていて、JavaとPythonのサンプルをそれぞれ見ているんだけど、やっぱりPythonの方が直観的に書ける感じだな。Javaの方はRMIや昔のリモートEJBっぽさがどうしても出てくる。

#grpc #java #python




Show Original Post


04.12.2025 12:22
habr (@habr@zhub.link)

Книга «Python для инженерных задач»

Приветствуем, коллеги. Расскажем вам о нашей долгожданной новинке – «

habr.com/ru/companies/bhv_publ

#Python #самоучитель #математика #инженерия #matplotlib #numpy #scipy #pandas #книги_по_программированию




Show Original Post


04.12.2025 12:04
notes (@notes@pinky.st)

#GitHub - jeffthibault/python-nostr: A #Python #library for #Nostr
https://mnmm.top/AGw

ライブラリのインポートでエラーが出るなと思ったら、サーバのPythonのバージョンが足りてなかった。
風邪っぽくてボーッとしてるから、半日ぐらい気付かずゆる~く四苦八苦してた。




Show Original Post


04.12.2025 11:58
bruno (@bruno@go.rocha.social)

O treinamento em turma #Python para #DevOps está chegando ao fim!

Além de tudo o que já construímos durante o treinamento, agora vamos falar sobre uma plataforma self-service multi modal, usando Terraform, Docker e Kubernetes tudo controlado via Python vamos criar as interfaces: API, CLI, TUI, Web e Mobile! (eu ia incluir um MCP mas parece que já saiu de moda né?)

O exemplo é simples e talvez inútil, alguém com certeza vai comentar que já existe Backstage para resolver esse problema, mas mesmo assim e divertido criar esse tipo de coisa do zero linha a linha de código e traz um conhecimento que serve para resolver problemas quando o recurso que você precisa é aquele que você tem que criar!





Show Original Post


04.12.2025 11:50
kfdm (@kfdm@social.tsun.co)

Tonight has been fighting with tomlkit in #python and trying to get it to save an array sorted 🙃




Show Original Post


04.12.2025 11:25
hamatti (@hamatti@mastodon.world)

#AdventOfCode 2025, day 4

Forklifts and paper rolls were the theme of the day.

I reused some helper functions in creating a grid from the input and got to a nice solution with the first idea. If I had more time, I'd love to look into some optimisations but work calls.

First use of my favourite data structure, namedtuples, and I also got to discuss magic numbers.

notes.hamatti.org/technology/a

#python




Show Original Post


04.12.2025 11:08
ollej (@ollej@hachyderm.io)

About three years ago I ported the game Infinite Bunner from python to Rust and Macroquad. It is a modern remake of the old Frogger arcade game that was published in the book Code the Classics vol. 1.

github.com/ollej/rust-bunner-m

I can highly recommend the book, it has several games with full source code, graphics and sound. Each game has a short description on the history of it as well.

amazon.com/Code-Classics-I-Dav

#GameDev #Rust #RustLang #RetroGame #python #PyGame





Show Original Post


04.12.2025 11:00
bayesian-optimisation-for-bioprocesses (@bayesian-optimisation-for-bioprocesses@kemal.yaylali.uk)

Bayesian Optimisation for Bioprocesses

Cut Your Experiments in Half While Finding Better Optima I've spent countless hours watching bioreactors, waiting for the next data point to tell me whether my latest parameter tweak was brilliant or a waste of expensive media. If you've ever run a DoE campaign and wondered halfway through whether those remaining 30 experiments were really necessary, you're not alone. What if I told you there's a mathematically principled way to decide your next experiment based on everything you've learned […]

kemal.yaylali.uk/bayesian-opti





Show Original Post


1 ...881 882 883 884 885 886 887 888 889 890 891 ...1571
UP