skysight-inc/HackerNews huggingface dataset:
I started with command line text processing repo [1] about three years back. That has a chapter on grep/sed/awk/perl/ruby one-liners along with many other tools. I may convert perl one-liners to a book as well later.

[1] https://github.com/learnbyexample/Command-line-text-processi...
See also, for techniques used on a much earlier console with much tighter constraints:

• https://youtu.be/c-aQvP7CUAI

• https://youtu.be/IehwV2K60r8
Here is something interesting that José Valim says about authentication frameworks: https://dashbit.co/blog/a-new-authentication-solution-for-ph...
Agreed. Both most of our elected officials are neoliberal (dems/Republicans). Economically, neither party is working for the middle class
There will no revolution by the utterly destroyed middle and lower classes lining up to get state handouts from the military to live. I'm sure Rand corporation or some such has detailed operational plans to roll out to deal with these perfectly predictable societal disturbances.
That's pretty much what this blog post is, with just a little bit more PR speak.

And I'm honestly surprised that it is not totally watered down, it's not just PR speak and user blaming, but makes some clear points. The base defense is bad - that it was for less users and contexts before changes nothing - but it at least includes the "we will focus on that now, honestly". That's not bad already.
“ Significance: Among patients with COVID-19, the use of HCQ could significantly shorten TTCR and promote the absorption of pneumonia.”
That's a funny coincidence. Two days ago, I was searching the Web for cars with MFDs after watching a review covering the Porsche Taycan's touchscreen interface, thinking how odd it was that I couldn't find any.
The new v4 update has been plagued by various glitches, performance issues, and bugs (subtitles not working, movies not loading, etc.), as a look at the Github issue page shows: https://github.com/popcorn-official/popcorn-desktop/issues?q...
This list makes me scratch my head... when, ever, would ".google.com" be filtered the same way as ".50million.club" or even "googleads.g.doubleclicj.net"?

I understand the header causes logged reports, no actual policy enforcement, but still... I don't have a good read on their underlying concern here.
Here's an example of a vanilla JS app with good architecture: https://github.com/Rajeev-K/eureka
The concerns are still valid, but yes of course it's a PR battle.
Agree, in the end you just end up creating your own custom framework.
Forgive my ignorance but what's the correlation between expiry and revoking? I'd assume there are several reasons you'd want to revoke a certificate such as it's been compromised. How would it's expiry date help that?
Mine is one of my most treasured possessions and is in daily use.
I had to think for a sec to get this. And this already makes it worse than 3 if statements. Does anyone really find this more readable?
Am I misunderstanding the product, or are the streams not being merged on the server into a single feed?

>To be clear, in a meeting where all of the participants are using Zoom clients, and the meeting is not being recorded, we encrypt all video, audio, screen sharing, and chat content at the sending client, and do not decrypt it at any point before it reaches the receiving clients.

https://blog.zoom.us/wordpress/2020/04/01/facts-around-zoom-...
It reminds me of a common troll:

"If Linux had as many users as Windows 95, it would be just as buggy!"

Never thought I'd see it flipped around like this.
And yet people wonder why HN has a reputation as a community of pedantic dorks.
In California, unemployment benefits are a form of insurance that is paid by the employees of your previous employer (caveat at end). If the company went bankrupt, I'd assume that the costs are spread out among all the employees of all companies in that state. If your employer has more claims, it's employees are charged a higher amount per paycheck.

In the sense of insurance, not claiming unemployment benefits is like laying for insurance and not using it when you have a claim. A personal choice for you to make.

In most cases, you also have to prove you are actively looking for work to get benefits.

However, the recent CARES Act does supplement unemployment benefits from federal taxes.
But again, what was the age group on Diamond Princes? Because it matters, the death rate goes up with age. 5% says the average age was something like 50.
The longer companies hold out on pushing employees onto unemployment and dig into their reserve funds to pay them, the more risk there is that the companies will no longer exist to employ them whenever the country exits lockdown. Very few businesses are exactly well equipped to handle the entire economy being brought to a halt in the first place.
Hang on, any reason why Cloudfare's recent market outperformance will continue?
> The fact that a kevlar vest can stop a bullet does not mean you are protected. In order to be protected in a warzone you need:

