skysight-inc/HackerNews huggingface dataset:
I fix flaky tests, and a 3% failure rate would drive me crazy. But I don't automatically rerun tests. I was skeptical of the idea that rerunning tests would help, so I did a bit of math:

A test suite with 1 test that fails 3% of the time will succeed 97% of the time. (1-.03)

A test suite with 10 tests that fail 3% of the time will succeed 74% of the time. (.97^10)

100 flaky tests? Now half your test runs fail. (.97^100)

You're retrying three times? Now your test suite is slow, but you can have up to 2,000 flaky tests before it starts becoming a real problem. Or 60,000 if you retry four times. (1-.03^3)^2000 = 94.7%; (1-.03^4)^60000 = 95.3%.

My conclusion: rerunning flaky tests is a legit way of solving the problem, as long as your tests aren't too slow. Still makes my skin itch, though. Fixing flaky tests forces me to face design flaws in my code.

(The math, in case I did it wrong: .03^3 = f = chance of a 3% failure test failing three runs in a row. 1-f = s = chance of test succeeding. s^1000 = chance of test run with 1000 flaky tests succeeding.)
That rescue is truly remarkable.

Not only did the plane remain stable in the tree, one of the volunteer first-responders had the appropriate tree climbing experience and equipment to reach the accident site.

That experience could have easily gone to waste - arborist climbing techniques and standards are very different from what is used for vertical rescue.

The fact that the rescuers made the pragmatic decision to go ahead with borrowed techniques is very unusual.
Books for Kids (Death and Bullying)
Books for kids (Death & Bullying)

Put a stop to all bullying! Check out "Butterfly Me"....by, Evon Latrail
Now available @ amazon
Also, talk to your kids about death "When Mommy Went to Heaven" by Evon Latrail
............
#bullying #evonlatrail
Tried to install Dolphin on High Sierra (with kde-mac/homebrew) but stumbled upon some weird errors : /

Would love tips to get it to work if anyone has figured it out.
Make it a scam-free vacation
We tend to complain when failure by communication between social services and law enforcement results in unnecessary deaths. Now Canadian law enforcement has started a program that brings this synergy and we raise concerns about our privacy.

Although the concerns about privacy are grounded; I would love to see the evaluation of this program after one year. I believe that if we want to protect those most at risk in our society, this is a step in the right direction.
In this very comment section.

https://news.ycombinator.com/item?id=20036710
A different perspective, not trying to justify killing civilians.

No matter which way a leader comes to power, the population pays the taxes and the ultimate tolls.

This means that when we are on the inside, in the country, we can't be more or less complacent with a bad dictator than a bad elected leader, we always pay the price for what they do. It's always our problem.
The best I’ve had are nut cutlets or nut burgers. Stuff based on chickpeas can be great, basically a falafel burger. Falafels are awesome. There used to be a cafe on Charing Cross Road in London that did great vegetable fritter, served in a pita bread with salad, hummus and chillis.

Those are all fine foods, for me it’s not that veggie alternatives to meat don’t exits. They do and some of them are fantastic. It’s about variety. Giving up meat fur me would be a bit like giving up all nut cutlet/falafel type stuff and all other meat except chicken. I’ve not tried these new faux meat burgers, but will when so get the chance.
history will remember this day
Currently taking a course about charisma in Islam and part of it discusses the so called “new preachers” - inward looking evangelism that’s a booming industry.

One prominent example is Amru Khaled عمرو خالد‎.

https://en.m.wikipedia.org/wiki/Amr_Khaled
Rotating 3D Shapes
I keep thinking that the next big revolution in food sales will be reusable, washable containers.

Use glass instead of plastic so they're safe for industrial washers, make them in a variety of sizes such as tall narrow ones for sauces and beverages and squat and wide ones for casseroles and soups. Tight lids for safe storage and transportation. Standardized sizes for easy reuse and transferability.

