skysight-inc/HackerNews huggingface dataset:
Fascinating to learn that the entire concept of dotfiles in Unix was an accidental result of a lazy implementation of hiding the . and .. files in the output of ls.

https://web.archive.org/web/20180827160401/plus.google.com/+...
It's too late to worry.
Verizon will buy video conferencing company BlueJeans for $400M
This is more like if every company reimplemented core-js... worth a little more examination than "large companies write libraries"
22M people have filed jobless claims in one month
Homebrew, Chocolatey, apt, or curl.
Remote Work Tips for Teams from a VP of Engineering
How to reduce bias while hiring software engineers virtually
I guess the name is a pun on "remix".
Outliers don't define the mean though.
Rämä also means "broken" on Finnish
Companion Planting
IMO An open cursor of Change Stream with Aggregation pipeline (for given use-case) in MongoDB is more flexible solution to achieve this functionality.

In addition, it also tracks the history of changes and hence allows the cursor to go back if needed with "resumeToken"

https://docs.mongodb.com/manual/changeStreams/
I'm a big fan of the LT3574 switching regulator[1]. Makes it very easy to split an input supply out to dual rails for op-amps, or just for general regulation. It provides an isolated output without needing optoisolators or a sense winding on the transformer. And since they're flyback converters they can output a voltage above or below the input, allowing for wide variation in the input needed. And in typical LT fashion the datasheet is extremely thorough and well-written. Including a step-by-step design example. And plenty of reference designs. I use the +-12V output one quite a bit for powering op-amps, it lets me make use of the fixed 5V output third channel on my bench supply!

Not the cheapest though, about $7 each in qt1 on DigiKey, but that's rarely an issue at the hobby scale. And the ability to use a cheaper transformer and not need an optoisolator can make it save BOM cost even at large scale production.

[1] https://www.analog.com/media/en/technical-documentation/data...
I was actually good at it vs all of my physics classes. When I'm engaged in a project its fun to do.

Did 2 internships and got a job out of college, still at it 5 years later.
Yeah, unfortunately their hardware is getting increasingly identical. Same sizes, same shapes, same screens, same everything. In the early days of Android smartphones, we had phones with physical keyboards, phones made out of steel instead of glass, and tons of other physical differences. These days they all look the same and they try to make up for it by messing up Android in different ways.
There are even smaller png libs than libpng, try a stripped down stb_image for example. Wouldn't use that for user-supplied images, but since you control them all it should be fine.
Is there a list of languages Cloudflare Workers supports? From what I can tell, it's JS, Rust, C, C++, and now COBOL.

So... no PHP then? Seems like it would be a good fit, no?
If I were a scientist trying to create a deadly virus, China with thousands of volunteers in reeducation camps, would be paradise.
$10k NordLocker Bounty campaign
I've yet to have a good testing experience when using anything more than a trivial database if it has EntityFramework on top. The de facto standard seems to be Sqlite for unit tests, which causes some blocking issues if you have the same database name in two different schemas, or composite primary keys, to use my two most recent examples.
Uhm, probably not the best idea to mix your saas application, with your business website. I would definitely not recommend that.

And i will also echo the other comments, saying that this is definitely overkill. If you're doing a single landing page, jsut go with static html/css. If you need some content management, then either go with a fully fledged CMS or do the hipster thing and compile into static site.
>You don't suddenly get a new bill when someone is let go

The link you provided mentioned that an employer may/will have to pay a higher percentage of unemployment payroll insurance/tax after more former employees collect unemployment. Their rate goes up based on how many employees they lay off.

I realize this isn't exactly what the comment you were applying to was talking about, but I thought it was interesting. I knew there was some reason that employers don't want their ex-employees to receive unemployment.
However, the further down the pyramid you go:

* The more unrealistic the tests generally become (larger % of false positives - tests that fail when they shouldn't - and false negatives - unit tests that simply don't catch bugs at all).

