skysight-inc/HackerNews huggingface dataset:
I started a project in Vue and strongly regret it. At some point I would like to switch to React.

The biggest reason is that React works properly with Typescript. Vue can't type check anything in your templates, you can't type check Vuex (its state management system), you can't type check injected dependencies. Everything is strings. This means you'll spend a lot more time chasing down runtime errors and writing tests than with React. A lot more time.

Other differences:

* React doesn't have events, but frankly you should not use them in Vue either - use callbacks instead.

* CSS has to go in a separate file in React. That is a little annoying to be honest.

* React has an API split between traditional class-based components and function-based components ("Hooks"). They say to use Hooks in new code but I've seen some things that are really awkward to do with Hooks. Still you can just use class-based components if you like (same as with Vue).

* The React NPM package has something like 5 dependencies. Vue has something like 1000. It's basically impossible to avoid the NPM insanity if you use Vue.

* React has better documentation. Not that Vue's is bad, it's just not as extensive as React's.

* React is way more popular. Easier to hire people to work on it, bigger community to get help from etc.

* React has better tool support. Everything supports JSX/TSX. Not many things support .vue files. For example if you define a type in a .vue file you can't actually import it from any other Typescript files. Quite annoying.

There are probably other things I've forgotten. If you're using the class-based React approach then yeah they are quite similar; React is just much better engineered. If you are using React Hooks then it is quite a different approach to Vue.
Android phones aren’t supported long enough for their OEMs to have to deal with widespread battery degradation.
It wasn't nearly so easy. Dan hand-scraped in several surfaces on the lathe; for example the headstock, to get the axis parallel to the ways, and so on.
I was hoping to spot a Roach.
Why not just version them?
Both you and the article recommend not to run ViolentMonkey on Firefox. Why?
Pure Virtual C++2020 Conference
Thank you. I will have a look
I’m using one to speed up YouTube videos by 2 by default [1], which saves me quite some time.

1. https://webapps.stackexchange.com/a/136744
Cyclogyro images

https://en.m.wikipedia.org/wiki/Cyclogyro

http://discaircraft.greyfalcon.us/Rohrbach%20Cyclogyro.htm

https://www.pinterest.co.uk/pin/299278337722455798/
> The 2% number is 2% of people who have bad symptoms die.

I don't believe that's true. In countries such as Spain, right now there are about 80k confirmed recoveries and 19k deaths among a universe of 182k confirmed cases.
How many young people living there do you think want to get a job in a coal mine?
I don't think there is a need for redacting crap, and shit or fuck neither for that matter. It's not like we did not recognize these words anyway. So we fully get their intent and their meaning and we are just decorating their writing or their sound. I don't get the point.

If they are deemed offensive, TVs and newsletters should avoid their use and formulate differently in the first place.
> What is meant by "portable code"? Should it refer only to code that should theoretically be usable on all imaginable implementations, or should it be expanded to include code which may not be accepted by all implementations, but which would have an unambiguous meaning on all implementations that accept it?

That's a good question. I'm not sure I know. I could hazard a guess at what would be "best", but I'm not particularly confident in my thoughts on the matter at this time. As long as how that is handled is thoughtful, practical, consistent, and well-established, though, I think we're much more than halfway to the right answer.

> Historically, if there was some action or construct that different implementations would process in different ways that were well suited to their target platforms and purposes, but were incompatible with each other, the Standard would simply regard such an action as invoking Undefined Behavior, so as to avoid requiring that any implementations change in a way that would break existing code.

If I understand correctly, that would actually be "implementation-defined", not "undefined".

> a directive demanding that "long" be 32 bits would provide a clear path for the implementation to meet its customers' needs

