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
1
Comments
106
Joined
11 mo. ago

  • I find it funny that just couple weeks ago I’ve written about the format. What’s especially interesting about this format is that it can losslessly transcode JPEG into JPEG XL while offering around 20% file size reduction. It can be used to reduce size of one’s image gallery without any loss of quality.

  • 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.
  • Maybe. Or maybe you lack basic critical thinking to be able to put the article in context. But since you’ve initiated the ad hominem part of the discussion, I don’t think there’s any point continuing this discussion, so we’ll never know.

  • Even the article admits that AI researchers are aware that LLMs are not sufficient. So the title is absolutely false. The article uses research which has very little to do with the subject to springboard into an opinion piece which itself observes that actually the premiss of the opinion is incorrect.

  • The title is false. The cited paper deals with connection between language and intelligence however a) it does not comment on current AI bubble and b) current AI research does not assume language is the same as intelligence. It’s an example of scientists saying something and journalists extrapolating from that to get a story out of it. Reminds me of On Human (and) Nature.

  • 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;
    };
    
      

  • Linux @lemmy.ml

    Is Ctrl+D really like Enter?

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