* The less reusable the test infrastructure becomes. Stubbing/mocking individual method calls to the database is an ongoing cost of development whereas building scripts to start the database and shut it down is an investment cost that pays dividends.

On the whole I think the pyramid idea enforces a wrong view that there is a "right" mix of "test levels" across any project. The best mix is determined by the kind of bugs and code you have (integration vs logical) and the kinds of abstractions you need or already have (in general, the worse your abstractions, the higher level you need your tests to be).

A lot of projects are best done with 100% integration tests while others can be done with 100% unit (especially small, self contained, simple-to-interact-with code bases that are 99% about calculations/logical decision making).
Movies and the Magazine Stories That Inspired Them
There are two Spitalfields Markets - one near Shoreditch and one near Hackney (the "New Spitalfields"). This is probably leading to some confusion
ANavy Screwed Up Its $3B Nuclear Missile Sub by Leaving Its Hatch Open (2018)
Real talk though, what are you doing on your phone that actually uses 16GB of memory?
Or reselling it at a loss in 20 years when the Euro inflates.
> C++ does have a standard package manager. It's the system package manager, instead of a language-specific one.

So C++ does not have a standard package manager.

Or are we really going full HN and debating the meaning of the word standard? Even if we are... is there a standard system? For that standard system, is there a standard package manager?
As a businessperson, you can pay full rent on a property you may never be able to reopen, or you can try to keep from being evicted and wait to see what happens later.

If you’re going to fail soon anyway, which I suspect most small businesses are afraid of, you want to minimize your losses.
Real Time Labor Market Estimates: 20.2% unemployment rate [pdf]
Free tickets available: Attend the biggest React conf in the cloud – April 17
Certainly:
Shell: EShell, Term, (inferior) Shell

