python

Back Open Paginator
14.12.2025 23:32
jochie (@jochie@strangeweb.page)

@winslowjosiah Oof, I didn't know we were doing PythonGolf 😜

#adventofcode #python #programming #coding #adventofcode2025




Show Original Post


14.12.2025 23:21
gooser3000 (@gooser3000@mastodon.social)

Spent some time writing a little script that puts an indicator in my status bar if any systemd services have failed (e.g., my backup script). I looked for something online but didn't find it. Seems like something that should be built-in.
There's a lot more that could go wrong on the system that I could be monitoring for, too, like if a filesystem is filling up (e.g., /boot!).
I could also have it query Prometheus running on my server and tell me if there's any alerts.




Show Original Post


14.12.2025 22:44
philip_schwarz (@philip_schwarz@fosstodon.org)

🚀 just uploaded (link in reply): Part 2 of Combinatorial Interview Problems with Backtracking Solutions - From Imperative ProceduralProgramming to Declarative Functional Programming #scala #haskell #python





Show Original Post


14.12.2025 22:41
vor (@vor@lgbtqia.space)

I'm currently enrolled at a #university. I recently completed the 2025 Fall semester. Because of this, I received a notice that I have 14 days before my #password expires.

Nevermind that expiring #passwords are stupid, passwords may not exceed 32 characters.

I have an amazing password solution that cannot be configured to provide a memorable password with a maximum length. The best you can do is configure how many word-unites are in the password. And, you have to count the characters.

I wrote a #Python program to generate a memorable password. Because that was easier than generating a bunch of memorable passwords with my password manager and figuring out which would work.




Show Original Post


14.12.2025 22:41
RioSampaEnglish (@RioSampaEnglish@mastodon.social)

Alguém postou recentemente no Re**it sobre um "transpiler" que havia criado, que converte código Python escrito em sua própria língua para o Python padrão e sua sintaxe semelhante ao inglês.

As respostas não foram o que o autor esperava. Muitos argumentaram que escrever Python em outro idioma e depois convertê‑lo de volta para o Python com sintaxe parecida com o inglês perde o objetivo: perde‑se a intenção e a clareza de escrever diretamente em Python.

Aprender algum inglês.




Show Original Post


14.12.2025 22:36
RioSampaEnglish (@RioSampaEnglish@mastodon.social)

Someone recently posted on Re**it about a 'transpiler' they’d built that converts Python code written in their own (non-English) language into standard Python, and its English-like syntax.

The responses weren’t what the poster expected. Many argued that writing Python in another language and then converting it back into English-like Python loses the point: you miss out on the intent and clarity of writing directly in Python.

So learning some English will usually serve you best.




Show Original Post


14.12.2025 22:27
oclero (@oclero@mastodon.online)

📢 I've published a NEW Python library: pdfwm! A CLI and a lib.

It allows you to batch add watermarks to every page of every PDF file you need. Very useful when you need to provide confidential documents such as your ID card or passport when registering to some service.

pip install pdfwm

github.com/oclero/pdfwm

#python #library #cli #commandline #pdf #watermark #document




Show Original Post


14.12.2025 21:50
winslowjosiah (@winslowjosiah@hachyderm.io)

Throughout this year's #AdventOfCode event, I've been working on a single-line #Python program that solves *every* 2025 puzzle. The result is a >2,600 character beast I call "The Brahminy".

github.com/WinslowJosiah/adven

#programming #coding #AdventOfCode2025





Show Original Post


14.12.2025 21:24
TechKeysX (@TechKeysX@mastodon.social)

Different Ways to use Input() function in Python - S1 EP01 P8





Show Original Post


14.12.2025 21:20
nordern (@nordern@chaos.social)

Content warning:AoC 2025 - Semi-Finished - Spoiler


I've completed "Christmas Tree Farm" - Day 12 - Advent of Code 2025 #AdventOfCode adventofcode.com/2025/day/12

I didn't manage to finish a working implementation of 10b in #swift yet, had to swap to #python for this one part

github.com/edave64/advent-of-c

Thanks to the cassowary library, I did actually get pretty close, 18598 instead of the correct 18559.

Pretty cool, considering that doesn't have minimization or integer constraints.




Show Original Post


14.12.2025 21:10
linkdrop (@linkdrop@troet.cafe)

NoteDiscovery - Your Self-Hosted Knowledge Base notediscovery.com/ #note-taking #self-hosted #Python #note #app




Show Original Post


14.12.2025 20:57
hugovk (@hugovk@mastodon.social)

@joelle Something like:

uv pip install --resolution=lowest -e .

Or --resolution=lowest-direct to only use the lowest for your direct deps, letting transitive deps float.

docs.astral.sh/uv/concepts/res

I don't think you can tell it to use the lowest Python mentioned in the toml, but you can hardcode it:

uv pip install --python 3.10 --resolution=lowest -e .




Show Original Post


1 ...814 815 816 817 818 819 820 821 822 823 824 ...1576
UP