<span style="color:#323232;">def is_even(n: int):
</span><span style="color:#323232;"> import math
</span><span style="color:#323232;"> return sum(math.floor(abs(math.cos(math.pi/2 * n/i))) for i in range(1, 2 ** 63)) > 0
</span>
spoileri can’t imagine how long it’ll take to run, my computer took over 3 minutes to compute one value when the upper bound was replaced with 2^30^. but hey, at least it’s O(1).
Antivirus provider Kaspersky uncovers a sophisticated piece of ‘StripedFly’ malware camouflaged as a cryptocurrency miner that’s been targeting PCs for more than five years.
fortran is a bow and arrow. it was quite powerful and widely used in the past, but i have not met anyone in recent years who uses it other than as a hobby.
what i’ve gathered from people i talk to about it is that a lot of it comes down to convenience. edge comes pre installed and microsoft makes it not super straightforward to switch. i’m sure most people could figure it out if they wanted to, but lots of people don’t want to “futz around” with their computer. it also doesn’t help that edge is pretty much the only thing that works with windows search along with certain outlook and teams features.
i like to spend time messing around and customizing my computer to be better (i still use vim as my main editor), but for many people its annoying and they don’t want to “fix it if it isn’t broken”. this is all just a very long winded way of saying they don’t really care it’s not the optimal solution, as long as it works.
i think we all have areas of life that we treat like your dad treats his web browsers. for example, im like that when it comes to cooking. i could probably cook meals that tasted much better if i put in a bit more effort into learning different techniques and some new recipes. but i just don’t like cooking that much and the stuff i make is good enough for me. my dad is much like yours when it comes to web browsers, but he knows a lot more about cooking than i do, and he enjoys it a lot more too.
here’s another mathematical approach (that has the added benefit of only working when x and y are both positive).
let f denote the linear functional on ℝ^2^ defined by f(1,0) = x and f(0,1) = y (and extend by linearity). then the operator norm || f || is equal to max(x,y).
Highlights: In 2015, upstate New York judge Robert J. Putorti was overseeing a court hearing involving a Black defendant. Nothing out of the ordinary for a judge to do right? Except, when a Black man approached the stand “too quickly,” Judge Putorti pulled a loaded gun on him in court....
Federal agents found more than two dozen minors illegally working inside a poultry plant in Kidron, Ohio, earlier this month, according to local immigration advocates who spoke to NBC News on the condition of anonymity....
yeah i mean how do we really know the kids were working there. maybe all 25 kids just happened to stumble into the factory and started playing with equipment right before the federal agents got there
unfortunately not since everything taught in high school is a lie. the only way to learn things is to read things after graduating (as long as they aren’t written by high school teachers or any other educated person)
even if that were true, surviving is a pretty low bar. you could get tortured every day for 10 years and still survive. what makes things even more absurd is that (like you said) tons of people didn’t even survive.
i think this shows how they are interested in federation. a nice strength of federation is that if there are a bunch of crazy people on one instance, you can click a button to block them from your instance.
automating the YandereDev algorithm (lemmy.world)
I wish (i.imgur.com)
Powerful Malware Disguised as Crypto Miner Infects 1M+ Windows, Linux PCs (www.pcmag.com)
Antivirus provider Kaspersky uncovers a sophisticated piece of ‘StripedFly’ malware camouflaged as a cryptocurrency miner that’s been targeting PCs for more than five years.
Don't let your gift wind up at a shelter 3 weeks later (startrek.website)
No one is safe from these psychos. Please stay safe (lemmy.world)
hell yeah rule (lemmy.blahaj.zone)
Ancient Egypt (startrek.website)
comprulemise (files.sfba.social)
412 (lemmy.world)
Fungal evolution discovered: Mycena can now invade living hosts (phys.org)
how is this even possible rule (lemmy.zip)
deleted_by_author
Very clever... (lemmy.ml)
I’m trying out Obsidian for taking notes, and this made me laugh.
Its Rulesday (lemmy.blahaj.zone)
If programming languages were weapons. Old but gold. (feddit.it)
Source: so old it’s lost
Microsoft now pops up a poll asking why you'd want to use another browser when you download Chrome (www.theverge.com)
Elon Musk Offers to Also Ruin Wikipedia (www.rollingstone.com)
resoruletion (files.catbox.moe)
geography rule (media.beige.party)
sorry about quality...
Wake up. (lemmy.world)
Britain rule (i.imgur.com)
Redditor when women (i.imgur.com)
Troubling (lemmy.world)
Find yourself (lemmy.ml)
NY Judge Who Bragged About Aiming Loaded Gun at Black Defendant in Court is in Big Trouble (www.theroot.com)
Highlights: In 2015, upstate New York judge Robert J. Putorti was overseeing a court hearing involving a Black defendant. Nothing out of the ordinary for a judge to do right? Except, when a Black man approached the stand “too quickly,” Judge Putorti pulled a loaded gun on him in court....
Consistency (lemmy.world)
Disconnected (2023) (lemmy.world)
Yummy (lemmy.world)
Federal agents found more than two dozen minors working in Ohio poultry plant (www.nbcnews.com)
Federal agents found more than two dozen minors illegally working inside a poultry plant in Kidron, Ohio, earlier this month, according to local immigration advocates who spoke to NBC News on the condition of anonymity....
Rule (lemmy.blahaj.zone)
Dibbs (lemmy.zip)
Police close road for 31 hours after sex doll mistaken for dead body dumped in woods (www.independent.co.uk)
Police closed off a road for two days to investigate a report of a dead body dumped in woods - only to find out it was a discarded sex doll....
Lemmygrad tankies react very sanely to Lemmy.world's defederation (sh.itjust.works)
LW Announcement...
Psychologists (i.postimg.cc)
A controversial tier list (sh.itjust.works)
Hey Google, go fuck yourself entirely (sh.itjust.works)