LED Invader – 1D Arcade Game auf RP2040 Zero
https://3ar.io/blog/led-invader-1d-arcade-game-auf-rp2040-zero/

@pino Well... ultimately you can use whatever coding style you want, but I tend to think complaining about wasted space kind of clashes with the spirit of #Python. (Within reason, of course. One could certainly write Python code in a way that pretty much unambiguously does waste space. But Black's code style is not that.)
I do think it's worth experimenting with the line length though.
@travisshears To be fair a whole bunch of standards and tools solved that, piece by piece, over the last 5-10 years. #Python packaging became good even before uv. The benefits of uv are that it's fast, and it combines the functionality of a bunch of other tools that came before it into one program.
I've finally started to take a look at Black - the very famous code formatter for #Python.
I really don't like what it does. When I compare my original code with the formatted one, every single change is visually unfortunate imho. It wastes a lot of space compared to the original, and nothing gets prettier or more readable.
But I still love the idea of having one universal, widely-adopted standard formatting, in general. A lot.
... so I'll go with it now?!?!
Might actually pick Python for my next side project after learning about UV. Always found it weird how python is the most used programming language, taught to beginners.. and the package / virtual env workflow is so bad. If I don’t actively work on a python project each time I come back to it I have to relearn pip and pipenv. UV seems to solve that.
@mdione GIMP is a creeping nightmare of non-supported stuff. Basically, people made all these cool things for GIMP 2.10, and absolutely none of them work with GIMP 3.0. And while GIMP 2.10 has been utterly abandoned, GIMP 3.0 is not yet ready for prime time.
Many plugins for GIMP 2.10 were written using Python 2.7, and Python 2.7 is completely incompatible with Python 3.0, and is not supported on any platform, so to get them to work, you either have to make a way of installing and using Python 2.7, or you have to convert the plugins to Python 3.0, and nobody could be bothered to convert the plugins to Python 3.0.
Those plugins which were not written in Python 2.7 (including gmic-qt and resynth) were written to depend on GIMP 2.10 libraries and/or other obsolete libraries. And nobody (except the resynthesizer author) has upgraded them to GIMP 3.0.
The only languages supported for writing plugins for GIMP 3.0 are Python 3.0, Scheme, and C. (There was once a Perl module, but that became unsupported a long time ago.)
@mdione Setting up my own flatpak server wouldn't really solve the problem... before I could do that, I would have to basically re-solve the problems which they solved in order to get all the things working with version 2.10, and once I did that, I wouldn't need a flatpak server, I could just install gimp from source.
10/10
Interested in the crossroads of dynamical systems and number theory? Read, experiment, and share what you find.
🔗 Link in the first post
#Math #Primes #NumberTheory #Cryptography #Python #TNFR
a little silly tool from the dungeons - fire off your fav shortcut and a voice to text thingie appears and transcribes whatever you say and throws it into your clipboard. So I can dictate stuff to copy and paste etc.
It also cleans up the uuuhs and aaaahs if you use a cloud service that supports that, or not if you roll your own locally hosted which is SEMI-nicely architecturally separated. Love doing small useful tools like this.
https://github.com/nbhansen/TalkyBoi
@wakame I have been thinking about this more and more: make another #ansible frontend to accept a more #python like language. After https://en.osm.town/@mdione/115629737380378014 I started reading Ansible's code. Nothing is going to come out of it any time soon, tho :)
When using #ChatGPT for documentation, the key is not dumping your entire project and praying for a perfect response. It’s guiding the language model with the right kind of context of your #Python code and intention of it.
AtCoder ABC401 D - Logical Filling を解きました!
動的計画法で左右両方向から最適解を探索する問題。'?'を'o'か'.'に置き換えて、'o'の数を正確にK個にします。
解答コード: https://gist.github.com/maehrm/10f5642eef10b9ba972bd75e3ab314f4
問題: https://atcoder.jp/contests/abc401/tasks/abc401_d
※MCPサーバー経由で自動投稿