WTF Bites


  • Winner of the 2016 Presidential Election

    @Maciejasjmj Looks like the bug that sometimes makes IntelliJ forget the whole Python standard library exists in their C# tools as well.



  • IF results_table.count > 0
    THEN
      FOR i IN results_table.FIRST .. results_table.LAST
      LOOP
         -- snip
      END LOOP;
    -- Code added outside loop to do XYZ
    -- Commenting below code as per review comments: we don't need to do XYZ after all
    END IF;
    

    No, I haven't snipped the commented code. There's a comment saying they commented out code instead of deleting it, and no code, commented or otherwise.

    I'm used to "history" in comments, and I'm used to commented out code all over the place. But this is special.



  • @Scarlet_Manuka said in WTF Bites:

    Some people just have no understanding of what they are doing on the web.

    Unfortunately, my wife is sometimes one of them.

    She'd been filling out an online application for a workshop program for our eldest daughter. She told me she'd saved the application - which, of course, some sites let you do - and she had a printed copy (5 pages) that she got me to check through that evening.

    The next night, after I'd confirmed that it was all OK, she went to submit the application. I wasn't in the room at the time. The next thing I heard was "Has this actually submitted properly?" I called back "I don't know", and wandered in to see what was up.

    It turned out that her definition of saving the application was using the browser's "Save page as" feature, which gave her a nice reconstruction of the final page in the online application, but the "Submit" and "Back" buttons for some reason didn't work very well...

    I didn't try to explain about session state. I did try to explain that she'd only saved what the last page of the application looked like (not strictly accurate I know, but LiesToChildren) and that she'd need to retype all the information into the actual online application. This was about an hour before the deadline; we were glad it wasn't five minutes.

    The other day, someone was taking some stupid web form required a bunch of "tell us how you feel" free-form text entries but had a 30 minute timeout for non-activity (activity, meaning navigating -- just typing stuff into the boxes doesn't keep your session active), after which it deleted your session and made you start over from the beginning. I got called over "this stupid shit deleted everything I typed, and I was on a roll... can you get it back?"

    Refreshing and resubmitting the form just made it say that the session was invalid and to start over, but I was able to go into the browser's network debugger, refresh, view the raw HTTP request and copy all the typed stuff that had been submitted, and paste it into Notepad so that he could just copy and paste from there to the form, and could complete it before it timed out. I fucking win.



  • Something we already know is now confirmed:


  • Notification Spam Recipient

    @TimeBandit said in WTF Bites:

    Something we already know

    I mean, they're barely competent at following a script, what makes you think they can program? 🚎



  • @Tsaukpaetra said in WTF Bites:

    @TimeBandit said in WTF Bites:

    Something we already know

    I mean, they're barely competent at following a script, what makes you think they can program? 🚎

    They can't even program a script ? :trollface:



  • @TimeBandit said in WTF Bites:

    Something we already know is now confirmed:

    Not sure why they need the "in India" qualifier, though. 🔥



  • @cvi said in WTF Bites:

    Not sure why they need the "in India" qualifier, though. 🔥

    Yeah, I remember trying to explain to a software engineer why his code was making two comparison

    if (someBoolean == True)
    

    After a while, I just gave up 🤷


  • FoxDev

    @cvi said in WTF Bites:

    Not sure why they need the "in India" qualifier, though.

    Because without it, the figure is 90% ;)


  • FoxDev

    @TimeBandit said in WTF Bites:

    @cvi said in WTF Bites:

    Not sure why they need the "in India" qualifier, though. 🔥

    Yeah, I remember trying to explain to a software engineer why his code was making two comparison

    if (someBoolean == True)
    

    After a while, I just gave up 🤷

    As bad as that is, any decent modern compiler will optimise that away to a single check anyway.



  • @RaceProUK said in WTF Bites:

    As bad as that is, any decent modern compiler will optimise that away to a single check anyway.

    IOW, any decent modern compiler is more intelligent than a software engineer :trollface:


  • FoxDev

    @TimeBandit said in WTF Bites:

    @RaceProUK said in WTF Bites:

    As bad as that is, any decent modern compiler will optimise that away to a single check anyway.

    IOW, any decent modern compiler is more intelligent than a software engineer :trollface:

    Why the trollface? It's not trollish if it's true ;)



  • @Tsaukpaetra said in WTF Bites:

    @TimeBandit said in WTF Bites:

    Something we already know

    I mean, they're barely competent at following a script, what makes you think they can program? 🚎

    A script is just a program that's written for humans, in an allegedly human-readable language. Obviously, if they can't even follow that, they'll have no hope of following a program that's written for computers, in a language that's computer-readable, but not very human-readable (and if it does have human-readable parts, i.e. "comments", they often conflict with the computer-readable parts)?



  • @anotherusername said in WTF Bites:

    A script is just a program that's written for humans, in an allegedly human-readable language.

    I see that you know Perl 🛒


  • Notification Spam Recipient

    @anotherusername said in WTF Bites:

    ?

    Sorry, I could not parse your input as a question. Try again?



  • @TimeBandit said in WTF Bites:

    @anotherusername said in WTF Bites:

    A script is just a program that's written for humans, in an allegedly human-readable language.

    I see that you know Perl 🛒

    No, I've never heard anyone claim that Perl was human-readable.



  • @Tsaukpaetra said in WTF Bites:

    @anotherusername said in WTF Bites:

    ?

    Sorry, I could not parse your input as a question. Try again?

    That's what happens when the distance between the beginning of your sentence and the end of your sentence becomes large enough that you can't remember if you started it with "they'll have no hope" or with "what hope will they have"?


  • BINNED

    Computer parts store I ordered some stuff from started spamming me. The unsubscribe process was... interesting.

    1. Locate the unsubscribe link in the middle of a 15 line footer in tiny font.
    2. On the page the link led you to, enter your e-mail like a neanderthal because the link just leads to a generic page and doesn't contain any identifier.
    3. On the next page, get confused for a little bit because all you see is a massively padded form that asks you to enter your new e-mail. That's actually for when you want to give them a new address where they can spam you, which is a function I'm like 50% sure was ever used by anyone. Anyway, scroll way down and locate the actual unsubscribe button.
    4. Now you'll get a confirmation mail. That's right - you want us to stop spamming you? We're going to spam you some more, asshole!
    5. At least the confirmation e-mail actually has a personalized link. I half expected it would just contain some code I'd have to paste somewhere. Or better yet, a captcha I'd have to type into another form... I mean, when you design your spam system like an asshole, you might as well go all in, right?
    6. "You are now unsubscribed." Great, I'm glad this is over. AND THEN YOU GET ANOTHER E-MAIL CONFIRMING THAT YOU'RE UNSUBSCRIBED, WHAT THE FUCK, LEAVE ME ALONE ALREADY, AM I GOING TO GET A LETTER FROM YOU TOO? SOME FLOWERS, MAYBE? WITH A NOTE BEGGING ME TO COME BACK?!

    Is this normal? I usually make sure to uncheck all the "I agree to you spamming the shit out of me, err, I mean, send you updates on our deals" boxes, so I don't find myself having to unsubscribe from spam all that often. I think this is the stupidest process I've ever seen at a legit company, usually it just involves clicking a link and then a single button.



  • @blek I love the ambiguous checkbox those forms usually have:

    I no longer wish to stop continuing to no longer not receive emails

    Followed by a button that just says "unsubscribe". So, should I leave the box checked or not...



  • @blek said in WTF Bites:

    AND THEN YOU GET ANOTHER E-MAIL CONFIRMING THAT YOU'RE UNSUBSCRIBED, WHAT THE FUCK, LEAVE ME ALONE ALREADY, AM I GOING TO GET A LETTER FROM YOU TOO? SOME FLOWERS, MAYBE? WITH A NOTE BEGGING ME TO COME BACK?!

    You'll get daily reminder emails letting you know you're still unsubscribed.


  • BINNED

    @NedFodder Ha!

    By the way, I unsubscribed from a few other lists right now (doing some spring cleanup I suppose), and none of them even asked for a confirmation. I just clicked a link every time and was sent to a page that said I was unsubbed. Two clothing companies, an outdoor equipment vendor, and an online restaurant reservation service all have their shit together way better than a computer retailer. Sigh.


  • BINNED

    @Bulb said in WTF Bites:

    @anonymous234 said in WTF Bites:

    meson build system, but guess what, it requires version >=0.38, and Ubuntu repositories only have version 0.34.

    Hm, Sid has 0.39, but Stretch only has 0.37 and Jessie has 0.21. Depending on anything that Jessie (as long as she's current) does not have, in such a low-level library, should be considered a crime.

    Meson is very new and under active development. Replacing autotools cruft with something that works but faster and cleaner is worth a git clone from master. It only wants python3 as dependency anyways.


  • BINNED

    @anonymous234 said in WTF Bites:

    @Yamikuronue said in WTF Bites:

    Isn't that the promise of containerization though?

    Which requires 3rd party software instead of being available natively in OSs (maybe some recent ones?). So that just reinforces my point.

    systemd-nspawn
    chroot
    ...

    rkt is systemd-nspawn on steroids, container is chroot on steroids


  • BINNED

    @Onyx said in WTF Bites:

    @Jaloopa said in WTF Bites:

    @Onyx Does QT have a Q prefixed version of every type? Why doesn't it just use int16?

    I'm assuming it's some (possibly outdated) multiplatform compatibility thing. I'm using the type myself because the method call I use later on (QTcpSocket::connect) takes a quint16 as a parameter, and while I'm sure that casting shouldn't be an issue in any way I prefer to use framework conventions.

    You do not need casting for basic types, even with most pedantic settings



  • @dse more specifically, you do not need to cast between type aliases that refer to the same type. While I'd normally agree with @Onyx in that you should use the same type alias in the event that it ever changes, in this case I find it very unlikely that the meaning of quint16 will ever change. Preferring to use a more standard type alias like std::uint16_t will only make the code more portable.


  • Winner of the 2016 Presidential Election

    @LB_ said in WTF Bites:

    While I'd normally agree with @Onyx in that you should use the same type alias in the event that it ever changes, in this case I find it very unlikely that the meaning of quint16 will ever change. Preferring to use a more standard type like std::uint16_t will only make the code more portable.

    Put a static assert somewhere, though, to make sure your compiler checks that assumption.


  • Java Dev

    That juice topic reminded me of this :wtf: I've found at a couple hotels:
    0_1492775066296_ipad-juice-wtf.jpg

    "For our juice dispenser we should have a touchscreen to select juice. Now how do we solve this problem?"
    "I know, let's use an iPad! It's literally the only touchscreen of an appropriate size that exists!"
    "BRILLANT!"

    Because you totally need to get a $400 tablet just for the touchscreen. Because there's NOT A SINGLE cheaper tablet that could do the job equally well, or even just a plain touchscreen connected to whatever logic controller the device is using. Idiots.


  • Discourse touched me in a no-no place

    @Atazhaia TRWTF is the atomic glow in the “Cold water”. If your water is glowing like that, you'd better be wearing lead-lined underwear…


  • FoxDev

    @Atazhaia Maybe someone should introduce them to an even more advanced piece of technology. For instance, imagine if you will, a small plastic square that, when pressed, pushes two pieces of metal into contact. Then imagine that removing the pressure on the plastic square caused the metal pieces to move out of contact again. Now, let's, for the sake of argument, give this a nice, cool-sounding word, like, say, 'button'.

    Now, and this is where it gets ingenious, imagine you can have more than one of these so-called buttons. Then you could have a set of, say 11, and write the numbers 0-9 on 10 of them, and GO on the 11th. Then, and this is the really clever bit, you can connect these 11 buttons to a small PCB with a small programmable IC on it, and then you can type in, say, a two-digit code then press GO, and you get the drink you wanted. Of course, to know what code you need to enter, you'd have to have a list of drinks and codes. A menu, if you will.

    Alas, I fear such advanced technology will not appear in our lifetimes...



  • @dkf said in WTF Bites:

    @Atazhaia TRWTF is the atomic glow in the “Cold water”. If your water is glowing like that, you'd better be wearing lead-lined underwear…

    At least they got the color right for that...


  • 🚽 Regular

    @RaceProUK said in WTF Bites:

    [entering digits to select drink as listed in menu]

    Is buttons with pictures of the drinks too hard a solution?


  • ♿ (Parody)

    @Zecc D00d, I'm at a hotel. I want to be pampered. Gimme the iPad interface!


  • Discourse touched me in a no-no place

    @RaceProUK said in WTF Bites:

    @Atazhaia Maybe someone should introduce them to an even more advanced piece of technology. For instance, imagine if you will, a small plastic square that, when pressed, pushes two pieces of metal into contact. Then imagine that removing the pressure on the plastic square caused the metal pieces to move out of contact again. Now, let's, for the sake of argument, give this a nice, cool-sounding word, like, say, 'button'.

    Now, and this is where it gets ingenious, imagine you can have more than one of these so-called buttons. Then you could have a set of, say 11, and write the numbers 0-9 on 10 of them, and GO on the 11th. Then, and this is the really clever bit, you can connect these 11 buttons to a small PCB with a small programmable IC on it, and then you can type in, say, a two-digit code then press GO, and you get the drink you wanted. Of course, to know what code you need to enter, you'd have to have a list of drinks and codes. A menu, if you will.

    Alas, I fear such advanced technology will not appear in our lifetimes...

    :belt_onion:


  • Java Dev

    @Atazhaia said in WTF Bites:

    That juice topic reminded me of this :wtf: I've found at a couple hotels:
    0_1492775066296_ipad-juice-wtf.jpg

    "For our juice dispenser we should have a touchscreen to select juice. Now how do we solve this problem?"
    "I know, let's use an iPad! It's literally the only touchscreen of an appropriate size that exists!"
    "BRILLANT!"

    Because you totally need to get a $400 tablet just for the touchscreen. Because there's NOT A SINGLE cheaper tablet that could do the job equally well, or even just a plain touchscreen connected to whatever logic controller the device is using. Idiots.

    I don't know what kind of person did that, but they must be related to the persons who designed the beamer input selector interface in our conference room.



  • @blek

    a massively padded form that asks you to enter your new e-mail

    In a weird coincidence your new e-mail address is abuse@computer-parts-store.



  • @RaceProUK

    you'd have to have a list of drinks and codes. A menu, if you will.

    Now imagine this list displayed on a TV set next to the juice dispenser. Wouldn't that be bril!


  • Notification Spam Recipient

    @Mikael_Svahnberg said in WTF Bites:

    Wouldn't that be bril!

    Maybe, but will it be lant?


  • FoxDev

    @Tsaukpaetra said in WTF Bites:

    @Mikael_Svahnberg said in WTF Bites:

    Wouldn't that be bril!

    Maybe, but will it be lant?

    Only if i'm trying to spell that time period before Zombie Jesus Day



  • Right clicking on symlinks in Windows 10 will duplicate context menu entries:
    0_1492816173400_symlink-context-menu.png
    I noticed it on my system because, well...
    0_1492816221262_symlink-context-menu-example.png


  • Java Dev

    @LB_ I can't wrap my head around that context menu. It duplicates some, but not all, entries. :wtf: is causing that to happen? I could understand if it was all, or at least all the added extras.


  • Notification Spam Recipient

    @LB_ said in WTF Bites:

    Right clicking on symlinks in Windows 10 will duplicate context menu entries:

    E_NO_REPRO:

    0_1492820252750_upload-c1cde54c-3f31-4aa1-a65f-2abe5b884128

    0_1492820266423_upload-ac2cc829-88a8-49d5-aa75-04c2d2e64de1

    Maybe I need to get a creative update?



  • @CarrieVS said in WTF Bites:

    commented out code instead of deleting it,

    :doing_it_wrong:




  • Notification Spam Recipient

    @LB_ said in WTF Bites:

    @Tsaukpaetra 0_1492821909868_upload-e84314cc-82ea-4e0d-a47b-e249fec10ac3

    You and your forced upgrades. SMH



  • @hungrier said in WTF Bites:

    You'll get daily reminder emails letting you know you're still unsubscribed.

    You laugh, but....

    It used to be the practice that the bank would periodically send us unsolicited offers to increase our credit card limits. Then regulations were enacted to say they couldn't send those out to people who hadn't specifically requested them. The bank sent us a letter explaining this, and inviting us to sign up for the offers, which invitation we of course declined.

    So now, instead of periodically offering to increase our credit card limit, the bank periodically offers us the chance to sign up for the limit increase offers. There doesn't seem to be a way to stop this from happening.



  • My WTF of the day:

    https://youtu.be/C_PUpJeV0_4?t=6m12s

    1. Using an angle grinder like this without eye protection.
    2. Doing this whole thing without eye protection, period.
    3. Having your kid around.
    4. Doing this inside.
    5. No hand protection either.
    6. And, of course, no fume hood, too.
    7. Proceeding then to poke the battery with a metal tool in your bare hand. Granted, it should be discharged at that point but...

    Jesus Christ.



  • @Atazhaia said in WTF Bites:

    @LB_ I can't wrap my head around that context menu. It duplicates some, but not all, entries. :wtf: is causing that to happen? I could understand if it was all, or at least all the added extras.

    I have a guess: It happened because of Microsoft's forced insertion of the 4 OneDrive options (note that 4 options are duplicated).

    Microsoft sure makes no secret of their desirelust that you usesell your soul to OneDrive.



  • @CoyneTheDup 7-Zip's options aren't duplicated. And the OneDrive stuff is there because the target the symlink points to is actually in my OneDrive.



  • So, I took a look at Xamarin.Forms. Visual Studio asked me which template I preferred upon creating a new project.

    I had the choice between "Blank Project" and "Master-Detail Navigation".

    Since I wanted to learn a bit more, I chose the latter. Then browsed around a bit to see what goes where.

    Only curious thing: Nowhere did I find a reference to "MasterDetail" or something. Also, the built project didn't look like their example picture of what "Master-Detail" should look like.

    Because they were using TabbedPages instead.

    Morons.


  • Winner of the 2016 Presidential Election

    @Rhywden said in WTF Bites:

    So, I took a look at Xamarin.Forms. Visual Studio asked me which template I preferred upon creating a new project.

    I had the choice between "Blank Project" and "Master-Detail Navigation".

    Since I wanted to learn a bit more, I chose the latter. Then browsed around a bit to see what goes where.

    Only curious thing: Nowhere did I find a reference to "MasterDetail" or something. Also, the built project didn't look like their example picture of what "Master-Detail" should look like.

    Because they were using TabbedPages instead.

    Morons.

    Xamarin says:

    It's recommended that the master page of a MasterDetailPage should always be a ContentPage instance, and that the detail page should only be populated with TabbedPage, NavigationPage, and ContentPage instances. This will help to ensure a consistent user experience across all platforms.

    ❓

    There's also this available, which I would think that project would be based on.


Log in to reply