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
  • 224 Comments
Joined 1 year ago
cake
Cake day: August 13th, 2024

help-circle


  • bind 'set completion-ignore-case on' might be your friend in Bash. It won’t help in scripts and GUIs though, so you’d still have to deal with that.

    There are ways to write functions that pick the right option intelligently, but that’s asking for trouble. One day something will create a better match for your guess and then things will go wrong, e.g. your script intelligently turns downloads into Downloads but then something actually goes and creates downloads. Your script chooses the impostor because it’s a better match. Oops.

    And then there’s always ln -s Downloads downloads. That might be enough to confuse that helpful thing that would otherwise create downloads. It’s already there, ready for use. And it works in custom scripts and things too. Until you move your script to a different user or machine, anyway.




  • palordrolap@fedia.iotolinuxmemes@lemmy.worldlinux rm
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    5 days ago

    This breaks the advice to never alias a standard command to do something radically different from its regular function.

    Sure, go ahead and alias ls to have extra options like --color, but don’t alias rm to do nothing, or even rm -i (-i is interactive and prompts for each file).

    Why? Because one day you’ll be logged into a different system that doesn’t have your cushioning alias and whoops, bye-bye files.

    Now that you think about it, you thought that ls output looked weird, but that didn’t actually break anything.

    As you suggest, yes, look into your OS’s trash option, but leave rm alone.

    GNOME-derived systems can use gio trash fileglob (or gvfs-trash on older systems) to put things in the actual desktop trash receptacle.

    KDE’s syntax sucks, but it’s kioclientX move fileglob trash:/ where X may or may not be present and is a version number of some kind.

    You could set up a shell function or script that fixes that syntax and give it any name you like - as long as it doesn’t collide with a standard one. On that rare foreign system it won’t exist and everything will be fine.



  • Banksy is as much a person as Nicolas Bourbaki was. Although unlike Bourbaki, there is allegedly one guy who is kind of the main guy, but if that one guy goes to prison, I’m fairly certain Bansky artworks will continue to appear.

    In fact I’d put money on the fact that one would appear in a prominent place soon after.

    And if the establishment somehow manage to round up every single person associated with Banksy and manage to get something to stick to every single one of them, which I strongly doubt is possible, the rise in wannabe Banksy groups doing the same thing won’t be far off.

    The artwork is almost always made with stencils and spray paints. Stencils can be prepared well in advance. A trained group could have one of these up in under a couple of minutes.

    If I was Banksy - or one of them - I would almost certainly have distributed my art to trusted individuals for the event of my incarceration and beyond.


  • I thought Win2K was peak Windows, but I begrudgingly got comfortable with XP (using the classic Windows theme) then Win 7 after they ironed most of Vista’s kinks out.

    Been on Linux since then.

    But it would be unfair to say that masochist tendencies aren’t a requirement to be a Linux system owner.

    All systems require some level of that. It’s just Linux has been rushing towards “less masochism” and Windows even quicker towards “more”, and we find ourselves at that sweet spot where they’ve the same level of requirement.

    Frankly, I’d prefer this sweet spot to be more towards “less”, so I’m hoping Linux continues its trend.


  • Actual populists rarely call themselves populists, you got that right at least. Mainly because a good chunk of people they pander to aren’t bright enough to understand the term “populist”.

    But the ones I can think of are all firmly right wing. Trump. Orbán. Farage. And not one of them is, or would call themselves “leftist”.

    There was one guy back in the late 1930s who tried that and it didn’t go well for him, and I suspect that makes them nervous.

    But then, you probably think that guy actually was a socialist.








  • Serious answer: A surprising number of people, especially those who still have Facebook accounts in 2025, are susceptible to scams where someone pretends to be a rich and/or famous person asking for favours or money.

    They get a message from a fake Zuck, and because they are dangerously credulous, they believe it is the real Zuck.

    Zuck says they’ve been selected, or won a prize, or should send a photo or some such, and then suddenly Zuck’s blackmailing for a compromising photo or otherwise requesting Amazon gift cards or Bitcoin to “unlock” the prize or whatever.

    “Zuck’s a rich man who owns the platform. He knows what he’s doing. I’d better look into how to do this Bitcoin thing.”

    Facebook knows all this and so any Zucks that are not the Zuck get flagged as scammers and have their accounts shut down.


  • palordrolap@fedia.iotolinuxmemes@lemmy.worldyes
    link
    fedilink
    arrow-up
    4
    ·
    15 days ago

    This wouldn’t work.

    Well, it kind of would if you did alias downloads="cd Downloads" but then you wouldn’t cd downloads you’d just type downloads on its own.

    As other comments here already point out, you can do it with a symlink if you really want it. i.e. ln -s Downloads downloads, then you can cd downloads.

    Nowhere near the same as making everything effectively case insensitive, but it works for the odd one that you always mistype.

    There are ways to patch command completion and/or write a variant cd that does the job intelligently too, but those are harder work.

    Day-late edit that no-one will see: The answer is bind "set completion-ignore-case on". It’s embarrassing how simple this is and how long it took me to find it. I may have been trying to emulate this feature in other ways for a long time.