> 1. Intel. Nothing can protect you from an aviabomb except you knew it was coming and hid before bomber arrived.

We're talking about bullets and Kevlar vests. That's like saying a vaccines do not protect you from a bomb so vaccines are useless. It's like saying that locking the door is useless because there are thieves who know how to pick locks. Or that putting a seatbelt is useless because a plane can crash down on you. I don't think this is how the world works, nor do I think this is how a human thinks. It's a spectrum with tradeoffs.

Kevlar vests protect you from bullets. You are more protected than someone without a Kevlar vest. Wearing a mask protects you. you are more protected from bullets wearing a protective vest.

I really hope you are trolling. If not, I hope you are in charge of no people. If you are, I hope they have common sense and don't listen to you. If they can't, I hope you don't nobody suffers the consequences of your judgment and logic. I'm at the point I really hope I've been fooled by a chat bot.

All the best.
What has helped me tremendously was upgrading ambient lighting. Position your workplace so that you get plenty of outside light, if possible, and set up downward facing soft lights in your room. The better the ambient light around your screen, the lower the contrast between your screen and everything else you're looking at. For me, it usually also means lower screen brightness, which might help you as well.
Canon is whatever your heart (or in the case of roms, the speedrunning community) declares it to be. I'd previously be arguing for authorial intent, but JK Rowling ruined it for everyone.
Zoom seems to be another example of the repeating pattern we seem to see from web service software: if the product has good UX, people don't care about the technical issues that aren't in their faces. At least, they don't care in any tangible way like "They stop using the product."

Remember when Twitter was incredibly unstable? That was fine when it had only ten thousand users. They had to fix it fast when it had a million. But the thing is: that seems to be viable software practice (rush on features, forget about the robustness and the corner cases) because it keeps working.
Just experienced this with my spouse leaving Google in February. COBRA window was 60 days from last date of employment. We weren't going to go with COBRA until the pandemic expanded to the US, then we paid for two months.
Best path to net zero: Cut short-lived super-pollutants
You have been very wise with your money. The stock market has been over-valued for years and now you have a safety net.
We've had plenty of recessions before and not once has the economy simply been restarted. To use an example, I work on software for a company in the dental field. The circle is:

Nobody is going to the dentist because of Covid -> Dentist stops using my client's services -> Client cancels my project -> I get laid off -> I can't afford to go to the dentist -> Nobody goes to the dentist because they can't afford it.

That story is true for every industry. And it gets worse. In anticipation of the economic storm coming we have stopped all non-essential purchases. Which means a whole lot of businesses are out of revenue. Multiply that across the economy and everything but essentials is grinding to a halt.

The only way out of it, that I see, is the government stepping in and guaranteeing, without a salary cap, unemployment benefits at 80-90% of salary for as long as the crisis lasts. Even then I'm not sure it's enough to fix the actual damage that has happened.
Antibacterial, antifungal, and antiviral effects of 3 essential oil blends(2017)
Could you be more specific? What about this proposed "ideal" scheme is infeasible (specifically the engineering limitations you mentioned)?
In my experience, users do not care about the other 3 points at all. Maybe setup/install but most get around it with 1 or 2 tips via chat.

So your point stands: the real world has proven that 95% of people only care about that single point.
Yeah, that'd be pretty tricky. End-to-end encryption is really easy to implement if you're sending data to only one user. It gets really hard and really slow once you start adding more users.

A simple way would be to encrypt your message with a symmetric key. Then encrypt this symmetric key with your private key, and create a copies of it for each recipient and encrypting it with their public key. So each recipient can decrypt the symmetric key and use that to decrypt the message.

