• 2 Posts
  • 279 Comments
Joined 2 years ago
cake
Cake day: July 7th, 2023

help-circle


  • There are an infinite amount of real numbers between 0 and 1. On the top track, when you reach 1, you would only kill 1 person. But on the bottom track you would’ve already killed infinite people by the time you reached 1. And you would continue to kill infinite people every time you reached a new whole number.

    On the top track. You would tend towards infinity, meaning the train would never actually kill infinite people; There would always be more people to kill, and the train would always be moving forwards. Those two constants are what make it tend towards infinity, but the train can never actually reach infinity as there is no end to the tracks.

    But on the bottom track. The train can reach infinity multiple times, and will do so every time it reaches a whole number. Basically, by the time you’ve reached 1, the bottom track has already killed more people than the top track ever will.



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



  • Yeah, dating is 100% a numbers game. You cast a broad net, and then pick through the ones who show interest. There’s no way to find the right person without failing a few times. The people that end up with their high school sweethearts are the exceptions that got extremely lucky, not the standard to strive for.

    Don’t take the failure personally. Unless you’re blatantly going around cheating, being misogynistic, racist, etc., it’s likely not anything in particular that you did “wrong”. It simply means you weren’t a good match. The best thing you can do is simply be the best version of yourself. By that, I mean to avoid just sitting around on your hands, expecting someone to land in your lap. The “if you can’t handle me at my worst, you don’t deserve me at my best” mentality is extremely toxic; Be the kind of person that your ideal partner would want to date.



  • Phone calls in prison are recorded. Luigi needs to use prison phones to talk to his lawyer. So his phone calls with his lawyer were recorded. The content of those calls is guarded by attorney client privilege, and the prosecutor can’t legally access them… Except the prosecutor 100% accessed them, and listened in.

    As soon as the prosecutor fessed up to knowing anything about the content of those calls, it threw a giant wrench in the works for the courts, because everything the prosecutor has done so far (or does in the future) is potentially tainted by the knowledge from those calls. Luigi could 100% use that to try and appeal if he’s convicted, citing the fact that his attorney client privilege was breached. And if that appeal works, then any evidence gained as a result of that privileged info would also be tossed out. So the prosecutor was recused, meaning they’re basically being removed from the trial.



  • I occasionally do scale drawings for my job, and I occasionally have to remind my coworker that her nice pretty colorized drawings will look fucking atrocious when printed in greyscale on a shitty laser printer. She likes to color code things to make it easier to communicate info… But that often ends up making things harder on the crews who are actually executing things. Because when she used color to communicate something, but the entire drawing is printed in shades of grey to hand a hard copy to the crew, it becomes fucking impossible to actually follow the drawing.

    For instance… The yellow circle is the one we need done today. Here’s what she draws:

    Except here’s what the crew receives:

    Now imagine if this was a watermark on every page of a 50 page court filing, which then gets printed out for the judge. Now they’re seeing text on the grey background, which likely makes it harder to read and is a massive waste of toner. It also massively inflates pdf file sizes, because you’re sending that image on every single page.


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



  • PM_Your_Nudes_Please@lemmy.worldtoSelfhosted@lemmy.worldWhat is Docker?
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    5 months ago

    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.



  • Unless you absolutely have to, avoid going into debt for food purchases. Swallow your pride, then visit your local food bank. Yes, your situation is exactly what they’re for. If you have to choose between making your rent payment or eating, the food bank is for you. In most places, they don’t even ask anything beyond how many people you’re getting food for. Most of the volunteers are there because they’ve been in your exact situation, and just want to return the favor now that they’re back on their feet.

    And this may be an unpopular take on Lemmy, but don’t forget about local churches, mosques, and synagogues. Many will have charity networks set up to provide things like grocery store gift cards. You don’t need to be a member of the church, or even be religious. Lemmy tends to be vehemently anti-religion, but in most cases they’ll just want some basic info to tell the rest of the network that you received aid. This is purely because some bad actors were taking advantage of the system, and hitting every church in an area to resell the spare gift cards. So to prevent that, churches now tell each other when someone receives aid; If the same person shows up at four or five churches in the same day, it tends to raise some eyebrows.

    You’ve already made this post asking for help, so you’re obviously not afraid of that part. But lots of people tend to see charity as something that other people need. When in reality, it’s possible for anyone to land on hard times. Nobody should go hungry just because they had to make rent or were going to miss their car payment. You’re clearly trying your hardest to get started on the right path. Don’t feel bad for accepting charity. If you want to give back, you can always volunteer at the food bank when you have your feet underneath you.

    Also, know that this random user is proud of you for landing that job! It’s a huge step!

    Source: I grew up poor.