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

help-circle





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



  • Yellow is Red + Green, so half way better Yellow and Green would be what, 50% Red + 100% Green?

    Like you said, color is perceptual, and not only will everyone’s eyes have a slightly different sensitivity for each wavelength, each display will have a slightly different calibration for its RGB channels.
    If the original color was in real life, the camera sensor would also be taking the full light spectrum and collapsing it into 3 RGB values, and the camera sensor’s sensitivity/calibration will determine the ratio it converts a yellow wavelength into red and green. (Or maybe the real object isn’t actually yellow, but pure red-+green light, it’s impossible to tell after converting to RGB)





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