WTF Bites



  • @dkf An office dog has a measurable increment in worker happiness.


  • BINNED

    @anonymous234
    I would recommend office cats ... 4 out of 5 days they will be annoying as hell but the 5th day they will gawk a hairball on the desk of the shithead on the other side of the room making it all worth


  • BINNED

    I'm moving to a new place. It's a completely new building so the apartment didn't have power - everything was set up but the power meter wasn't installed, I had to have it installed myself.

    The technician was supposed to come today, between 8:30 and 9:30 AM. So I got to the apartment before 8:30, went inside and spent over an hour assembling some furniture. Nobody knocked, nobody called me... when it was past 9:30 I was getting nervous thinking they never came. So I went outside (I don't know what I expected to find there really, it's not like the technician would just squat outside looking hopeless or something); first I wanted to go check the front door in case I see their car there but on my way out I checked the box in the hallway where the meters are stored.

    Guess what I found? A brand new goddamn installed meter, with an installation protocol tucked behind it and a note about me having to flip the main breaker. Dude apparently came in, installed the meter like a ninja, and then disappeared like a summer breeze. I'm happy to have power now, but what the hell.

    Also there's a one time fee of about 350 dollars for the meter and now I have no goddamn idea where to send it. Sigh.



  • @blek said in WTF Bites:

    Also there's a one time fee of about 350 dollars for the meter

    I recently called the electricity company to have a contract changed to my name. They walk me through the usual bullshit questions and we get to identifying the meter itself with its serial number. "Oh, that's a smart meter? That's different then, I can't do it for you, you'll have to call another number" :wtf:?

    So I call again, answer all the questions again and we get to the end without issues. There is a fee for setting up a new contract, OK, sure, whatever, you can shaft me and I have to get electricity so it's not like I have any choice. But wait, there's more! There is also a fee for changing the meter's setup, which would be something like 70 bucks if a technician had to come around (like, for an old non-smart meter). I have a smart one so all I have to do is press a button on the meter itself, so of course there will be no fee? Hah, who am I kidding? There is of course a (smaller) fee... :wtf: 🤯


  • Fake News

    @dkf said in WTF Bites:

    @cartman82 said in WTF Bites:

    Yesterday's job candidate brought dog to a technical interview. HR lady says, "they worked together on the task".
    They gave up after an hour.

    Hire the dog. Just the dog.

    Yeah, if the dog can program then I'm sure we can find someone cheaper to open the doors for it.


  • Fake News

    @pie_flavor said in WTF Bites:

    @Gribnit I gather that you have neither used Kotlin nor read any of the above posts.

    Your post with the code sample was not a direct reply to anything above. @Gribnit must have thought you were posting a new WTF, in which case there would indeed be a need for some exposition.



  • 0_1533034264269_0f291be6-11eb-4c70-876f-c991c94ce68d-image.png

    They put North Korea on the list :wtf:



  • @anonymous234 can DPRK even access Google?

    Is that an entire radio button just for the Kim family?


  • BINNED

    @cartman82 said in WTF Bites:

    0_1533024547784_f1ff5166-e341-46ae-bab6-deb32749ebb2-image.png

    Yesterday's job candidate brought dog to a technical interview. HR lady says, "they worked together on the task".

    They gave up after an hour.

    The dog probably got fed up that Steve couldn't get his shit together and barked "I need a new partner, you suck at pair programming."



  • @ben_lubar I have a hypothesis: they know some people just click on surveys because they're bored and give bullshit answers "for the lulz". They know those people will probably choose North Korea, so their answers can be easily filtered.


  • 🚽 Regular

    @anonymous234 said in WTF Bites:

    0_1533034264269_0f291be6-11eb-4c70-876f-c991c94ce68d-image.png

    They put North Korea on the list :wtf:

    It's not an exotic country, like say Denmark or Luxemburg.



  • @anotherusername said in WTF Bites:

    @Zerosquare said in WTF Bites:

    A friend just pointed out that they actually do this on purpose:

    2.7.1 Integer Promotions

    ISO mandates that all arithmetic be performed at int precision or greater. By default, MPLAB C18 will perform arithmetic at the size of the largest operand, even if both operands are smaller than an int.
    The ISO mandated behavior can be instated via the -Oi command-line option.
    (...)
    Note that this divergence also applies to constant literals. The chosen type for constant literals is the first one from the appropriate group that can represent the value of the constant without overflow.
    For example:
    #define A 0x10 /* A will be considered a char unless -Oi specified */
    #define B 0x10 /* B will be considered a char unless -Oi specified */
    #define C (A) * (B)
    unsigned i;
    i = C; /* ISO requires that i == 0x100, but in C18 i == 0 */

    :facepalm:

    There should at least be a warning when a math error occurs in compile-time calculations with constants (overflow, underflow, division by zero).

    The more I think about it, the more I've changed my mind about this. It shouldn't be a warning, it should be an error -- a hard, build-breaking error. Compile-time math is a luxury anyway; if you've written constants that don't math, your code shouldn't compile, point blank.



  • @anonymous234 said in WTF Bites:

    @ben_lubar I have a hypothesis: they know some people just click on surveys because they're bored and give bullshit answers "for the lulz". They know those people will probably choose North Korea, so their answers can be easily filtered.

    I was going to go with "they put South Korea on the list so they needed North Korea to avoid it looking like an oversight".


  • Discourse touched me in a no-no place

    @Zecc said in WTF Bites:

    It's not an exotic country, like say Denmark or Luxemburg.

    Google ought to be aware of Luxembourg at least, especially since it features quite a bit in how they manage “taxes” within the EU…



  • @anotherusername said in WTF Bites:

    It shouldn't be a warning, it should be an error -- a hard, build-breaking error.

    You would really like Go.



  • @anonymous234 said in WTF Bites:

    0_1533034264269_0f291be6-11eb-4c70-876f-c991c94ce68d-image.png

    They put North Korea on the list :wtf:

    I thought they simply took something like top 59 countries by population. Fails at 8th place, Bangladesh, though—and the smallest listed, Ireland, is at 123 (if we do count the two disputed territories of Hong Kong and Taiwan, which are both listed as well).


  • Java Dev

    @anotherusername said in WTF Bites:

    @anotherusername said in WTF Bites:

    @Zerosquare said in WTF Bites:

    A friend just pointed out that they actually do this on purpose:

    2.7.1 Integer Promotions

    ISO mandates that all arithmetic be performed at int precision or greater. By default, MPLAB C18 will perform arithmetic at the size of the largest operand, even if both operands are smaller than an int.
    The ISO mandated behavior can be instated via the -Oi command-line option.
    (...)
    Note that this divergence also applies to constant literals. The chosen type for constant literals is the first one from the appropriate group that can represent the value of the constant without overflow.
    For example:
    #define A 0x10 /* A will be considered a char unless -Oi specified */
    #define B 0x10 /* B will be considered a char unless -Oi specified */
    #define C (A) * (B)
    unsigned i;
    i = C; /* ISO requires that i == 0x100, but in C18 i == 0 */

    :facepalm:

    There should at least be a warning when a math error occurs in compile-time calculations with constants (overflow, underflow, division by zero).

    The more I think about it, the more I've changed my mind about this. It shouldn't be a warning, it should be an error -- a hard, build-breaking error. Compile-time math is a luxury anyway; if you've written constants that don't math, your code shouldn't compile, point blank.

    You mean like this?

    cc     ttt.c   -o ttt
    ttt.c: In function ‘main’:
    ttt.c:3:38: warning: integer overflow in expression [-Woverflow]
         long long l = 1024 * 1024 * 1024 * 1024 * 1024;
                                          ^
    

  • Java Dev

    @Bulb And Crimea, which nobody considers to be independent at all (it's either Ukraine or Russia)



  • @PleegWat no. I changed my mind.



  • @Zerosquare said in WTF Bites:

    (Yes, I'm aware C18 is now obsolete. But that project was started more than 10 years ago, and I'm really not eager to discover all the marvelous new bugs they surely have introduced in the new compiler.)

    That's the main thing that I dislike about integrated development. You're usually locked into the maker's development tools.



  • Yeah. Fortunately, nowadays much of the industry has migrated to GCC (either as the standard or as an option). It used to be much worse: not only the compilers were subpar and proprietary, but they cost $$$.

    Still, sometimes I'm fed up with the incomplete datasheets, the clearly-written-by-interns hardware support code, the clunky tools and the hardware bugs.

    Then I take a look at PHP and NodeJS, and I feel better about my carrier choice instantly.



  • What the line of code should be

    if(condition) new_value = Calculate(old_value);
    

    What the line of code actually was

    if(condition) Calculate(new_value = old_value);
    

    :facepalm:

    (and no, Calculate definitely doesn't take a reference)


  • Considered Harmful

    @pie_flavor Problem was I had, so when you metoo'd yours in it looked completely, entirely redundant.



  • 0_1533062476057_8e47d6c1-edeb-44ab-ac24-cf503cc2550f-image.png

    Goddammit Microsoft. Or should I say 🖕🏼 to our IT for setting up my user profile as C:\users\David MyLastName\



  • @dcon said in WTF Bites:

    Goddammit Microsoft. Or should I say 🖕🏼 to our IT for setting up my user profile as C:\users\David MyLastName\

    The thread for software that can't handle spaces in path is :arrows:


  • 🚽 Regular

    @TimeBandit said in WTF Bites:

    @dcon said in WTF Bites:

    Goddammit Microsoft. Or should I say 🖕🏼 to our IT for setting up my user profile as C:\users\David MyLastName\

    The thread for software that can't handle spaces in path is :arrows:

    But seriously.


  • Notification Spam Recipient

    @blek said in WTF Bites:

    Dude apparently came in, installed the meter like a ninja, and then disappeared like a summer breeze. I'm happy to have power now, but what the hell.

    This is why I have security camer--- uh... right... 😅

    @blek said in WTF Bites:

    Also there's a one time fee of about 350 dollars for the meter and now I have no goddamn idea where to send it. Sigh.

    That wasn't taken care of prior to the tech coming out? :/



  • @dcon said in WTF Bites:

    0_1533062476057_8e47d6c1-edeb-44ab-ac24-cf503cc2550f-image.png

    Goddammit Microsoft. Or should I say 🖕🏼 to our IT for setting up my user profile as C:\users\David MyLastName\

    Blame IT. The alert message is from Windows Script Host, which means that someone wrote a script that should've wrapped a filename in quotes and didn't. Or they passed a filename as an argument to the script without wrapping it in quotes.



  • @anotherusername said in WTF Bites:

    @dcon said in WTF Bites:

    0_1533062476057_8e47d6c1-edeb-44ab-ac24-cf503cc2550f-image.png

    Goddammit Microsoft. Or should I say 🖕🏼 to our IT for setting up my user profile as C:\users\David MyLastName\

    Blame IT. The alert message is from Windows Script Host, which means that someone wrote a script that should've wrapped a filename in quotes and didn't. Or they passed a filename as an argument to the script without wrapping it in quotes.

    That comes up when the Visual Studio updater is updating extensions (I was just adding some missing ones)



  • @dcon said in WTF Bites:

    Goddammit Microsoft.

    Yeah, well, my first name is 6 characters. When Windows created a local user from my Microsoft Account when initially setting up a Surface Book, it decided that 6 characters was one too much, chopped the last one off and now I get C:\Users\MyFirstNam. Thanks Microsoft.

    Also, :wtf:. How is 6 characters too long of a name?! Bloody hell.



  • @cvi said in WTF Bites:

    @dcon said in WTF Bites:

    Goddammit Microsoft.

    Yeah, well, my first name is 6 characters. When Windows created a local user from my Microsoft Account when initially setting up a Surface Book, it decided that 6 characters was one too much, chopped the last one off and now I get C:\Users\MyFirstNam. Thanks Microsoft.

    Also, :wtf:. How is 6 characters too long of a name?! Bloody hell.

    Same way the recommendation is

    • use first initial + last name for your username
    • ERROR: Name too short! Must be at least 8 characters!
    • Fuck you too, says the person with a 6char last name.


  • @dcon So they pad the username with spaces? :trollface:

    But I assume that you're not the only one with that problem? Surely they had some sort of procedure/fix in place for that already?



  • @cvi said in WTF Bites:

    @dcon So they pad the username with spaces? :trollface:

    But I assume that you're not the only one with that problem? Surely they had some sort of procedure/fix in place for that already?

    Well, I'm mixing things now... I've run into that 8char thing with website registrations.

    No idea what broke in VS, but it will starts and it looks like the extensions all installed. (I don't know which broke since I was adding several, and I haven't gone poking yet)


  • ♿ (Parody)

    @cvi said in WTF Bites:

    @dcon said in WTF Bites:

    Goddammit Microsoft.

    Yeah, well, my first name is 6 characters. When Windows created a local user from my Microsoft Account when initially setting up a Surface Book, it decided that 6 characters was one too much, chopped the last one off and now I get C:\Users\MyFirstNam. Thanks Microsoft.

    Also, :wtf:. How is 6 characters too long of a name?! Bloody hell.

    That max path length comes at you fast!



  • @boomzilla said in WTF Bites:

    That max path length comes at you fast!

    Well, yeah ... but saving a single letter doesn't do that much. I therefore propose ditching the last letter at each level. For example: C:\User\MyFirstNam\AppDat\Loca\Microsof\Window\. That's a whole of 6 characters just in that example!


  • Considered Harmful

    @Gribnit said in WTF Bites:

    @pie_flavor Problem was I had, so when you metoo'd yours in it looked completely, entirely redundant.

    what?


  • ♿ (Parody)

    @cvi said in WTF Bites:

    @boomzilla said in WTF Bites:

    That max path length comes at you fast!

    Well, yeah ... but saving a single letter doesn't do that much. I therefore propose ditching the last letter at each level. For example: C:\User\MyFirstNam\AppDat\Loca\Microsof\Window\. That's a whole of 6 characters just in that example!

    Brillant!



  • @cvi said in WTF Bites:

    @boomzilla said in WTF Bites:

    That max path length comes at you fast!

    Well, yeah ... but saving a single letter doesn't do that much. I therefore propose ditching the last letter at each level. For example: C:\User\MyFirstNam\AppDat\Loca\Microsof\Window\. That's a whole of 6 characters just in that example!

    SHA1 the entire path. That way, it's a constant length, so you can put it in a hashtable or whatever. It's very fast to create, open, and delete files. Just don't try to get the contents of a directory.


  • Notification Spam Recipient

    @boomzilla said in WTF Bites:

    @cvi said in WTF Bites:

    @boomzilla said in WTF Bites:

    That max path length comes at you fast!

    Well, yeah ... but saving a single letter doesn't do that much. I therefore propose ditching the last letter at each level. For example: C:\User\MyFirstNam\AppDat\Loca\Microsof\Window\. That's a whole of 6 characters just in that example!

    Brillant!

    FTFY.


  • BINNED

    @dcon
    I'm sorry David, I can't let you do that.



  • @dcon said in WTF Bites:

    @cvi said in WTF Bites:

    @dcon said in WTF Bites:

    Goddammit Microsoft.

    Yeah, well, my first name is 6 characters. When Windows created a local user from my Microsoft Account when initially setting up a Surface Book, it decided that 6 characters was one too much, chopped the last one off and now I get C:\Users\MyFirstNam. Thanks Microsoft.

    Also, :wtf:. How is 6 characters too long of a name?! Bloody hell.

    Same way the recommendation is

    • use first initial + last name for your username
    • ERROR: Name too short! Must be at least 8 characters!
    • Fuck you too, says the person with a 6char last name.

    My last name is 4 letters. There's a reason I have "555" appended to my username on a number of websites.



  • WTF: I just migrated some bits of personal accounting from an Excel spreadsheet to an SQLite database and SQLite Browser. I feel perversely proud of this abomination. Next, I think I will implement a basic email client with phpMyAdmin as the interface.



  • @mott555 I wonder if legendarily bad big-cheeked B-movie actor Robert Z'Dar has trouble putting his name in forms.

    If you Google "Robert Z'Dar" it suggests you really wanted "Robert Z'Dar Face". Good job Google.

    0_1533142054485_zdar 1.png


  • Considered Harmful

    @blakeyrat That's all jaw. His cheeks are actually concave.



  • @Gribnit Well whatever. I think MST3K called him "my God, it's like a catcher's mitt with a nose!"

    In one of the Samurai Cop movies he has a beard and he looks a lot more normal.

    0_1533142520992_zdarbarbu.jpg


  • Considered Harmful

    @blakeyrat That's a good application of beard. It looks a lot like a beard, as opposed to looking like a veneer of incredibly short hairs covering a distended jaw.



  • @blakeyrat said in WTF Bites:

    one of the Samurai Cop movies

    There's more than one??? I was not aware the world was so cruel and hopeless.



  • @MZH said in WTF Bites:

    There's more than one???

    Watch it and weep.


  • Considered Harmful

    @anotherusername Sometimes you want overflow.



  • @Gribnit no. Overflow literally means the compiler is throwing away information. There's no reason why you need it. You could just write the resulting constant that you want.

    Anyway, if you really think you do need to do it, explicitly casting the result to the size that you need would result in a warning (casting larger type into smaller one, resulting loss of information, yadda yadda) instead of an error.

    Overflow on signed integers isn't even defined behavior in C, by the way.


Log in to reply