python

Back Open Paginator
22.03.2026 19:40
loptimist (@loptimist@piaille.fr)

Do we have a GUI dor systemd-cryptenroll allowing people to change enrolled passphrases to unlock their LUKS partition ?

Better yeu something which is capable of enrolling the tpm2 module and a fido2 key.

#linux #systemd #systemd-cryptenroll #python #gtk #yubikey #fido2 #tpm2 #security #debian




Show Original Post


22.03.2026 19:19
linuxgal (@linuxgal@techhub.social)

Generating truth tables in #python #Y0

from sympy.logic.boolalg import truth_table
from sympy.abc import x, y, z
table = truth_table((x ^ y) ^ z, [x, y, z])
for t in table:
print('{0} -> {1}'.format(*t))





Show Original Post


22.03.2026 18:46
treyhunner (@treyhunner@mastodon.social)

Python Tip #81 (of 365):

Normalize cases with the string casefold method.

When normalizing the cases of strings for the sake of a comparison, consider using casefold instead of lower or upper.

Instead of this:

matches = (value.lower() == target.lower())

Consider this:

matches = (value.casefold() == target.casefold())

The casefold method lowercases, but it handles SLIGHTLY more cases than the lower method.

But honestly, that's not the reason I'd use it.

🧵 (1/2)




Show Original Post


22.03.2026 18:31
DO3EET (@DO3EET@mastodon.hams.social)

🚀 Mein erstes Paket ist live! 🛰️
Ich habe gerade toybox-calc veröffentlicht – ein kleines CLI-Tool für Funkamateure, um die optimale Länge des Strahlers für die Comet HFJ-350M (Toy Box) Antenne zu berechnen.

Jetzt verfügbar auf:
📦 PyPI: pip install toybox-calc
🏔️ AUR (Arch Linux): pikaur -S python-toybox-calc
Inklusive i18n Support (DE/EN/JA) und ANSI-Farben fürs Terminal. Vy 73 de DO3EET! 📻

#HamRadio #Amateurfunk #Python #ArchLinux #AUR #PyPI #OpenSource #HFJ350M #ToyBox #POTA #SOTA #Linux





Show Original Post


22.03.2026 18:11
winbuzzer (@winbuzzer@mastodon.social)

winbuzzer.com/2026/03/22/opena

OpenAI Acquires Python Toolmaker Astral to Boost Codex AI Agent

#AI #OpenAI #Python #MergersAndAcquisitions #ClaudeCode #OpenSource #AICoding #DeveloperTools #CodingTools #Coding #Astral #Codex





Show Original Post


22.03.2026 18:10
lobsters (@lobsters@mastodon.social)

The Slow Collapse of MkDocs lobste.rs/s/qhtpe5
fpgmaas.com/blog/collapse-of-m




Show Original Post


22.03.2026 17:30
Reuven (@Reuven@fosstodon.org)

A #Python #Pandas column contains comma-separated values. How can you get the first of those?

First, break each string into a list:

df['x'].str.split(',')

Then use .str[0] to grab the first element from the resulting list:

df['x'].str.split(',').str[0]





Show Original Post


22.03.2026 17:22
habr (@habr@zhub.link)

Как я взвесил черную дыру и отменил Темную материю с помощью Python (Анализ данных LIGO и SPARC)

Привет, Хабр! Меня зовут Павел, я независимый исследователь. Последние пару недель я находился в состоянии непрерывного потока, в результате которого с нуля написал 100-страничную монографию, вывел математический аппарат и написал Python-скрипты, доказывающие одну безумную, на первый взгляд, гипотезу. Весь этот путь от чистого листа до готовой публикации с DOI занял у меня ровно 15 дней. Суть гипотезы — Теории Вибрационно-Энергетического Резонансного Континуума (ТВЭРК) — состоит в том, чтобы отказаться от эйнштейновской абстрактной «искривленной пустоты» и описать Вселенную методами строгой механики сплошных сред и нелинейной гидродинамики. Звучит амбициозно и попахивает «теорией всего», я знаю. Но любая теория — это просто слова, пока она не подтверждена цифрами. Поэтому я отложил философию, взял Python и пошел проверять свою математику на реальных, сырых данных из открытых астрофизических баз. В этой статье я покажу, как мне удалось смоделировать кинематику 175 галактик одним набором параметров (без Темной материи) и «услышать» резонансный гул черной дыры Cygnus X-1 в данных интерферометров LIGO. Смотреть расчеты и Python-код

habr.com/ru/articles/1013386/

#астрофизика #черные_дыры #темная_материя #python #анализ_данных #LIGO #гравитационные_волны #SPARC #ТВЭРК #дифференциальная_эволюция




Show Original Post


22.03.2026 17:00
PythonPeak (@PythonPeak@mastodon.social)

Generate Hypnotic Spiral

Iterative logic generates art nested loops create structured patterns through systematic repetition Modify and share

#python #pythontricks #codingtips #programmingtutorial #hypnoticspiral #spiralart #opticalpattern #pythonvisual #viralpython #pythonshorts #spiralpattern

youtube.com/watch?v=r2jAOf34vNM




Show Original Post


22.03.2026 17:00
reillypascal (@reillypascal@hachyderm.io)

More success porting Lilypond/Frescobaldi capabilities over to Neovim: I can now easily do musical transformations on Lilypond notation!

I can transpose passages, double/halve the durations, dot/undot everything, apply a completely new rhythmic pattern, or remove repeated duration indicators or make them explicit again.

This uses the remote plugin feature on Neovim: github.com/reillypascal/nvim/t

#Neovim #Nvim #Lilypond #Frescobaldi #Python #Composition #ClassicalMusic





Show Original Post


22.03.2026 16:17
publickey1 (@publickey1@rss-mstdn.studiofreesia.com)

AIエージェントがコマンドラインでブラウザを自動操作できる「Browser Use CLI 2.0」リリース。Chrome DevToolsへの接続などで操作速度が2倍に
publickey1.jp/blog/26/aibrowse

#publickey1 #Web技術 #プログラミング言語 #機械学習_AI #開発ツール #Python #Webブラウザ




Show Original Post


22.03.2026 14:05
taoofmac (@taoofmac@mastodon.social)

Python

Python is one of my favorite programming languages due to its terseness and amazing flexibility, and after decades using it I find it quite amusing that it is now the language of c(...)

taoofmac.com/space/dev/python?





Show Original Post


1 ...279 280 281 282 283 284 285 286 287 288 289 ...1596
UP