m5l.eu is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Site description
Yet another single-user instance
Admin account
@marek@m5l.eu

Search results for tag #python

0 ★ 1 ↺

[?]Marek S. Ł. » 🌐
@marek@m5l.eu

Who could have guessed that running a package sending data over to a page with to render at runtime using two separate embedded Chrome processes could cause my flight simulator to have performance issues?

Well, once I became the person to guess that and I'm simply translating some textures with everything is butter smooth again.

    AodeRelay boosted

    [?]Fabio Manganiello » 🌐
    @fabio@manganiello.eu

    📰 New blog article

    Self-host your own multi-service #music server on #Android

    How to replace your music streaming apps with a setup that supports multiple streaming services, multiple devices and multiple outputs from a single Webapp.

    #mopidy #platypush #termux #ntfy #Tasker #python

    @Selfhosted @Android @python

    https://blog.platypush.tech/article/Self-host-your-music-experience-on-mobile

      AodeRelay boosted

      [?]Codeschubse » 🌐
      @codeschubse@idic.social

      Für ne /#Flask-Webapp, muss ich da die beiden Ordner `flask_session` und `__pycache__` unbedingt per tracken, oder sollte ich die sogar via .gitignore aus dem Tracking rausnehmen?

        AodeRelay boosted

        [?]~/rqm » 🌐
        @rqm@exquisite.social

        in 7.8-current has been bumped to from 3.12.

        If you run any applications via then you might find they are failing to launch and cannot be upgraded either because of the version bump. You need to reinstall them all:

        $ pipx reinstall-all

        Solved my woes :flan_thumbs:

          AodeRelay boosted

          [?]Kairos Prometheon » 🌐
          @kairos_prometheon@mastodon.social

          TextAudio is now open source!

          A privacy-first text-to-speech platform that converts documents into audiobooks without Big Tech surveillance. Features voice cloning, 23 languages, and production-ready microservices architecture.

          Your documents, your data, your control. Built on sovereignty principles, released under MIT license.

          Feel free to continue.

          🔗 github.com/Pariatorn/textaudio

            AodeRelay boosted

            [?]zolaris » 🌐
            @zolaris@mastodon.illumos.cafe

            I have a ruleset defined for all of my VMs, but it always bothered me that they didn’t share the same syntax, formatting, ordering, etc. I figured I could reduce the complexity and solve all of these inconsistencies by modularizing my firewall rules. Ideally, I wanted something like:

            ```
            import enable_ssh_in
            ```

            which would inject the corresponding rule fragment into the ruleset. Some modules would also need light post-processing such as filling in port numbers, selecting protocols, and similar adjustments.

            Unfortunately, can’t handle rule imports, so the next best option is to pre-bake the full ruleset and hand the final result to IPF.

            My first attempt was with m4, but the result was messy and triggered my . Then I tried doing it in , and the outcome is much cleaner.

            Now I can write a simple text file like: paste.omnios.org/?97e42d30483c
            Feed it through my macro processor, and it generates this: paste.omnios.org/?5db469ba780c

            What do you think about this?

              AodeRelay boosted

              [?]Mike Coats 🏴󠁧󠁢󠁳󠁣󠁴󠁿🇪🇺🌍♻️ » 🌐
              @mike@mikecoats.social

              My latest blog post: momtag

              mikecoats.com/momtag/

              Introducing momtag, or Mike's Opinionated Music Tagger. Keep a small collection of music reasonably and consistently organised.

                AodeRelay boosted

                [?]FediMeteo » 🌐
                @admin@fedimeteo.com

                Under the hood update!

                I’ve finally retired the old cron + sh setup for the weather bots. It served us well, but it had a major flaw: if I rebooted the server while it was posting, the job just died halfway. If the server was down during a scheduled slot, the forecast was lost forever.

                So, I wrote a custom Python daemon to run inside the FreeBSD Jails.

                • It’s stateful now. If a crash happens at city 15 of 50, it resumes exactly there on reboot.
                • If the server naps/is rebooting during a scheduled run, the bot realizes it missed a slot and runs immediately upon waking up.

                  [?]jhx » 🌐
                  @jhx@mastodon.bsd.cafe

                  1 ★ 1 ↺

                  [?]Marek S. Ł. » 🌐
                  @marek@m5l.eu

                  I think I made a really nice setup for marrying technical documentation with academic citations in . It was as simple as writing a little script using a citation library (PybTeX) and then incorporating it into the build process.

                  See it working at https://marsh-sim.github.io/bibliography/

                  Because everything is written in regular files, the editor can autocomplete citation keys without any special tooling - they are just sections in another file. This kind of interoperability is why simple tools like text files and are so great.

                  I'm not a fan of hosting it on GitHub anymore, but there are already links in various places that I can't update, so this is the reasonable thing to do.

                    0 ★ 1 ↺

                    [?]Marek S. Ł. » 🌐
                    @marek@m5l.eu

                    It's been only four weeks and I really love using mise-en-place by @jdx@fosstodon.org So far I've used it for (chronologically):

                    - switching between versions, I liked it more than the dedicated anyzig
                    - venv activation – it's silly but feels so good, and collaborates with uv
                    - ensuring I have the right language server and formatter for a project, be it , , and trying out various options for Python
                    - setting LANG="C.UTF-8" only in the specific project folder because refused to work with Polish...

                    The final boss was getting a really comfortable Tree-sitter setup: get the CLI, write grammar in , re-generate and run tests on source change as a mise Task. And then I only cloned the repo on another machine and was ready to go!

                    This post was written as a more cultured outlet for my excitement instead of aggresively committing mise.toml into every repository I touch

                      AodeRelay boosted

                      [?]God Emperor of Mastodon » 🌐
                      @mms@mastodon.bsd.cafe

                      whoever says that mastodon is nerdy:

                      when was the last time you quotted or here?! Fedi is normie land with extra steps.

                        0 ★ 2 ↺

                        [?]Marek S. Ł. » 🌐
                        @marek@m5l.eu

                        On the most recent episode of "Spending the Same Amount of Time Automating Something as It Would Take to Do It by Hand" our protagonist finds himself exporting business cards for his colleagues with and !

                        Join the fun at: https://paste.sr.ht/~maarrk/2f1125139c62ebc567d15eac5e066a73ef638845

                          4 ★ 3 ↺

                          [?]Marek S. Ł. » 🌐
                          @marek@m5l.eu

                          Recently tried https://astral.sh/uv tooling for , and I think I'm switching over for the foreseeable future.

                          What made me finally try something else than raw pip and venv was easy installing of multiple Python versions. I was completing a PR to a library that (admirably) wants to support the old ones as well. Once I had the tool, I tried it for releasing a new version of my own PyPI package, and I wasn't ready for how fast and convenient it would be.

                            0 ★ 1 ↺

                            [?]Marek S. Ł. » 🌐
                            @marek@m5l.eu

                            Today's discovery: make history of Jupyter notebooks cleaner with this package:

                            pipx install nb-clean
                            nb-clean add-filter --remove-empty-cells --preserve-cell-outputs

                              0 ★ 1 ↺

                              [?]Marek S. Ł. » 🌐
                              @marek@m5l.eu

                              Today I threw together a small in to help with experimental characterisation of hardware for . It's simply generating a sinusoidal signal within configurable limits, but now it's definitely easier to understand than running scripts in terminal.

                              I did enjoy the ease of setup of TkInter, and compatibility with Matplotlib, but I was missing the simplicity of immediate mode libraries. In trying to emulate these, now a few callbacks trigger "given this dataclass with state, the widgets should look like this".
                              The micro-management gremlin is whining that it's repeating useless work, but more importantly the window is complete and I can go on with the experiment.

                              Screenshot of a basic graphical application with settings, showing plots of generated signal to its side.

                              Alt...Screenshot of a basic graphical application with settings, showing plots of generated signal to its side.