WTF Bites



  • @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 :tm:.

    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.



  • @medinoc

    There are a couple of projects I use for this:

    • Clink - A GNU Readline wrapper for CMD
    • PSReadLine - A Pure PS Readline implementation

    Both fix the bizarre autocomplete behavior in their respective shells.

    They also work well with ConEmu, my favorite terminal system.



  • @anotherusername said in WTF Bites:

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

    That's why all my Surfaces at school have the registry bit set where Windows shuts down regardless of open programs, dialogs or whathaveyou.

    Because someone always forgets to close Word or something properly.

    For those interested:

    [HKEY_USERS\.DEFAULT\Control Panel\Desktop]
    "AutoEndTasks"="1"
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control]
    "WaitToKillServiceTimeout"="1000"
    


  • @hardwaregeek said in WTF Bites:

    "Come." "No!" "Fetch." Those should work.

    If the dog's been trained, and trained properly. Which it very likely hasn't, because if her training style is the same as she demonstrated there, the result of that "training" was that the dog just became even more hopelessly confused and had no idea what it was supposed to do.



  • @pie_flavor said in WTF Bites:

    @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 :tm:.

    Except when it doesn't.



  • @hardwaregeek said in WTF Bites:

    Cue XKCDThe Far Side "blah blah Rover blah blah..."

    0_1508355246834_4396142d-809e-48f3-95b2-626d61385210-image.png



  • @boomzilla I know from experience that that's "blahblah ... Ginger ... blahblah Ginger blah out blah" (Ginger bounces to door)


  • area_can

    @pie_flavor said in WTF Bites:

    then a card reader-writer would be a valuable investment.

    Before they lock you up in prison for hacking into the government :trolleybus:


  • Notification Spam Recipient

    @bb36e God. I remember how all throughout K-12, whenever I did anything interesting or involving the command line with a computer, I'd get reported to the teacher for "hacking".



  • @anotherusername said in WTF Bites:

    @hardwaregeek said in WTF Bites:

    "Come." "No!" "Fetch." Those should work.

    If the dog's been trained, and trained properly. Which it very likely hasn't, because if her training style is the same as she demonstrated there, the result of that "training" was that the dog just became even more hopelessly confused and had no idea what it was supposed to do.

    I did say "should," not "would."



  • 0_1508409942742_e8871c46-50cf-4463-857a-15da36bec53d-image.png

    New pizza place's Facebook page seems to be operated by your non-techie grandma.

    0_1508409923269_6cbb0489-8cb7-4eab-9790-815dfddd8404-image.png

    For all connoisseurs of pizzas, sandwiches, pastas and many other tasty products to your addresses free and in shortest delivery time, by dialing our number.

    Yes, this is literally a normal sentence where every word is turned into a hashtag. And yes, it sounds that awkward in Serbian too.

    Also, all their product photos seem to be stock photos grabbed off internet.

    I think I'll dine elsewhere, thanks.



  • This forum is TR:wtf:--

    0_1508414723515_Screen Shot 2017-10-19 at 8.04.18 AM.png



  • @tsaukpaetra Jenkins touched me in a %TMP% place!



  • @hardwaregeek said in WTF Bites:

    @anotherusername said in WTF Bites:

    @hardwaregeek said in WTF Bites:

    "Come." "No!" "Fetch." Those should work.

    If the dog's been trained, and trained properly. Which it very likely hasn't, because if her training style is the same as she demonstrated there, the result of that "training" was that the dog just became even more hopelessly confused and had no idea what it was supposed to do.

    I did say "should," not "would."

    Yes, but it kind of begged the question of whether the dog was trained.



  • WTF: putting your application's private keys on Github
    TRWTF: using someone else's example key from $REPO as your private™ key.
    And the winner is: Lenovo


  • BINNED

    Representative line from a service file for a certain RoR application:

    ExecStart: /bin/sleep infinity
    

    :headdesk:


  • Impossible Mission Players - A

    article @laoc linked said in WTF Bites:

    And the winner is: Lenovo

    According to Lenovo’s description of LSF, it is used to receive push notifications from Lenovo servers such as product promotions for apps, news, notices, surveys and also to facilitate emergency app repairs and upgrades when needed.

    So their adware was easily compromised. Why is it so commonly screwed up?



  • @anotherusername said in WTF Bites:

    Yes, but it kind of begged the question of whether the dog was trained.

    I also said "if they have been taught the meaning of those specific words." It should have been trained, so it should respond to those commands. Obviously, one or probably both of those did not happen, but they should have.



  • @dcon said in WTF Bites:

    @boomzilla I know from experience that that's "blahblah ... Ginger ... blahblah Ginger blah out blah" (Ginger bounces to door)

    For my dogs, it's "blah blah feed blah blah" or "blah blah walk blah blah" that brings about their sudden, full, undivided attention, with or without any mention of dogs in the conversation.



  • @hardwaregeek said in WTF Bites:

    I also said "blah blah blah blah blah blah blah blah blah blah words."

    FTFD



  • @hardwaregeek said in WTF Bites:

    @anotherusername said in WTF Bites:

    Yes, but it kind of begged the question of whether the dog was trained.

    I also said "if they have been taught the meaning of those specific words." It should have been trained, so it should respond to those commands. Obviously, one or probably both of those did not happen, but they should have.

    Okay, fair enough.



  • @hardwaregeek said in WTF Bites:

    For my dogs, it's "blah blah feed blah blah" or "blah blah walk blah blah" that brings about their sudden, full, undivided attention, with or without any mention of dogs in the conversation.

    When talking with my wife, we sometimes take care not to use the words our dog knows, even in the middle of sentences, just to avoid that. We end up making weird sentences just to avoid saying "sit" or "come".

    That somewhat backfired with the command to pee: we taught the dog to do her "business" (well, some equivalent in our language) because we wanted a nicer word than "pee", so we can use it when out in some crowded place or whatever. But now when we are talking between us, we cannot use that word (e.g. "did the dog do her business last time you were out?"). So we end up having to use more direct words (such as "pee") when we are talking to humans, and reserving the euphemism ("business") for talking to the dog!

    Something similar happens when we're riding horses (to get them to move faster or slower). They know the commands so when asking each other if we're ready to go, we can't use them. They are however starting to get smart on that and now recognize just the tone of our voice when we're asking something to the other and react to that. So now we have to ask questions with the same intonation as if we're affirming something.

    So we speak weirdly when around our animals.


  • SockDev

    @onyx said in WTF Bites:

    Representative line from a service file for a certain RoR application:

    Of course not, you're buttuming that Discourse was on any kind of rails, except for the track directly to Hell.


  • Notification Spam Recipient

    @remi said in WTF Bites:

    So we speak weirdly when around our animals.

    Everyone speaks weirdly when around their animals.

    "oh lookit the floofy kitty. who's an adorable little munchkin? you are!" *makes gibbering noises*



  • @arantor said in WTF Bites:

    Of course not, you're buttuming that Discourse was on any kind of rails

    0_1508432365102_3a9818fc-d359-4aad-9e18-ccca2c89cd0e-image.png



  • Here's a :wtf: this site will appreciate:

    How do we keep up with the literature? We can use computers to extract meaning from texts. Better yet, I propose here, we should be writing research in machine readable format, say, using Extensible Markup Language (XML). I think, it is the only way for scientists to cope with the volume of research in the future.

    Taken from this blog post on the use of modifiers (adjectives and adverbs) in research literature. Note: the author was criticizing this suggestion among others, not supporting it.

    Writing a research paper in XML? :wtf: :doing_it_wrong: :headdesk: :head_bandage:


  • SockDev

    @benjamin-hall said in WTF Bites:

    Writing a research paper in XML?

    If you're writing in LaTeX or similar, that's already like part way there, right?

    Heck if you create an XML schema that covers the stuff you have in LaTeX...

    Oh no, I've said too mu--



  • @pie_flavor said in WTF Bites:

    @remi said in WTF Bites:

    So we speak weirdly when around our animals.

    Everyone speaks weirdly when around their animals.

    "oh lookit the floofy kitty. who's an adorable little munchkin? you are!" *makes gibbering noises*

    Funny, they do the same around babies.



  • @benjamin-hall You're only just noticing that?

    Oh, you mean the forum software. Never mind...



  • @tsaukpaetra said in WTF Bites:

    So their adware was easily compromised. Why is it so commonly screwed up?

    It requires strict adherence to processes so shit like this isn't simply forgotten, and management often doesn't see how badly you can fuck up with crypto. And of course every process makes people's lives a little less free. Our team is well hated in the company for establishing the "no accounts for developers on production machines because keys and shit" rule.



  • @benjamin-hall said in WTF Bites:

    Taken from this blog post on the use of modifiers (adjectives and adverbs) in research literature. Note: the author was criticizing this suggestion among others, not supporting it.

    The author's reaction is the best part:

    Words fail me, adjectives and adverbs included.

    @arantor said in WTF Bites:

    Writing a research paper in XML?

    If you're writing in LaTeX or similar, that's already like part way there, right?

    Heck if you create an XML schema that covers the stuff you have in LaTeX...

    Oh no, I've said too mu--

    DocBook, TeXML etc. exist. Presumably the OP was more about the harebrained idea of encoding semantic information in the XML. Something like XML+English=Lojban.


  • SockDev

    @laoc I know they exist. I was playing it for laughs!



  • Slack is generally awesome, which makes rough edges like this story all the more frustrating.

    0_1508484377261_bb8b43d4-ab3d-4d7e-b9e8-4ce810ae7bae-image.png

    Inb4 "upgrade to a paid account, you cheapskate" - this is a workplace account, not my call, not my coin.

    Fair enough, let's clean out some old shitposted memes shared files...

    Go to Files management.
    Get a list of files under "My Files" tab, 59 files in total.
    Hover over a file. No icon to "delete", no icon for "actions menu" or similar, no checkbox for batch ops. Sigh.
    Click the file.
    Wait for the page to load.
    Actions menu -> Delete file -> confirm. Dismiss "Deleted! OK!" dialog. Get automatically redirected back to the list.
    The list opens in the "All files" tab instead of "My Files", change to My Files, wait for the list to load again.
    Ctrl-click the file thumbnail to open it in a new tab. Curse because it loads in the current tab anyway. Delete the file, back to list.
    Aim for the file name, Ctrl-click it to open in a new tab. Hooray, it leaves the current tab unchanged and opens the file in a new tab, as expected. Delete the file, close the tab.
    Try to Ctrl-click ten or so files to delete them faster. Seems to work.
    Go through the new tabs, deleting files.
    After about five tabs, it stops working. The page shows up, but the Actions menu doesn't do anything. F12? A wild stacktrace appears, indicating that WebSockets got a response code 429 Too Many Requests.
    Why do I have to dig in the console to see that there was an error, without any user-visible indicators?
    No, wait, hang on, why the sod do I need WebSockets to view/delete a file in the first place?

    TL;DR: left-pad 2: electric boogaloo, featuring WebSockets as the must-have dependency of the day.



  • @dcon said in WTF Bites:

    @pie_flavor said in WTF Bites:

    @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 :tm:.

    Except when it doesn't.

    And in the comments:

    423 days ago: Curl author asks Microsoft to remove ‘curl’ and ‘wget’ aliases from PowerShell

    Whence we get the following:

    bagder:

    initialsession: remove curl and wget aliases

    They block use of the commonly used command line tools without providing
    even an attempt to offer the same functionality. They serve no purpose
    for PowerShell users but cause confusion and problems to existing curl
    and wget users.

    lzybkr:

    Your change would only affect Windows PowerShell (the version of PowerShell that ships in Windows). Those aliases have existed for multiple releases, so removing them would be a breaking change.

    We are rejecting this PR as it introduces "Unacceptable Changes", see our breaking change contract.

    bagder:

    Your change would only affect Windows PowerShell

    Well of course, because that's where they were added!

    removing them would be a breaking change

    You adding them was "a breaking change" to people who were used to using curl and wget from their command lines. No sane person would use those alises anyway since your replacements for curl and wget aren't working anywhere near like the original curl and wget command line tools. These aliases are only making the life harder of the users who actually want the real tools and they don't do anything good for those who don't care for the real tools.

    Things progress...

    gevaerts:

    To be honest, I don't see how this dscussion about how many people might depend on these aliases is relevant. The story as I see it is that a few years ago you decided to usurp the names of some well known tools, in the full knowledge that doing so would break those tools. You have then ignored bug reports about this for years. You really can't deny that you knew a long time ago that what you did amounted to hostile behaviour towards other people.

    If removing these aliases (retroactively, if you want to clean up your act you have to remove this from all versions in which this was ever released) breaks things for some people, then you can go and send people out to help them fix their issues. You knew it was a hostile action, you broke things, you fix them.

    simbalion:

    This thread shows that Microsoft is dysfunctional.

    Whether Powershell was intended to be released for Linux is irrelevant, you do not create programs which intentionally have the same names as well known programs, especially when your programs do not provide exactly the same functionality as the originals. There is no way to view that sort of behavior in a positive light.

    Further, the bureaucracy that makes this a lengthy conversation instead of a simple "oops, you're right, let us fix that today" is laughable. "corporate governance" and whatever, good sense has gone out the window.

    That is the reason the Microsoft product empire is suffering. The competition does not suffer from these dysfunctions.


  • SockDev

    @pjh said in WTF Bites:

    The competition does not suffer from these dysfunctions.

    No, but the competition suffers from a proclivity towards developing user-hostile software.



  • @pjh said in WTF Bites:

    You adding them was "a breaking change" to people who were used to using curl and wget from their command lines.

    But it wasn't. Those programs never worked in the first place. Now that the aliases are in there it will be a breaking change, because whoever used those aliases will have their script broken.

    I'll admit MS probably was in the wrong to put those aliases in in the first place, but the cURL guy demanding they fix it now is the dumbshit here.



  • @maciejasjmj said in WTF Bites:

    demanding they fix it now

    You mean 14 months ago, Shirley?


  • Notification Spam Recipient

    @maciejasjmj said in WTF Bites:

    @pjh said in WTF Bites:

    You adding them was "a breaking change" to people who were used to using curl and wget from their command lines.

    But it wasn't. Those programs never worked in the first place. Now that the aliases are in there it will be a breaking change, because whoever used those aliases will have their script broken.

    I'll admit MS probably was in the wrong to put those aliases in in the first place, but the cURL guy demanding they fix it now is the dumbshit here.

    Exactly! Whoop de fucking doo, you can't use curl or wget easily from PowerShell. Invoke-WebRequest may not have remotely the same syntax as them, but it does their job, and it does it in the object-oriented way that makes it actually useful in PowerShell. Sure, they're executables, but their output is legacy in PowerShell's eyes. curl or wget are only ever used for one-offs or scripting purposes, so you should be using Invoke-WebRequest for your scripting purposes, and if you really care that much about the one-offs then just fucking use bash since nobody's holding a gun to your head and forcing you to use PowerShell.

    There are a grand total of two cases I can see this being a problem. First is someone who CBA to learn the syntax (or repeatedly hit tab) for Invoke-WebRequest. If you CBA to learn new syntax, then why are you using PowerShell? Second is someone who wants to paste their bash sequences into a ps1 file, and can't distinguish scripting utility programs like curl and wget from actual user programs, in which case you're definitely scripting PowerShell wrong and may be scripting bash wrong too. Shall we lambaste C# for not having JNI?



  • @arantor said in WTF Bites:

    No, but the competition suffers from a proclivity towards developing user-hostile software.

    And that differs from Microsoft how? It's not like their software is any friendlier than the competition.


  • SockDev

    @atazhaia Microsoft makes some software that is hard to use, yes. But they don't set out with the unspecified intention to build something that works gud enuf for them and fuck everyone else, unlike the majority of open source software, which might genuinely believe it doesn't do that, but does just that.

    (And before we get into the camp that suggests I'm like Blakey on this point, I literally work for a company that provides services for open source platforms and am paid regularly to contribute to open source. They're all terrible.)



  • @arantor I'm not talking purely about usability here. I'm talking about the full experience. Going by OS specifically, I nowadays find the annoyances of Windows to be greater than the annoyances of Linux (Mint) and macOS combined. I'm using Windows for the bare minimum of applications I can because I can't rely on it to not hinder my productivity.



  • @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.)

    Huh. Okay, so now, in addition to that hamster wheel (still going!) there's a Windows Update icon in the system tray that says "Downloading updates: 0%".


  • SockDev

    @atazhaia I use Windows at home, Ubuntu at work, have spent extensive time in the not so distant past on macOS, I still find Ubuntu the least friendly of the three.



  • @arantor said in WTF Bites:

    I still find Ubuntu the least friendly of the three

    well_theres_your_problem.jpg

    Yeah, I don't agree with plain Ubuntu anymore. Maybe it'll get more sane once they scrap Unity, but as long as I'm content with Mint I don't see any reason to go back. There is a reason I switched to Mint, which has minimal Ubuntu annoyances while still keeping the good parts of it. I would prefer going LMDE to get rid of the Ubuntu influence fully, but then I do lose all the useful bits from it too. Decisions, decisions...

    For the record, I use all three (Windows, macOS, Linux) at both home and work. macOS not so much at work right now after I got a work-provided laptop instead of my private MacBook, but may do in the future if I can put these old iMacs we got to good use.


  • SockDev

    @atazhaia it's not like I got a choice to use Ubuntu at work ;)



  • @arantor Ah, right, work-mandated. :P I get to choose whatever Linux dist I want for my work, as they don't care what OS I use as long as I get my work done. I could even request a MacBook if I wanted, but I think Windows/Linux is the most helpful for my work.


  • SockDev

    @atazhaia we run our own mirrors of Ubuntu for our multiple offices, also means we can be sure about getting patches rolled out to peoples' desktops.

    Heck we go far enough that we make keys for people so they can access servers etc. into a Debian package so it can be easily installed. I don't know how much of our infrastructure is geared to Ubuntu or could be migrated anyway to something else.



  • @arantor By default, we will get provided with a laptop with Windows 10 (as I have). I can also make a request for a MacBook Pro, although I am unsure what kind of hardware I would get then as I'm unsure about what specs are in the company-provided MacBooks. (My guess: cheapest possible.) Any special hardware or custom upgrades would have to go through a different approval process and have to be motivated so I haven't bothered. All I've bothered with is getting a second harddrive for my laptop for ease of setting up dual-booting.


  • SockDev

    @atazhaia we're an open source outfit. It's like our mission statement to spread open source. I had to get permission to use Sublime Text when it was like my own licence I'd paid for...


Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.