There are size-specific integer types specified in the C99 standard (e.g. `uint32_t`). I use those, except in the most trivial cases (e.g. `int main()`), and limit myself to those size-specific integer types that are "guaranteed" by the standard.
Wiki said there have been 14 deaths so far, most recently just 3 days ago.
Yes, which is wonderful. I am wondering what caused the large 2016 spike. Another interesting thing is the effect any behaviour changes are going to have on regular flu numbers. It's already looking to have a big effect in then southern hemisphere.
Without reading the article: any kind of blacklisting is considered harmful in security.
As a fellow workflow efficiency nerd.. I salute you. Would love to learn about your manual workflows sometime.
Aaaa
aaa
Aaaaaa
aaaa
You do that with human annotators.

“Annotator agreement” is a measure of confidence in the correctness of labels. And you should always keep an eye out for how these are handled, when reading papers that present a dataset.

Saying we should start doing model agreement is a really good idea imho.
Tools: A Mathematical Sketch and Model Book (1941)
We need the Ethereum Naming System (ENS) as soon as possible.

Domain names will be one of the first major applications of global consensus algorithms.

https://ens.domains/
There aren't many hospitals that have run out of beds, but that's not the issue.

Many have had to resort to inferior alternatives for PPE as primary supplies have run out and global shortages have made them impossible to restock. The price of melt-blown non-woven fabric, the bottleneck in the production of N95 masks, has increased 10x as the machines to produce more take months to build. In countries like the US, people were initially told not to wear face masks so as to preserve the supply for hospital use; while the decision was not irrational, those countries where face mask usage by the general population was widespread saw much lower infection rates, and while the US has changed course it is still quite probable that if people had masks from the get go we'd be better off.

The shortage of ventilators has required rationing - ie where a patient would normally be put on a ventilator when they had much more mild symptoms (and better odds of survival) they are now delayed until the disease has further progressed. Luckily ventillators from less affected areas have been moved to worse hit ones which has taken the edge off the shortage to a degree.

Testing kits have been an extreme limitation throughout the outbreak. Their low availability meant it was difficult to trace contacts early on, major transport hubs like airports did not have adequate access to screen likely carriers until the disease had already reached most countries, and even now millions of perfectly healthy people are living in fear as the tests which would tell them they'll be fine are reserved for those showing symptoms.

While it has been pushed further than at any point in living memory, the US health system did not collapse; the outbreak has remained within a manageable range. This is true only because of massive measures taken to slow down the outbreak. Millions of people are in lockdown and huge sections of the economy have been either de jure or de facto shut down, which has already evaporated trillions of dollars in wealth, and no price can be put on the lives that have been lost as a result of avoidable infections and inferior medical care. If we were prepared, we wouldn't have had to take those emergency measures to keep the infection rate low enough for the healthcare system to survive.
Yeah it looks like it unfortunately. I haven't found a less cumbersome way to get around region locks, aside from creating a new Apple ID, but I'll keep searching.
Tangentially, I had to argue on a very popular Amiga forum that a guy that ported some GPL licensed software to the system should also release the source he built his binaries from, all while several users were openly mocking me for even suggesting it. It wasn't a piracy friendly forum either. They'd vigilantly delete links that could lead you to 35 year old Kickstart ROM images, and merely suggesting that someone download a cracked copy of some game they already owned was frowned upon. It can be a very strange community depending on where you look.

That said, I don't mean to say that I think the licensing terms of this project are unfair. It seems reasonable if you believe you owe a lot of your work to someone else that you want it to generate some public good that will benefit everybody.
The machine definitely looks tempting, but based on the mostly failed attempts by Ars Technica to run Linux on it, I had stopped looking at it. But perhaps the kernels they used were too old. Still, for that price, I would expect it to work without issues, as I really would buy it as a Linux machine. How is your experience, Ars had problems with the fans running too high and the battery not lasting as long as it should?
Think this is something that fails Paul Bucheit's infamous "why won't Google just copy you?" test.
Show HN: Synaptic – How gaming changed in lockdown
It depends on whether you're talking about an actual whole new, radically different language or something that is essentially C "with improvements". My point is not that C "with improvements" is the ideal approach, only that (at this time, for almost purely social reasons) I don't think C is really subject to replacement except by something that allows you to mix standard C and the "new language" because, apart from specific improvements, they are the same language.

