WTF Bites



  • @dkf said in WTF Bites:

    @Arantor said in WTF Bites:

    I mean, really, having to munge the XHR like this really should be considered a WTF.

    Overloading send like that? Awful. There must be a better way! (No idea what it is.)

    There isn’t that I know of, because xhr by default wants to send a file as a file, I.e. multipart like a well behaved regular upload, but Shitpoint at least wants the PUT body to be the content, so here you go, overloading send.



  • @Bulb ah, well, I thought I’d post it in case it was useful, though if you’re doing this with DZ you can also have a finalisation step once the chunks are sent, I use this to kick off a side process in the background to begin processing the uploads, but no reason you couldn’t do that if needed.

    Higher level libraries are nice if they do what you need… DropZone had to be cajoled into doing what I needed.



  • @Arantor Yeah, the underlying problem is that there is nothing resembling a standard for chunked upload (not even in webdav, apparently), so each service does it differently, and then you have a mess of libraries that you need to combine to get something working. I already complained about that around here.



  • @Bulb I think it was when I was complaining that I had to implement the above slice of code!


  • ♿ (Parody)

    @Arantor said in WTF Bites:

    @Gustav said in WTF Bites:

    @topspin said in WTF Bites:

    I hate web devs. All of them. They're all a bunch of shit-slinging morons.

    You don't hate web devs enough. You think you do, but you don't.

    I don't know if I should be flattered or offended.

    Inspired?


  • Java Dev

    World of Warcraft has started displaying interesting behaviour on my old MacBook. I mean, the limit on VRAM that macOS has on the GPU means it's not enough for current WoW, but it has ran... sorta ok still. Just it now started to do hiccups that effectively crashed the game (as I had to force quit it) and when it did the task manager showed this:

    wow-gpu.png

    Apparently, WoW decided to use over 5 million hours of GPU time in a second. I guess the Bronze Dragonflight is up to something...



  • @Arantor said in WTF Bites:

    I think it was when I was complaining

    8b5c3934-5780-4967-9028-884a435dce23-th-948584372.jpg



  • @Zecc said in WTF Bites:

    @topspin

    2ebed04f-b54d-4078-be45-d9a0226e8e0d-image.png

    Didn't they kill that guy already?

    This is his miniature clone.



  • user@BFLM:~/dev/psvz (git:master)$ az automation runbook start --help
    

    … snip a lot of text …

    To search AI knowledge base for examples, use: az find "az automation runbook start"
    
    user@BFLM:~/dev/psvz (git:master)$ az find "az automation runbook start"
    Finding examples...
    
    Here are the most common ways to use [az automation runbook start]: 
    
    Deletes a security automation.
    az security automation delete --resource-group 'sampleRg' --name 'sampleAutomation'
    
    List all security automations under subscription
    az security automation list
    
    Creates a security automation.
    az security automation create_or_update --resource-group Sample-RG --name sampleAutomation --location eastus --scopes ''
    

    :wtf_owl: No, az automation and az security automation are two completely unrelated things. I'm not sure if Microsoft already switched to ChatGPT for this purpose, but using fulltext for this structured information is enough to fuck this up.



  • My mother has a public-transport chipcard, but because those are no longer (just-about-)required to use public transport in the Netherlands,¹ she wants to cancel it and get the money back that’s still on the card. So, last week she went to the above-linked web site and filled out the form for cancelling your card. You apparently can’t do that just via the web site — after going through the motions there, you still need to go to a check-in machine (generally at a railway station) and confirm there that you don’t want to use the card any longer.

    She went this afternoon, and came back without having cancelled it because she couldn’t find how to do it … Re-reading the instructions (which, admittedly, she had semi-forgotten by the time she got to the station), you apparently have to hold the card up to the machine, and then on the screen select that you want to “collect an order” … Which she had seen on the screen, but didn’t press because … well, you want to cancel your card, why would you press an option to collect an order?

    Of course, the explanation is fairly simple: the cancellation process is almost certainly implemented using the system for adding subscriptions and things (used for, for example, signing up for off-peak-hours reductions etc.), so as far as the machine is concerned, you’re there to confirm you want one of those.

    :wtf: … First of all, I wouldn’t consider activating a subscription to be equivalent to “collecting” an “order” — that sounds like you’re there to pick up a package or something, not update a database entry linked to your card. In any case, normal people are not going to think of cancelling a card as an order in the first place (the Dutch word used, bestelling, does not have the twofold meaning the English word “order” does, BTW: it only means something you’re getting delivered).

    :wtf: More importantly, when somebody wants to cancel a card, why does the software in the machine not immediately pop up a notice about that when the relevant card is scanned? 📎 “I see you want to cancel your card. Are you sure?” It’s not likely they will be there for anything else, such as confirming a new subscription, after all.

    I told her I’ll do it for her next week when I’ll be near a station, as that’ll save her another trip into town just for this.


    ¹ You can now pay with your bank card — why they never implemented it that way from the start, I was already wondering about when these things were new.


  • @Gurth said in WTF Bites:

    You can now pay with your bank card — why they never implemented it that way from the start, I was already wondering about when these things were new.

    According to Wikipedia, like in many other countries, the Netherlands' transportation card system was launched more than a decade before credit cards started supporting contactless transactions. And even once the hardware was ready, anything involving banks takes years.


  • Java Dev

    @Zerosquare Tricky thing probably is that you need to track specific bank cards. With all the privacy law :fun: we get over here.


  • Trolleybus Mechanic

    Of course it went to the entire list.

    2024-03-08_18-28.png



  • @PleegWat said in WTF Bites:

    @Zerosquare Tricky thing probably is that you need to track specific bank cards. With all the privacy law :fun: we get over here.

    As I recall, the stated reason for not making this work with bank cards was because they couldn’t be sure the bank account held sufficient funds for the journey. As if a lot of people were going to check in, next withdraw cash from a machine to bring their bank account balance below the amount needed to pay for the journey, and only then take the train/bus/tram …

    So the way they implemented the public transport card was to always have it deduct the maximum possible fee from the money on the card on checking in, then return the remainder on checking out. Which, it seems to me, they could also do with bank accounts. Though that would result in each public transport trip resulting in two bank transfers, of course. But there must be a user-friendly way around that.


  • Discourse touched me in a no-no place

    @PleegWat said in WTF Bites:

    @Zerosquare Tricky thing probably is that you need to track specific bank cards. With all the privacy law :fun: we get over here.

    As opposed to tracking service-specific special cards? :sideways_owl:
    You already got all the legal issues...


  • Java Dev

    @Gurth said in WTF Bites:

    @PleegWat said in WTF Bites:

    @Zerosquare Tricky thing probably is that you need to track specific bank cards. With all the privacy law :fun: we get over here.

    As I recall, the stated reason for not making this work with bank cards was because they couldn’t be sure the bank account held sufficient funds for the journey. As if a lot of people were going to check in, next withdraw cash from a machine to bring their bank account balance below the amount needed to pay for the journey, and only then take the train/bus/tram …

    So the way they implemented the public transport card was to always have it deduct the maximum possible fee from the money on the card on checking in, then return the remainder on checking out. Which, it seems to me, they could also do with bank accounts. Though that would result in each public transport trip resulting in two bank transfers, of course. But there must be a user-friendly way around that.

    It's called a reservation. Gas stations use them - you first authorize a reservation (usually €150 nowadays) then when you're done filling up it clears the reservation and only charges what you actually spent.


  • Notification Spam Recipient

    @Gurth said in WTF Bites:

    cancel it and get the money back that’s still on the card

    Before reading: I bet there's a policy that there are no refunds. Let's see....

    Edit: damn, not enough information to discern.



  • @Tsaukpaetra Luckily, no, they’re required to refund you if you ask them to.

    OV Chipkaart refund.png


  • 🚽 Regular

    @dkf said in WTF Bites:

    As opposed to tracking service-specific special cards? :sideways_owl:
    You already got all the legal issues...

    Only if the service cards can uniquely identify you. It's been a while since I've used one with my name on it.



  • As opposed to .... an unconscious artist?

    guitar.jpg



  • @Gern_Blaanston Well, yes. Figuratively. Not saying I would use the same criteria, though. It's like use of the word "woke", implying that those who aren't are sleeping. Figuratively.



  • @Gern_Blaanston said in WTF Bites:

    As opposed to .... an unconscious artist?

    guitar.jpg

    I guess it's like "conscious walking", where you're supposed to consciously pay attention to which muscles you're contracting by how much and monitoring your mass distribution and balance and the pressure on the soles of your feet and all the other stuff you normally just leave to your proprioceptive sense to handle.
    How easily that extends to 10-string guitar...



  • @Watson said in WTF Bites:

    How easily that extends to 10-string guitar...

    TBH, I would think that someone who needs to consciously play a ten-string guitar is probably not as good a guitarist as someone who can do that without really thinking about it.



  • Japan:



  • @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.


  • Notification Spam Recipient

    @Bulb said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.

    :take_my_money:


  • Discourse touched me in a no-no place

    @Bulb said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.

    Get real wolves. Or a similar dog breed, since then you can also pet the guard dogs...


  • Discourse touched me in a no-no place

    @Bulb said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.

    Get real wolves. Or a similar dog breed, since then you can also pet the guard dogs...


  • BINNED

    @dkf said in WTF Bites:

    @Bulb said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.

    Get real wolves. Or a similar dog breed, since then you can also pet the guard dogs...

    67ea8ae1-d186-4161-80d9-34c4c8a97219-grafik.png



  • @dkf said in WTF Bites:

    @Bulb said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.

    Get real wolves. Or a similar dog breed, since then you can also pet the guard dogs...

    … back to tried and tested solution we've been using for a couple thousand years.



  • @HardwareGeek said in WTF Bites:

    Japan:

    On the other hand, wolves are coming back to Germany, and many farmers who keep their animals on pastures complain about wolves killing their live stock.
    So, what about a robo bear near the pasture which could deter wolves?


  • BINNED

    @dkf said in WTF Bites:

    @Bulb said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    Japan:

    A short-term measure. The bears will eventually learn these wolves are not actually dangerous. Unless they upgrade them to actually be capable of fighting of course.

    Get real wolves. Or a similar dog breed, since then you can also pet the guard dogs...

    Not sure how well that turned out for the miners in The Expanse (which is worth a watch IMO)


  • BINNED

    @kazitor
    your wolf problem can be simply solved by importing some bears



  • @Bulb said in WTF Bites:

    Unless they upgrade them to actually be capable of fighting of course.

    👽: ... and for some reason the inhabitants of this planet re-created one of the natural predators as an armed robot.
    👽: The robots eventually rebelled against their creators.
    👽: And this is the reason the whole galaxy is currently dealing with a scourge of armed wolf robots that is exterminating civilizations everywhere.

    On second thought, I will not quit my day job to become a scifi author.



  • @cvi said in WTF Bites:

    I will not quit my day job to become a scifi author.

    Yes. The lucrative thing to do is to create a religion instead.


  • I survived the hour long Uno hand

    @Zerosquare said in WTF Bites:

    @cvi said in WTF Bites:

    I will not quit my day job to become a scifi author.

    Yes. The lucrative thing to do is to create a religion instead.

    Like, say, becoming the Pope of Artificially Intelligent Robotic War Wolves


  • BINNED

    @izzion
    I, for one, welcome our new Robot Wolf overlords.



  • @cvi said in WTF Bites:

    @Bulb said in WTF Bites:

    Unless they upgrade them to actually be capable of fighting of course.

    👽: ... and for some reason the inhabitants of this planet re-created one of the natural predators as an armed robot.
    👽: The robots eventually rebelled against their creators.
    👽: And this is the reason the whole galaxy is currently dealing with a scourge of armed wolf robots that is exterminating civilizations everywhere.

    On second thought, I will not quit my day job to become a scifi author.

    Moonfall



  • @dcon Yeah, I would aim a bit higher than that. Saw it -- physics does not work that way.



  • @cvi said in WTF Bites:

    @dcon Yeah, I would aim a bit higher than that. Saw it -- physics does not work that way.

    Oh, I thought it was really dumb movie too. Brought it up because: man creates AI, AI rebelled against their creators, and robots that is exterminating civilizations everywhere.


  • BINNED

    @cvi said in WTF Bites:

    Roland Emmerich

    physics does not work that way.

    :surprised-pikachu:



  • @dcon said in WTF Bites:

    Brought it up because: man creates AI, AI rebelled against their creators, and robots that is exterminating civilizations everywhere.

    I had forgotten that part. You're right. The moon "physics" overshadowed everything else.



  • @topspin He didn't by any chance also direct "Wandering Earth" or whatever? That one had some pretty questionable physics too...



  • @HardwareGeek said in WTF Bites:

    Bears versus robot wolves in ageing Japan

    OTOH, why can't they just place a guywhokilledbear in every village?



  • @cvi said in WTF Bites:

    On second thought, I will not quit my day job to become a scifi author.

    One person on here who did that is enough, yes.



  • @Gurth said in WTF Bites:

    @cvi said in WTF Bites:

    On second thought, I will not quit my day job to become a scifi author.

    One person on here who did that is enough, yes.

    Did he actually quit his day job? I know he hasn't been around here for a long time, but I don't remember him quitting (either his job or TDWTF).



  • @HardwareGeek I don’t know either, but it makes for a good line to put it like that :)


  • BINNED

    @HardwareGeek said in WTF Bites:

    @Gurth said in WTF Bites:

    @cvi said in WTF Bites:

    On second thought, I will not quit my day job to become a scifi author.

    One person on here who did that is enough, yes.

    Did he actually quit his day job?

    WTDWTF is a full-time career :kneeling_warthog:


  • Notification Spam Recipient

    @HardwareGeek said in WTF Bites:

    @Gurth said in WTF Bites:

    @cvi said in WTF Bites:

    On second thought, I will not quit my day job to become a scifi author.

    One person on here who did that is enough, yes.

    Did he actually quit his day job? I know he hasn't been around here for a long time, but I don't remember him quitting (either his job or TDWTF).

    Never let facts get in the way of a good story


  • Banned

    If you put three hyphens on their own line (like a poor man's horizontal line) in Zillow direct message, that line and everything after it will be cut from the message. The worst part is that I know I should've predicted this can happen.


Log in to reply