Hal
BLM (and I'm Hal - priorities, folks)
@Blujean@mas.to @davidruffner@raphus.social Yeah, slices take a bit of getting used to. It helps me to thing of the first 2 values as "start" and "stop_before". So a[1:1] is not an element of the array, it's the space between elements 0 & 1. (slice starting at 1 and ending before 1)
a = [0, 1, 2, 3]
print(a[1:1])
# []
print(a[:1], a[1:])
# [0] [1, 2, 3]
@stf@chaos.social @slott56@fosstodon.org to be specific
- install non-system python
- create virtualenv for your app and install the app-specific libraries in that
- run your app in an environment that won't change out from under you.
As for building python - it's your choice of tool:
@tlohde@fediscience.org if your "little command line" is reasonable to do in 1 file, then you don't need a "module" (the empty __init__.py file). You can just use "uv init --script file.py" to get the boilerplate.
As for typer vs click -- that's a preference, mostly depending on how comfortable you are with python types. Those are both not part of the standard library, so you'll want to specifically add them: "uv add --script file.py typer". The uv docs[1] do a good job of covering this. (Also, uv can integrate with jupyter[2] in case that makes transitions easier for you.)
[1]: https://docs.astral.sh/uv/guides/scripts/#running-a-script-with-dependencies
[2]: https://docs.astral.sh/uv/guides/integration/jupyter/
Please consider signing Mozilla's petition[1] against removal of end-to-end encryption in Meta's Instagram.
It might be tilting at windmills, but that's the Fediverse way, right?
[1]: https://www.mozillafoundation.org/en/petitions/keep-encryption-for-instagram/
URGENT: public comment ends March 5
If you don't think more than 1 million more satellites, some with mirrors to light up the dark are a good idea, ACT NOW
File comment [1]; More backstory [2] These do take more work than "petitions", so TIA
[1]: https://darksky.org/news/two-satellite-proposals-threaten-the-night-sky-the-window-to-act-is-now/
[2]: https://skyandtelescope.org/astronomy-news/spacex-aims-to-launch-1-million-ai-data-center-satellites/
"What's in a word?" A lot -- sounds like Canadians have a positive word for folks who do (seemingly) random walks through "career" & "education". Pretty cool, Eh?
Popular Mechanics & Popular Science have sure changed their content since I was a kid. But at least they have some quality features that I never would have expected back then. Like this:
https://www.popsci.com/environment/2025-nature-photography-contest-winners/
Reminder: CPR works on EVERY body.
https://yourlocalepidemiologist.substack.com/p/if-your-heart-stopped-right-now-would