This might come with huge drawbacks, but it still seems like the only socially acceptable way to fully replace C at this time; make it so you can replace it one line of code at a time in existing projects.
I’ve written extensive user scripts to improve inferior web interfaces of tools that we use for work. My two biggest ones are for a work tracker and a support system. The support system one especially is considered indispensable by the support staff and almost everyone else that ever interacts with it. (Why not just change support system?—you may ask. There were certain features that provided the concrete reason for staying with that one. And in bigger businesses you often don’t have the flexibility to choose different things anyway.)

A fair fraction of the user scripting is actually just stylesheets, and indeed I started out with just user stylesheets. It’s amazing what you can do with such stylesheets. You can reduce borders, margin and spacing, reorder sections with flexbox and/or grid layout, hide irrelevant functionality or data fields that you never use but the tool doesn’t let you hide, emphasise details that are important to you, reduce the need for scrolling (more efficient layout is routinely able to make things 30–50% shorter without feeling in any way cramped, because many layouts are simply unnecessarily wasteful of space), make sidebars sticky to save scrolling, increase the size of elements and popups that are inexplicably small with forced scrolling, and loads more.

And that’s just the styles part. Add scripting and you can do things like set the document title because the system just sets “AppName” or “Manage Request”; automatically click on “load more” links; restructure content for better consumption; in history streams collapse automated things with a single line summary, or bulky tables of the fields that changed with more compact representation; highlight things differently based on the result of some function on the element (e.g. who wrote it), change how times are presented (e.g. replace an absolute timestamp with absolute and relative, plus showing other timezones that could be relevant in a tooltip); add a button to copy the ID or link for an item; and much more that I haven’t even thought of yet.

My user scripts are readily configurable: each feature can be turned on or off independently, since a few of the features some people like and others don’t.

I’ve thought and said before that this should be a plausible business: forced to use a web app that’s slowing you down? Hire me and I’ll make it easier and faster for you to use. I guarantee improved happiness and at least some productivity boost, and enormous productivity boosts are possible, like orders of magnitude in some cases, by better information presentation and automating arduous human-driven tasks.

There’s always the danger that the app will change underneath you, but this isn’t often a problem.

If you’re interested in this idea and have any web apps that you might like help with making a user script to improve, email me at userscripts@chrismorgan.info.
you'll see a spike in the overall mortality for a region.

If you look at the mortality figures from the UK (published by the ONS) you can clearly see a peak, compared to the average range for that week over the last (10?) years.

That peak matches the shape of the numbers of victims of covid (the number is higher because nursing homes are horribly affected)
No, but some googling I found something looking very similar [1].

[1]: https://www.youtube.com/watch?v=XV1qTigUkR8
It's not a finished product, I'm still trying out different approaches with a prototype, but wanted to get some feedback about the concept.
Practically, the fastest and easiest way would be to turn a good cylinder and measure the diameter at several points (or roll on a surface plane) to make sure it's not tapered, because the face will sit square to the sides even if the axis cutting the face is concave.

More fundamentally though, you can use a similar method -- start with a surface plate, and make three almost-90-degree right angles. Label them A, B, and C.

Scrape A and B so they perfectly mate with each other while they sit flat on the surface plate. They might be something like 89 degrees and 91 degrees, so scrape C to be a copy of B, and then mate it with B. From that you can tell if they're both acute or obtuse, do the correction, and repeat.
If the number of deaths is overcounted (it might be, or it might be undercounted, or it might be overcounted in some places and undercounted in others), and the total number of cases is undercounted (it is; it's just a matter of how far we keep adjusting - we can't gain confidence until we have representative serological surveys), then the fatality rate (and thus almost certainly the mortality rate) is also overestimated.

