Search
57 results for “orsinium”
-
> which can be executed directly *by the Python interpreter*.
This is why tools like #pyinstaller exist.
@orsinium @apparebit -
@warrickball @pyodide I use pyodide to run a whole bunch of things. For example:
IDE for drawing #svg images with #python:
http://svg.orsinium.dev/#Flake8 with plugins:
https://wps.orsinium.dev/ -
@python_discussions That's not true. You need to specify `__all__` in `__init__.py` (and other facades) so that #mypy, #flake8, and #ruff know that these packages are imported to be exported. Then flake8 and ruff won't report unused import and mypy will allow reexports from the module.
-
Today I got some time to find out why my #zsh takes a noticeably long time to start. The offender was #nvm. As I removed it, the time got down from 450ms to 60ms.
To time startup of zsh vs bash:
$ for i in $(seq 1 10); do /usr/bin/time bash -i -c exit; done
$ for i in $(seq 1 10); do /usr/bin/time zsh -i -c exit; done
To find how long each plugin takes at startup, add `zmodload zsh/zprof` at the top of `~/.zshrc` and `zprof` at the bottom.
-
@orsinium I know, they stole email from us claiming to combat spam and somehow there is still spam
==Email==
Maybe I only need to receive email over SMTP.
Otherwise email transfer using NNCP with known-trusted-hosts of friends and family?
Perhaps #FOAF even?
Perhaps as part of NNCPNET?
Maybe (text-only) #USENET also via NNCP?
Edit: bc I just found #NNCP and #NNCPNET and think this could be a solution
==Webdev==
I can use #RubyOnRails as needed ¯\_(ツ)_/¯
-
What are your favorite #corecursive (or another similar IT #podcast) episodes? I have a 10h flight ahead, and all I'm going to have there is an ipod.
-
@aohorodnyk @ede I came here to say that. #Taskfile syntax is very similar to the examples in bkn, so it might be a good inspiration.
And there is nothing wrong about reinventing things. It's fun, you can a lot along the way, and maybe you can even make something better and be an inspiration for someone else. Keep going!
-
@aohorodnyk @ede I came here to say that. #Taskfile syntax is very similar to the examples in bkn, so it might be a good inspiration.
And there is nothing wrong about reinventing things. It's fun, you can a lot along the way, and maybe you can even make something better and be an inspiration for someone else. Keep going!
-
@aohorodnyk @ede I came here to say that. #Taskfile syntax is very similar to the examples in bkn, so it might be a good inspiration.
And there is nothing wrong about reinventing things. It's fun, you can a lot along the way, and maybe you can even make something better and be an inspiration for someone else. Keep going!
-
@aohorodnyk @ede I came here to say that. #Taskfile syntax is very similar to the examples in bkn, so it might be a good inspiration.
And there is nothing wrong about reinventing things. It's fun, you can a lot along the way, and maybe you can even make something better and be an inspiration for someone else. Keep going!
-
I received two new PRs with improvements to my platformer game Blutti from @orsinium
I have released version 0.8 which contains these changes:
https://github.com/ollej/firefly-blutti/releases/tag/v0.8The movement has been improved to allow both walking and running depending on where on the touchpad you press.
It also now follows the recommended guidelines for which buttons to use.
-
Wrestling with #DjangoRestFramework to make an adapter serializer that uses #pydantic for validation.
DRF embodies all the worst things about Java-style OOP. There are base classes, mixins, attributes that must not be used before you call a specific methods, nothing is documented, and, of course, not annotated. Even drf-stubs project that supposed to annotate DRF is full of Any. And then we also stuck with pydantic v1 where you can't have custom serializers.
What a day.
-
@mgorny You can use #flit to produce sdist distributions with autogenerated setup.py:
https://flit.pypa.io/en/stable/cmdline.html#cmdoption-flit-build-setup-py
-
@mgorny You can use #flit to produce sdist distributions with autogenerated setup.py:
https://flit.pypa.io/en/stable/cmdline.html#cmdoption-flit-build-setup-py
-
@mgorny You can use #flit to produce sdist distributions with autogenerated setup.py:
https://flit.pypa.io/en/stable/cmdline.html#cmdoption-flit-build-setup-py
-
@mgorny You can use #flit to produce sdist distributions with autogenerated setup.py:
https://flit.pypa.io/en/stable/cmdline.html#cmdoption-flit-build-setup-py
-
Last week I decided to pick #litestar instead of #fastapi for a new #python microservice and I already regret this decision. I can't make DB rollbacks work in tests because the test client runs the server in a separate thread with its own event loop. And it feels like I'm the first one doing it and there is no community to help.
I learned a valuable lesson: don't underestimate the importance of community. Sometimes, it's better to go with mainstream. Especially for commercial projects.
-
@glowrocks Django is still very much alive and I, unfortunately, work with it daily at my job. It didn't age well, though. The support for asyncio is still quite rough, support for typing is third-party (see django-stubs) and painful, and it hides too many things (the ORM makes it too easy to make bad requests). The modern most hyped web framework is #fastapi and I personally found #litestar (ex #starlite) quite nice (better #sqlalchemy integration).
-
1. The easiest way to get into microcontrollers for you is to buy @adafruit #pybadge or #pygamer and program it on #circuitpython, a limited version of #python.
https://www.adafruit.com/product/4200
2. #Rust will let you program anything and smartly utilize limited resources. Entry level is high.
3. #Golang strikes the balance. It's easy to learn and with #tinygo you can program any microcontrollers, including abovementioned pybadge.
-
@[email protected] I used to use drone.io as #CI provider for all my OSS projects just because it supports #Starlark as configuration format. Starlark is a simplified #Python designed for writing configs and safe execution. It saves quite a bit of repetition and I wish more CI providers would support it. Unfortunately, I had to migrate to Github Actions because Drone just stopped working one day.
-
@RenewedRebecca Then #golang is a good choice. There is #tinygo Go compiler for all kinds of microcontrollers, and it also includes SDKs for all kinds of peripherals:
And #gobot is a collection of SDKs for robots, watches, and other tech:
-
New project: a CLI tool that listens to audio input (microphone), saves the recording to a WAV file, and plays it back on the audio output (speakers).
https://github.com/orsinium-labs/chamber
That's it, that's all it does. I use it to record music from my audio sequencers (#PO33 and #EP133) and hear what is currently playing.
-
I recently made a nice framework for making wasm-4 games with #tinygo:
https://github.com/orsinium-labs/wasm4goTinyGo now has the wasm-unknown target which makes really small and nice #wasm binaries.
Also, if you have #adafruit #pybadge, you can use it as a handheld console for running wasm-4 games:
https://github.com/orsinium-labs/gamgee -
New project: Runtime for running WASM-4 games on Adafruit #PyBadge and potentially other small devices/
https://github.com/orsinium-labs/gamgee
Written in #Rust, it uses wasmi crate to run #wasm modules with very little space and memory requirements. The binary is just about 270 Kb and the runtime uses for itself just a few Kb of RAM giving the rest to the game.
-
@[email protected] Good luck with your journey! Programming is fun, and #Python is very versatile. I use it to generate art, produce assets for my board game, power lots of websites, notify me about things, analyze and visualize data. Oh, and it pays my bills.
I've got #pybadge last week. However, I use #tinygo instead of Python to program it, which seems to me like a better fit for small places.