You can probably guess that this gets really messy as you start adding more users. And you need to know the difference between symmetric key encryption and public key encryption.

It's probably better to look at a peer-to-peer solution, or find a more efficient protocol. This is a pretty enlightening StackOverflow post on the subject:

https://security.stackexchange.com/questions/126768/which-pr...
Interesting at first glance, but what is the performance of this? It looks like all cases would have to be evaluated before picking one, so even slower than an if-else-if.
Great resource. I'm wondering whether the examples are your own or copied from across the web?

I just wanted to point out that some of them are a bit outdated, and I belive it'd be nice to maintain this list as a reference with modern approaches.

For example, there's no need to use `appendChild`, because DOM today has a more versatile `append` method.

And `[].forEach.call(cols, function(col) {...}` would look much better and more declarative as `for (const col of cols) { ... }`.

These are just first 2 examples that I noticed.
Did they buy it? As in, was there a “buy now” or “add to shopping cart” or some other similar “Purchase this ebook” link in the transaction?

If so, yes. No matter what the fine print says. The inability to apply first sale doctrine to digital book purchases (not to mention cars, refrigerators, et.al.) is a loophole the publishers are exploiting, not how copyright was supposed to work.
The typical force majeure clauses won't allow commercial tenants to get out of paying office leases.
GNUstep foundation is now close to macOS Catalina compatibility
I don't like it because it's basically wrong, or if I'm being more charitable it's only telling you half the stuff you need to know. Take this page as an example - https://htmldom.dev/select-an-element-or-list-of-elements

Firstly, it doesn't tell the reader that every method of selecting elements listed is available on both a Document and an Element. document.getElementsByClassName selects everything in the page with that class name. Element.getElementsByClassName selects every child of an element with that class name. If you're wrangling a huge page using one is better than the other. Chaining calls is really useful eg document.getElementById('users').getElementsByClassName('admin').[1]

"Select an element by given ID" using getElementById() does select a single element on the page with that ID, which is right, but browsers don't enforce ID uniqueness so you're only getting the first element with that ID. That's a very common gotcha for devs who are new to this. (React would tell you if you've not got a unique key.)

.querySelectorAll() does not return a list of elements. It returns a NodeList, which is different to the HTMLCollection that the other methods return. For a start, NodeLists aren't iterable in the same way as HTMLCollections. You can use forEach but you can't use map. That's going to throw a lot of devs a curve ball.

Worst of all though, it doesn't mention .querySelector() for picking individual elements. Why would you miss that out?