Repl (these will depend on what language you're using): usually I just run this within a shell, dedicated to the task (Mx rename-buffer) but there are specific shells for this like Python-shell.

Notebook: EIN, can be a pain to set up, requires you to run a notebook server, best done headlessly of course.

Filesystem browser: Neotree is the best I've found but there are other decent ones.

Internet browser: EWW is fine, some sites will better in mobile format, some in simple format if available.

RSS: Elfeed

Spotify: Helm

Have flirted with BitlBee for Discord and WhatsApp but think it is deprecated for the latter.

Most of the above are available with the default install.
Additionally there are modes and such that make life easier like SLIME, MultipleCursors, WindowPurpose etc.
Some settings will need to be fiddled with to get Elfeed updating when you want it to, I mean it's never as simple as installing a package as I'm sure you know, but once up and running it's fantastic.
The problem with hiring freezes (or reduced hiring) is that it creates a bathtub curve in your company. You'll end up with a lot of senior people, a lot of junior people, and a gap in the middle. This is a problem (somewhat recovered by this last decade of hiring) in the US DoD, primarily on the civilian side but also the military side.

In the 90s through the 00s there was a massive reduction in hiring for civil servants. So you had a lot of people who were there from the 80s and early 90s, and then a massive drop. Around 2010 or so they started ramping up hiring again, because they finally acknowledged the need (they had a huge percentage of civil servants who could literally retire at any point). So you ended up with (in some orgs) 30-40% of the staff being able to retire, 30-40% under 28, and the rest spread randomly from the age of about 28-55.

As people retired (biggest loss of personnel before other kinds of attrition), teams were literally losing centuries of experience in a year. The mid-career people were moving into leadership roles, and leaving the junior people to learn the processes and technical work largely on their own.

I saw something similar in private industry as well, but that was due to a preference to hire junior people over experienced people (either the manager wanted people who could be molded or cost).

Sometimes hiring freezes/slowdowns are important. But if your business is healthy, it'll end up backfiring on you more often than not. Even a year or two of this can create problems, though not as dramatic as what the DoD experienced.
GoPro cuts workforce, changes sales strategy
I don't mean testing against the production instance, but rather against an instance configured like the production instance, except for being scaled/sized appropriately for the testing data and workload instead of the production one.

It's also possible to test against live production instances and data itself (mostly useful for performance optimization work and testing), although that's more of an ad-hoc process and some kinds of tests are not possible because the actual data there is arbitrary. Also, those tests, if not used for development, might be better expressed as self-checks done on system start and monitoring systems.
This is not a good use case for react. At all. A landing page should do one thing and one thing well: drive an action. The less distracting interactivity the better. The only thing you want interactive are your CTAs. The overhead of using React, even if using a static site generator, isn’t worth it. Not when you can whip up a simple HTML/CSS page in less time that’s far far easier to build and deploy. Because the faster you get it out, better. The less time between TTFB and full interaction, the better. Otherwise you’re wasting time and ad spend.

And don’t get me wrong, I like React. And the projects have used it on have impressed clients beyond what we could achieve with just using backend HTML templates. But for a landing page that you’re driving paid traffic to? Not a good use case at all.
Dos and Don’ts of Renewals Discount for Selling WordPress Products (Part 1)
No, in 1969, during the Nixon administration, experiments were conducted, and a bill was almost passed to provide guaranteed income to poor people.
I like the idea. It looks like something that could work for me.

Minor rant.

I dislike the install section. It just assumes I already know everything about how to do it. I ran into similar issues when I was trying to setup Kimai. Install instructions basically forced me to spend time hunting down howtos, resolving issues that came up during my attempt ( arrgh ), and later just throw my hands in the air as Kimai installer told me PHP version is too old ( tried XAAMP and WAMP ).

I get that everyone's setup is different. I do. I just think a little more information in that section would be helpful.
Vice Guide to Iran [video]
I was walking down a street in London when you called me to tell me about the diagnosis. I stopped on a street corner (corner of Adeline Place and Bedford Avenue) and talked to you.

Everything I'd seen Lee do and especially some of the last meetings I had with him at work that were so difficult and I kept wondering why he seemed like such a jerk, all that suddenly made horrifying sense.

I felt so awful for my own reaction to him. And guilty.
What I got out of the article was that, in unit tests, you should stub the response of a database query. However, you shouldn't directly assert that some database API method is called, because that is one additional level of coupling.

What I don't understand is, a stub to me is almost the same level of coupling as a mock. Your test setup needs to know about the dependency on what you're stubbing. So when you want to change the interface of the dependency or use a different one, or remove the dependency, your tests have to change.

It's not like you can add a query to an operation that didn't have one previously and the result will magically appear without connecting to a real database. So you have to modify the tests to provide the stub. Seems like a logical contradiction to me.
Delete Facebook – Delete Facebook Account – Delete Facebook Account Now
Actually you didn't. There were many countries that used PAL for TV broadcasts but have 60hz AC.
We're Saying Goodbye to Our Profits for the Next 60 Days: Here's Why
ReSharper – a tool to develop good habits
Sure. And if that had happened two months ago, I would have thought that it signaled good times, too. But in the context of when it happened, the recent run-up looks more like "things aren't going to be as bad as we thought" rather than "things are good".
That makes sense. If you have the army corps of engineers on your side then yeah, those obstacles are overcome.
I don't think so, because there is no way to decide what constitutes perfect rationality.
I've built API powered React sites with almost no consideration for SEO that Google has indexed without issue. My experience has been that as long as the API requests for content are quick Google is happy to wait and index correctly as expected. YMMV obviously.
How would be the company that can sue or grant a license? Commodore has bankrupted (many times)?
What statically typed language lets me define a type as “number between -180 and +180”, or “string which contains only alphanumeric chars”?

I think that would be a great feature but from what I see static typing fails here, too.
A P2P video chat platform powered by WebRTC
OT: wiineeth, your account is shadow banned. I looked through your history and can't really tell why, but you should email hn and ask them to lift the ban, since IMO you don't look like a bad member in a community.
Show HN: Obelisk, Go package and CLI for saving web page as single HTML file
The Problems Facing Data Analytics Experts Today
> People are not going to patronize restaurants and bars as long as the risk of infection remains high.

It's not even that. People's spending habits have and will change drastically (those who still have incomes). And those who were put out of work will be playing financial catch-up once they obtain new employment and are very unlikely to patronize bars, etc at the same rates they used to.

We also have to consider that people who do keep their jobs already are or will likely be supporting family members and friends in need with their excess cash for a while (the cash they would typically spend at the bar, etc).

Additionally, those with jobs who can are going to continue saving their money at higher rates than before (which is currently happening despite the risk of inflation and/or low negative interest rates). At least, this is how I've changed my habits.
I do remember this phenomenon being mentioned quite a few times in my genetics classes. Don’t remember the name, unfortunately. But the logic is fairly obvious:a virus wants you to die just as little as humans want the earth to die.

As I remember it, it probably wouldn’t make much of a difference here. The classic case mentioned were extremely fast & lethal viruses such as Ebola & Marburg: When a virus kills you within two or three days of infection, any small change can easily double that time and thereby gain significantly better chances of transmission. But for Covid (and, before that, HIV) the infectious period is pretty long already and any improvements would matter less in relative terms.
Writing getters and setters is harmf... - okay, I will stop before things escalate in here!
I work remotely in the Midwest. I'm paid well, but I'm definitely not too far off from my physical engineering peers.
>>Thank you, next.

So have you run a business where you had to hire employees?
https://news.ycombinator.com/item?id=22850657
Ask HN: UI for editing YAML/JSON backed by version control
Is there an existing service that exposes a web UI to guide folks editing a JSON or YAML configuration according to some schema? It should store each edited file with full audit/revision history (or even better, just be backed by git).

The goal is to make it easier for non-technical folks to safely editing config files at a higher level while retaining the benefits of version control systems.

Edit: they shouldn't have to know they're editing YAML or JSON. The ideal would be the equivalent of a GUI SQL query builder but for config files.
Sounds like a great vector for malware.
How to Make Miso
Single-page apps (SPAs) using client-side rendering (CSR) like React do get indexed by Google, it's just not instant. Depending on how long it takes for the content to load, the Googlebot might not be able to figure out the correct on-page SEO.

If SEO is a critical requirement, I'd recommend either server-side rendering (SSR) through a framework like Next.js or completely static sites through whatever framework you prefer (Next.js, Gatsby, 11ty, Hugo, Jekyll, etc, etc).
Hm. May be off-topic by now. Incrementing an int is going to work the same on the same hardware, forever. Nothing the compile has any say in.
Agreed, I like their website a lot but don’t like them trying to sell houses
The only thing in the world worse than going on a cruise that I can think of, is going on a cruise with the coronavirus.
I agree, and that might be the most valuable thing about frameworks like Meteor. It provides a curated developer experience, where most of these common features and integrations are solved.

They tend to have far superior documentation than any ad-hoc approach, making it more suitable for teams. And a whole community that continues to debug, improve, and maintain it.

Well, I'm with you in the search for such a framework!
I'm seeing 714kb of data loaded over 924ms.

Not as small as possible, but I don't think this really qualifies as bloat.

Imo the benefits of using React boilerplate for a landing page would be:
- Quick to set up / customize (faster than starting from scratch in vanilla js, anyway)
- Flexible. Allows devs to quickly pivot the landing page into a "landing page + [whatever]" if needed

If pure speed to load is your endgoal, then go with a static page. However, I think a vast majority of users won't notice and/or care about the small difference in speed or "bloat".

I guess to flip the question, what's the benefit of using a static HTML file over React, other than a 10kb footprint?
Another Softbank great idea.
There's a related thread about the "discovery" of the source of the Terminator COBOL from a few days ago--and the original author is still alive and well and programming mostly in CUDA/C++, Erlang and Elm according to his Twitter.

https://news.ycombinator.com/item?id=22857531
This is an analysis of the viral genome. The only thing that “came out of China” here is the virus itself.
You can use server-rendered React. You get the benefit of having components without the cost of downloading React on the frontend (unless you have something interactive). This is what NextJS does.
A map to connect with other humans
When it comes to installing stuff like this, Docker is your friend.
The advantage of the approach described in the article is that there's less work to do at startup time. For applications that run on end-users' machines, we should do whatever we can to minimze work done at startup, getting it as close as possible to just mapping a big blob into memory and jumping to the code that does the real work of the program.
I think it's because many British people culturally don't value food much. Supermarkets are particularly poor. You need to go out of your way to get nice things.

It may not be as bad as it was in the 90s, but I still find nicer stuff in supermarkets in Spain, France, Germany.

Of course I'm not usually shopping at the equivalent of Tescos on the outskirts of town when I visit a supermarket on the continent, but I'm not exactly searching hard either.

Food in London is great, and varied. I don't much enjoy most Asian food, but London has a lot of it, in a way that e.g. Paris isn't as good at. OTOH I've had a much better hit rate, and at cheaper prices, in Barcelona for great food in restaurants, ethnicity aside.
I'm mourning on two graves every time I'm tuning my Org-mode workflow. First, that Emacs had to have its own language so I can't take my code and run it in an up-to-date and stable vm embedded in an Android app. Second, that additions and modifications to Org-mode tend to use Emacs' text juggling here and there instead of a higher-level Org API and string functions—so even if I had an embedded Elisp, I'd need to implement half of Emacs.

Emacs' flirt with Guile promised to mend one of those ailments—especially considering how on my oldish machine Emacs' GC hiccups every few seconds when just scrolling through an outline, and Emacs internals don't seem to get lots of low-level development these days (understandably, but still). Alas, that hope now has a grave of its own.
PostgreSQL does offer insights into the plan. Just put EXPLAIN before your query.
Been missing this for 20 years.
I like the simple implementation. Jira is ubiquitous but has gotten really heavy over the last few years and moving through is really clunky. So I think I'll try this out the next chance I get.
A good compromise is you write an in-memory version of the dependency and the real version.

You write a comprehensive test of integration tests against the real object.

You then set it up so those same tests can run both the in-memory and real version.

Any differences should show up for the interactions you have specified, and tests should fail.

You can write sociable unit tests against the in-memory version, knowing it matches the same behaviour as closely as you have specified in the tests.
Kimberly Ryan – Facebook Search
My mom (~75) got an S8+ last year. She had some prior smartphone experience with an old iPhone 4S but not as her primary phone.

First day she got the S8 I set it up for her and showed her how to make calls and send text messages. Next day I got an MMS with a picture from the garden, she'd figured that out on her own.

Mainly I think things are just different, some things are easier on Android, some on iOS and vice versa.
And the main cost of this (questionable IMO) benefit is losing consistency, which is losing any change to DB not coming from the calling app. You haven't mentioned this cost anywhere.
A local pub near me is giving away their beer, I think a lot will as it will go bad otherwise.
Last year's PC 64k was amazing

https://www.pouet.net/prod.php?which=81021
https://www.pouet.net/prod.php?which=81015
https://www.pouet.net/prod.php?which=80996
We've known for a long time that CQ and HCQ are generally safe as they're given as antimalarials. Heart arrhythmias are certainly a concern for long term use (such as in lupus), or for people with an existing heart condition.

Based on all the papers I've consumed, I think it is likely that CQ/HCQ will reduce the length that a normal, healthy adult will be contagious and that it is probably worth giving as a prophylaxis or early on in an infection to slow down the spread of the disease (going from 14 days of contagiousness is much worse than 4 days of contagiousness). But it is highly unlikely that this is some sort of panacea for later stages of the infection or in older adults.