We can call them "mason jars".
The second one relates to a feature at the metaorganismal level; namely the evolution rate. Fun fact: human chromosome 1 is the merger of two simian chomosomes and has two centromeres
You do realize that spontaneously editing the spec to drop, then re-introduce an element buried in a git commit is exactly the reason why WHATWG is an unreliable source for a definite HTML reference, don't you? Especially when it goes unnoticed even by experts such as GP. At the same time, you want to claim authoritative control over HTML, yet show no sign of respecting other established standards and standard bodies such as ISO/IEC, IETF (eg avk's URL "standard"), and W3C?
But capital through markets is how we get around the "labyrinth" that is the economic calculation problem. I think it's like complaining about how you lose power when you transfer electricity over wires. It's true, but there's always going to be a transmission cost.
Can you really? The article seems relatively clear that there are some problems regarding consent in this whole apparatus.

I'm torn on the article. The Canadian government isn't China and we have had quite a few pretty public cases here in Germany where lack of inter-agency coordination led to serious harm in the context of our CPS equivalent. OTOH, at least from that article, this program doesn't seem to get the oversight required for such a task.

At any rate, the lack of transparency and contractually forbidding people from talking about the program is a weird and all to common move these days.
An uninspiring language has uninspiring management. Shocking, just shocking.
Is this not how it works for pretty much more – if not all – projects? Good luck trying to land a patch in Python if the small group of core developers don't agree. Or PHP. Or Ruby. Or Firefox. Or Linux. Or anything else really.

Quite a few of the core Go devs aren't hired by Google out of the general programming pool, they were already contributing to Go and then Google asked "hey, cool stuff; why not come work on Go for us?" Again, this is pretty much how you join any core group of developers: make good contributions, get asked. Except here you actually get paid.
> By "Pet" class, do you mean a table for pet records?

Yes.

> Having an AnimalRabbit table implies a many-to-many relationship between Animal and Rabbit. Are you storing different rabbit types as parent records?

The whole point on making an Animal table was so that it could be referenced by the Pet table, because Pets can be more than one type. If I include Dog and Cat directly in Pet table then there will be lots of fields in the Pet table empty; also tomorrow if I want to add Rabbit as a Pet then I need to modify the Pet table to include Rabbit fields with null values in the previous rows. Having a separate Animal table allows me to add new types of Pets without modifying the Pet table and also saves table space.
How are soda, highly processed food, and credit cards parasitic? They provide a service that people find very useful.
You don’t actually have to setup your web-development environment like the hype dictates. I mean, work in a Danish municipality with more than 5k employees and 60k citizens who directly use our, mainly web-based, solutions daily. We build around 50 a year, and maintain a few hundred of them, and almost none of them are build with a JavaScript MVVM framework.

Not because Vue/React/Angular aren’t nice, but because we don’t have to. If it doesn’t need to run offline, then a MVC framework with Ajax will do just fine, and they are extremely productive. Both because errors are server side, but also because asp mvc hasn’t really seen radical changes for almost a decade. We also rarely put things in containers, we don’t do automated CI/CD and we certainly don’t orchestrate things with Kubernetes. Not that there is anything wrong with doing that, but we’re not Netflix, we can publish a new build directly to an IIS during a slow period and no one will notice the service being gone for 5 seconds.

Sometimes I think it pays to do a little JOMO instead of all that FOMO. Especially if you don’t want to burn out. Changes are a constant in our business, but you need to make absolutely certain that adopting those changes make sense, and it has to make sense in the real world, not on hacker news. Our business doesn’t care one bit about the front-end tech stack, as long as it performs like they want it could be written in ASP webforms.
Kubernetes is a CNCF project. That's different than a project that Google runs.
The genes aren’t changing, but the environment is and the modern environment is interacting poorly with our genetic heritage and increasingly so.

Even so, looking at genes and identifying the pieces is still important. For example having a test that determines risk during pregnancy would be awesome.
Are you discounting an increase in the proportion of methane in the air from melting permafrost and drying of the air from increased temperatures along with increased proportions of C02 in your analysis that breathing 115deg air is non-impactful?

