• 2 posts
  • 23 comments
Joined 8 months ago
Cake day: January 9th, 2026
  • First, did you look if the filename itself contains a trailing whitespace? I had this issue a few times myself, thinking the script is broken, but in fact the file on the filesystem had a space. That is annoying. If your variable has an additional space and you want to remove it, then I think its better to find out where this space comes from (if its not the file itself), and solve the issue there. Because if you get an unexpected space, then this could be a bug in your script somewhere.

    There are multiple ways to remove leading and trailing whitespaces with Bash. The best is not to call a command for this and rely on Bash substitution. This can get ugly, but luckily we can steal from Stack Overflow, :p (basically what we did before Ai):

    trim() {
        local var="$*"
        # remove leading whitespace characters
        var="${var#"${var%%[![:space:]]*}"}"
        # remove trailing whitespace characters
        var="${var%"${var##*[![:space:]]}"}"
        printf '%s' "$var"
    }
    
    trim "    text in the middle          "
    

    https://stackoverflow.com/questions/369758/how-can-i-trim-whitespace-from-a-bash-variable (who got it from another source,

  • Oh, its probably Proton then. There are or were number of games on Proton that were not playable because the videos didn’t work. It’s some sort of video driver issue or so. Depending on when you tried it, they might already updated it. There were number of fixes in recent months about video related issues.

    If not a new normal Valve Proton version fix is, maybe the great alternative Proton GE could. In case if you find yourself trying it out again.

  • Because not everyone wants or can write any of them? If people like Rust and want to write and read Rust, then it makes sense to write it in Rust. Not in “any of them”. And when they see other projects written in Rust, it makes sense to review it, look into, adapt the code written in Rust. Not in any of the other languages, because the project is in Rust.

    Let’s go back again to understand what my point was. I try to be clear as possible. The GNU tools are written in C. Only programmers who understand and can write in C can understand and write in C. But look… someone rewrote the GNU tools in Rust. Not in another language. In must be my lucky day, because Rust is my favorite and only language I write (that’s not true BTW, but that’s is besides). I loooove writing in Rust and immadiately open it up, look into, I can read and write in Rust. Not in another language.

  • What kind of argument is that?

    I thought its obvious what I meant, based on the context of my entire reply. The argument is, anyone who writes and understands can make changes to the Rust code, but not on C or Python code. I can basic C coding, but wouldn’t trust me doing anything with it, but I would trust me doing something with Rust. Was it really that hard to understand? Also that means following is wrong:

    Anyone who writes Python code can read, adapt and make changes to it

    The code is Rust code. Anyone who writes Python code can NOT read, adapt and make changes to it. That’s my point with C vs Rust, because not everyone writes C (or Rust) code.

  • I would assume something like Fortnite, PUBG and Call of Duty games as an example. I’m curious to use cases outside of (obvious) games. Is there any situation that is not possible to do on a Linux desktop, that requires to use Android or iOS app? Like banking, is there any bank that only offers a mobile app and nothing else? That’s the issue I have right now, finding a real use case where I have to use it (obviously there is none for me personally, so finding it wouldn’t make it a requirement for me).

  • This is not about defending corporations. It doesn’t matter who does that, I don’t think writing new tools with a different license is bad. My opinion has nothing to do about who does that, if communities, or corporations. I think having tools in a different language than C, especially something like Rust, is a good thing. Anyone who writes Rust code can read, adapt and make changes to it.

    And for licensing, GPL can be problematic in some cases that is not compatible with every license. Therefore having an alternative in MIT license is a good thing. Even if it ends up being in a proprietary program, its still better than not able to use the code. The old GPL code is still maintained independently.