• 0 Posts
  • 28 Comments
Joined 2 years ago
cake
Cake day: July 9th, 2023

help-circle


  • I’m going to go with no, since that step is not transferring data to a human, it’s transferring it internally within the computer.
    UI can refer to either the medium, such as a visual display, speaker system, or keyboard, and it can also refer to a specific layout of information (like the Qwerty layout, or a webpage layout). I wouldn’t consider the USB protocol UI just because it can transmit HID Events, only the keyboard or mouse as a whole is UI.
    You could almost call HID events UI, but I’d still argue they’re more of a computer-device interface than a human-device interface







  • I’ve actually noticed this exact thing with elevators before… I was kind of amazed the beep and light were hooked up completely independently from the actual floor selection logic.
    It sort of makes sense that the light in the button would just be hooked directly up to the button contacts. The computer would then be polling the buttons separately and it’s possible to miss a button press… These sorts of buttons shouldn’t need a debounce period since pressing any of them a second time doesn’t do anything. If the buttons were interrupt based, this probably wouldn’t happen.




  • You can send 4xx errors yourself too. If the client needs to change something about the request, that’s a 4xx, like 400 Bad Request. If the server has an error and it’s not the client’s fault, that’s a 5xx like 502 Bad Gateway.

    The wikipedia listing of all HTTP codes is quite helpful. People also forget you can send a custom response body with a 4xx or 5xx error. So you can still make a custom JSON error message.




  • xthexder@l.sw0.comtoMemes@lemmy.mlTrickflation
    link
    fedilink
    arrow-up
    4
    ·
    4 months ago

    Yeah, there’s an awesome video on aluminum drink cans from TheEngineerGuy on YouTube. The ideal shape for holding pressure with minimal material is a sphere, but there’s 2 problems with that: They roll, and can’t be packed as efficiently as cylinders.



  • xthexder@l.sw0.comtoMemes@lemmy.mlTrickflation
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    4 months ago

    If anything the taller cylinder will use more aluminum for the same volume, so they’re kinda shooting themselves in the foot here with aluminum and steel tariffs, lol

    Seems pretty clear the only reason for this was to change the price without as many people noticing.