The corals are casualties of surging global temperatures which have smashed historical records in the past year — caused mainly by fossil fuels driving up carbon emissions and accelerated by the El Niño weather pattern, which heats ocean temperatures in this part of the world.

  • mynachmadarch@kbin.social
    link
    fedilink
    arrow-up
    3
    ·
    7 months ago

    Two questions. I’m running a c# kestrel based Web API behind an nginx reverse proxy and alongside a reactive frontend. Why is CORS such a pain in my membrane.

    Secondly. Is there a good way to figure out what all is on which breaker in my new breaker panel that has zero labeling because the old one was just straight up wrong? I really don’t want to have to flip one off, walk through house, see what’s off, go back, flip on, flip next off, etc.

    • iconic_admin@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      7 months ago

      Question one: way over my pay grade. I’m closer to a CCNA than a software developer.

      Question two: flipping breakers on and off is really the best way to figure out how your house is wired. It is MUCH easier if you have someone who can help you. Lights will be easy and obvious. Things like wall receps will take some time. Especially if you have an older house where past owners have made modifications. There are circuit tracers for this but they don’t work that well. You’re better off using a voltage tester or outlet tester that will beep when it has power. Any breaker that is a double or two pole breaker will have a specific purpose. If it’s 40 amps there’s a good chance it’s an electric oven or drier, if it’s 60 amps it almost certainly your HVAC.

    • DeprecatedCompatV2
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      7 months ago

      Well, the CORS thing is just your browser protecting you from an XSS attack. So the API just needs to advertise the origins that are permitted. Like writing “stolen from xyz” on your tools.

      The tricky part with electrical will be which things get missed. Like finding out the microwave has its own circuit that’s shared with the bathroom fan or something. What you could do is buy 50 IoT devices and record which ones connect to your wifi after you start flipping breakers. You might be able to do some clever bracket to determine which outlets are on which circuit, but hardwired appliances will be more manual.