Have you ever been in West Texas during summer?
Personally only seen it once during a short trip but apparently this is common in Seoul (maybe someone can confirm if it’s really widespread or not?). Delivery food comes in reusable containers, you leave it outside your door when you’re done and at some point the next day it all gets collected and sent back to the original restaurant for cleaning and reuse.
This is just ridiculous. This goes way beyond what they originally intended with stopping suspected IP Theft or backdoors by Huawei. This is a black day for academic progress and research in general.
Google's blanket dismissal of any criticism of Go's GOPATH design screwup pushed people away from adopting Go.
thank you. btw, the green one is rather similar to floraform by Nervous System. https://n-e-r-v-o-u-s.com/projects/sets/floraform/
Where would the heat go?
While 5 megatons definitely does seem like an overestimation, I think the fear was that it was a much larger mass of molten corium, including not just the fuel itself, but also molten silicon and lead, from the material dumped on the exposed reactor to quench the fires and prevent fallout. There was an estimated 5000 tons of this suppressant material, although I don't know how much could have reasonably been expected to melt (and I think later analysis shows that very little of it actually landed on the exposed core itself.)

Then when the molten corium hits the water, the water could act as a neutron moderator for a runaway fission reaction. You have to think this would be more a nuclear "fizzle" than the prompt criticality that is necessary for a >10kt (let alone megaton) bomb, but it would still be bad.

A 5 megaton explosion that levels Kiev? Probably not, but then again I'm not the nuclear physicist who came up with that number.

The idea that blowing the core material into the atmosphere and causing further meltdowns in the other three reactors would be a major radiological disaster for Northern Europe, though, I can appreciate.
I can't help but wonder, are educational institutions immune to this? Keep in mind that these are all corporations involved here.
Artificial Intelligence Animal Olympics
The Fastest Laptop Ever – MSI GT76 First Look
Why would education matter here at all? People are much more highly educated nowadays than they used to be. They even score much higher on IQ tests compared to people in the past. People understand the world better today than before.
There's an FAQ: https://golang.org/doc/faq

For generics specifically, there's a "Summary of Go Generics Discussions", which is quite comprehensive: https://docs.google.com/document/d/1vrAy9gMpMoS3uaVphB32uVXX...
You could make the same claim of hypocrisy about any class of community leader or any cultural institution.

Setting aside the question of whether pastors (Charismatic Christian, Evangelical Christian, Christian, or even Muslim) are a particularly hypocritical bunch, megachurches are fundamentally different. They can be exploitative even if the leader is personally honest simply because they're breeding grounds for exploitative peer pressure entirely unmoored from traditional institutional and doctrinal anchors.[1] Power corrupts, and megachurches centralize a ton of power into a single individual.

Cults of personality are qualitatively different from your run-of-the-mill leadership position. If the Roman Catholic Pope tells the global Catholic community to do X, not many people will unflinchingly do X. People don't invest themselves as heavily in abstract doctrine as they do individuals. A megachurch is almost by definition a cult of personality, as to grow and thrive at such scale it takes an exceptionally charismatic leader in whom people invest themselves. And the doctrine of these churches tends to be particularly loose and particularly predicated on the exegesis of the leader, claims to biblical textualism and literalism notwithstanding.

[1] Yes, traditional institutions may have intrinsic exploitative characteristics. But they also have intrinsic mitigations that constrain exploitation, otherwise they wouldn't have persisted for so long. Like a virus, the most virulent ones extinguish themselves rather quickly.
Sincere question: why is that not benevolent?
In the UK, takeaways used to pretty much universally deliver in soft, perhaps tin or aluminium, containers with cardboard lids. Around 10-15 years ago, restaurants started switching to plastic. Some still use the old-style containers. If those are more ecologically sound, perhaps the government here should ban the plastic ones.
I am sure there are academics who are employed by Huawei. Implementing 5G requires academics.

https://www.huawei.com/en/press-events/news/2018/7/Huawei-Dr...
Given that my first syntax highlighting experience was Turbo Pascal 7.0 for MS-DOS, it always feels odd to see it disabled.

