Stegano 2.2.0 is out!
Notable changes:
- Performance improvements — steganography operations are now 50–1000x faster (direct pixel access via load(), fixed O(n²) parsing issue)
- Support for hiding/revealing messages in PCM .wav files
- Added shi_tomashi generator support in stegano-lsb CLI
More details here: https://github.com/cedricbonhomme/Stegano/releases
#Stegano #Python #Steganography #OpenSource #Graphic
"I'm your density" -George McFly, BTTF 🚗 ⚡️
Happy Valentine’s Day from STEMcoding!! ❤️
While George McFly fumbled that interaction, Density is a great way to talk about connections or how much "stuff" is packed into a space.
Try this in python:
n = 25 # Number of students
total = n * (n - 1)
print(f"Total cards: {total}")
#STEMcoding #Python #ValentinesDay #BackToTheFuture #mathstodon

[Перевод] Возможно, самый гениальный код на python на сегодня: разбираем 200-строчный microgpt от Андрея Карпаты
Буквально на днях Андрей Карпаты, один из ранних сооснователей OpenAI, покинувший компанию, исследователь нейросетей, опубликовал на Гитхаб фантастическую вещь: чистый (без специализированных библиотек) 200-строчный python-код трансформера, аналога GPT-2, для изучения всеми желающими. И написал в блоге статью для понимания этого кода (и работы трансформеров). Я перевёл статью, комментарии к коду и дополнил своими комментариями для лучшего понимания — ведь этот код (я уверен!) войдёт в ИТ-историю... Присоединяйтесь к этому завораживающему сеансу разоблачения gpt-магии, за считанные годы овладевшей миром!..
https://habr.com/ru/articles/996404/
#Андрей_Карпаты #microgpt #llmмодели #python
Bot User Agent Block
Drop known scrapers at the edge in milliseconds.
#php #python #botdefense #useragent #scraping #security #backendsafety #performance #reliability #viralcoding
https://www.youtube.com/watch?v=a22XpC0KTIc
IOSACal 0.7 is here. Nothing fancy but lots of maintenance work that keeps the project going, improved documentation and - if I can keep it up - a renewed development wave.
https://pypi.org/project/iosacal/0.7.0/
#archaeology #OpenScience #Python #ClimateScience

JSON Decode Error Invalid JSON
A Python developer conversation about json decode error invalid json
#python #coding #developer #programming #bug #error
https://www.youtube.com/watch?v=oHkr0CP5suY
Currently playing with adding optional #Numba support to Complexitty; my #Mandelbrot plotter for the #terminal. The speedup is okay.
Given this zoom and position, on my M2 Mac mini, 0.8 seconds. With Numba: 0.2 seconds.
I should give it a spin on my M2 Pro mini.
Without Numba on my 2019 Intel MacBook Pro the same spot takes about 2 seconds.

Anyone have any good open source examples of complete Python games they can link me? I'm having to rewrite some of Py Trek because the project is getting massive and out of hand and would like to see what good practices actually are for python stuff
#python #gamedev #programming
Good interview of the maintainer of coverage.py
https://www.youtube.com/watch?v=xjWjfRVTUHo
Python Tip #45 (of 365):
Think of dictionaries as primarily about keys, at least when it comes to asking questions of them.
When we loop over a dictionary we get keys:
>>> counts = {"cats": 1, "ducks": 3}
>>> for thing in counts:
... print(thing)
...
cats
ducks
When we ask whether something is "in" a dictionary we're asking about the keys:
>>> "cats" in counts
True
>>> 2 in counts
False
Python's dictionaries see the world through their keys.
🧵(1/2)
And finally, for now, the best one.
When I make a typo in the release notes, I no longer need to type in the URL for the admin site, then click to see release list, find the relevant release, and click to edit.
Instead I can click the "Edit" button right there on the page!!!

Thanks to @Monorepo for doing most of this, which needed changes to both the release process and the website: releases since 13th January now show SHA-256 checksums instead of MD5!
https://www.python.org/downloads/release/python-3150a4/
