@winslowjosiah Oof, I didn't know we were doing PythonGolf 😜
#adventofcode #python #programming #coding #adventofcode2025
Spent some time writing a little #python 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.
🚀 just uploaded (link in reply): Part 2 of Combinatorial Interview Problems with Backtracking Solutions - From Imperative ProceduralProgramming to Declarative Functional Programming #scala #haskell #python

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.
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.
#esl #python
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.
📢 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
https://github.com/oclero/pdfwm
#python #library #cli #commandline #pdf #watermark #document
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".
https://github.com/WinslowJosiah/adventofcode/blob/main/solutions/2025/brahminy.py
#programming #coding #AdventOfCode2025

Different Ways to use Input() function in Python - S1 EP01 P8 #Python #LearnPython #PythonProgramming #VariablesInPython #PythonTutorial #CodingBasics #CodeNewbie #S1EP01 #PythonSeries #LearnOnTikTok #TechTok #CodingTok #EducationTikTok #Programming101 #python #CodingForBeginners #PythonBasics #ProgrammingSeries #TechEducation #CodeTutorial
Content warning:AoC 2025 - Semi-Finished - Spoiler
I've completed "Christmas Tree Farm" - Day 12 - Advent of Code 2025 #AdventOfCode https://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
https://github.com/edave64/advent-of-code/blob/main/2025/Sources/10/partB-python/solver.py
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.
NoteDiscovery - Your Self-Hosted Knowledge Base https://www.notediscovery.com/ #note-taking #self-hosted #Python #note #app
@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.
https://docs.astral.sh/uv/concepts/resolution/
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 .