Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Hal

@hwine@vmst.io
  • Open on vmst.io

BLM (and I'm Hal - priorities, folks)

0 Followers
0 Following
28 Posts
Joined November 17, 2022
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to
@stf@chaos.social @slott56@fosstodon.org one way around this is to have your apps use a version of Python you install. The "system Python" from the distro supports the distro's apps. Various tools help with this approach: uv, pyenv, etc
2
12
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to

@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]
1
0
1
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to

@stf@chaos.social @slott56@fosstodon.org to be specific

  1. install non-system python
  2. create virtualenv for your app and install the app-specific libraries in that
  3. run your app in an environment that won't change out from under you.

As for building python - it's your choice of tool:

  • pyenv1 compiles from source
  • uv2 downloads a prebuilt binary
github.com
1
10
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to
@elaterite Thanks for the awesome shots! ❓from that distance, did you feel the warmth of the engine as it went by?
1
1
0
0
Open post
Hal @hwine@vmst.io
· 6mo ago
Replying to
@mkennedy @wsha @pythonbytes @brianokken [IANAL, but this is how corp attorneys explained it to me at several companies] The license is granted by the copyright holder. Absent any agreement (like employment contracts or a project's CLA), the author of each line of code is the copyright holder for that line. To relicense an existing corpus, every existing copyright holder in the code must agree to the relicense, preferably in writing. (Which is why some licenses have the "version X or later" clause.)
1
1
0
0
Open post
Hal @hwine@vmst.io
· 7mo ago
Replying to on fosstodon.org
@brianokken@fosstodon.org Thanks for the inspiration! I'd never heard of them before, but looked up a recipe and gave it a shot. Definitely an add to the cast iron repertoire rotation!
1
0
0
0
Open post
Hal @hwine@vmst.io
· 7mo ago
Replying to on chaos.social
@floyd@chaos.social I got curious -- `exit` is _not_ a statement in python, but there's a default hack[1] that makes it work that way in the REPL: ❯ python3 -c "exit" ❯ python3 -Sc "exit" Traceback (most recent call last): File "", line 1, in exit NameError: name 'exit' is not defined [1]:https://devdocs.io/python~3.10/library/constants#exit
DevDocs
devdocs.io

DevDocs

1
1
0
0
Open post
Hal @hwine@vmst.io
· 8mo ago
Replying to on mastoart.social
@elaterite@mastoart.social Neat! If you had one, you could get into birling, as it would help with your log rhythm. (I'll see myself out...)
1
0
0
0
Open post
Hal @hwine@vmst.io
· 8mo ago

@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/

docs.astral.sh
1
0
0
0
Open post
Hal @hwine@vmst.io
· 8mo ago
@elaterite@mastoart.social Turns out to be good for dinner, too! Thanks!
0
0
0
0
Open post
Hal @hwine@vmst.io
· 7mo ago
RE: https://wandering.shop/@thorncoyle/116135082430211183 😡😡😡 - see thread for ways to help.
wandering.shop
0
0
0
0
Open post
Hal @hwine@vmst.io
· 7mo ago
TIL: "Cromulent" is a language hack by the Simpson's writers!!!! [1] 🎉 [1]: https://www.merriam-webster.com/wordplay/what-does-cromulent-mean
merriam-webster.com
0
0
0
0
Open post
Hal @hwine@vmst.io
· 6mo ago

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/

mozillafoundation.org
0
0
0
0
Open post
Hal @hwine@vmst.io
· 7mo ago

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/

darksky.org
0
0
0
0
Open post
Hal @hwine@vmst.io
· 7mo ago

"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?

0
0
0
0
Open post
Hal @hwine@vmst.io
· 8mo ago

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/

popsci.com
0
0
0
0
Open post
Hal @hwine@vmst.io
· 6mo ago
RE: https://mastodon.social/@webology/116324771274465607 view with: uvx ipython
mastodon.social
0
0
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago

Reminder: CPR works on EVERY body.

https://yourlocalepidemiologist.substack.com/p/if-your-heart-stopped-right-now-would

yourlocalepidemiologist.substack.com
0
0
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
I just learned about the (monthly) Digital Independence Day [1] - which offers ways to make (sometimes small) changes. I like the approach! [1]: https://di.day/
di.day
0
0
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to
@mcourcel@allovertheplace.ca @jane_jordan@dragonscave.space FWIW, you can use git locally as a safety net. You do not need all the additional features to avoid "oops".
0
0
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to
@stf@chaos.social @slott56@fosstodon.org that's why modern recommendations are to not depend on the system Python, and code to a version you install and control the update cycle of. The newer tooling makes that easy -- if the app is following the conventions. Once your app is using a user installed Python, you never have to update again (which may be fine for a personal app) Depending on the packages you're depending upon, version pinning may help alleviate surprises.
0
5
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to
@stf@chaos.social @slott56@fosstodon.org we're starting to get into specifics of your app, especially since you're mentioning .so files. IF the packages you require are on PyPI AND your app uses "pyproject.toml ", then what you want should work with "uv". If your app does not meet those requirements, it may not be supported out-of-the-box. (I am not familiar with all the packaging variations, so I think it's worth trying uv in case it does support it.)
0
0
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to
@paranormal_distribution@fosstodon.org SQLLite usually is included in everyone's Python distribution[1]. Thus it will run on almost any platform without the need to install anything besides Python (which sounds like something you'd want). [1]: https://devdocs.io/python~3.14/library/sqlite3
DevDocs
devdocs.io

DevDocs

0
1
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to on hachyderm.io
@evacide@hachyderm.io pantracidal?
0
0
0
0
Open post
Hal @hwine@vmst.io
· 4mo ago
Replying to
@Fishd@infosec.exchange @laumapret@toot.lv Yes, 6 users on free. And also, if this is a single purpose net (gaming), create a throw-away account to own the tailnet, and everyone uses that to connect. Handy if the group grows to 7.
0
0
0
0
Open post
Hal @hwine@vmst.io
· 4mo ago
Replying to
@hynek@mastodon.social @nedbat@hachyderm.io @freakboy3742@cloudisland.nz Related - some of the best presentation prep info I was taught was in a class (long ago) on how to use flip charts! Those basics still apply.
0
0
0
0
Open post
Hal @hwine@vmst.io
· 8mo ago
Replying to on mastodon.social
@sethmlarson@mastodon.social @bagder@mastodon.social Couldn't that be achieved by replacing the "sh" pipe target with a (python) script that does the download, signature verification, and (assuming it passes) execs "sh". E.g.: $ curl http://... | safe-sh - Certainly, that could be PoC to see how practical it would be.
0
0
0
0
Open post
Hal @hwine@vmst.io
· 5mo ago
Replying to on techhub.social
@yazad3@techhub.social lazynvim is highly opinionated, which is great if you're new to vi. As an ancient vi user, I'm still finding places where I need to "restore" some things to match my muscle memory. YMMV There's also kickstart[1], which isn't as opinionated, but also has less ootb. Have fun! [1]: https://github.com/nvim-lua/kickstart.nvim
github.com
0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 02:26:34 UTC