• rgb3x3@beehaw.org
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I’m realizing now that this would have been super useful when I worked in Loss Prevention way back when. Wish I had known…

    • coloredgrayscale@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      Even without algorithm knowledge it should be fairly obvious that you can just fast forward several minutes and check if the item has gone missing.

      Not the most efficient solution, but beats watching the entire tape in real time.

  • groucho@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    The final project in my instrumentation class was to tune a PID controller for a hot/cold mixing valve. I (CS/ENG) was paired up with an engineering student and a lot of it was throwing parameters in, seeing if weird shit happened, and then turning down or up based on the result. I had a programming final and something else I was supposed to be studying for, so I just started doing a binary search with the knobs. We got the thing tuned relatively fast and my partner acted like I was a wizard.

    • clericc@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      How do you do a binary search for an open-end scale (are PID params open-end?) and three knobs at the same time when they interdepend in their influence? I need to know since i have a PID tuning on my personal projects plate

      • groucho@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        It’s been ages, but we’d done rough calculations for the three controls so we roughly knew what we needed. Our teacher was big on manually tuning instead of just using formulas since he thought just running numbers “lacked artfulness.”

        So we grabbed a point and started searching around manually. I think we were just tuning the derivative portion at that point, trying to get a fast response without the system without it going chaotic and noisy.

  • DarkThoughts@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    That’s how I look for broken mods too. Move half of them into a temp folder, launch the game. If it works, put half of the sorted out ones back. if it doesn’t work, remove another half and try again.

  • rekabis@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    7 months ago

    “This argument didn’t go down well.”

    🤣🤣🤣 LMAO

    What an awesome punchline, should have been on its own line for more impact.

  • Melllvar@startrek.website
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    Part of my job is to review security footage for reported incidents.

    If there is a long-lasting visual cue that the event has or has not happened yet (e.g. a window is either broken or not), then a binary search is very useful.

    If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

    • Cosmic Cleric@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

      But you will see the event happen though.

      It’s a matter of if you can identify who the perpetrator is or not, but at least that due diligence should be done by police, looking at the person doing the crime and see if they can be identified.

      • DaleGribble88@programming.dev
        link
        fedilink
        English
        arrow-up
        0
        ·
        7 months ago

        I’m just a random guy stumbling across this thread hours after the fact. I want to say that after reading many of these comments. I feel like I’m starting to get a handle on what your position is. You aren’t wrong, but you are communicating your idea horribly.
        Your position seems to be “Thankfully, many crimes do leave behind lasting visual cues, so you can still do a binary search for those situations if you are clever about what to look for.”
        What you’ve actually been communicating is that “If there really was no lasting visual cue, then just find a lasting visual cue anyway, then do a binary search on that and it’ll work!” - It’s all about how you choose to present, order, and emphasize your comments. Your message is more than just the words you type. I hope this message helps clarify the debate and confusion for you and anyone else who stumbles upon this long chain.

        • Cosmic Cleric@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          7 months ago

          I appreciate you responding kindly, and your thoughts, thank you.

          What you’ve actually been communicating is that “If there really was no lasting visual cue, then just find a lasting visual cue anyway, then do a binary search on that and it’ll work!

          What I’ve been attempting to communicate, and I think have been expressing that, is that “no lasting visual cue” is not right (most of the time), its incorrect, and that there’s (almost) always a visual cue, and that you can do the binary search because there is. Not maybe, but there is, lasting visual cues (most of the time).

          I disagreed with the point being asserted by the comment I initially replied to. I think people are getting hung up on my very initial comment, where I implied instead of being explicive, thinking my assumption was a well known one, just based on how I see the world operate (humans are messy). But how those replied to me seem that its not well known (or just not realized).

          In hindsight, I should be more explicive, but that’s a horrible way to have to communicate, like if I have to pass every comment through a lawyer before posting it. You’d think people instead of instantly attacking would just have a conversation about try to understand my assumption. That didn’t come up until WAY later in the conversation tree, and only by a single person. There was way too many comments just attacking me with every hypothetical possiblity just to try and prove me wrong, and that, was wrong of them to do. Its not conversational, its bad group think.

          Your message is more than just the words you type.

          I was just telling my wife that the other day, its how you say that matters as much as what you say. I’m actually a well spoken person (on a good day at least). I’m honestly going to blame some of the confusion not on me, but on others with their hypotheticals, and confluencing how you scan a video, with how you search for sections of a video to scan, as adding to the confusion.

          I hope this message helps clarify the debate and confusion for you and anyone else who stumbles upon this long chain.

          Well, I think (saying this in 3rd person) what null was trying to do (gatekeeping censorship by telling others to not read my comments and calling me a troll) is really, really wrong. and bad for Lemmy, and I would have liked to have seen more people call him out on it, but instead he was rewarded with up votes. I truly don’t believe I deserved that, or that ANYBODY deserves that, and that his comment should be moderated.

          And only because you mentioned it, I don’t feel confused, I feel anger. Anger over how I’ve been treated. It was just supposed to be a friendly conversation, expressing a counterpoint, and people responded by doing things they would not do in public to another’s face.

      • Captain Aggravated@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        Let’s use the example of a bike theft. We enter into evidence a 4-hour security cam video that shows the thief with the bike.

        Scenario A: The camera can directly see the bike rack, and the bike in question is visible at the beginning of the video, and not visible at the end. Somewhere in this 4-hour video, someone walks up to the bike and takes it out of the bike rack. You can use a binary search to find the moment that happens in this video because you can pick a frame and say “Ah, this was before the theft; the bike is still there” or “ah, this was after the theft; the bike is gone.”

        Scenario B: The camera can’t directly see the bike rack, but can see the doorway you have to walk through to get to the bike rack. So somewhere in 4 hours of doorway footage, someone walks through the door, then a short time later walks back through the door with the bike. A binary search won’t help here because the door looks the same at the beginning or end of the video. A simple binary search won’t work here because the door looks the same before and after.

        • rekabis@lemmy.ca
          link
          fedilink
          arrow-up
          0
          ·
          7 months ago

          This is the explanation that CosmicCleric needs in order to understand binary search.

          Because as it is, (s)he’s failing abysmally at demonstrating any understanding whatsoever of that subject.

        • Cosmic Cleric@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          7 months ago

          Scenario B: The camera can’t directly see the bike rack, but can see the doorway you have to walk through to get to the bike rack. So somewhere in 4 hours of doorway footage, someone walks through the door, then a short time later walks back through the door with the bike. A binary search won’t help here

          I never said it works 100% of the time. This that it would work most of the time. And I make that statement based on the fact that usually the environment changes around the event, or the event happens long enough to be detectable, if not by humans, then by AI.

          In all of my comments I’m assuming that that focal point of the crime is visible.

          But even if it wasn’t, if the person stealing the bike knocks over a trash can while doing it and that’s in the camera view it would still be useable. Or if a crowd congregates around the focus point and looks around for the bike, that would also make a binary search feasible.

          That’s always just been my point, that a binary surgery more often than not works because most times the environment around the event changes in some way, from subtle to extreme.

          • Captain Aggravated@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            7 months ago

            You would have to be confident that said change in environment was done by the bike thief. What if that knocked over trash can was done by some unrelated bored teenager twenty minutes after the bike was stolen?

            It might be better to use some software to remove any frame of video that is identical to the one before it, no motion is taking place, etc. then manually watch the much shorter video of “only when stuff happens.”

            • Cosmic Cleric@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              7 months ago

              You would have to be confident that said change in environment was done by the bike thief.

              Well, the change would happen, the human will be noticed, and then they can watch that moment in time on the tape to see who did it. The binary search would be about shortening what portions of the video tape a human/AI would have to review manually.

              It might be better to use some software to remove any frame of video that is identical to the one before it, no motion is taking place, etc. then manually watch the much shorter video of “only when stuff happens.”

              So, I hope you’re not under the impression that I’m advocating binary search as the ONLY way of doing a search. I’m just staying within the confines of the subject as brought up by the OP, which was about binary searches.

              At the end of the day its about detecting the change/aftereffect, and not the search inandof itself. A binary search just helps you narrow down the video you have to watch manually, especially when there’s allot of it to review.

      • null@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        7 months ago

        But you will see the event happen though.

        Not with a binary search.

        Edit: just collapse this thread and move on. Cosmic Cleric is an obvious troll.

        • Cosmic Cleric@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          7 months ago

          But you will see the event happen though.

          Not with a binary search.

          Yes you will.

          A binary search is just what it says, it’s just for searching only.

          When you find that moment in time where the bike was there one moment, and then the next moment the bike’s not there, then you view at regular or even slow-mo at those few seconds of the bike in the middle of disappearing, and see the perpetrator, and hopefully can identify them.

            • Cosmic Cleric@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              7 months ago

              You either don’t know what binary search is or you completely missed the context of this conversation

              I’m a computer programmer. I know exactly what a binary search is. I’ve written binary searches before.

              The search is to get you to the point where you can watch the video to see the crime happening, in hopes of indentifying the perpretrator.

                • Cosmic Cleric@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  edit-2
                  7 months ago

                  Then you missed the point of this conversation

                  You’re being intellectually dishonest, in an attempt to kill the message.

                  This is what was said in the origional OP pic…

                  You don’t watch the whole thing, he said. You use a binary search. You fast forward to halfway, see if the bike is there and, if it is, zoom to three quarters of the way through. But if it wasn’t there at the halfway mark, you rewind to a quarter of the way though. Its very quick. In fact, he had pointed out, if the CCTV footage stretched back to the dawn of humanity it would probably have taken an hour to find the moment of theft.

          • Azzu@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            7 months ago

            You didn’t get what was talked about here. Re-read the topmost parent comment.

            How do you binary search for two people arriving, one punches the other, they both leave?

            • Cosmic Cleric@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              7 months ago

              How do you binary search for two people arriving, one punches the other, they both leave?

              In the same way the OP talks about it …

              You don’t watch the whole thing, he said. You use a binary search. You fast forward to halfway, see if the bike is there and, if it is, zoom to three quarters of the way through. But if it wasn’t there at the halfway mark, you rewind to a quarter of the way though. Its very quick. In fact, he had pointed out, if the CCTV footage stretched back to the dawn of humanity it would probably have taken an hour to find the moment of theft.

              Instead of a bike, you look for the aftereffects of a fight happening (chairs knocked down, tables turned over, etc.). You can even look at how many people congregate around the location of the fight before and after the video as a ‘marker’ to the point of time the fight was happening/just finished.

              Edit: One thing we didn’t even mention, AI can also be used these days to notice subtle changes in the video. If a video is a static image of an alley, then two people walk in the alley and fight, even though they leave no traces behind, that moment of the fight is caught on the video with activity/movement. Motion sensor movement, basically.

                • Cosmic Cleric@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  edit-2
                  7 months ago

                  You are seriously confused.

                  And you are seriously trying to kill the messenger.

                  OP specifically said that you’re fucked if there is no visual cue.

                  And I’m saying there’s ALWAYS a visual clue/cue, always. Either the bike is there one minute and gone another, or a fight breaks out and trashes the place from the fight. In the vast amount of cases, there’s always a visual difference.

                  And in this case we’re talking specifically about a bike, going missing.

              • Kialdadial@iusearchlinux.fyi
                link
                fedilink
                arrow-up
                0
                ·
                7 months ago

                Your adding things that would allow a binary search work, but the question was in a situation where the only evidence is the conflict itself

                2 guys enter one guy punches the other guy they both leave. Nothing is moved no blood was created,

                you could not use a binary search effectively to duduce when it occurred.

                • Cosmic Cleric@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  edit-2
                  7 months ago

                  Your adding things that would allow a binary search work, but the question was in a situation where the only evidence is the conflict itself

                  I’m describing the vast majority of fights that happen in the public. Also, you’re trying to move the goalposts by focusing on a fight, when the discussion is about the theft of a bike.

                  Edit: One thing we didn’t even mention, AI can also be used these days to notice subtle changes in the video. If a video is a static image of an alley, then two people walk in the alley and fight, even though they leave no traces behind, that moment of the fight is caught on the video with activity/movement. Motion sensor movement, basically.

            • Cosmic Cleric@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              7 months ago

              You didn’t get what was talked about here. Re-read the topmost parent comment.

              I was responding to this …

              Part of my job is to review security footage for reported incidents.

              If there is a long-lasting visual cue that the event has or has not happened yet (e.g. a window is either broken or not), then a binary search is very useful.

              If the event lasts only a moment and leaves no visual cue (e.g. an assault), then binary search is practically useless.

              I disagree with the “leaves no visual cue” part, as I’ve commented on. There’s ALWAYS something caught on the video to help determine things. Maybe not enough, but never nothing.

              • LUHG@lemmy.world
                link
                fedilink
                arrow-up
                0
                ·
                7 months ago

                Maybe I’m not understanding both arguments here but I’d like to understand. I’ve had to review footage of a vending machine being shaken to release drinks.

                You have no before or after visual clue as to when the event took place. The only indication is when you physically see it happening. The same could be said for an assault. If nothing is changed in the before or after static still how can you pinpoint the incident?

                • Cosmic Cleric@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  7 months ago

                  You have no before or after visual clue as to when the event took place.

                  That wouldn’t necessarily be true. If you shook it hard enough to move the contents inside the vending machine and the vending machine had a glass front then you would have a static change that would last from the time the event happened until a human being came to work on the machine. That change would be detectable.

                  Or from the shaking the vending machine is moved an inch forward and an inch to the left. That change would be detectable.

                  Everyone arguing against me is trying to focus the point that the event is such a short duration that it’s not detectable afterwards, and what I’ve been arguing the whole time and that people keep ignoring is that most of the time after an event happens that the environment around the event changes, and it’s detectable afterwards.

          • lustyargonian@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            7 months ago

            Binary search only works on sorted data, i.e. you know which side of the mid point is pointing towards the incident. If the incident leaves no trail, you can’t know whether you can discard the left side or the right side, making it a complicated linear search at that moment.

            • Cosmic Cleric@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              7 months ago

              If the incident leaves no trail, you can’t know whether you can discard the left side or the right side

              There’s a moment where the bike is there, then another when its not. The whole video, either way, will either from the beginning up to the point of theft have the bike there, or NOT have the bike there from the point of theft to the end of the video. The marker is the removal of the bike from the video lens.

              • starman2112@sh.itjust.works
                link
                fedilink
                arrow-up
                0
                ·
                7 months ago

                But the comment you replied to wasn’t talking about bike thefts specifically, it was talking about unspecified situations that don’t leave traces. You responded to someone saying that binary search doesn’t work in situations that don’t leave cues not by arguing against the premise (e.g. “but no such event exists, everything leaves cues”), but by telling them that you simply have to look for the cues from the hypothetical event that didn’t leave any.

                • Cosmic Cleric@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  ·
                  7 months ago

                  but by telling them that you simply have to look for the cues from the hypothetical event that didn’t leave any.

                  And my point is that the DID leave a clue that a binary search would pick up on, the disappearance of the bike.

    • doctorcrimson@lemmy.today
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      7 months ago

      I once had a friend who was robbed of all kinds of stuff including a PS3, and that the guy was signed into his Netflix changing account profiles the very same day. I told him he can just get a tracking number by calling Playstation and that the active police officer can use it to track them. Thing is, the officer ghosted him for like 8 months despite having everything they needed to immediately find the exact location of the perpetrator actively using the stolen property.

  • Localhorst86@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    “Exactly my point. We will not be investing an hour looking at the footage to pinpoint the time of theft, now get out!”

  • frezik@midwest.social
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I’m a little surprised the police didn’t already know about that method. Seems like they’d encounter enough CCTV footage that’d it’d be standard training.

    I once again overestimate the training levels of the police.

  • Alph4d0g@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    I’m sure it didn’t go well. If it was somehow framed in a sycophantic way where the police were led to believe it was their idea, I’m sure it would have gone better. Wait that might not be too difficult to do.

  • teft@startrek.website
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    7 months ago

    Yeah, pigs don’t like to be corrected. Or made to look like they don’t know what they’re doing.

    • Fun fact. Cops on average have lower IQ and often fail literacy tests. Furthermore it appears that critical thinking is discouraged in the job, with candidates being selected who lack critical thinking abilities over those that have them.

          • SlikPikker@lemmy.ca
            link
            fedilink
            arrow-up
            0
            ·
            7 months ago

            Which proves that cops really DO actually do their jobs.

            Because protecting the property of the rich is the exact core purpose of policing.

            • Coasting0942@reddthat.com
              link
              fedilink
              arrow-up
              0
              ·
              7 months ago

              Technically it’s maintaining social order. So get back to work menials or be reported to the Enforcers for organized discontent.

              • I Cast Fist@programming.dev
                link
                fedilink
                English
                arrow-up
                0
                ·
                7 months ago

                Maintaining social order, especially in the form of violent repression against demonstrations, indirectly protects the rich’s properties, so all in a day’s work.

        • pimento64@sopuli.xyz
          link
          fedilink
          arrow-up
          0
          ·
          7 months ago

          Given the number of times I’ve seen cops on police forums and r/protectandserve use terms like “bikefags”, I think it’s just the typical cop disgust of anything they perceive to be weak or effeminate.

          • Zron@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            7 months ago

            There’s plenty of cases where they don’t look for cars either.

            Or the cops themselves just straight up steal the car themselves.

            My wife’s car was ordered to be towed by, according to the impound lot, the police.

            Neat thing was that there was no ticket with the car, no police station within 3 miles had a record of a ticket for her or the car, and the area she had parked had no signs that suggested it was illegal to park where she did, nor does the city have any ordinance about overnight parking.

            Best we can figure, is a cop or the tow company that works with the city, just decided to tow a car for funsies and the 500 bucks it took to get it out of impound.

            The police and every organization associated with them are corrupt to the core.

      • lars@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        I reported my bike stolen in college and I got a call the next day that they had found it parked in front of a nearby church.

        It was stolen on a Sunday. I guess someone didn’t want to be late to service.

        • thebuoyancyofcitrus@beehaw.org
          link
          fedilink
          arrow-up
          0
          ·
          7 months ago

          What you’re entering the third act of your love story and you have to get to the church in time to break up the wedding and declare your love, what’s a little bike theft? The universe will take care of it.

  • xantoxis@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    This argument did not go well

    You can’t convince people to do their job with logic when they just don’t want to do their job. After minorities, the thing cops hate most is doing their job.

    • Cosmic Cleric@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      7 months ago

      when they just don’t want to do their job.

      It might also be a matter of getting a directive from their management not the care, because there’s not enough cops to go around for the ‘important’ stuff.

      They don’t want to waste their limited time for simple property theft, which is ironic considering that’s what police are supposed to be doing (stopping theft).

      The answer would be then to hire more police, but unfortunately that would mean higher taxes for the citizenry, and that seems to be a hard glass ceiling.

  • SameOldInternet@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    This post just shows that the police rarely if ever review any video as this method would’ve been learned as a result of repeatedly reviewing video.

    • Mr_Dr_Oink@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      7 months ago

      How do you solve that? I saw a solution in the comments where it says to start with numbering all the people and butting 1234 and 5678 on the see saw, then it says if they weight the same then continue and that seems to work. But if they dont weigh the same it doesnt work and it doesnt say what to do in that case.

      • adrian783@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        7 months ago

        you can do it like you weight 6v6 then 3v3 then for the last weighing you weight the 2 out of 3.

        or you weigh 4v4 to find out which grouping of 4 the light weight person is in, then do 2v2 and 1v1.

          • Sagifurius@lemm.ee
            link
            fedilink
            arrow-up
            0
            ·
            edit-2
            7 months ago

            That’s not the question. Either the scales balance, and the third is heavier or lighter, or the scales don’t balance and you get both answers, but the question is purposely framed this way

              • Sagifurius@lemm.ee
                link
                fedilink
                arrow-up
                0
                ·
                7 months ago

                The question is to figure out who is different, not how they are different. That takes one more step, half the time.

                • Mr_Dr_Oink@lemmy.world
                  link
                  fedilink
                  arrow-up
                  0
                  ·
                  7 months ago

                  The question was to find who doesnt weigh the same and if its heavier or lighter. Watch the clip again.

                • Yes, I’m aware. But with 12 people you can’t simply divvy the groups in threes constantly, because if you weigh and the groups are unequal, then you don’t know in which group the different person is (yet). E.g., weighing ABCD - EFGH can tell you the different person is in IJKL if the groups are even, but if they’re uneven you don’t know in which of the other two groups the different person is.