Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)M
Posts
2
Comments
95
Joined
12 mo. ago

  • Interesting. Some years ago I’ve relied on SSHFS to have a decent speed when operating on remote files. I wonder if this might have been a solution as well.

  • Because those recommendations are written for new users. A new user will be better served by a distribution which puts user-friendliness at its forefront. If you’re not a newbie you probably don’t need recommendations because you already know what distributions are available out there.

  • You can just copy the file and set XAUTHORITY as necessary. Just make sure only the desired user can read it.

  • No, do not do that. This gives access to the display to anyone who can connect to it. The proper way is to give the user access to file whose path is in $XAUTHORITY.

  • Capital letters in user names. 🤮

    Debian has torbrowser-launcher you might wanna take a look at that.

    As for the issue, this could be because the user lacks credentials to connect to the display.

  • Firstly, and most importantly, executing grub-install requires super-user privileges. Rather than adding it to PATH you should instead run the command through sudo. A regular user typically does not need any of sbin directories in their PATH.

    As for the command itself, there are three things wrong with it:

    1. PATH should only include directories whereas you tried to add to it a path to an executable. So rather than /usr/sbin/grub-install/grub-install you should just add /usr/sbin.
    2. White space is significant, so the space before colon would make your command not work anyway.
    3. Rather than appending to PATH you’ve overwritten the variable. Instead you need PATH="$PATH:/usr/sbin/:/usr/local/sbin" (notice $PATH: at the beginning of the assignment).

    Also, export is unnecessary since PATH is already an environment variable. (That’s also bashism but that’s likely an irrelevant issue).

  • It’s been years since editors started getting their packages. I would guess Emacs was late to the game actually. If you’re only ever used notepad, the manager is there to install additional features such as syntax support for new languages, refactoring tools, navigation commands and more.

  • Maybe those would help (although using those would require changing how you do emails and it’s not a solution for Android):

    • offlineimap in case you need something to fetch your IMAP emails.
    • gmailieer is a tool which uses Gmail API to fetch emails.
    • notmuch is a tool which indexes your email. You can assign whatever labels you want and rather than folders it uses tags.
    • For notmuch you then need a front-end which can display the emails. I use Emacs for that. And since notmuch uses tags, you can then create whatever ‘folders’ by making saved searches.
  • uutils developers aren’t earning any more than coreutils developers. This is an orthogonal discussion.

  • I’m essentially trying to find the most performant way to get a simple read/write buffer.

    Stack is hot so it’s probably better to put things there than to have static array which is out of memory cache and whose address is out of TLB.

    To answer your question, yes, this is undefined behaviour if the function is called from multiple threads. It’s also undefined behaviour if, by accident, you take second reference to the array.

    It’s unlikely that you really need to do anything fancy. I/O is usually orders of magnitude slower than dealing with memory buffers. Unless you profile your code and find the bottleneck, I’d advice against static mutable buffer.

    PS. On related note, a shameless plug: Rust’s worst feature.

  • Yes, but I was talking about field name, not struct tag. And up to C99 my comment was correct.

  • You appear to be correct.

  • Tag is what goes after the struct keyword to allow referring to the struct type. Structs don’t have to have a tag. Name is what field are called. Adapting Obin’s example:

     
        
    struct foo { int baz; };
    struct bar { struct foo qux; };
    struct bar data;
    data.qux.baz = 0;
    
      

    foo and bar are tags for struct foo and struct bar types respectively; baz and qux are field names; and data is a variable name.

  • Minor correction: Unnamed structs and unions (so your second example) are not part of C. They are GNU extensions.

  • This is hardly newsworthy. If the extensions were called ‘Jabberwocky C Extennsions’ no one would have cared. The extension allows for tagged unnamed structs inside of a struct, e.g.:

     
        
    struct inner { /* ... */ };
    struct outer {
        int value;
        struct inner;
    };
    
      

  • I am also aware the bios battery does nothing once it’s booted

    The CMOS battery does nothing from the moment computer is turned on. If you’re saying booting takes longer, that’s not battery’s fault.

    So I assumed the cmos battery is dying, but not dead enough to lose settings yet.

    That’s not how CMOS battery work. It’s even good enough or you’re loosing the clock.

  • I just use Arch

    You have only yourself to blame then. You’ve chosen a distribution which expects users to learn how the system works and it’s on you to figure out how to suspend the system.

    I think the laptop bios battery is dying

    This is unlikely. If the battery was dying, you’d be loosing BIOS/UEFI settings including time. Once the computer starts up, the battery is unused.

  • Linux @lemmy.ml

    Is Ctrl+D really like Enter?

    mina86.com /2025/is-ctrl-d-really-like-enter/