WTF Bites



  • From what I remember from reading about Linux on PlayStation, the way some of the hardware works is definitely :wtf:. I wouldn't be surprised if the PS5 followed that tradition.



  • @Zerosquare said in WTF Bites:

    Linux on PlayStation

    That could be PS4: PC Master Race, one of my favourite conference talk videos.



  • Yep, that's this one.


  • Banned

    Dear Home Depot,

    A $100 quote fee that's waived when I accept whatever price you come up with IS NOT a free quote.

    Sincerely,
    Fuck you.



  • @loopback0 said in WTF Bites:

    @topspin later versions of MSSQL generate and cache the values in batches (of 1000 by default IIRC) and only track what the max value of the batch is. Restarting the server clears the cache so it resumes from max+1.
    There's an option to not cache the values but there's no guarantee there will be no gaps either way.

    Ah. Our instances must be configured to only get one at a time. This works for our use cases, because the rate of getting new values is basically limited to the speed that humans can fill out web forms, and having a web page stall for at most a few more seconds while someone else submits their form isn't going to anger any of our customers, unless they have drastically unrealistic ideas of how our pages should work as opposed to the rest of anything connected to the Internet.



  • @djls45 said in WTF Bites:

    customers, ... drastically unrealistic ideas

    ☑


  • Notification Spam Recipient

    @Gąska said in WTF Bites:

    Did you know Windows Calculator is slightly transparent?

    Yes and it's fucking annoying. I think MS did that to demo how "hey guys we still have some slick Aero effects, yo!".


  • Notification Spam Recipient

    @djls45 said in WTF Bites:

    the rate of getting new values is basically limited to the speed that humans can fill out web forms,

    Yeah. And for this reason, I made a display_id for when said flesh monsters actually complete a transaction that makes their submission valid/complete and we actually care about them.


  • Considered Harmful

    @Tsaukpaetra close. You should write that joining record vs have it in the table. Otherwise more flesh-monster problems follow in their turn.



  • @Tsaukpaetra said in WTF Bites:

    we still have some slick Aero effects, yo!

    Not if I can find the options to disable them.



  • @HardwareGeek said in WTF Bites:

    @Tsaukpaetra said in WTF Bites:

    we still have some slick Aero effects, yo!

    Not if I can find the options to disable them.

    Win10: Settings>Personalization>Colors>Transparency Effects
    Win11: Settings>Accessibility>Visual Effects>Transparency Effects



  • @djls45 Yup. One of the first things I do, because those effects make it harder to tell which window is active.



  • @HardwareGeek said in WTF Bites:

    @Polygeekery said in WTF Bites:

    I am not currently trying to hang myself in a bathroom stall with a USB cable.

    But are you currently trying to hang them with a USB cable?

    Modern USB might also be able to transport enough voltage and current. Just plug that cable in correctly!



  • @djls45 said in WTF Bites:

    @Benjamin-Hall said in WTF Bites:

    @HardwareGeek said in WTF Bites:

    @Benjamin-Hall said in WTF Bites:

    don't ask what happened to 14

    What happened to 14?

    Going to reply in a garage thread for my snarky reply, because garage.

    Real (boring) answer:
    It failed to insert (due to a transaction rollback), but the ids for that particular (legacy, horrible, ugly) part are auto-increment.

    Transaction rollback doesn't roll back the increment?

    Lots of people already covered other database engines, so I just add: it's that way in all of them, because it's the only way it could possibly work as a single counter. Doing rollback would either require a list of "freed" values (which would have terrible performance) or create occasional duplicates. Pick your :trwtf:



  • @Tsaukpaetra said in WTF Bites:

    @Gąska said in WTF Bites:

    Did you know Windows Calculator is slightly transparent?

    Yes and it's fucking annoying. I think MS did that to demo how "hey guys we still have some slick Aero Metro Modern Microsoft Fluent Design Acrylic Mica effects, yo!".

    Fixed that for you, assuming they haven't renamed anything this week. Ugh.


  • Considered Harmful

    @Parody shouldn't be long, mica is carcinogenic



  • WTF of yesterday: So, we want to offer our teachers the option to be able to upload videos without having YouTube plaster their ads all over it and stuff. All the "professional" vendors for such solutions want quite a bit of money (10,000€+ for a year - for reference, my physic's department's budget is 2,000€ per year...)

    Solution? Opencast on a hosted root server with some beefy specs which brings down the immediate cost to about 10% of what those vendors wanted.

    Now, while Opencast's actual workflow for videos seems to work fine (i.e. upload a file, it gets transcoded and the player also works fine), the UI for upload is ... hot garbage. I mean, I myself was barely able to figure out how to give myself access to this mess. But I've got no fucking clue as to how to do proper access rights. The documentation also does not provide clues. I mean, they nominally have an ACL (Access Control List) and you can create groups to assign rights to. But how to assign those groups to people who authenticate against LDAP? Beats me. No clue.

    But they've got a REST API which provides all the endpoints. And by "all the endpoints" I mean all of them. There are at least three endpoints, for example, for uploading a video. Spoiler: One of those won't work at all and another one leaves the processed video in an inaccessible state (well, inaccessible for everyone but the admin, that is). Third one it is!

    Took me a while to figure that one out, partially because the endpoints are named in the most asinine ways you can think of. Okay, guys, a short quiz: Name three REST endpoints you'd pick to upload videos to.

    No, it isn't `POST /video`
    No, `POST /upload` is not correct either.
    No, it also isn't /new, /file, /create or /save.
    It's POST /event !

    So, anyone get it right? Heh.

    Basically, what I did (because I did not want to subject my users to this atrocity): I created a proxy service my users upload their videos to which then in turn uploads the video to OpenCast. My proxy service then lists the available videos in a friendly manner and also offers clickable embed codes (because that's something which Opencast's UI also got wrong: It did offer embed codes but always used localhost in the URL. It's a bug, according to the devs. A bug which has existed since version 6. OC is at 11 now.)

    To make it more usable, I want to offer editing features and tags - and to keep everything in one place, for that I wanted to use the metadata for every video entry.

    So, I tried to use the endpoint for editing the metadata - only to stumble into a slight problem: Which of the two endpoints to use? After all, there's POST /event/{eventId} which states that this will updated the metadata for {eventId}. But there's also PUT /event/{eventId}/metadata. Couple that with a non-documentation on what exactly OpenCast expects the form parameters to look like and you get a major headache. For reference: The POST one expects form data, i.e. foo=bar but the PUT one expects JSON, i.e. metadata={'foo':'bar'}.

    Oh, but before you figure that one out, you better hope that you're not testing this on a videoevent which is part of a series. Because in that case, Opencast will simply silently swallow any POST or PUT requests but still reply with "okay, all went well".

    If you done goofed, by the way, you cannot expect a proper error message like: "Required parameter string ID missing" or "Expected JSON for property bar, got XML". No, you'll get a 500 and you'll like it!
    Seriously, there seems to be no proper sanitization of input going on - either the server likes your input or it throws a 500.

    Alright, so that's done. There's just one last thing: Currently I'm polling the server in intervals to see whether there are changes. Some kind of event emitter would be nice - maybe I can LISTEN to the table which holds the event data? Oh, wait, they're using MariaDB. No event listeners there - at least none which external programs can attach to easily.
    So maybe. instead of hitting the REST endpoint every 10 seconds I'll do a "SELECT id, hash FROM event_table" or something?

    Well, I could do that. Provided I'm willing to parse the XML data they shoved into the payload column. Seriously, the metadata for an entry is serialized to XML and then shoved wholesale into the database. :wtf:
    There also seem to be no foreign keys anywhere. Figures.



  • @Rhywden said in WTF Bites:

    either the server likes your input or it throws a 500.

    https://www.youtube.com/watch?v=ryNxl-lpOME



  • I'm actually this close to replacing Opencast with a simple call to ffmpeg.

    Come to think of it, it probably would work way better. I mean, I just uploaded a 10 second video 10 minutes ago. And the process is still running!


  • Java Dev

    Google's little questionnaire upon signing up for Google Maps Platform:

    google-maps-platform-signup.png

    Thinking about it I think I know what the intended difference is between them, but still...


  • BINNED

    This is the settings page for my bank's depot watch list:

    Bildschirmfoto 2022-02-15 um 12.26.24.png

    Apparently I cannot change settings, e.g. email notifications on or off, without also changing my password. :wtf:
    Leaving the new password field empty gives an error message. So, being all "I is smart", I tried to just enter the old password 3 times. The page accepted that, but now when I want to go back to the wach list main page all I get served is a blank page. :mlp_ugh:

    13636b25-d81b-4443-bc3f-f89980dc6322-grafik.png


  • Considered Harmful

    @Atazhaia said in WTF Bites:

    Google's little questionnaire upon signing up for Google Maps Platform:

    google-maps-platform-signup.png

    Thinking about it I think I know what the intended difference is between them, but still...

    Do you want to share a location or do you want to locate your share?
    Duh.


  • Notification Spam Recipient

    @LaoC said in WTF Bites:

    Duh.

    :um-pendant: I think it's referring to "Share a single location at a single point in time" and "Share your current location, updated in kinda-real-time, for a period of time"


  • Considered Harmful

    @Tsaukpaetra said in WTF Bites:

    @LaoC said in WTF Bites:

    Duh.

    :um-pendant: I think it's referring to "Share a single location at a single point in time" and "Share your current location, updated in kinda-real-time, for a period of time"

    :faxbarrierjoker:


  • Considered Harmful

    @Tsaukpaetra said in WTF Bites:

    I think

    I don't. Nothing in relation to the topic at hand. Just wanted you all to know that I've elected to avoid the rather onerous task of thinking for the time being.


  • Discourse touched me in a no-no place

    @Tsaukpaetra said in WTF Bites:

    :um-pendant: I think it's referring to "Share a single location at a single point in time" and "Share your current location, updated in kinda-real-time, for a period of time"

    It's the difference between “there's a good restaurant at that location” and “I'm in the kitchen now, but I'll be in the bathroom soon”.



  • @Applied-Mediocrity I don't think this is appropriate for this thread. It's not a WTF.

    (Permanent) status thread is :arrows:.


  • Considered Harmful

    @cvi said in WTF Bites:

    I don't think

    11d6b3ea7d28b0a2f7aa5ad55ea20b7fa5f7803436b9072534846f2087ee7a50_3.jpg



  • @Applied-Mediocrity Heh. Didn't even pay attention to that when typing it up. 😆

    But it's true - started the day in the morning with meetings, and have carried on with meetings until now. Brain is mush, complicated thoughts hurt, and I hate everything. Also my throat hurts because of too much talking.


  • BINNED

    @cvi said in WTF Bites:

    Also my throat hurts

    That's what she said.

    because of too much talking.

    That too.


  • Considered Harmful

    @topspin said in WTF Bites:

    @cvi said in WTF Bites:

    Also my throat hurts

    That's what she said.

    because of too much talking.

    That too.

    That's why.


  • Considered Harmful

    @cvi said in WTF Bites:

    Brain is mush, complicated thoughts hurt, and I hate everything.

    And your management does this all day, you say?



  • @Gribnit is that why everything that comes out of management is such utter nonsense?


  • Considered Harmful

    @Applied-Mediocrity said in WTF Bites:

    @cvi said in WTF Bites:

    I don't think

    11d6b3ea7d28b0a2f7aa5ad55ea20b7fa5f7803436b9072534846f2087ee7a50_3.jpg

    I don't know who your crew lad is but I don't think [sic] I'd want to avail myself of him.


  • Considered Harmful

    @LaoC he looks just like a Telefunken U47. With leather.


  • Notification Spam Recipient

    Status: apparently this motherboard does a bad when rebooting, where it doesn't wake up the graphics card. But only if the graphics card's driver is loaded?!

    If using the Microsoft Basic Display driver driver, all is peachy. Install driver, peachy. Reboot? Nah bro, GPU doesn't exist, gotta Reset for that!

    Oh, yes, manually hitting Reset on the motherboard lets it start working. 🤪

    I can't make this shit up...


  • ♿ (Parody)

    @Tsaukpaetra said in WTF Bites:

    I can't don't have to make this shit up...

    🔧


  • Notification Spam Recipient

    @Tsaukpaetra said in WTF Bites:

    I can't make this shit up...

    Status: I fiddled with enough EFI settings that now when requested to reboot, it will black-screen, halt in the middle of POST, and then eventually die. Of course, pressing the power button does indeed let it redo from start and come on again.

    Progress?

    Addectum: Thinking of sketching a simple 555 circuit to detect the Power LED turning off while system power is still present and then triggering the Power Switch to get it to turn back on "automatically".



  • @Tsaukpaetra By any chance ... fast boot? Or does the GPU refuse to exist in bios/efi/before windows?

    Edit: Probably file this under "nevermind", just read the second post now. :barrier: 🏤


  • Notification Spam Recipient

    @cvi said in WTF Bites:

    @Tsaukpaetra By any chance ... fast boot? Or does the GPU refuse to exist in bios/efi/before windows?

    Fast boot (both the "normal" and the "MSI" versions) are disabled, and the card is definitely EFI compatible (because apparently in order to enable Secure Boot you must not be in CSM mode).

    No, it flat-out disappears in between reboot and POST. If I enable the "fuck off and ignore the absence of a EFI output device", Windows will boot and I can remote in, and it will tell me "Hey WTF the video card isn't here no more, lol".

    In this state, simply pressing the Reset button magically makes the graphics card come back to life, so there's obviously some kind of magic going on here...


  • Discourse touched me in a no-no place

    @Tsaukpaetra said in WTF Bites:

    there's obviously some kind of magic going on here...

    Sounds like it's handling the transition out of low-power mode incorrectly, but taking its time to do so. Which is very believable, given what a ghastly ball of wax most firmware seems to be.


  • Notification Spam Recipient

    @dkf said in WTF Bites:

    handling the transition out of low-power mode incorrectly, but taking its time to do so.

    Fondling the EFI configuration to the max, I did the unthinkable and enabled "Allow wake from USB input".

    That... works? 😖 :wtf_owl: 🎼

    What the actual fuck? We're not going to sleep, USB (should) have nothing to do with a graphics card "turning back on" (since power is never removed this is presumably all software).

    But here I am, about to deliver happy news that in order to fix their "Computer gets stuck when it gets rebooted" issue all I actually had to do was "allow it to wake up from sleep with a USB keyboard".

    Oh! And there is no such keyboard attached, just power and Ethernet, so anyone thinking the keyboard is actually "waking" it up during a reboot may rest assured that this setting isn't actually being used for its stated purpose...



  • @Tsaukpaetra said in WTF Bites:

    Addectum: Thinking of sketching a simple 555 circuit to detect the Power LED turning off while system power is still present and then triggering the Power Switch to get it to turn back on "automatically".

    I almost want to encourage you, just to see how you'd manage to make a simple 555 circuit go completely wrong.


  • Grade A Premium Asshole

    @Atazhaia said in WTF Bites:

    Speaking of USB fuckery: If you want to connect the PSVR to a PS5 you must use the front USB 2.0 port, not one of the back 3.0 ports. Otherwise the VR box wont be detected. Why? I don’t know!

    Do you remember when PCs had PS/2 ports on the back for connecting your keyboard and mouse? Yeah, well, we have partially returned to those days. HP EliteDesk machines (at least the Mini-PCs) have USB ports on the back that are specifically for connecting your keyboard and mouse because some combinations of machine and peripherals will have issues when connected to a USB 3.0 or higher port, because raisins.

    Universal Serial Bus my ass. It hasn't been truly universal since 1.1. I have a small Sterilite container full of USB cables and even with all of those I still end up in situations where I do not have the proper cable to do what I want to do.


  • Java Dev

    @Polygeekery Which reminds me of this other console USB fuckery: If you try and connect a USB3 harddrive to a WiiU it wont work. But, as you kinda want a power splitter cable for USB-powered SSD on a WiiU what you do is get a USB2 power splitter cable. Now the harddrive will work fine.


  • Grade A Premium Asshole

    @Tsaukpaetra said in WTF Bites:

    Fast boot

    Hey, post a trigger warning before those goddamned words. You are triggering my PTSD.

    The person, people, or group at Microsoft that thought "HiberBoot" was a good idea should be strung up by their entrails. The number of people over the years that we have found with machines reporting "uptimes" of 3 months or more but also "shut off" their machines every night became alarming.

    We now have a standard script that runs weekly via our RMM:

    REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /V HiberbootEnabled /T REG_dWORD /D 0 /F
    

    👨 "Why does it run weekly? You should only have to do that once."

    Yeah. We should only have to do it once via a setup script. But various Windows updates will wipe out that setting and re-enable HiberBoot.

    I really hate Microsoft and all of their updates. Which reminds me of how asinine all of blakey's rants were about how MS had to force updates because users weren't updating things frequently enough. Too bad Microsoft never tried not being a total gob of shit and not breaking everything when users update things.


  • Grade A Premium Asshole

    @cvi said in WTF Bites:

    started the day in the morning with meetings, and have carried on with meetings until now.

    Meetings are where work goes to die.



  • @Polygeekery said in WTF Bites:

    But various Windows updates will wipe out that setting and re-enable HiberBoot.

    Guess I've been lucky... I haven't had that re-enabled yet...



  • @Polygeekery said in WTF Bites:

    @cvi said in WTF Bites:

    started the day in the morning with meetings, and have carried on with meetings until now.

    Meetings are where work goes to die.

    At my current gig, they are having meetings to define tasks, and i don't mean just making the steps, but everyone during there looking at a screen taking about how to solve every god damned thing. They have sincerely taken the worst posts of design by committee and deemed it The One True SCRUM.
    I've told them i think it's dumb and a waste of time.
    Oh, also, it's VERBOTEN to actually write technical stuff in tasks.
    So, everting is the direct reverse of how I've found to work efficiently.



  • @Polygeekery said in WTF Bites:

    I really hate Microsoft and all of their updates. Which reminds me of how asinine all of blakey's rants were about how MS had to force updates because users weren't updating things frequently enough. Too bad Microsoft never tried not being a total gob of shit and not breaking everything when users update things.

    MS learned their lesson with Windows 7. When things keep working, users have no incentive to update.

    That's why in Windows 8 and above, they don't just make it difficult to disable updates. They also make sure there's always something that's broken, so people update in the vain hope that it will fix the issues.


Log in to reply