And we aren't in the late 70's anymore, where languages had design decisions (keywords always caps) due to printing limitations.
Thank you. These are fair points. When attempting to talk to various folks years ago the WHATWG always made it easier for me but I see your point.
React: UseCallback vs. UseMemo
Since the only real interactions I've had with this agency is them screwing me over I don't care that much about its efficiency, and I couldn't be more dissatisfied.

On the other hand you are right in that it helps do other stuff that does benefit me, I just don't notice the benefits as much as the harm because the harm is direct and the benefits are societal.
In Indonesia, the city buses stop wherever it likes. In Jakarta though, the city managed bus (TransJakarta) have dedicated bus stop at about ~1km.
What is remarkable? Everyone who recommended it to me didn’t articulate an actual reason. I find this quite often. It was over hyped to me

There’s nothing amazing about people disagreeing, surely?
> In this vein, are there any company's currently selling viable compostable/biodegradable plastics?

That will increase the cost by an unignorable margin and even that, some biodegradable plastics still take a long time (a year or even years) to be gradated.

This is the reason of why things like reusable plates etc is currently the best way to go. That is, when those reusable items actually gets returned.
Your right to post honest reviews
After the depression and the war, we started eating a lot of frozen dinners and other cheap crap. That meant an entire generation just didn't know how to cook anything but subsistence foods.
I wanted to post this earlier but hit the posting limit, so, here it is, with apologies for the delay forced upon me:

Tooling is literally just tools. You can have good ones and bad ones and either use them well or use them poorly. A deployment tool like Capistrano or deploybot is a tool, but so is a shell script that runs rsync the the same way each time it's invoked.

An automated deployment process that involves either zero or minimal human work, (e.g. 'click a button' or 'push to branch X in dvcs') means you get repeatability, and with that comes reliability. How many deploys will be messed up if someone is manually running rsync, because they forgot to exclude some files/dirs, or because they had a trailing slash in a path and things got put 1 directory level too deep?

For DB migrations in particular, I think you're alluding to not using a language/framework/model based migration (e.g. `rails db:migrate`) but instead to use just plain SQL. The difference for me here is whether you're suggesting they literally run the SQL required by hand (e.g. remembering/deducing which migration is required themselves, and either running an SQL file or typing the SQL into an interactive SQL session) or just that plain SQL should be used.

I have positive and negative thoughts about framework/model generated schemas. I think having the model system automatically generate/update schemas based on the model's properties, works fine for a dev environment, but for anything like testing/staging/prod environments, I believe the "best" solution is stored SQL files (preferably in the VCS itself) that are applied automatically by a tool. Those SQL files could be generated as an SQL 'diff' after running the Model generator if you wish, or they could just as easily be hand-written queries. Either way they should be reviewed as with the rest of the code anyway, so their origin is less important than their content.

And yes, I am somewhat "biased" in this: I've written a PHP framework that (amongst other things) will perform model-generated schema changes, and I've written a shell tool (written in shell) that will automatically apply DB migrations and rollbacks from a series of `{up,down}.sql` files.

As explained above, I see the former as a development tool, and the latter as a deployment tool.
Can anyone explain why the Pripyat hospital in the first episode was so dirty and old? It had only been running for about 15 years at the time of the disaster.
>Knowing how advertising manipulates you, and even noticing it in the moment that it's happening, in no way makes it less effective. People who claim that they aren't affected by advertising are incorrect.

Is there any evidence for such a claim? I've heard people say this again and again, but I can't see how this is true based on myself. Sure, I've been guided to a product based on advertisement once in my life, but everything else I've ignored obvious advertisements. I can't say that I haven't been swayed by an advertisement that's masked as a review, but that's divorced from this I think.

>Nobody can just decide not to reward advertising, short of keeping a list of all the advertising you're exposed to (and are you sure you can spot it all?) and refusing to buy any product or service that appears on that list.

