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 #lua

0 ★ 0 ↺

[?]Marek S. ล. ยป 🌐
@marek@m5l.eu

Thanks to Lua with batteries included and mise-en-place I now have automatic setup for general-purpose scripting in . I just needed to learn how to set the package search path.


    Zef Hemel boosted

    [?]advokatt ยป 🌐
    @km@mastodon.babb.no

    5.5 released! I spent last Christmas learning myself Lua.

    lua.org/versions.html#5.5

      [?]Zef Hemel ยป 🌐
      @zef@hachyderm.io

      @writefreely the project seems very much technologically and value aligned with @silverbulletmd: backend written in , simple single binary deployment, open source, open standards, minimalist design. This may well become my recommended way of sharing content from

      But again, first need to hack together a proper integration in . Seems straight forward enough, already got auth working.

        [?]Eugene :freebsd: :emacslogo: ยป 🌐
        @evgandr@mastodon.bsd.cafe

        The Awesome WM is awesome :drgn_aww:

        Often, it is described as "tiling WM for beginners". But inside it is powerful enough โ€” it uses Lua scripting language inside it's configuration file. In the same manner, like StumpWM uses Common Lisp inside it's configuration file. So almost everything, almost any action, could be programmed with Lua.

        Looks like Lua is simple enough โ€” with the help of language manual I recreated my StumpWM configuration in one evening. And much more:

        - Main (task) bar on the left.
        - Widgets with menus: "wifi widget" with menu to call wpa_gui or call dhclient for some interfaces. And the battery widget with menu to setup the charging threshold.
        - SVG icons (from Haiku) almost everywhere โ€” in menus, in main bar, etc.

        Clear desktop with wallpaper (Adine from "Angels with scaly wings") and the main panel on the left.

On the panel, from top to bottom:
1) Iconified list of workspaces. Red kettle for workspace with Emacs, XTerm, etc. Globe for workspace with Librewolf or Dillo. Video tape icon for workspace with Librewolf's "Picture in Picture" window and for mpv windows.. And the desk icon for VNC client.
2) Vertical list of opened windows on the current workspace.
3) State of "wlan0" interface โ€” the SSID of current WiFi network. It has the yellow background and the icon of the radio tower on the left.
4) Battery state โ€” the battery percentage. It has the purple background and the icon of the battery on the left.
5) The current week day and the date. The calendar opens by click in this area.
6) The current time.

        Alt...Clear desktop with wallpaper (Adine from "Angels with scaly wings") and the main panel on the left. On the panel, from top to bottom: 1) Iconified list of workspaces. Red kettle for workspace with Emacs, XTerm, etc. Globe for workspace with Librewolf or Dillo. Video tape icon for workspace with Librewolf's "Picture in Picture" window and for mpv windows.. And the desk icon for VNC client. 2) Vertical list of opened windows on the current workspace. 3) State of "wlan0" interface โ€” the SSID of current WiFi network. It has the yellow background and the icon of the radio tower on the left. 4) Battery state โ€” the battery percentage. It has the purple background and the icon of the battery on the left. 5) The current week day and the date. The calendar opens by click in this area. 6) The current time.

        The Emacs window opened in the Awesome WM. The main bar are on the left.

        Alt...The Emacs window opened in the Awesome WM. The main bar are on the left.

        The Emacs window in the Awesome WM. On the left bar, the battery and WiFi widget were clicked, so they display the extended information.

The WiFi widget displays not only the SSID, but also the used frequency and SNR (in dB). The battery widget displays the state of battery and used power (currently it is zero because battery neither charging, not discharging).

The battery widget has the "right-click" menu opened. There are two items in this menu: to set charging threshold to the 80% and to the 100%.

        Alt...The Emacs window in the Awesome WM. On the left bar, the battery and WiFi widget were clicked, so they display the extended information. The WiFi widget displays not only the SSID, but also the used frequency and SNR (in dB). The battery widget displays the state of battery and used power (currently it is zero because battery neither charging, not discharging). The battery widget has the "right-click" menu opened. There are two items in this menu: to set charging threshold to the 80% and to the 100%.

          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

            1 ★ 1 ↺
            SilverBullet boosted

            [?]Marek S. ล. ยป 🌐
            @marek@m5l.eu

            Today I was playing with in @silverbulletmd@fosstodon.org, and while upstreaming a fix for a dependency, I landed PR number 1 there.

            This is what promises to be, and it does feel nice to actually do it.