WTF Bites


  • Notification Spam Recipient

    @anotherusername said in WTF Bites:

    I have acquired a new hamster wheel for my office...

    0_1508248243828_hamster.jpg

    It's been going since Friday afternoon sometime. I'm not using the laptop, so I'm just going to let it go and see how long it takes.

    (TRWTF is Windows Update.)

    Wait, the Windows XP Update site still works?!?!

    That's shocking, in all actuality...


  • Notification Spam Recipient

    Found in Jenkins job:

    set TempTouchFile=%DIR_TO_COPY_TO%\Touch.txt
    
    echo TOUCH>%TempTouchFile%
    
    IF EXIST %TempTouchFile% (
        del %TempTouchFile%
    )
    

    Presented without comment, because there were none.



  • @tsaukpaetra said in WTF Bites:

    @anotherusername said in WTF Bites:

    I have acquired a new hamster wheel for my office...

    0_1508248243828_hamster.jpg

    It's been going since Friday afternoon sometime. I'm not using the laptop, so I'm just going to let it go and see how long it takes.

    (TRWTF is Windows Update.)

    Wait, the Windows XP Update site still works?!?!

    That's shocking, in all actuality...

    It does, but it requires TLS 1.1 or 1.2 or something now which means that really old versions of IE can't access it at all. (You have to update IE first.)

    I've also seen computers where the "Windows Update" link in Control Panel was simply broken and refused to work, but accessing the Windows Update site directly worked (...IE versions 7 and up have a "Windows Update" option in the Tools menu, which works; it actually still works on my Windows 7 machine but it opens the Windows Update control panel instead of loading the website).


  • BINNED

    @bulb Yeah, I haven't heard a peep about it till today. Elections and butter, I guess.



  • @tsaukpaetra said in WTF Bites:

    Found in Jenkins job:

    set TempTouchFile=%DIR_TO_COPY_TO%\Touch.txt
    
    echo TOUCH>%TempTouchFile%
    
    IF EXIST %TempTouchFile% (
        del %TempTouchFile%
    )
    

    Presented without comment, because there were none.

    That looks like something that was supposed to determine whether the location existed and was writable, but there's no code to actually check whether it worked or not. :/



  • @pie_flavor not entirely unlike the Danish oister card clone. They've added online payment, but you still have to physically scan your card after "filling up"



  • @tsaukpaetra said in WTF Bites:

    Wait, the Windows XP Update site still works?!?!

    Set some special registry values and you can still get updates too !!!



  • @tsaukpaetra said in WTF Bites:

    Presented without comment, because there were none.

    Damn interns.


  • Notification Spam Recipient

    @pie_flavor said in WTF Bites:

    stick the card into a thing on the wall, and enter the code.

    Is this thing attached to the Internet? If not, is the value of the card stored on the card itself? If so, can you save your prior codes so enterprising individuals can decode the pattern and generate new codes for you to try?

    Asking for a friend, of course...


  • Notification Spam Recipient

    @dcon said in WTF Bites:

    @tsaukpaetra said in WTF Bites:

    Presented without comment, because there were none.

    Damn interns.

    Toby Phere, this guy set up the whole of our Jenkins server, things like this are the smallest of WTFs that are in the build definitions.


  • Considered Harmful

    @tsaukpaetra :thonking: If the code is stored on the card, it would certainly explain why it's impossible to view the balance online. If all possible codes are stored in the box (or an algorithm to determine code applicability), it would explain why you need to know the amount. And I'd bet that the answer is no; the box probably keeps track of code distribution. This would then be why the website needs to know what the location ID of the box is.
    If they're not network connected at all, and the card stores its value, then a card reader-writer would be a valuable investment. This would make a good project.


  • Notification Spam Recipient

    @pie_flavor said in WTF Bites:

    And I'd bet that the answer is no; the box probably keeps track of code distribution. This would then be why the website needs to know what the location ID of the box is.

    Ah, so it's just another variable in the code generation algorithm...


  • :belt_onion:

    @boomzilla said in WTF Bites:

    Yes, SQLPlus has some weird bullshit that you have to watch out for. Blah! 1970s technology bad! /blakeyrant

    I've been using SQLcl for scripts recently (same parser as SQL Developer, which is good) and it seems to work pretty well though I think it still might be thrown by some of the same things SQL*Plus was thrown by because they've guaranteed all scripts that worked in SQL*Plus will work in SQLcl the same way. And there's some fucking weird bug where I can't include (@sqlfile) SQL files inside SQL files anymore.

    Fucking Oracle. Christ. They pretend they're trying to do better, but they fail miserably.


  • :belt_onion:

    @anotherusername said in WTF Bites:

    That looks like something that was supposed to determine whether the location existed and was writable, but there's no code to actually check whether it worked or not. :/

    Might not have to? I know that for "shell script" tasks in Jenkins they're not actually implemented as a shell script but Jenkins makes some attempt to parse everything, run each command, and bomb out prematurely if one of the intermediate commands fails.

    I don't think it does the same thing for cmd scripts, but it might (check errorlevel after each command).



  • @heterodox For POSIX shell, it does not require parsing anything. You just prepend the script with set -e—or give the -e option to /bin/sh—and that's it. For cmd it would need to be sent line-by-line, but with the weird way .bats and .cmds behave I wouldn't be surprised if that was exactly what they do (don't know though; I always used bash (via MSys) as I needed to run it also on Unix (Mac)).


  • Notification Spam Recipient

    @heterodox said in WTF Bites:

    @anotherusername said in WTF Bites:

    That looks like something that was supposed to determine whether the location existed and was writable, but there's no code to actually check whether it worked or not. :/

    Might not have to? I know that for "shell script" tasks in Jenkins they're not actually implemented as a shell script but Jenkins makes some attempt to parse everything, run each command, and bomb out prematurely if one of the intermediate commands fails.

    I don't think it does the same thing for cmd scripts, but it might (check errorlevel after each command).

    No, it spits out whatever was in the text box into the system temp directory (with a generated name), then calls an exec to it after setting the working directory to the workspace. Non-zero exit code is failure.



  • @pie_flavor said in WTF Bites:

    Step 3 is to physically go down to the laundry room, stick the card into a thing on the wall, and enter the code. Why I can't just add funds to the card directly from my computer, I have no idea. What the fuck are the codes for? How difficult would it be to cut out that middleman? Or rather, how difficult was it to make that middleman when you didn't need it? For bonus ducks, you have to enter the amount that the code was for, or it won't work.

    It's probably storing the funds on the card itself, rather than something like an account number. That way, only the refill machine has to be connected to the network rather than every washing machine, and you can still do laundry (but not add funds) when there's no network. If you had a card reader, you could probably theoretically hack the card and give yourself free laundry cash, at the possible risk of going to prison for the rest of your life. Laundry may or may not be free in prison.



  • One of the people where I work was recently promoted from {position} to Sr. {position}, so the person's supervisor sent out an email announcing it to everyone else in our office so they could offer their congratulations. So nearly immediately a bunch of reply-all messages come through with various forms of congratulations for the person. 🎊 ㊗ 🎆

    The thing is, which the supervisor quickly noted it in another reply-all email, the person was not actually in the original recipient list for the email (since it was expected that everyone would offer their congratulations individually), which means that all the congratulations were going to everyone except that person.

    What's even better is that even after the supervisor sent the clarification, a few more congratulatory emails came trickling in.


  • Considered Harmful

    @hungrier said in WTF Bites:

    at the possible risk of going to prison for the rest of your life.

    Hm. Is that what would happen? I'm not sure what specific crime is being committed. Probably just because I know next to nothing about this topic.



  • @pie_flavor My initial thought is theft of the laundry service. Life in prison is a bit extreme for that, though.

    (Or possibly counterfeiting, though that might be unlikely.)



  • @pie_flavor Probably some kind of fraud, but that's a complete ass-pull.



  • @dcon said in WTF Bites:

    @tsaukpaetra said in WTF Bites:

    Wait, the Windows XP Update site still works?!?!

    Set some special registry values and you can still get updates too !!!

    I didn't have to do any registry magic to make it download updates. That's just to get new updates, I think (ones that were released after XP's end of life date).


  • Considered Harmful

    @hungrier said in WTF Bites:

    @pie_flavor Probably some kind of fraud, but that's a complete ass-pull.

    I dunno if I'd be falsifying or omitting material facts. At a guess, I'd say that it all comes down to whether the box is connected to the internet. If it is, then I'm falsifying having made a purchase, because only a successful purchase will convince the box to dispense its currency. If it isn't, and it just computes a given quantity/code combination with some internal algorithm to know if it's valid, then convincing it to dispense its currency would involve simple codebreaking, which AFAIK isn't illegal, and it would be possible to dispense currency without making a purchase.
    I think. IANAL.



  • 0_1508308558281_2bd14cf4-fb3f-4e01-8ef0-4032fe81e8bc-image.png

    The day is starting out just fine.



  • @maciejasjmj said in WTF Bites:

    0_1508308558281_2bd14cf4-fb3f-4e01-8ef0-4032fe81e8bc-image.png

    The day is starting out just fine.

    My favorite is when out of nowhere I get a

    Microsoft Windows

    This program is not responding.



  • Also (anonymized):

    var testList = Builder<SomeModel>.CreateListOfSize(42)
        .With(x => x.Id != someId)
        .Build()
    

    No, as powerful as it is, NBuilder is just a simple utility to generate objects with a fluent interface. It's not a rules engine, and you can't just plop any condition into it and expect it to satisfy it for the generated objects.



  • Yesterday I discovered a nasty gotcha in cmd. Take this command line:

    someCommand.exe >Z:\SomeDirectory\SomeFile.log
    

    If SomeDirectory does not exist, cmd gives you "file not found" and does not run someCommand.exe.


  • Considered Harmful

    @medinoc said in WTF Bites:

    Yesterday I discovered a nasty gotcha in cmd. Take this command line:

    someCommand.exe >Z:\SomeDirectory\SomeFile.log
    

    If SomeDirectory does not exist, cmd gives you "file not found" and does not run someCommand.exe.

    TR:wtf: is people using cmd and not powershell.



  • @pie_flavor PowerShell takes learning, and when the subject came up yesterday, I was told it's just as bad as cmd when it comes to tab-completion, so I don't have enough incentive to spend my valuable skill points learning time in it. I'd rather get off my ass, install Cygwin and learn to use bash instead (though for now I CBA either).


  • Considered Harmful

    @medinoc said in WTF Bites:

    @pie_flavor PowerShell takes learning, and when the subject came up yesterday, I was told it's just as bad as cmd when it comes to tab-completion, so I don't have enough incentive to spend my valuable skill points learning time in it. I'd rather get off my ass, install Cygwin and learn to use bash instead (though for now I CBA either).

    You were told incorrectly. Powershell tab-completes everything, including parameters and file paths. And it's object-oriented; why pass e.g. a string of tab-separated filenames that you hope the next program can parse correctly when you can instead pass a bunch of actual file objects?


  • 🚽 Regular

    @pie_flavor said in WTF Bites:

    Powershell tab-completes everything, including parameters and file paths.

    But it doesn't list the options; it autocompletes the candidates one at a time, which is annoying.



  • @pie_flavor said in WTF Bites:

    @medinoc said in WTF Bites:

    @pie_flavor PowerShell takes learning, and when the subject came up yesterday, I was told it's just as bad as cmd when it comes to tab-completion, so I don't have enough incentive to spend my valuable skill points learning time in it. I'd rather get off my ass, install Cygwin and learn to use bash instead (though for now I CBA either).

    You were told incorrectly. Powershell tab-completes everything, including parameters and file paths.

    AFAIK cmd does that too. Problem is, they both handle names with a common prefix by tabbing through each of them in sequence, instead of completing up to the divergence point. Which is very bad when you have to handle files (expecially executables) that were named like .Net namespaces/assemblies/etc. (we discovered too late that you're supposed to exclude .exe files from this kind of naming scheme).



  • @zecc said in WTF Bites:

    @pie_flavor said in WTF Bites:

    Powershell tab-completes everything, including parameters and file paths.

    But it doesn't list the options; it autocompletes the candidates one at a time, which is annoying.

    PowerTab is very much a must-have for command line PowerShell:



  • @pie_flavor said in WTF Bites:

    which AFAIK isn't illegal

    Rule of thumb: whenever you get something for free which you ought to be paying for, you're committing a crime.



  • @medinoc said in WTF Bites:

    install Cygwin

    Cygwin is obsolete. Use MSys2.

    MSys2 is a fork of Cygwin, but:

    1. It does the path mangling like MSys1: Arguments are converted to Windows format by executing process and back to Unix format in the runtime begin, so you pass paths the same way to both native and msys commands and
    2. It uses pacman instead of the graphic abomination of an installer Cygwin has.


  • @maciejasjmj , @Bulb: Thanks for the up-to-date advice.


  • kills Dumbledore

    @bulb said in WTF Bites:

    Cygwin is obsolete

    Because it installs Bash?



  • @pie_flavor said in WTF Bites:

    And it's object-oriented; why pass e.g. a string of tab-separated filenames that you hope the next program can parse correctly when you can instead pass a bunch of actual file objects?

    That sounds like workprogramming. Bash is much nicer, you throw random two-letter combinations at it, and it (mostly) does what you want it to.



  • I just witnessed a woman at the park yell at her dog to "come back here", "don't drink that water" and "bring back that ball" for about five minutes, and threaten to leave if the dog didn't obey.

    The dog of course didn't give a damn because DOGS DON'T UNDERSTAND HUMAN LANGUAGE YOU IDIOT.



  • @ben_lubar said in WTF Bites:

    @maciejasjmj said in WTF Bites:

    0_1508308558281_2bd14cf4-fb3f-4e01-8ef0-4032fe81e8bc-image.png

    The day is starting out just fine.

    My favorite is when out of nowhere I get a

    Microsoft Windows

    This program is not responding.

    I like "the following programs are preventing Windows from shutting down: " (none listed).



  • @medinoc said in WTF Bites:

    Yesterday I discovered a nasty gotcha in cmd. Take this command line:

    someCommand.exe >Z:\SomeDirectory\SomeFile.log
    

    If SomeDirectory does not exist, cmd gives you "file not found" and does not run someCommand.exe.

    Makes sense... it needs to open the output stream before it can run the application, and if the output stream isn't available then creating the output stream anyway and running the command and just dumping the stream into CON instead might not be desirable.


  • kills Dumbledore

    @anotherusername said in WTF Bites:

    I like "the following programs are preventing Windows from shutting down: " (none listed)Shutdown.

    FTFM



  • @medinoc said in WTF Bites:

    Yesterday I discovered a nasty gotcha in cmd. Take this command line:

    someCommand.exe >Z:\SomeDirectory\SomeFile.log
    

    If SomeDirectory does not exist, cmd gives you "file not found" and does not run someCommand.exe.

    I dunno. That seems like a good thing. If it can't write the output file, that could be considered data loss - which is a "Bad Thing"™


  • Considered Harmful

    @maciejasjmj TIL. I'll have to check that out.


  • Considered Harmful

    @cvi said in WTF Bites:

    @pie_flavor said in WTF Bites:

    And it's object-oriented; why pass e.g. a string of tab-separated filenames that you hope the next program can parse correctly when you can instead pass a bunch of actual file objects?

    That sounds like workprogramming. Bash is much nicer, you throw random two-letter combinations at it, and it (mostly) does what you want it to.

    I mean, so does Powershell if you set up enough aliases. But because it's object output based instead of text output based, everything Just Works ™.



  • Magento doesn't use jQuery, it uses Prototype.js. So lots of third-party extensions work around it by bundling their own copies of jQuery. So this project I have to work with every day looks like this:

    0_1508337103862_53babc36-6570-4912-b946-9dca5751f19d-image.png

    Yes, some results in that list are plugins, not jQuery itself. Doesn't make it any less of a WTF.



  • @dcoder you have my deepest sympathies. At least I work with recent-ish Moodle where RequireJS is a thing and most of the plugins I touch are well behaved.



  • @anonymous234 said in WTF Bites:

    I just witnessed a woman at the park yell at her dog to "come back here", "don't drink that water" and "bring back that ball" for about five minutes, and threaten to leave if the dog didn't obey.

    The dog of course didn't give a damn because DOGS DON'T UNDERSTAND HUMAN LANGUAGE YOU IDIOT.

    Dogs have an ability to understand human language that is comparable to my ability to understand, say, Russian. They can understand a few individual words if they have been taught the meaning of those specific words: $name, come, sit, stay (mine have never quite gotten that one), No! Cue XKCD "blah blah Rover blah blah..."

    "Come." "No!" "Fetch." Those should work. Threatening to leave, :facepalm: . No, the dog had NFC what she was saying.



  • @pie_flavor said in WTF Bites:

    I mean, so does Powershell if you set up enough aliases. But because it's object output based instead of text output based, everything Just Works ™.

    I've spent 30+ years using sh/csh/bash. I know how to make them Just Work, too.

    I have a few months experience with PS, and I have to look up everything. I'm not saying it's bad, just that I don't know it nearly as well, and when I need to do something, I want to do that thing, not spend 3x as much time learning how to do it in PS, so because I don't use it as much, I'm not learning it very quickly. I doubt my knowledge of PS will ever catch up to my knowledge of sh/csh/bash.


  • Grade A Premium Asshole

    @swayde said in WTF Bites:

    They've added online payment, but you still have to physically scan your card after "filling up"

    That's probably not crazy. Scan the card with Farebot (or some other NFC farecard reader) and you'll probably see that the card stores "fare product" purchases. So you have to get the record of that fare product on to the card somehow.


Log in to reply