Some middle-aged guy on the Internet. Seen a lot of it, occasionally regurgitating it, trying to be amusing and informative.

Lurked Digg until v4. Commented on Reddit (same username) until it went full Musk.

Was on kbin.social (dying/dead) and kbin.run (mysteriously vanished). Now here on fedia.io.

Really hoping he hasn’t brought the jinx with him.

Other Adjectives: Neurodivergent; Nerd; Broken; British; Ally; Leftish

  • 0 Posts
  • 851 Comments
Joined 1 年前
cake
Cake day: 2024年8月13日

help-circle
  • I have an alias called save_aliases that does alias > ~/.bash_aliases. alias on its own just dumps all the existing aliases to the terminal in a format that can be parsed by Bash.

    I felt especially clever when I came up with that and used it to save itself.

    Bonus fact: ${BASH_ALIASES["name-here"]} is a way to get at the contents of an alias without resorting sed or cut shenanigans on the output of the alias command.


  • I’m a hoarder who refuses to buy more stuff because I can’t bear to part with the stuff I’ve got. So all of it, I guess?*

    But if you want a simpler answer, there are a couple of old stuffed animals that I’d mourn as much as I would a living pet, so probably those. They’re a lot lower maintenance than an actual pet though, which is a big plus.

    * Actually I can think of a few things that I don’t want, but they need to be disposed of properly (broken electrical; dead batteries) and I don’t really have the means to do that.




  • Interesting. LMDE seems to be more like MS Windows in that things like kernel updates insist on a reboot, and certain other things are easiest restarted with a reboot too, for example, X.Org changes.

    I’m sure there’s still a way to bootstrap a new kernel on the bare metal without needing to reboot, likewise for restarting X.Org, but I foresee problems with any programs and daemons that were children of the original processes. For example, convincing them not to exit when their parent does and then getting them to play nice under a new session.

    I mean, I guess you could just not update, or have a long period where they’re unnecessary and that’d work too. That could well be what this meme is getting at. Can confirm sessions (caveat: with standby and hibernate) that have lasted well over a month.

    But this all raises the question: Does anyone actually not reboot when system changes happen, and what’s the workflow for bootstrapping without rebooting there?








  • It’s also my experience that KPatience doesn’t skip unwinnable games. It also occasionally generates one where it can’t determine whether the game is solvable or not, which is probably due to search space limitations. I’ve won a couple of those, but they’re risky to start in the first place!

    I can see the logic for not skipping unsolvable games.

    KPat uses a seed system (called “Numbered Deals”) to “shuffle” the cards before a game. The seed can be generated (pseudo-)randomly, which is the default, or entered manually. In theory, a manually-entered seed could be unsolvable, and there would then need to be completely different logic flow for random and manual seeds after the shuffle and deal.

    It’s way simpler to just generate a new game seed randomly as necessary and then have the rest of the program be clueless as to whether it was typed in or not.


  • This is one of those things that’s going to depend heavily on the sort of people the parents are, and to some extent the (adult) children.

    I remember the first Christmas I woke in my own home rather than my bedroom at my parents’ house and I was simultaneously devastated and glad that my parents hadn’t broken into my home (I lived across town) to leave gifts in a pillowcase. The tradition was that it was put at the foot of the bed (or outside the door as I got older).

    I was well into my 20s before I moved out, so I have no idea how long that would have continued if I’d never left. It might have required me to ask them explicitly to not do that any more.

    Now I go over at some point over Christmas and we exchange gifts during the main day, or as close as possible to it.