WTF Bites


  • Discourse touched me in a no-no place

    @sebastian-galczynski Yes, but that requires putting the conditions on the type parameters right so that you can actually safely consider the subtype rule to be satisfied. Which means you've now got to do a non-trivial set of type constraints to determine safety (and things will only get worse as you push that further in). It's really easy to end up with the cure being worse than the disease; you don't want the types in your program to be more complicated than the program they describe constraints on.



  • @dkf said in WTF Bites:

    you don't want the types in your program to be more complicated than the program they describe constraints on.

    Some people do


  • Trolleybus Mechanic

    @dkf said in WTF Bites:

    @sebastian-galczynski Yes, but that requires putting the conditions on the type parameters right so that you can actually safely consider the subtype rule to be satisfied. Which means you've now got to do a non-trivial set of type constraints to determine safety (and things will only get worse as you push that further in). It's really easy to end up with the cure being worse than the disease; you don't want the types in your program to be more complicated than the program they describe constraints on.

    Last year I hit a case where invariant collections led exactly to the "types being longer than the program" problem, because despite the collections in question being of a similar thing, I couldn't put a common interface on them. Which required multiple template arguments to deal with collections inside collections, and a big union type on top. Not exactly "easy".


  • Discourse touched me in a no-no place

    @sebastian-galczynski Ultimately, the intent of types is to provide a way to reason about part of the correctness of a program without having to tackle the total correctness of the program, because that latter problem is generally intractable (it's where you hit the halting problem and all sorts of unsolved conjectures in math, as well as some really rotten problems with state space explosion with complexity classes like EXP2SPACE). But the more we ask types to prove, the worse the tractability for those types becomes. It's inescapable; if we have the actual correctness of the underlying program being often insanely difficult to work with, the more of the correctness features we push into the type system, the harder it will be to reason about the types of the program.

    Runtime failures are a way out of the trap, but force you to deal with operations that can fail, and there really are a great many of those.


  • Notification Spam Recipient

    Status: 😵 How did I find myself in the word salad thread?



  • @Tsaukpaetra said in WTF Bites:

    Status: 😵 How did I find myself in the word salad thread?

    That's easy - you browsed TDWTF.


  • Considered Harmful

    @Bulb said in WTF Bites:

    @LaoC said in WTF Bites:

    Not particularly portable

    The purpose is being able to serialize a data structure and restore it exactly, which can be done inside one language only, so it does not need to be particularly portable.

    For sending data between different applications, possibly written in different languages, you need to know what data is expected. That is, you should have some kind of schema. And you can define which members should be deserialized as which type there.

    You always have one of three schemas in YAML that differ in portability. Even a Perl hash dumped according to the "failsafe" schema isn't always exactly restorable say to a Java Map<String, Object>, probably not even to a Python dictionary, but if you do cross-platform YAML at all, that's what you have to live with. They could have added other slightly less portable standard schemas, but they didn't.



  • @LaoC That's not what I meant. I even forgot YAML had that term used this way.

    By schema I mean you need some kind of definition not just that you get JSON (or YAML or XML), but what it will actually contain. You never expect ‘any JSON’. {"this": "is a json", "but": ["useless"], "it": {"probably: "is"}}.

    You expect something specific encoded as JSON. Say, a list of files, where file is an object with name: string, mtime: datetime, owner: user and uri: uri. And those subtypes have their own definition. In Java or C# or Go or Rust you'll just declare the corresponding class/structure type and tell the deserializer to populate it. But even in untyped language you'll need something to covert that iso-8601 string to a Date and validate that uri.

    For XML there is XSD, for JSON there is JSONSchema. For YAML there is … also JSONSchema and it's usually written out as JSON though it would technically be possible to write it as YAML and it would probably be a bit more readable that way.


  • Discourse touched me in a no-no place

    @Bulb There certainly is something, in that I've seen that the YAML language server I use in Eclipse pick up a way of guiding what some of the files I write accept and provide content assist. (Specifically, I've noticed it help with writing Github Actions workflow files. I also get assistance with Spring Boot application configuration files, but I think that's separate as it involves app-specific metadata.)



  • @dkf said in WTF Bites:

    @Bulb There certainly is something, in that I've seen that the YAML language server I use in Eclipse pick up a way of guiding what some of the files I write accept and provide content assist. (Specifically, I've noticed it help with writing Github Actions workflow files. I also get assistance with Spring Boot application configuration files, but I think that's separate as it involves app-specific metadata.)

    Yes, the JSON schema @Bulb mentioned is gaining traction...


  • Notification Spam Recipient

    @Kamil-Podlesak said in WTF Bites:

    @dkf said in WTF Bites:

    @Bulb There certainly is something, in that I've seen that the YAML language server I use in Eclipse pick up a way of guiding what some of the files I write accept and provide content assist. (Specifically, I've noticed it help with writing Github Actions workflow files. I also get assistance with Spring Boot application configuration files, but I think that's separate as it involves app-specific metadata.)

    Yes, the JSON schema @Bulb mentioned is gaining traction...

    Pfff... I remember when compressed binary was all the rage. :mlp_smug:


  • Discourse touched me in a no-no place

    The results I get for "apple iphone".

    acb6bee7-2337-4e4c-8ee7-f3474558d62f-image.png

    11 billion results. 3 pages :wtf:

    401aa023-22cf-4494-9327-49350e28ea4a-image.png

    Click page 3... now there's 8 pages. :wtf:

    0e699e81-3253-4ea5-8e76-7cdf2d58c4c7-image.png

    But only 74 results suddenly. :wtf:

    f8f8146c-7afc-4e9d-9fed-144bc44ea9a9-image.png

    Aha!

    797d100d-9f6c-4fa6-8d2d-1a948a4cb781-image.png

    Including those omitted results...

    8253012d-08ec-49b6-ac95-8bf1f052f9f4-image.png

    9 billion - which is obviously more than 74 but still less than 11 billion :wtf:


  • I survived the hour long Uno hand

    @loopback0 said in WTF Bites:

    The results I get for "apple iphone".

    acb6bee7-2337-4e4c-8ee7-f3474558d62f-image.png

    11 billion results. 3 pages :wtf:

    401aa023-22cf-4494-9327-49350e28ea4a-image.png

    Click page 3... now there's 8 pages. :wtf:

    0e699e81-3253-4ea5-8e76-7cdf2d58c4c7-image.png

    But only 74 results suddenly. :wtf:

    f8f8146c-7afc-4e9d-9fed-144bc44ea9a9-image.png

    Aha!

    797d100d-9f6c-4fa6-8d2d-1a948a4cb781-image.png

    Including those omitted results...

    8253012d-08ec-49b6-ac95-8bf1f052f9f4-image.png

    9 billion - which is obviously more than 74 but still less than 11 billion :wtf:

    It's "about", as in "up to", as in Math.random()


  • BINNED

    @loopback0
    Gribnit did you forget to put the hyper in your loglog?


  • Notification Spam Recipient

    @loopback0 said in WTF Bites:

    results

    Welcome to the Internet, time traveler!


  • Notification Spam Recipient

    💻: "Your computer needs to restart because retards in IT pushed too many useless updates today"
    👦🏻: Fuck. This shit again. Ok, restart.
    💻: Hai. I'm back ☺
    👦🏻: No, you aren't, you lying turd. [wait 5 minutes for all retarded IT startup shit to run]
    💻: Now I'm not only back, but clicking things works again!
    👦🏻: Astonishing. Run 6774857.png
    6774857.png: Trying to connect. Trying really hard...
    👦🏻: ...
    6774857.png: Aaaand... failed.
    👦🏻: What now, ffs.
    6774857.png: While you browse old emails, could you take a look at updated list of disabled plugins? One of them was slow, so I disabled it. Now I'm super fast.
    👦🏻: You never are even tolerably slow, not to mention approaching fast. What plugin did you disable?
    6774857.png: Exchange.
    👦🏻: I see. Yes, very helpful. Enable it and don't disable it ever again.
    6774857.png: Best I can do is 30 days. After that I'll stop it again.
    👦🏻: I love my work ♥


  • Notification Spam Recipient

    This post is deleted!

  • Notification Spam Recipient

    This post is deleted!


  • ⸘What The Mighty Flying Fuck is happening with Azure‽

    From my company notebook, connected to the company network, I can't reach either portal, or a company application installed in Azure.

    But from the customer notebook, sitting right next to it and connected to a wifi that is separate from the company network, but ultimately routed through the same cable, I can reach both fine.

    And a colleague wrote to me that he can't reach them while working from home, so he's at a completely different network.

    … imps seem to be attacking the infernet today.


  • BINNED

    @Bulb said in WTF Bites:

    ⸘What The Mighty Flying Fuck is happening with Azure‽

    it be fucked


  • Notification Spam Recipient


  • Discourse touched me in a no-no place

    @Bulb said in WTF Bites:

    From my company notebook, connected to the company network, I can't reach either portal, or a company application installed in Azure.

    But from the customer notebook, sitting right next to it and connected to a wifi that is separate from the company network, but ultimately routed through the same cable, I can reach both fine.

    And a colleague wrote to me that he can't reach them while working from home, so he's at a completely different network.

    Sounds like some sort of bad DNS info was pushed, but hasn't reached all networks yet. (Or maybe a BGP fuck-up; I don't know how the caching for them works.)


  • Considered Harmful

    @Vault_Dweller That would then be Microsoft 364, though 🐠



  • Guess this explains the slightly obscure message about some outage that I received through Teams earlier today.



  • @dkf DNS no; the IP address resolved was the same on the computer where it worked and the one where it didn't, and they are stable anyway. BGP might be.

    … coincidentally we had a big BGP breakdown between the company and the provider on Monday that took something like four or five hours to fix.


  • BINNED

    @Vault_Dweller said in WTF Bites:

    @Bulb

    6ab0c5d1-8a22-40ca-8ca6-06107317974f-image.png

    This shit's so amazing.
    The day started with being told Teams doesn't work ("finally I can get some work done, yay!"), to messages that basically all of Office 365 is down, and emails don't work either. Thankfully, I don't do anything Azure, which I guess is also fucked.

    Isn't it great that we went all in with Teams/O365/all that other crap just because "everybody is using it" and "nobody ever got fired for buying IBM Microsoft"? Fucking central IT one day during the pandemic just said "stop using everything else, we're doing Teams now" and that's that.
    Email used to just work.

    Who wants to bet that even the offline desktop apps of Office don't work anymore because for :raisins: you need to log in to use them?



  • @topspin said in WTF Bites:

    Email used to just work.

    :doubt:

    In every company it blew up now and then. The difference is that then everybody was using their own mail server while now everybody uses the same one, so when it blows up, it affects a lot of people.



  • @topspin said in WTF Bites:

    Thankfully, I don't do anything Azure, which I guess is also fucked.

    Not anymore, but it was earlier this morning.
    For "some" customers in Western Europe, between roughly 3 and 5 UTC.

    Guess who got rudely awaken by an effing automated call because several databases were down? 😴



  • @nerd4sale said in WTF Bites:

    Not anymore

    The outage is now marked as resolved on isdown, but portal still isn't loading on my company notebook (but it has been loading on the customer one throughout the outage).


  • Notification Spam Recipient

    @MrL said in WTF Bites:

    Exchange.

    You can.. do that?!?! Hol up....

    f5e962c3-5fd4-4d0c-bcc5-2c1f640f166e-image.png

    Well, shit.



  • @Bulb With a self-hosted email server, internal email would (typically) keep on working even when the external internet was out. Overall, there are noticeably more points of failure now: email server, network of the service host, various network connections, and your network. Before it was the email server and your network, at least for internal email. (A lot of my email is internal.)



  • @cvi Only as long as it's physically internal. Once it's vnet across geographically distant locations, and some people work remotely, you've got all those network failure points anyway. And things have always been distant locations for me.


  • Discourse touched me in a no-no place

    @Bulb You also hit that when you're doing a lot of collaboration with external people. For us, if we're off the net then it's disaster time.



  • Google security WTF while logging into my email in a private window on my work laptop.

    It shows the "confirm on your phone to login" message like normal, so I pick up my phone, waiting to get the security popup. And waiting. And waiting. I check internet connectivity on my phone, it's working; my computer is fine too.

    I hit resend on the computer, and still nothing. So I go to "Try another way" in which one of the options is to get a security code through settings -> google -> security -> whatever. I enter that code and get into my email.

    About a minute later, the security prompt comes up on my phone :slowpoke:


  • Fake News



  • @JBert The problem is clearly with the cabling. If the cables nearly hanging out the bottom had been going in all directions and been attached to nearby walls and the roof, they could have probably held up the whole rack.



  • @cvi As seen in this documentary:

    https://youtu.be/3Y4THGYRLtE?t=78



  • @hungrier Looks more like he's highly constipated.

    14df1314-87a5-4fe4-9eb8-98fef5fe925a-image.png


  • Considered Harmful

    @dcon said in WTF Bites:

    @hungrier Looks more like he's highly constipated.

    14df1314-87a5-4fe4-9eb8-98fef5fe925a-image.png

    But making progress. Let's just give him a minute.


  • Discourse touched me in a no-no place

    @dcon said in WTF Bites:

    @hungrier Looks more like he's highly constipated.

    14df1314-87a5-4fe4-9eb8-98fef5fe925a-image.png

    You'd look like that too if you were shitting out a train


  • Banned


  • Grade A Premium Asshole

    One of our clients uses a thing. It has an on-site server component. That server software recently had a critical security vulnerability discovered. Time to update said software at all of their sites.

    So their support site requires a login. I have the password saved in my password manager. That password does not work. As soon as I click on their password reset link I remember that it does not work. You have to email support. It does not tell you that, it just silently fails. But it does tell you if you entered an invalid email. Brillant!

    But it has been a year or so since I have had to access their support site. Perhaps they fixed it? It does not appear so as no reset email ever comes through.

    So I email support requesting a password reset and in the same email I ask a couple of questions that spin off into email chains with three separate people. One of these people is a generic support account, the other two are proper named accounts.

    Every single time I email the support@initrode.com address my goddamn password gets reset. Not "I get password reset email that I can ignore". Every reset email invalidates my previous password when it sends the email. Brillant!

    I tell support this. They say that it is best to either reset my password on each email or if I do not need to access the support site just ignore them for now. I suggest the option of starting a new email chain. No. Need to keep everything on one chain and procedures require merging tickets if they reference the same issue. How about merging later after we are done? Nope, can't do that. SOPs have to be followed. Can I switch to someone who can assist on a named account outside of this thread? Nope, can't do that, SOPs. So what about the other two fucking people? Oh, those are different types of issues.

    I'm getting deja vu. I think this is how my password got fucked up and not stored in my password manager last time. Reminder to myself that next time I have to contact their support to send two emails. One for password reset, another for the actual issue. This is what happens when businesses roll their own ticketing and support systems.


  • BINNED

    @Polygeekery said in WTF Bites:

    a thing

    A fully automated fire detecting and extinguisher device? No?
    One can hope ...


  • Considered Harmful

    @Luhmann said in WTF Bites:

    @Polygeekery said in WTF Bites:

    a thing

    A fully automated fire detecting and extinguisher device? No?
    One can hope ...

    Why stop there? Couldn't it also start them?


  • BINNED

    @Gribnit
    They would get along like a house on fire. A roofless house on fire.



  • @Gustav said in WTF Bites:

    @loopback0 reminds me of

    https://youtu.be/iDVLr4_ckqI?t=316

    And that's not even the lame 7.5G the rhino can pull, just about 5. While real fighter jets can pull 9.


  • Considered Harmful

    @Bulb said in WTF Bites:

    And that's not even the lame 7.5G the rhino can pull, just about 5. While real fighter jets can pull 9.

    Psht. Any decent centrifuge can put those numbers to shame.


  • Discourse touched me in a no-no place

    @Gribnit Most centrifuges aren't armed with either missiles or machine guns, and the number with bombs is probably classified.



  • Biff.jpg

    I was disappointed to find out that it's not his real name.


  • Considered Harmful

    @dkf said in WTF Bites:

    @Gribnit Most centrifuges aren't armed with either missiles or machine guns, and the number with bombs is probably classified.

    However, nearly all allow for fully remote or even automated operation, a handy feature past a handful of G's.

    The number with bombs is (also) all of them, if you drop a screwdriver in.


Log in to reply