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

help-circle

  • So, there was this TV experiment where they served soup to a well-known scientist*, but, with his agreement, they stirred it first with an unused - and I stress unused - toilet brush.

    He couldn’t bring himself to eat it.

    Metaphorically speaking, our world is full of amazing things but they’re all stirred by clean toilet brushes. Sometimes, it’s worse than that and they’re used.

    Do not want.

    * Unfortunately, or perhaps fortunately, he was later cancelled for being old and out of touch on women’s issues among other things, which is kind of an example of this same trope when you think about it. His opinions and reactions on soup and food disgust aren’t linked to any of that but you might be tempted to ignore the result because of it.

    But then, that puts him in the same category as Louis CK and that’s what I’m responding to. Food for thought.


  • 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.





  • There’s an argument to be made that a continuous function is better than a piecewise function when coming at things mathematically, so in that sense it’s at least somewhat interesting.

    Sure, in computer science where discrete mathematics is king and the modulus operator is ubiquitous, a cosine representation is entirely unnecessary, but from a recreational mathematical angle, it’s a fun distraction.

    And it’s not like cosine interpolations are useless in a broader sense. They’ve contributed much to computer graphics.




  • I don’t happen across Medium very often so I wondered what this sentiment was about.

    Apparently Medium is basically YouTube for bloggers and essayists (with apologies to those who surely think that’s an insulting comparison) and the new CEO messed with the algorithm so much that now writers’ content isn’t being promoted as well as it used to be, and the people who subscribed (or followed, or whatever) aren’t even seeing that content as much any more.

    ~… and it seems there’s no option to get a notification about new content from favourite writer, but maybe I’ve missed it. No “ring that bell” here.~ Edit: When I turned on JavaScript I got a pop-up implying that exists, at least for people who aren’t logged in.

    But as far as I can tell, that doesn’t necessarily mean we should hate the content that’s on there.


  • On my computer, this pushes one core to ~60%, eats ~40MB of memory over the course of about a minute and then segfaults.

    I did make one small change to the condition which would mean that it would bail out if available memory got too low, but 40MB barely even registered so it was basically true the whole time. In retrospect, I probably should have been monitoring process count instead (or done both), but I guess I got away with it.

    As OP says, you need to create subprocesses with & to cause real problems.

    *Bash 5.2.15 / LMDE6 / who knows what other factors. Try these things at your own risk. Or better, just don’t.