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

help-circle
  • Some people genuinely do not understand the concept of GUI windows and how they work. They do not generate a full mental model of the desktop and the windows on it and only see the whole screen as one bewildering interface. They focus on what they do know in order to get by.

    This may be especially true of people who learned their IT with small screens or low resolutions where running an application full screen (or as the only active application!) is required to get anything done.

    Your colleague saw you click on part of the interface they were ignoring because they didn’t understand it and magic happened.



  • Be aware that a lot of distros will be switching from X11 to Wayland at some point in the not-too-distant future and these ancient tools will not work there.

    People have tried to write equivalents (ydotool is one I’m aware of), but Wayland has intentionally been written to make doing such things difficult, for “security” reasons.

    I will be grumpy until I can make my scripts work again, but that’s for future me to deal with.


  • They allow the user to script changes to, and pull information from, windows in the window manager. Like read, if not also set, a window’s title, change a window’s dimensions, move it around, send it to a different desktop, send keypresses, bring a window to the foreground, etc. etc.

    Basically, anything the user can do with the mouse, keyboard or window manager via the GUI, and a little more besides, can be automated.

    The two commands work slightly differently to each other and one can often do something the other can’t.

    As an example, I have a script that resizes the active window to a 4:3 ratio at full vertical height on my 16:9 monitor. I’ve then bound that script to a keypress in the window manager. It’s a lot like having something halfway between window mode and maximised mode.

    Couldn’t I do that with the mouse? Sure. But with the script I don’t have to gauge by eye and spend multiple mouse clicks and movements trying to get it just right.


  • You know how slackers tend to make more of an effort to at least look like they’re doing what they should be when the boss walks by?

    This is the same relationship between the computers and the IT department.

    And the real truth may be somewhere in between. The user may suddenly regulate their behaviour and take extra care, or at least act sufficiently differently, when the IT person is watching over their shoulder.

    They don’t do the thing that makes the computer complain. Everything looks normal. IT person goes away. User reverts to original habits. Computer complains.

    Or else the IT person uses the computer themselves, but does not emulate the user sufficiently well, so the computer behaves.

    I know it’s not always this but it goes a long way to explaining how tech aura became a thing.





  • history | grep -E '(sed|grep|awk|perl)' | wc -l 107

    Dang. That’s out of 1000. I need to up my game. Also three of those seds are part of something with a -basedir and don’t count.

    So yeah, about 10% of my commands are iterating shell pipe things for poops and giggles, I guess.

    … and this got me going down the rabbit hole of writing a filter for my history to pull out the first command on the line. This is non-trivial because of potential preceding variable assignments. Most used commands are currently apt and man and ls. I think apt is a Spiders Georg situation because the system is fairly fresh and I keep finding things that I haven’t installed yet. Also I went through a patch of trying to parse its output.

    … oh, er… unga bunga.


  • If 1) you’re smart or practised enough to be able to generate what you’re asking the AI to do for yourself, 2) you’re able to take what the AI generates and debug, check and correct it using non-AI tools like your own brain, 3) you’re sure this whole AI-inclusive process will save time and money, and 4) you’re sure using AI as a crutch won’t cause you brain-rot in the long term, go nuts.

    Caveat: Those last two are tricky traps. You can be sure and wrong.

    Otherwise, grab the documentation or a bunch of examples and start hacking and crafting. Leave the AI alone. Maybe ask it a question about something that isn’t clear, but on no account trust it. It might have developed the same confusion that you have for precisely the same reasons.

    So anyway, Linus clearly fits 1 and 2, and believes 3 and 4 or else he wouldn’t be using an AI. Let’s just hope he hasn’t fallen into the traps.






  • qed was also a line editor but pre-dated and inspired ed, so that’s pico to nano or ed to ex again, just even further back in time.

    sed and grep grew out of commands within ed (or equivalent) so I guess you could say they’re each kind of a knight’s move two to the side and once backward from the direction of ex to vi. Backwards because they’re simpler, but two to the side because they’re not interactive.

    As to what would be “backward but one to the side” in that analogy, that’d be something like a tool that asked questions about every line in a file and made changes accordingly. I don’t think there’s any such standard tool, but I can think of at least a couple of ways to write one.


  • Comparison time!

    ex is to ed as nano is to pico

    That is, it’s an editor that works in almost exactly the same way as the original, but it’s by somebody else.

    ex is to vi as vi is to vim, or C to C++.

    That is, the latter grew out of and improved upon the former, but you can still use them like their forerunners if you really want, which is why vi has an ex mode and why you can still use pointers in C++ if you’re sufficiently warped.