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
  • 68 Comments
Joined 6 months ago
cake
Cake day: August 13th, 2024

help-circle
  • There used to be an undocumented setting in early versions of MS-DOS that would allow the setting of the command option character to something other than the slash, and if you did that, the slash automatically became the path separator. All you needed was SWITCHAR=- in your CONFIG.SYS and DOS was suddenly very Unix-y.

    It was taken out after a while because, with the feature being undocumented, too many people didn’t know about it and bits of software - especially batch files, would have been reliant on things being “wrong”. The modern support for regular slash in API calls probably doesn’t use any of the old SWITCHAR code, but it is, in some way, the spiritual descendant of that secret feature.

    Here’s an old blog that talks about it: https://learn.microsoft.com/en-gb/archive/blogs/larryosterman/why-is-the-dos-path-character





  • Me: “Oh no, that wtf means it’s gonna be a LiveLeak site isn’t it?”

    platform for general use

    Me: “Ah, so maybe not so bad then.”

    Every topic is welcome.

    Me: “… and yet…”

    Seriously though, I’m all for the Fediverse in all its many forms, and without people like you it wouldn’t exist. Thank you.


  • Urge to analyse… rising…

    My first guess would be to take out that semicolon on line 264. JavaScript will often happily take a new line as end of statement if it makes sense to do that, so in theory, that semicolon is not needed. And it might be a Greek question mark your prankster colleague put in your code when you weren’t looking.

    And then I’d be tracing parentheses, curlies, quotes and so on, because that error could be the point the parser gave up trying to make sense of the code rather than where the error actually is.

    And if that didn’t find it, I’d put in a deliberate error at an earlier, known line to see where the parser thinks that error is. If it’s offset by 20 lines, then I know the original error is probably offset by a similar amount.


  • This isn’t strictly true. Most houses built between WWII and the '90s were built with sockets that didn’t have switches on them. It was only later safety regulations / suggestions that made the switches preferable.

    Where I live was built in the late '80s right before switched sockets became more common. All the original sockets have no switch. Some in the kitchen have switches, but it’s clear these were added at a later date.

    I’m not sure of the exact rulings and where and when a socket must have a switch, but you can still find switchless sockets for sale at the sorts of retailers who sell those sorts of things, so there are definitely places where those sockets are still allowed.


  • Ah, misleading use of terminology that indicates one thing, but will win in court even if it actually means, or can later be said to mean, another.

    I hope those involved in helping companies win these lawsuits choke on bones from food sold as boneless. Because that won a court case after “boneless” was redefined as a cooking method.

    I don’t want them to choke to death. Just a little lesson, you know?



  • Sometimes, programs that need to start up an editor will honour the $EDITOR environment variable, which should contain the name of, or full path to, a user’s preferred editor.

    It’s not set by default though, and a lot of things will naturally default to vi or even ed. Something to be set in a .profile, .bashrc or similar.

    $VISUAL is another variable that is used for similar purposes.

    The resemblance to certain two letter commands is not entirely a coincidence.




  • While the word for a thing used for slowing and stopping a vehicle probably came from the word meaning “to destroy or cause to not work”, they are spelled differently, and may even have been pronounced differently at one point (assuming there aren’t any places which maintain a difference even now). The thing in a car is a brake.

    See also: “then” and “than” which have a similar kind of relationship, and “steak” and “stake” which don’t.




  • Thought experiment: Would you expect a programming language variable name to be case insensitive?

    That is, if you set foo = 1 and then print FOO, what should happen? Most programming languages throw an error.

    Is this even comparable with filenames, which are, after all, basically variable names that hold large quantities of data?

    If there is a difference, is it the fact it’s a file, or - for a mad idea - should files with only a few bytes of data retain case insensitivity? And if that idea is followed through, where’s the cutoff? 256 bytes? 7?

    (Anyway, Windows filenames are case sensitive, in a sense. If you save “Letter to Grandma.txt” it will retain those two capital letters and all the lower case letters exactly as they are. It won’t suddenly change to “LETTER to Grandma.txt”, despite the fact that if you try to open a file by that name, you’ll get the same file.)



  • Yes. It is an instrument used in the consumption of drugs.

    Or do you mean musical instrument? TL;DR: It can be.

    It comes down to how wide you want the definition of “musical instrument” to be. Is a drumstick a musical instrument? Is it what makes a drum designed to be played with sticks an instrument? What is such a drum without at least one stick?

    “Well I could hit the drum with something else.” Sure, but does that make the “something else” the instrument?

    What is a woodwind (musical) instrument without the player’s breath? A saxophone without a reed?

    “I could smack it on something.”

    Well, yes, that’s the crux of it.

    In the loosest sense, anything that can be used to make a noise is a musical instrument. Take the popular joke of mayonnaise: if you put a straw in it and blow, I’m willing to bet some sort of noise can be had.

    This then brings in the other argument: what counts as musical?