I don't know if that is "discounting the severity", but so far we've watched the CFR go from the announcement at the WHO of 3.4% to paper after paper finding below 1% (sometimes far below). I don't think that these researchers are discounting the severity, I think they're doing the best they can with limited data.
Thanks, I grabbed the wrong column from my data. Either way that’s half the flu total over the same season. My point is that it isn’t unprecedented load, it’s just all at once — and additive.
Or it is related to initial viral load, and getting it through the air from the ventilation systems on a ship gives low viral load.

Otoh, maybe asymptomatic cases also don't build up immunity so shouldn't really be counted as cases.
Dutch testing policy is acknowledged by national bodies to not be representative at all. Moreover, so is our death rate.

We have a lot of hidden deaths of elderly people who decide not to go through the trauma of an ICU stint and instead decide to die at home.

I don't recall exact numbers but think it was estimated the true death toll is about 50 to 100 percent higher.
Yes, yes. Tho I guess it totally depends on your definition of leadership. IMO the handling has been pretty average.

I could make a list, but I won't. Instead I'll focus on the positives and note that the one commendable thing that the federal government has done in this crisis is to reach deep into their mothballed hip-pocket and squeeze out a few billion pineapples.

I fully appreciate how hard that must have been, given their fixation on 'the black'. And all with only half a whinge.
Show HN: Gush – Find writing inspiration and share poetry with insta-worthy pics
Try:

Don't encode your machine-to-machine protocol as human-readable strings, leading to things like declaring machine-readable identifiers to be case-insensitive when only the humans need this, not the machines.
April Open Source Security Vulnerabilities Snapshot
I couldn't easily determine, but they seem a for-profit company. Do you know what their business model is?
A while back I filed an issue on the MSVC std::vector implementation as the behaviour of a weird corner case differed from GCC/Clang.

The reply I got from STL himself was fantastic, pointing out that it was [paraphrasing here] a wart in the spec, and that neither were actually incorrect.

To my lasting regret, I didn't keep an ahem offsite backup of some of those corp emails. Hence I can't recall the exact details.
Ask Che Guevara?
Pretty Easy Privacy: email privacy by default
Some numpty awa an nicked ma limbo stick oot the shed. How low can ye go...
I don't think it's actually possible to do that. You would have to be able to know 100% of the side effects of every possible configuration of software and attached(USB) peripherals and their potential full future power draw _before_ your machine starts anything.
Whenever reading about these kind of horror stories, I feel so lucky that we have the GDPR in europe.

AFAIK under GDPR it would be imposssible to share those data without explicit, free, informed consent of all affected persons [1]. Even if shared, you have a right to information with whom the data was shared (and for which purpose) and a right for demanding erasure.

[1] https://en.wikipedia.org/wiki/General_Data_Protection_Regula...
I would caution about taking dutch death numbers as truth. We have an acknowledged deflated death number. Because it states only confirmed cases, whereas we have a large number of home deaths (elderly deciding not to go through ICU traima) that are not tested and hence do not count.
What I find most interesting about this bugfix is simply how terrible of a source Wikipedia is and, at the same time, how valuable professional insight can be (e.g. someone that knows what they're talking about). And to add insult to injury, someone quickly edited Wikipedia (for the "street cred" I'm sure):

> The original paper contained errors for computing the table of pattern shifts which was corrected by Wojciech Rytter in 1980 [1]

But that's still actually wrong. Computing the table was not even discussed in the "original paper" -- see the papers linked by @oefrha in this thread. They're two different 1977 papers!

