• AwkwardLookMonkeyPuppet@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    21 days ago

    I had a bike stolen from a convenience store once. I talked the clerk into letting me review the footage. I found the guy stealing the bike on tape, along with the licence plate of the car that dropped him off. Through a bunch of sleuthing I found out his name and exactly where he lived. I called the cops with all of this information and evidence and told them I want to press charges. Then basically said “lol, fuck off”. So I kept trying to find out where the bike was. It was an expensive bike and I wanted it back. While looking for the bike I found out the thief had sold it for money that he spent on meth, and then got caught with the meth, so he was actually in jail. I called the cops back and told them I have one of their inmates on video stealing my bike, I have the license plate number of his collaborator, and I have witnesses. I want to press charges, and they already have the guy in custody. Again, their answer was basically “lol, get fucked. We don’t help people”. Fuck the police.

    • timestatic@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      21 days ago

      Wait couldn’t you have filed a lawsuit? I mean yeah, the cops didn’t do their job (I guess they could be sued for that too). But you would need proof in text form so just ask them again in a mail or letter. If they don’t do their job and you have proof then they’re screwed

      • PM_Your_Nudes_Please@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        20 days ago

        If they don’t do their job and you have proof then they’re screwed

        Nope, Warren v. District of Columbia had the SCOTUS rule that the police have no obligation to protect or serve. They can’t be sued for failing/refusing to do their job, even if it puts people in harm’s way.

        The case revolved around a dude on a train who got stabbed. There was a psycho moving down the train cars stabbing people, and the police were chasing him. A passenger saw the attacker coming, saw the police in pursuit, and decided to help. He stopped the stabber, expecting the police to quickly catch up. Instead, the police locked the passenger inside the train car with the stabber, and watched through the tiny windows until the stabber was tired out from stabbing the passenger.

        The passenger sued the police department, stating that they refused to protect him. The SCOTUS ruled that the police have no obligation to protect nor serve, and can’t be sued for failing to help you.

      • AwkwardLookMonkeyPuppet@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        21 days ago

        Against who? A meth addict bike thief definitely doesn’t have any money. Do you mean against the police? Possibly? Idk. I lived in a conservative town where the Chief of Police was basically idolized. I definitely didn’t want to paint a target on my own head. This was 20 years ago, so if I had other options, they’re gone now.

        • Skates@feddit.nl
          link
          fedilink
          arrow-up
          0
          ·
          21 days ago

          Defund the police, shit on the thin blue line. This is always an option.

          ACAB

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    21 days ago

    My dad once told me that he had to find the fuse that corresponded to a particular wire and because we have around 60 fuses in our house, he had to flick one off, run down and check the wire, run back up, flick the next fuse off, and do that quite a lot of times.

    In that moment, I got to explain binary search to him and he was genuinely interested. 🙃

    • greenhorn@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      21 days ago

      My friend has some upcoming electrical work in his house, can you explain how to use binary search in this instance so I can tell him?

      • spongebue@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        21 days ago

        Turn off half the breakers. See if you still have power where you need to go. That will tell you which half it’s on. Turn off half of those breakers, repeat.

      • PM_Your_Nudes_Please@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        20 days ago

        Turn off half the breakers. Now you know which half the outlet is on, based on whether or not it has power. Repeat.

        For instance, let’s say you have 100 breakers. You turn off the first 50. Your target outlet still has power. So now you have divided the potential number of breakers by half, and you know the breaker is somewhere in 51-100.

        So you cut that in half, and turn off 51-75. Your outlet is now dead, so you know it’s somewhere in the 51-75 range that you just turned off; if it were still on, it would be somewhere between 76-100.

        So now you reset 51-63, while leaving 64-75 off. It is still dead, so you know it is somewhere between 64-75.

        Maybe now you turn on all of the odd breakers, leaving the evens off. It is still dead, so you know it must be 64, 66, 68, 70, 72, or 74. Reset the first three. Your outlet has power now, so it must be one of the first three.

        Flip 64 and 66 off. If you get lucky, your outlet still has power and you know it is 68. But you get unlucky, and it is dead. So now you know it must be either 64 or 66.

        Flip 64 back on. If it has power, you know it’s 64. If it doesn’t, you know it’s 66.

        We just eliminated 99 breakers and found the correct one using only 7 tests. Because each test eliminated half of the potential values, it whittles things down very quickly. We went from 1-100, to 51-100, to 51-75, to 64-75, to the evens between 64-74, to only 64/66/68, to 64/66, and finally landed on 66 as the correct breaker. If we had gotten lucky earlier, we could have done it in 6 instead. If you had simply started with breaker 1 and worked subsequently, it would have taken 66 trips to the breaker box to figure out.

        Where binary search really excels is with large data sets. Even if it had been 1000 breakers instead of 100, it still would have only taken an extra three or four searches (1-1000 > 1-500 > 1-250 > 1-125 > 1-75… etc…) to narrow it down.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        21 days ago

        Oh, well, you switch off half the fuses, then you go check the wire.
        Let’s say the wire still has power on it, so now you know that none of the fuses in that half affected it (which you can turn back on now).

        Then you do the same thing again with the other half of the fuses, i.e. you switch off half of the fuses in that half and go check the wire.
        Now, let’s say the wire is dead, so now you know that the fuse you want is in this quarter.

        So, then you flick off half of the fuses in that quarter and check the wire again, and so on.

        With every step, you eliminate half of the remaining fuses, so for 60 fuses, you need at most 6 steps (which is the logarithm for base 2 of 60).

        • dan@upvote.au
          link
          fedilink
          arrow-up
          0
          ·
          21 days ago

          Once you figure out which one it is, label it! I labeled all the breakers in my panel when I moved in to my house, as half of the existing labels were wrong (no idea why).

          • phughes@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            21 days ago

            I keep a spreadsheet with every outlet/light in every room on it and their corresponding breakers. Much easier since breakers often span multiple rooms, sometimes only powering one or two fixtures in each.

            • dan@upvote.au
              link
              fedilink
              arrow-up
              0
              ·
              21 days ago

              Why are so many mislabeled though? It’s not like the loads are being changed every day. I had two breakers labeled “dishwasher” and neither of them were the dishwasher!

              • rumba@lemmy.zip
                link
                fedilink
                English
                arrow-up
                0
                ·
                21 days ago

                I had two breakers labeled “dishwasher”

                Electrical work is one of those things that’s not difficult to do as long as you don’t mind it being some level of wrong but relatively hard to do 100% to code right without training. With most of the wrong ways, the project still works, but it’s dangerous and/or hard to maintain. Professional work is expensive, so you end up with a LOT of handyman work that’s poorly labeled, poorly run, poorly designed or some combination of the three.

                My best guess would be that at some point, running the dishwasher tripped the breaker. They had space so they added a breaker below it and moved the line to the new breaker. Then it still tripped, so they moved the line at the dishwasher circuit that was already close by.

                Either the original line has a fault in it (old aluminum lines can have junction issues over time) or the dishwasher had a short in it, and they either replaced the dishwasher, or the new line they chose didn’t fail.

        • greenhorn@lemm.ee
          link
          fedilink
          English
          arrow-up
          0
          ·
          20 days ago

          Ah, obvious now, thank you. For some reason my his brain couldn’t get to actually turning off half the breakers in one go

          • intensely_human@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            20 days ago

            Binary search requires splitting the search space into two halves, then asking “is it in that half?”

            Normally the “is it in that half?” check involves a numerical comparison: test value versus target value. “higher or lower” here gets you to “is it in that half?”

            So finding the midpoint seems like a core part of the process, but really that’s just a shortcut in the case of comparable values, that helps you split into two and check membership.

            I admit I couldn’t think of that either: just alter half the items and check for effect.

    • jol@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      21 days ago

      Binary search only works if the fuses were correctly sorted in the same order as the houses though.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        21 days ago

        You know, after posting that comment, I really doubted myself, if it really is binary search, because Wikipedia also tells me it needs to be a sorted array.

        But yeah, I think that’s only relevant, if your method of checking whether it’s in one half or the other uses > and <. As far as I can tell, so long as you can individually identify the fuses, a.k.a. they’re countable, then you can apply binary search.

        • lunarul@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          20 days ago

          If when you divide your set in two, you can reliably tell which of the two subsets definitely has what you’re looking for, then it’s binary search.

      • domdanial@reddthat.com
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        21 days ago

        I don’t think that’s true, it’s more of a set problem. If you pull half the fuses, and the thing is still on, then you’ve ruled out that half. Then you pull half the remaining fuses, and if it turns off it was one of the new half you pulled. Then you put another half back in, ect .

    • someguy3@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      21 days ago

      I think the old school method was to plug in a stereo and turn the volume up. When you couldn’t hear it then you got the right breaker.

      • phughes@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        21 days ago

        I hook a cheap webcam up to a USB battery pack and load it up on my phone. Then I plug in a light and point the camera at that. It makes it a single trip and doesn’t bother the neighbors.

      • Ephera@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        21 days ago

        Thanks, I changed it. I wasn’t sure, what the correct English word is…

        • AwkwardLookMonkeyPuppet@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          21 days ago

          I would have never guessed that you’re not a native English speaker from your writing. Neat!

          A fuse and a circuit breaker perform the same function, but a fuse blows out and has to be replaced, whereas a circuit breaker can just be flipped back on. Fuses haven’t been used in household wiring for a long time now, but they’re still used in cars, and for portable things like Christmas lights.

  • PieMePlenty@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    20 days ago

    Aaaaaaagh, why cant you talk this way to people?! Life would be so much easier! Why didnt the argument go down well?! Is the cop stupid?! Binary search works! The guy was correct! God damnit, why must people be so unaccommodating, even when proven their accommodation would not take long?

  • Stern@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    Cops are only useful if you need someone to get to the scene two hours late, and then shoot your dog.

  • jaschen@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    Story time: I’m in Taiwan and I have a white female friend who is here for college.

    She went on a “date” with someone she met on an app and they met at some coffee shop. The dude turned out to be SUPER creepy and she cut the date short and left. The dude proceeds to online stalk her for months. She barely speaks Chinese and was scared to go to the police due to the language barrier and the stalking was all online. Also she doesn’t know the guy’s name and he had since deleted his profile from the dating app.

    My wife and I convinced her to go to the police. She left with some print outs of the stalking emails and DMs just to file a report, not expecting much.

    The police tried their hardest to communicate with her and spent the next 4 hours helping her. They found the guy using traffic light footage on the day of the date and was able to use CCTV footage and using his metro card at the subway. Within the day, they found him, visited him and gave him a warning.

  • glassware@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    21 days ago

    My bike was stolen, and I live in a small enough town that the cops actually did go through the footage to find the thief.

    He called back 15 minutes later for more details and mentioned he was 15 minutes into the footage.

    • howrar@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      20 days ago

      It sounds dumb, but if the footage was on tape and not easily seekable, then I can see that happening.

      • lunarul@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        20 days ago

        It should still at least have a fast-forward option. You go at the highest speed possible until the bike disappears. Then you rewind at a slower speed until it shows up again. Then you can play the tape from there.

  • JATth@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    20 days ago

    When I read this originally, it was a nice example how programmer brain can be applied IRL. Also works when trying to find something and I see the listing is someway sorted, like time tables and eshop product categories.

  • Mango@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    21 days ago

    I’m a quality director and I did this the other day to identify the exact range of bad laminate in a number of film rolls!