Skip Navigation

Posts
1
Comments
102
Joined
2 yr. ago

  • type -p is a shell builtin though, and one character shorter :)

    Although you may prefer tool=$(command -v tool)

  • Comparing Arch's base + base-devel is kinda unfiar, there's only 54 packages total there.

  • Thank you engineers who happen to be working at Facebook

  • Thought I'd check on the Linux source tree tar. zstd -19 vs lzma -9:

     
        
    ❯ ls -lh
    total 1,6G
    -rw-r--r-- 1 pmo pmo 1,4G Sep 13 22:16 linux-6.6-rc1.tar
    -rw-r--r-- 1 pmo pmo 128M Sep 13 22:16 linux-6.6-rc1.tar.lzma
    -rw-r--r-- 1 pmo pmo 138M Sep 13 22:16 linux-6.6-rc1.tar.zst
    
      

    About +8% compared to lzma. Decompression time though:

     
        
    zstd -d -k -T0 *.zst  0,68s user 0,46s system 162% cpu 0,700 total
    lzma -d -k -T0 *.lzma  4,75s user 0,51s system 99% cpu 5,274 total
    
      

    Yeah, I'm going with zstd all the way.

  • Valve should get on this for gamescope, imagine Steam Deck doing a system update without closing your game.

  • Video files are just a bunch of zip files in a trenchcoat.

  • It used to use project folders, but due to confusion/user error was changed in 3.0.

  • zstd or leave

  • Not all communities I want to follow made the transition. I'm still on Reddit for HFY, and some smaller game communities.

    But Lemmy has replaced a sizable chunk of my Reddit usage, especially around more technical topics.

  • It requires a phone number to log in. That already kills any hope for anonymity. I use it to message family and close friends, of which the fact that I'm messaging them is not surprising.

  • I run my Nextcloud behind Tailscale, and Caddy handles theTailscale https certs.

  • in the OP

    My reply is to a commenter who said they prefer "${HOME}/docs" over both options in the original image ("$HOME/docs" or "$HOME"/docs). Many people prefer to always include braces around the parameter name out of consistency, instead of only when they are required.

    My comment explained why my habit is to only include braces when they are necessary.

  • It's interesting, the results here are way different than the Code Golf & Coding Challenges Stack Exchange. I would never expect Haskell to be that low. But after looking at code.golf, I realize it's because I/O on CG&CC is more relaxed. Most Haskell submissions are functions which return the solution.

    Sidenote: I like the CG&CC method, it's semi-competitive, semi-cooperative.

    • all languages welcome
    • almost all users post "Try it Online"/"Attempt This Online" links
    • most users post explanations under their submissions
    • often people will post solutions beginning with "port of user1234's excellent Foolang answer" when there's a clever shortcut someone finds
    • or people will post their own solution with "here's a solution which doesn't use user1234's algorithm"
    • or people will add comments to answers with minor improvements

    IMO It's geared towards what is the best part about code golf: teaching people about algorithm design and language design.

  • My experience is still a good success rate there. Back in ~2015 my family got an USB WiFi card which needed an out-of-tree module, which the manufacturer had on Github, complete with DKMS instructions. It was upstreamed after about a year, though!

    The only completely unsupported device I've had is my laptop's fingerprint sensor.

  • I think this is a good default.

    An impossible dream of mine would be to check a list of devices with haptic touchpads, and disable tap-to-click on those.

  • This has never stuck with me, and I hadn't thought about why until now. I have two reasons why I will always write ${x}_$y.z instead of ${x}_${y}.z:

    • Syntax highlighting and shellcheck have always caught the cases I need to add braces to prevent $x_ being expanded as ${x_}.
    • I write a lot of Zsh. In Zsh, braces are optional in way more cases. "$#array[3]" actually prints the length of the third item in array, rather than (Bash:) the number of positional parameters, then the string 'array[3]'.
  • Typically find "$HOME/docs", but with a few caveats:

    • In Zsh or Fish, the quotes are unnecessary: find $HOME/docs
    • If I'm using anything potentially destructive: mv "${HOME:?}/bin" ...
    • Of course, if it's followed by a valid identifier character, I'll add braces: "${basename}_$num.txt"
  • Yep, I'm finding about half of my Reddit usage satisfied. I've got all the technical talk I want, but no gaming or writing communities.