[1] https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-sea...
It's not a non-sequitur, the commenter said they didn't think COVID-19 deaths, mass shooting deaths, and 9/11 deaths should be reported on prominently. This seems like an astonishing statement, hence the question!
A good old capitalist scheme for profit that's also compromised by nation state spycraft!
Thanks for sharing. Best wishes in exploring your newfound heritage.
Sure, we wanted Stripe to handle the taxes like Paddle does. Instead, Stripe just asks you to figure that out yourself or contract with another company through a complicated integration.
Or giving that appearance while they wait it out?
The Ubuntu AWS Rolling Kernel
And today we have so called Jews (meaningless descriptor from an ethnic point of view in respect to Eastern Europeans) advising Trump how to make life hell for other minorities. Ie Miller and Kushner and the rest of trump’s Eastern European “advisers”. https://www.nature.com/articles/ncomms3543
A laptop user should either buy an appropriate stand (I have [1]) and keyboard and mouse, or a monitor. Or both.

This is so essential to a reasonable posture that it's essentially required by workplace safety regulations in Europe. (In other words, in Europe your employer should buy these things, including for working at home.)

[1] https://www.therooststand.com/
Orbits can be quite unstable, for example read (one theory) or the early dynamics of the solar system: https://en.wikipedia.org/wiki/Nice_model
I like Hide Likes, I've done similar things with Stylus on some sites (e.g. HN where I hide the points of my own comments).
Government doesn't rule out forcing Australians to download COVID-19 tracing app
> I just wanted to take a moment and share with the HN community that IRC is definitely very alive and kicking!

Yes IRC has an impressive list of servers, clients and networks built up over the last 3-4 decades.

Outside the major hubs (freenode) and FOSS channels though, actual usage seems to be going down.

IRC is no longer the “default” for chat, like it used to be.

And I say that as someone heavily invested in IRC, operating an IRC-network for almost 2 decades.
Ask HN: How to start on the path of learning Quantam Physics?
Let's say that you have a basic understanding of college level Mathematics and Physics. And you would like to start learning Quantam Physics. You are not looking for short cuts. You are ready to put in years, basically learning in the hard way.

What would be the first steps?
How 'bout a little bit of both? Imagine the past year of US corporate simpering in regard to Chinese interests - but across the entire .com domain. Everyone better make sure they're using the CCP approved South China Sea maps, yes - it would get that silly.
The pro rata was never guaranteed anyways, isn't the the nature of a pro rata? It's an option to act.
> there's just nothing out there that pays as well

Tech pay will flatten out/drop in the next decade.

Skill requirements are diverging. Tech skills are being commoditized by influential, huge, monopolistic companies. There is no licensing body to keep supply in check (like doctors, lawyers do) and there isn't one likely to be either. Put that together and you have a recipe for excess skill supply, replaceable talent and incredible effort required to switch roles.

One effect of that is lower pay.
You’re right, and actually this is also true in France: the party in power only controls one of the two chambers but not the other.
We're basically on the same page. (Which is nice: I respect you a lot.)
Somebody has experience with it? It is worth signing up?
I love how terse Latin is
Would love Stripe to handle bank transfers as a payment method!

Many of our customers prefer this method over card payments. Then Stripe would fully cover our payment use-case; I'd love to use Stripe alone for payment, analytics and security. Right now we can't :(
If you're going to compare the deaths you need to count them in the same way, and you haven't done so here.
I just switched from Linux to Mac for my company notebook.

No offense, but for me it is like the Mac is taking my hand and guiding me threw a mess. However sometimes I know the way better than the Mac but it is not letting me. It actually makes it really hard to „go my way“.

For example the “only trusted developer program“ can be run . I understand why it makes sense for most people but I want an option to decide it mysel who is to be trusted. To be fair I had to google a bit for a terminal command to fix this but either way it leaves a bitter taste. I fear that I may lose this “fix“

Now back to the battery health. Why not allow being transparent? If most of users want the 100% showing then make it default.

I think that’s what boils it down for me. Having no choice with OS X. Now I know some will say that’s how it is for Mac but do you think it is too much to ask for this (really stable) system to support choices?
The horseshoe theory comes full circle as both the left and the right despise her.
Great message from the CEO.

Did any employees take the offer to leave and get the modified exit package?