One upvote is not enough.
I once wrote a commit message the length of a full blog post comparing 10 different alternatives for micro optimization, with benchmarks and more. The diff itself was ten lines. Shaved around 4% off the hot path (based on a sampling profiler that ran over the weekend).
Ew no.
Abusing language features like this (boolean expression short circuit) just makes it harder for other people to come and maintain your code.
The function does have opportunity for improvement by checking one thing at a time. This flattens the ifs and changes them into proper sentry clauses. It also opens the door to encapsulating their logic and refactoring this function into a proper validator that can return all the reasons a user is invalid.
Good code is not “elegant” code. It’s code that is simple and unsurprising and can be easily understood by a hungover fresh graduate new hire.
Yes. I’ll read the content, but I try to avoid interacting.
Mind you, db0 himself is a tankie, although he doesn’t seem to insist on imposing that on the users or communities on his instance.
EDIT: I stand corrected. Apologies to db0 for lumping him in with that crowd.
Gotcha. So all horses are purple?
I hope you’re wrong about both Israeli territorial ambitions and the unwillingness of Hamas to release hostages.
How are the Egyptian media covering the news?
In all honesty, there are a few outcomes that are potentially worse if he is dead: Hamas splintering into many smaller factions, or treating him as a silent leader and refusing to release hostages because “he hasn’t ordered it”.
Hopefully Hamas will confirm and whoever replaces him will agree to release the hostages.
Iran is pretty fucking transparent with their goal: to destroy the Zionist entity. The posters literally say “wiping Israel off the face of the Earth is just the beginning”. And no, they don’t mean “dismantle the state mechanism” like some users here claim. They very much mean it in the “death to the Jews” way.
Framing it as purely defensive is just lying
Sanctions have not been effective - AQAH has been sanctioned since 2007, and only the direct military threat on Iranian planes bringing cash seems to be having the desired impact.
The quiet part is here in the details - Iran is Hezbollah’s financier - confirming what everyone has known for decades. AQAH is unlicensed, yet they do business with AQAH because they know that someone (Iran) will guarantee AQAH’s debts. More importantly, it shows a path forward for Lebanon - to simply enforce their existing sovereignty and laws - punishing banks that do business with unlicensed banks.
The electoral college is good for one thing and one thing only: boosting confidence that election fraud in one place won’t impact the result of the election.
Winner takes all was always stupid and needs to be replaced with proportional allocation, preferably with a more direct ratio to the actual population of votes. Basically, everyone doing what Nebraska and Maine do.
If you only look at the US (which a US court should) - it’s really between Chrome and Safari Mobile, and it’s a pretty even split to be honest - a bit in the favor of safari for mobile traffic, which is telling.
But the bigger issue is that they have undue influence in technical decisions to the detriment of consumers because they have a vertically integrated business.
Plausible yes. Painting it as if it were doctrine is not.
DU is toxic and radioactive, but the radioactivity is stopped by a literal sheet of paper. So the article is just panic inducing propaganda intended for people who want yet another reason to hate on Israel
EU source regarding the radioactivity of DU munitions: https://ec.europa.eu/health/scientific_committees/opinions_layman/depleted-uranium/en/index.htm
From what I understood, the radar systems were incompatible and that’s why despite it being on the table it wasn’t sold to the Ukrainians. That and the requirement to gather accurate surveys of the areas to be protected.
Most AIs are trained on older poster art like this - they’re well labelled, have consistent style, and because they’re older there are likely to be a bunch of duplicates in the training set.
Pretty sure this one predates AI art.
It’s from 1986
None built in from what I recall. That was from back in 2011, so it’s possible things changed since.
Reading through, it looks like retries do exist, but remember that duplicate packets are treated as a window reset, so it’s possible that transmission succeeded but the ack was lost.
I remember the project demos from the course though - one team implemented some form of fast retry on two laptops and had one guy walk out and away. With regular wifi he didn’t even make it to the end of the hall before the video dropped out. With their custom stack he made it out of the building before it went.
I’ll need to dig through to find the name of what they did.
Small strikes against any IRGC personnel stationed outside Iran - they’re fair game and on the table. We’re already seeing this with the strikes on Damascus and throughout Lebanon.
Also - based on the saber rattling and talking heads, it sounds like there are likely to be three potential targets: the dams, which would cause massive domestic economic damage to Iran; the oil facilities, which would cause massive economic damage to the Iranian regime; finally, known nuclear sites, which are in line with Israeli rhetoric about preventing Iranian nuclear ambitions.
I think cooler heads will prevail and the dams won’t be targeted, and without a regional coalition committed to a ground invasion with a goal of regime change, attacking the nuclear facilities won’t have the strategic impact that’s desired. Which leaves the oil refineries - there’s a natural bottleneck for Iranian oil production/export so there’s a short list of physical areas that need to be attacked for it to be effective.
Thinking on it further, IRGC headquarters should also be on the table. I don’t think it’s likely, but if it succeeds (and it’s likely to succeed - especially with direct US support) then it’s a huge win. But even if it does succeed I don’t see it leading to real regime change in Iran, so without that strategic impact it’s far less likely.
To be fair, because of window size management it only takes 1% packet loss to cause a catastrophic drop in speed.
Packet loss in TCP is only ever handled as a signal of extreme network congestion. It was never intended to go over a lossy link like wifi.
Those young machine spirits need their rest