But buying something that's advertised doesn't mean you're rewarding the advertisement. If you would buy that product regardless, then even if the advertisement stopped (or never existed) you'd still buy it.
It seems that Huawei is the US hostage in the China-US trade negotiations. I wonder who the US company will be that China will decides to screw over in retaliation?
Can you add extra environ before python executes any code?
Just one 64 bit size field in a 1 billion row table will amount to about 8 GB data for that table.

Edit: Basically what I am looking for is a trade-off between space and performance.
This is ugly
Or the cover of Godel Escher Bach
Because I like the taste of that drink or wanted to try something new.
Building the wheels in a build container and copying in the wheelhouse is a great idea. Thanks for posting this.
IronCurtain V2.0?
It doesn’t really matter if it’s common. It’s not acceptable to do that.
I believe. How many former PLA members in China right now? It is a job. How is it different from someone worked in U.S. Army before? It basically tells that you know nothing about China.
Here is a video of the crash from a dashcam. This is probably the most detailed view of the stages of a plane crash I've ever seen.
https://www.youtube.com/watch?v=dLAvN4IUzoI
Interesting. I've used Emacs for a while and yet I've never heard of this tool. Will definitely check out.
Kubernetes is a reaction to that state of closeness, and was explicitely designed to bring Google’s philosophy (Borg) to the world. Its strong focus on getting outside people involved is the core reason of its existence, so it’s a bit of a special case IMO.
Do you have further details? I mean this could be your server having SSH open and a weak root password, or it could be an exploit which hit Streisand, but we can't tell which ..
The average person is probably less intelligent than the people surrounding you at home and work. Don't underestimate idiocy - though it's probably a combination of both.
True, but that will do a real git clone (which is generally much slower than just downloading a static zip).
> I use Go, it’s useful, but i do so with a bad taste in my mouth: like someone’s stubborn opinions are being forced upon me.

Then why use it? Is there really nothing better?
fair point. I was conflating whatwg spec and html5 (Actually, it's possible they were at one point the same spec - there was some work over the last 5 or so years to stop putting literally everything in a single spec document, unfortunately after a decade of web engine work everything turns into a single amorphous blob)
Governments have a strong say in what is incentivized and what is not through taxation and monetary policy.

Governments have similar competition problems as individuals and companies. If taxes are raised too much, the people with money will take it to other countries with more lenient tax systems.

And unpopular policies will cause other political parties to seize the power from their promoters. Money and advertisement also plays a part in campaigns.

Finally, if you try to extract competition from politics, you get a tyranny.

People on HN likes very much to write comments with the "we as a society" or "we as a species" or "we should do that", but there is really no such we.
What do JOMO and FOMO stand for? I think of FOMO as "Fear of Missing Out", the controversial motivator driving retention for free-to-play games like Fortnite, but that doesn't seem to be correct in this context.
The concern is legit. That's why Huawei is the most audited telecom equipment provider. Also that's why U.S. has hacked into Huawei years ago. I am pretty sure if there is anything, it would have surfaced years ago. In a way, the whole thing has made Huawei more reliable than other provider if you object monitoring from U.S. government.
I'm doing a udemy course that links to freecodecamp articles on medium and I've got to say I'm really happy they are leaving.
Very sorry to rate you down citizen, but let me apologize for what is deemed necessary.

Although, somebody with a drug addiction and children, may benefit from a little oversighted goverment oversight.
Interesting post!

I have one question about terminology though: when you refer to “players“, do you mean all kinds of players or just physical hardware devices like Blu-ray players?

I ask because I haven’t had/observed any issues or defects with colour in software/PC-based desktop serious at all.

Disclaimer: not in the Blu-ray-authoring business.
We shouldn't contrast fossil to nuclear energy but both to renewables.

In other words, stop burning things to get energy, for fossil energy because of the carbon dioxide and for nuclear energy because long-term storage of wastes is an unsolved problem. I am surprised again and again that people propose nuclear energy as a solution to climate change. Don't they know we will come out of the frying pan into the fire with nuclear energy? Enough said.
I read over the page twice, and didn’t see an actual study linked. Does someone have a link to the PDF? And was this actually published in a peer reviewed journal?