[1] The page that does talk about selecting children (https://htmldom.dev/select-the-children-of-an-element) of an element suggests using an element's childNode array. That's horrible. There could be all manner of strange things in there. Just use an element.querySelector() call.
This is an aside but I wonder how a system that expired copyright based on sales and time would work out. Like copyright on a book expires in 10 years or $100,000 in sales, whichever is first. If the public loves the work so much that it exceeds some arbitrary sales threshold, then it must be of some importance in the popular culture and should be shared more widely.
I remember reading that while I was hospitalised (in Italy, for an entirely unrelated event) during the immediate aftermath of the 9/11 attack.

A very poignant memory.
Nit... "White space" spectrum is where you use the unused TV channels in a particular area. The 600-900 MHz spectrum has no TV in it anymore and and is just regular spectrum that various wireless phone providers have government granted monopolies on. They got exclusive access to that spectrum in return for large financial kickbacks.
I think you can just do:

if (cellA > cellB) return 1;
if (cellA < cellB) return -1;
if (cellA === cellB) return 0;

Why is the switch better?
Or even (less explicit, but shorter code):

if (cellA === cellB) return 0;
return cellA > cellB ? 1 : -1;
Sample size seems small. Is this adequately powered given the effect size?
Some others have asked for an epub version too. I have this article [1] bookmarked, so if it goes well, I'll add epub as well this month. If you know pandoc, you could use the markdown source in the repo to generate a basic version and see if it works with your reader.

[1] https://cmichel.io/how-to-create-beautiful-epub-programming-...
Solution for speeding up the decision-making process for corona infection
Not all codebases are large, and not every site is, or needs to be, enterprise scale. I think HN sometimes forgets that there's an entire web outside of FAANG+ and startup culture that doesn't care about any of that.
To the victors belong the spoils. Previous administrations benefited their friends and future administrations will likely benefit theirs. Don't like it? Vote for good government.
The problem is every dev thinking that every single project has to be resume buzzword compatible and super complex to hide the complexity they're sure is coming. But these requirements really only occur if you're forced into them by working on something in order to make money. The web is more than just the commercial web.
Load a URL on your computer. No accounts, no software. IMO, yes.
So hate to ask this, can you explain this for non-medical spectators? Specifically what TTCR and is "absorption of pneumonia" a good thing (e.g. the body has absorbed the pneumonia and therefore it has gone away) or a bad thing (e.g. the body has absorbed the pneumonia and therefore has "collected" more)?

From Paper:

TTCR: Time to clinical recovery
I am, but how are we suppose to apply if the bank is close and only doing drive-thru?
People don't realize /this/ is literally how XDA is these days. Quite amusing how /r/xdacirclejerk is basically just typical XDA posts instead of you know.. elaborate circlejerking.
And lots of people don't realize how long this will last. They say we're going to reopen in a month, but right now the curve doesn't seem to be bending significantly. We're not going to reopen when there's way more cases, and that's where we're heading.

Also, when we reopen, it will be short term and still pretty locked down. It's absolutely not the end, but a slight reprieve.
Too bad this site doesn't remember your scroll position when you go to a page and hit the back button. For a site promoting vanilla Javascript, it didn't really need to be built with React.
Business models like self-publishing and Kindle Unlimited have worked really well for romance and fantasy novelists who can publish six books a year and have fans who plough through two books a week. They absolutely have not worked for literary novelists, let alone historians, biographers etc. If the "sell copies of books to readers" model dies, it will change the kinds of books that get written. For people who see books as a fungible commodity – any book is about as good as any other – that's fine. For the rest of us, it isn't.
Do you need some framework for this? How about a competent manager instead?
The sample size is 62 and the mortality rates are between 0% and 7% depending primarily on age and co-morbidities. I don't think we can draw any meaningful conclusions from this other than what we already know: seems worth looking into HCQ more.
Thanks for this. After much research I have concluded that your reply here is accurate and my previous reply contained either misleading or wrong information. Your comments about space and high-level excution frames are on point imo. Thanks for taking the time to explain your thinking here, I really appreciate it!

I only care about the execution time for my research purposes. See this Math SE post where I explain this algorithm as a people type algorithm system. Curious for your thoughts?

___
Imagine there is a party with an infinite number of mathematicians at it, and I walk up to my friend with the following instructions:

"every 1 minute, find 1 person at the party who has not been told this message yet, and repeat this message to them"

It's clear that after N minutes, provided these instructions are followed exactly, there will be 2^N people who have heard this message.

I will now describe an algorithm which can solve the boolean satisfiability in N variables in N minutes.

1 - find 2 people at the party, hand one of them a paper that says "True" and another a paper which says "False" and has a boolean expression on it

2 - tell them these instructions "in 1 minute, find 2 people at the party who have not been told this message yet, and repeat this message to them, give 1 of these people your paper but add True to the list, find a new piece of paper and copy over the list + expression from the paper I gave you, but add False to the list"

3 - after N minutes, whoever has a piece of paper in their hands has to compute the solution of the boolean expression (we are assuming since all the people at the party are mathematicians, they can all check this in less than 30 seconds) and if its solvable they have to shout out "ITS SOLVABLE EVERYONE"

Then given any boolean expression involving N variables, I can use this algorithm to solve the boolean satisfiability problem in N minutes and 30 seconds

[1] https://math.stackexchange.com/q/3605352/1417
I agreed with you at first but that argument could also be used to justify malicious behavior- e.g. I'm a fossil fuel executive who knows that fossil fuels are dying so I'm going to delay that as much as possible by using my money to lobby for pro-oil candidates.

Regardless, I think the OP of this thread is not giving Bill as much credit as he deserves- running and funding an international global health effort is not a simple task and I wouldn't be shocked if he was better at handling public health issues than writing code now.
Looks like you structured your own MVC framework?
Did your royalties, as an author, go up accordingly? Or was that money absorbed by the publishers?

Publishers getting richer is not a sign that the system is working as intended.
If one is to believe their blog post (https://blog.zoom.us/wordpress/2020/04/01/facts-around-zoom-...), then they do in fact use end-to-end encryption:

> To be clear, in a meeting where all of the participants are using Zoom clients, and the meeting is not being recorded, we encrypt all video, audio, screen sharing, and chat content at the sending client, and do not decrypt it at any point before it reaches the receiving clients.

The first problem is:

> Zoom currently maintains the key management system for these systems in the cloud.

Obviously, this compromises many of the benefits of e2e encryption. Having said that, it doesn't remove all of the benefits, and it's a (bad) precedent that has been set by other companies (eg. apple) where keys for end-to-end encrypted communication are backed up to the cloud.

The second problem is that Zoom has a second class of "client" called a "Connector" which runs in the cloud, and also has access to the keys for decrypting the stream. I definitely think that when one of these connectors is being used, it is false advertising to show the "e2e encrypted" status. However, there are clear technical reasons why these connectors are needed. Being able to dial into a meeting from an ordinary phone is important functionality that simply cannot support end-to-end encryption.

The interesting section to me is the later paragraph:

> For those who want additional control of their keys, an on-premise solution exists today for the entire meeting infrastructure, and a solution will be available later this year to allow organizations to leverage Zoom’s cloud infrastructure but host the key management system within their environment. Additionally, enterprise customers have the option to run certain versions of our connectors within their own data centers if they would like to manage the decryption and translation process themselves.

In particular, being able to use your own key management system would make this truly end-to-end encrypted by any definition, even if you are still using Zoom's cloud infrastructure.
This isn't a flu. Stop repeating misinformation.
Yeah, not e2e encrypted when it goes through videobridge (as per this article).

I haven't checked, but its possible for 1-to-1 or small meetings they may go full mesh, which would be e2e encrypted - a few platforms do this.

edit: just checked and jitsi is "full mesh" for 2 participants - if you have 3 or more (video) participants, it switches over to SFU.
Automate AsyncAPI Workflows with GitHub Actions
>either Javascript is an intrinsically good language, and you should therefore be able to use it as is, or it is not good, in which case the sane response would be to use it as little as possible.

That's a false dichotomy. There is no such thing as an intrinsically good or bad language, and if the use of frameworks demonstrated the intrinsic flaws of a language, then all web-facing languages would be equally flawed, because no one avoids using frameworks in any of them.

Learning how to write "vanilla" JS (that term really bugs me) and how the DOM actually works is valuable regardless of whether the scale of most modern applications makes it efficient or cost effective to do so.
> In an ideal scenario, we would re-open the ACA enrollment to provide reasonably priced health insurance.

To clarify: ACA enrollment is open for anyone who has been laid off. They don't need to wait until the next enrollment period to get health coverage again.

Making ACA open enrollment for an extended period of time would create a perverse incentive for people to avoid enrolling until they feel like they need it. Counterintuitively, this could decrease ACA enrollment rather than increase it.
> big bad all-present panopticon, or are they incompetent, inexperienced muppets?

Sadly both are possible at the same time in a large well-funded company. If they succeed in getting these contracts from scared governments, they'll be better positioned in the future for more such work. Privacy and freedom "mishaps" will be chalked up to "oh, it was an emergency, we had to do what we had to do."