• 1 Post
  • 144 Comments
Joined 2 years ago
cake
Cake day: July 7th, 2023

help-circle


  • As someone who occasionally has to scrub through hours of security camera footage, these cops need to learn what a binary search is. We had some art get stolen from our gallery, and I had to search through ~5 days of footage to find it. I found it in about 3 minutes with a binary search.

    Start by defining your timeline. In my case, it was about 5 days (so roughly 120 hours) over the course of a long weekend. Then divide that time in half, (60 hours) and start at the middle. Is the artwork still there? If so, you know you don’t need to bother scrubbing through the first 60 hours at all. Or if it’s already missing, you know you don’t need to bother searching through the second half. Then divide the remaining half in half again, (30 hours) and do the same. Repeat, each time dividing the potential search by half. With only 10 divisions, (each taking only a few seconds to figure out what the next halfway point is and jump to it in the security camera program), I have already narrowed my search down from 5 days to ~7 minutes. And it only took me a few minutes total. And at that point, I just scrub through manually until I find the culprit.

    My boss was just sitting at her computer, watching the video at like 2x speed from hour 0, hoping to eventually catch the person. After like 20 minutes of that she gave up and passed it off to me. And I had the incident found in like 3 or 4 minutes total.

    The only real reason the cops have to avoid scrubbing through footage is laziness.






  • Yup. For minor issues, first aid is all that is needed; you don’t need to see a doctor for a minor cut, as long as the first aid ensures it’s not infected. But for larger things, secondary aid is what provides more long-term recovery.

    If someone dislocates a shoulder, first aid is putting it in a sling and bracing it against the body, so it doesn’t get worse (for instance, the tendons and ligaments in the shoulder joint can tear) before they can get to a hospital.

    If someone is massively bleeding, first aid is stopping the bleeding to keep them alive until they can get rescued.


  • It can be, yes. One of the largest complaints with Docker is that you often end up running the same dependencies a dozen times, because each of your dozen containers uses them. But the trade-off is that you can run a dozen different versions of those dependencies, because each image shipped with the specific version they needed.

    Of course, the big issue with running a dozen different versions of dependencies is that it makes security a nightmare. You’re not just tracking exploits for the most recent version of what you have installed. Many images end up shipping with out-of-date dependencies, which can absolutely be a security risk under certain circumstances. In most cases the risk is mitigated by the fact that the services are isolated and don’t really interact with the rest of the computer. But it’s at least something to keep in mind.




  • Yeah, toxins are often the bigger risk when dealing with bacterial or fungal issues.

    For instance, botulism is caused by the toxin produced by botulinum bacteria. The toxin is a paralytic. The bacteria itself can typically be dealt with by the immune system, but the toxin wreaks havoc on the nervous system.

    That’s also why you should never feed honey to babies; botulinum is commonly found in honey. Babies’ immune systems aren’t equipped to deal with the botulinum bacteria, which allows it to bloom and start producing the toxin after they ingest it. This causes something called Floppy Baby Syndrome, from the baby being paralyzed by botulism toxin.


  • I heard a very similar story, except it was one Italian grandma with a bunch of dudes in suits. She proceeded to serve him the single largest, most elaborate, and most delicious Italian dinner he had ever had. Apparently he could see into the kitchen, and she was making everything from scratch. He was there for like two hours, and she just kept bringing more plates out even though he hadn’t actually ordered anything. All because she was so excited to finally have someone to cook for. She even sat with him to chat, and was clearly happy to just have someone except the angry-looking dudes in suits to talk to. IIRC the suits didn’t even take payment before he was ushered out of the door.

    He tried to go back like a week later, but the place was totally deserted.








  • Yeah, this can be an unpopular opinion on Lemmy, because there’s a giant Linux circlejerk. But the unfortunate reality is that changing to Linux does have some major stumbling blocks. The “switching is so easy, just do it” crowd totally glosses over it, but that’s kind of rhetoric doesn’t help long term adoption. Because if some new user has only heard “switching is so easy” and immediately runs into issues, they’ll be more likely to go “well if it’s super easy and I can’t figure it out, I guess it’s just not for me” and abandon things.

    There’s also a very vocal (and toxic) part of the Linux community that basically just screams “RTFM” at every newbie question. New users shouldn’t be expected to dig into a 350 page technical document just to learn the basics of their new OS.