Skip Navigation
Posts
2
Comments
36
Joined
2 yr. ago
  • So far I have also completely ignored them. From what I understand they technically allow you to install old versions of software, potentially having multiple at the same time. This could come in a clutch when working with stuff like Godot or Blender where constantly upgrading to the latest version would cause issues on bigger projects. This is the only thing I can see myself using them for, at least in the near future.

  • Does this release include unsetting DISPLAY to use native Wayland?

    • Sokoban
    • Atomas
    • Magic Survival
    • Mindustry
    • Terraria
  • Meanwhile, a reverse vim enjoyer like myself, using micro to edit any file running as my user. If it requires root to write, it will simply elevate the permissions for that operation when I press Ctrl+S, asking for password if needed.

    Same idea with VSCodium, but via GUI polkit prompt.

    Life is good when you don't hjkl _

  • I honestly loved some of the default Windows apps, like Notepad, Paint and believe it or not, the default file manager. I find that most file explorers on Linux can't strike a good balance between simplicity and the amount of features.

    Thankfully (or not, if you use Windows) they started enshittifying each and every one of them, so there's nothing to miss any more.

  • I'm probably gonna switch from Codeberg, I just can't rely on a service that's down all the time or takes literal minutes to load a repo page.

  • Oh no, he's shilling his own project after transitioning to a different technology.

    Do you even hear yourself? I think you should stick with "He's a biggot" type of comments, because this just makes you look stupid.

  • reluctantly accepting the standard that was developed without them

    Not with everything, Nvidia stood still on explicit sync, in that case it were the idiots at Freedesktop that were massively blocking Wayland's progress, trying to force an inferior technology, which Nvidia did not want to implement.

  • Meanwhile "per monitor workspaces" have been requested almost 20 years ago and are a dealbreaker for many users...

  • Still no per monitor workspaces :/

  • I've been using Codeberg for a while now, however their servers are not always up to par. I've been in situations where it takes forever to load content of the code base via their website, pushing to a repo was also really slow, upwards of 30 seconds.

    I know they've been DDOS'd a while back, but this was about a week ago and lasted for few days.

  • Found the Windows user. On Linux we actually have polkit that can elevate privileges with a GUI prompt.

  • 2029: EU proposes to criminalize the use of mathematics.

  • Working on your yt-dlp wrapper I see, nice. Keep up the good work!

  • If Linux suddenly started gaining traction on a bigger scale, Microsoft would make a user-facing proprietary distro and those bastards would still flock to it.

  • First saying that tabs are a no go, then proceeding to deliberate on the correct amount of spaces...

    Long live tabs!

  • Nice, used to love playing with p5 back in the day, good to have such tools for Lua which is often recommend as a beginner language.

    I wish the author did implement some built-in libraries like middleclass, that would allow people that don't necessarily understand how metatables to fake classes in more elaborate ways than what's showcased in the instances.lua example.

  • Clipboard in Linux is weird. Can you replicate this:

    1. Copy text
    2. Close the application you copied from
    3. Paste into a different application
    4. Nothing appears

    If so, that means you don't have a clipboard manager running, default for KDE is Klipper I believe.

  • Fuck subscriptions

    Step 2:

    Buy a subscription

  • Lua @programming.dev
    Name @programming.dev

    Lazy Lua - Extended standard library for Lua >=5.1

    Lazy is a library that extends the standard Lua library.
    It exposes function modules such as math, string, table, etc.

    It's aimed to fill the gaps of Lua's standard libraries by providing functions such as math.round to round numbers, string.trim to remove leading and trailing white spaces from a string and many many many more.

    One important feature of Lazy is that the require path of modules is automatically resolved, which allows you to require the lazy library from virtually anywhere.
    For example the lazy folder may be located in the root of your project or any sub-directory. More so, upon setting your LUA_PATH correctly, lazy can be required anywhere from your PC without having to import it into your project. Please refer to the GitLab page for more information .


    Example usage:

     lua
        
    local lazy = require "lazy"
    
    lazy.math.round(1234.5678, 2) --> 1234.57
    lazy.os.capture("pwd") --> /home/name/projects/lua/lazy
    lazy.string.split("Lua is amazing!", " ")
      
    Lua @programming.dev
    Name @programming.dev

    Community Rules and Guidelines

    All the rules from this Lemmy instance apply.
    Additionally, please try to follow these community-specific rules:

    Rules

    1. Posts must relate to Lua

    All posts must be related to the Lua programming language.
    This also includes related and derivative projects, such as Luau or MoonScript.

    2. Use descriptive titles

    Your title should in short describe the contents. That applies to all kinds of posts, no matter whether you're showcasing a project, discussing a feature or asking for help.

    Examples of bad titles:

    • please help!
      ^ Doesn't provide any information about the post
    • How to rotate SENT?
      ^ Should also information about API and ideally expand SENT which is a rather niche acronym
    • request.lua
      ^ Could provide a short description of the library

    Examples of good titles:

    • [Help] Lua errors when using string.format with the %p flag
    • *How to rotate a Scripted Entity in Garry's Mod