skysight-inc/HackerNews huggingface dataset:
I think a good analogy may be tests vs type systems, especially if you think about new vs old type systems.

Traditional deployments are just like traditional unit tests. All imperative, easy enough to work with, all useful, but if you don’t have good discipline it’s still really easy to sneak past them (ie, writing a test that doesn’t really test anything).

Some traditional DSLs like Puppet are like the type system in a language like C. It wants to help you declare invariants and validate them statically, but it kind of just sucks at it, and you still need a lot of discipline. And now you also need to be aware of your type system pitfalls. (Still better than no type system, though.)

I think what people want out of DSLs (and what others have mentioned in this thread) is something like a high-end modern type system like Idris: the ability to put useful, sensible invariants into your scripts and have them usefully validated. Now, like Idris, we probably won’t reach Nirvana on that for a while. (Stateful databases can throw a wrench in things, for example.) But for a lot of tasks, I think we are starting to know enough in general programming language theory as well as systems design that, as a culture, we can solve 80% of these problems with a really high level of reliability soon.
Deaths are not instantaneous, add exponential growth and it taking up to 9 weeks from infection to death and it’s really deceptive. All deaths tell you is how many people where infected weeks ago.

Just look at the lag in China’s rate of infections vs deaths. They had 22 deaths on March 8th and 40 new infections. Further, new cases drops off vastly faster than infections with the sickest talking longer to get better and staying at risk of death for weeks.
I absolutely agree that panic has only narrow uses.
And here I am, opening Chrome just so I can join audio in Zoom conference. For some reason it says "Your browser does not support using the computer’s Audio device" and recommends Chrome.

p.s. Discord has no problems with my audio
There is a study here of virus stability on dry surfaces: https://www.nejm.org/doi/10.1056/NEJMc2004973
Oh damn. Thank you!
Day in the Life of a Software Entrepreneur
Okay, well I'll keep calling it a command line to avoid snobs like you. Thanks for the tip!
The 12" Macbook is probably your best bet size and weight-wise, but it is now a bit outdated and definitely overpriced within Apple's lineup itself (Given the MBA has a 10th gen processor, better keyboard and is $300 cheaper than the macbook now)
If you look at Santorini for example, all of the revenue of locals is from tourism. Actually many of the people don't have jobs during winter, so they have to close the restaurants and the hotels when they are out of season.
As usual, a great write up. I think one nuance that is important is:

> Does letting a single influenza virus through mean you will get infected? If so, any reduction short of 100% is useless. I have a vague sense that this isn’t true; your immune system can fight off most viruses, and the fewer you get, the better the chance it will win. Also, even respirators don’t claim to reduce particle load by more than 99% or so, and those work, so it can’t be that literally a single virus will get you

I was speaking with an ER doctor yesterday who said that aside from comorbities and age, the single biggest predictor of how severe a case may be is the viral load exposure. The reasons that N95 respirators are so important in a hospital setting is that when a dr or nurse are continuously exposed to the virus, those deltas in performance might mean they pstill get sick, but it’s mild and back to work in two weeks vs ending up in the hospital for a month.
I mainly agree with this. Companies living paycheck to paycheck should sell equity. The US government should set aside money to buy into these new equity offerings.

For non-public and small business there can be funds set aside to help them.

And then yes, simply increase unemployment distributions for the time bring to 80% previous income for a couple months.
Scientists just discovered a new vulnerability in Antarctic ice sheet
The MacBook air is only 1.3kg. And it really doesn't take up a lot of space. No more than an A4 notebook. If you're keeping it in a bag, then I think it ought to be small enough.
Like a saying, don't bail out corporations so shareholders learn. Bail out people so they can can quickly start new businesses.
A Kubernetes-Native Distribution of Cloud Foundry
Bailouts not not won't effect the long term size of the industry.
By citing Ionnides you reveal yourself to be not worth taking seriously in this matter.

What he writes is not just eccentric, it makes literally no sense whatsoever (apart from the call for random sampling, I also don't get why that is not happening).

There are at least two things in there that would strike anyone with half a brain as grievous errors. Given Ionnides meta research pedigree Hanlon's razor does probably not apply.
Please...

> Raising the concern about undocumented immigrants inhibiting our recovery effort is naïvely misinformed at best and a dogwhistle for encouraging discriminatory behavior at worst.

This type of comment is really unproductive.

OPs comment is easily read as the opposite of what you're suggesting. Again, this is easily pro immigration/healthcare for all.

This isn't the racist you're looking for.
Solar system acquired current configuration not long after its formation
Good advice, I also used to use PlaidML on my MacBook and enjoyed modest speedups. Eventually I bought a System76 laptop with a 1070 GPU.
Nature will not help us against Covid-19 in the American Spring
No no no. No!

Don't take it from me. Take it from Drew here:

https://drewdevault.com/rants/2020/02/18/Fucking-laptops.htm...

As he says:
> The best laptop ever made is the ThinkPad X200

In these sad deprived days, coding means typing text. For text, you need a good keyboard.

And Lenovo made the best keyboards in laptops, later than anyone else... until they went chiclet. As chiclets go, Lenovo's are good, but they're still chiclets and chiclet keyboards are inferior.

Trackpads are large, hard to be very accurate, and you accidentally hit them while typing. All you need is a Trackpoint.

And if you're some kind of current-kit fetishist, or some poor sucker working in Javascript or worse still some Electron abomination, then you can stick a new motherboard in it for your hideous bloatware to get the CPU cycles it needs to pointlessly burn.

https://hackaday.com/2018/03/12/new-guts-make-old-thinkpads-...
just buy VTI. No use in speculating when VTI alone will go buy 50% to reach the previous highs.
What Is BI Intelligence?
This is a very short sighted view. Police forces cannot maintain order in the event of massive unrest and the best way to prevent this is to keep people above the poverty line and the death rates low. Desperation leads to upheaval.
And of course, they avoid paying taxes by sailing under other countries' flags
If you guys are handing out bailouts I'd like one too. I don't pay any taxes in the US and I don't do anything particularly useful. I can guarantee that absolutely zero US jobs will be saved by bailing me out. I am not bankrupt and I don't need the money. I think I'd therefore be an excellent candidate to receive a bailout. Let's say five billion should be sufficient.
This seems really cool. What could it be used for though?
We Started Putting Unpopular Assets in Memory
Close libraries now, plead library chiefs as 'terrified' London staff walk out
Some minor typos

"to fast" -> "too fast"

"Infection Rate" -> "Infection Ratio" ??? I'm not sure about this, but rate is somewhat related to velocity instead of the % of the population. [Hi form Argentina!]

Perhaps you should say near the top that the initial numbers are from Germany. Most people will assume they are from USA, but I think Germany has a better that ICU/Population than most countries.

I don't understand how the "Duration of Disease" affect the simulation. If I use a stupid large number like 100 days, the spread of the infection is delayed, but it must make the peak higher. You should calculate somewhere

total population * infection ratio * duration of disease = 83M * 70% * 7 days

so you need like 40M night in the ICU in the hospital.

People will blame you for using a Gaussian. It is not 100% accurate, but it is a good enough approximation. The decay is too fast, so it may not fit the initial and final values very well.

I don't like the "Last infected person" specially because the information says "end of the bell curve", but the curve goes forever. My guess is that you are using the day when the number of infected persons in the model is less than 1.
> "Don't let perfect be the enemy of good. "

Battle cry of the conservative party lately. This quote has its place but not in the context of this conversation.
Preact is great by itself, and works very well. All the advantages are true, it's fast and about 10x smaller than React [1]. It's GREAT for super-small interactive apps that need to be fast.

But if you try to use it as a drop-in replacement for React [2] and use a lot of third-party React components, Redux, React Router, then you might run into incompatibilities. React is very large and some components rely on obscure behavior, sometimes bugs. You'll have to do some deep diving and opening PRs in third-party repos, and a lot of those people will even deny those PRs.

But honestly: if you're gonna use third-party stuff, Redux, React Router, all that... is the ~38kb it saves really all that much?

If you're doing startup-style development where number of dependencies don't matter, go with React. If you're aiming for an app with only 30kb or 50kb of gzipped Javascript, maybe try Preact.

I'd it's actually more of a competitor to Svelte or to VanillaJS, not to React.

--

[1] 3750 vs 42623 gzipped for the UMD, last I checked. Used the UMD production dist of both of them. Used React+React-DOM concatenated for measuring React.

[2] Sure, maybe they should drop the compatibility line from their "sales" pitch. It mostly works fine, but it's a hard position for them to be in.
Ask HN: Home exercises during quarantine and isolation
We know how it is. A lot of us can't even get out of the home due to strict restrictions in their countries. I wanted to ask for your bits of advice for home exercises without gym equipment. Maybe you have some blogs or video courses to recommend?
True, but it's also quite a bit more discontinued :(
Not OP, but a quick google returned this one.

https://bioresources.cnr.ncsu.edu/resources/the-effect-of-co...

"Recycled paper is an important raw material to provide sustainability of natural resources and reduce the environmental impact of the use of paper from recycled pulp in the packaging industry. Hence, recycled paper production is higher in terms of volume and utilization. Recycled paper products are used in the packaging industry partially or fully. Such usage leads to the presence of heavy metals due to recycled and chemical additive sources. The present study aims at determining the amounts and also identifying the sources of heavy metals such as Pb, Cd, Zn, Ni, and Cu contained in recycled testliner (TL) and fluting (FLT), which are main products used in production of corrugated cardboard. The metals in the structure of the paper used in packages directly or indirectly in contact with foods are heavy metals. Mean values of 2.6 mg kg-1 Pb (lead), 2.8 mg kg-1 Zn (zinc), 0.094 mg kg-1 Cd (cadmium), 1.8 mg kg-1 Ni (nickel), and 25.4 mg kg-1 Cu (copper) were detected in test liner and fluting papers using inductively coupled plasma optical emission spectrometry (ICP-OES). The main sources of heavy metals are colorants, mainly consisting of conventional paint and pigments as well as spot and Pantone Matching System (PMS) colorants."
iPad Mini (or an iPhone Pro Max) + external or foldable keyboard is a decent compromise if you really value a small form factor.
We cancelled our cleaner, but our babysitter comes more often, specifically to take care of the children while we work. We've got two kids (5 and 10), and while the 10 is not a problem, the 5 absolutely needs guidance in everything or he'll tear the house down. Meanwhile the babysitter lost all her babysitter and restaurant work and can't go to the university, so she's available and thankful to have some work.

She does break our isolation of course, but isolation doesn't have to be perfect quarantine, and we trust her enough to be responsible in her own contacts.
We've seen this coming since at least early February. That's exactly when I started stocking up, buying ~2x amounts of non-perishables (e.g. 2 packages of pasta) instead of waiting for the impending hoarder shitstorm at the very last minute. I forget where I read this recommendation (WHO?), but it has definitely paid off, I haven't been to the store in almost 2 weeks :)
In Blackbeard Pirate Ship Case, Supreme Court Scuttles Copyright Claims
or you can link to the actual MSFT advisory instead of all these articles rewording the same thing: https://portal.msrc.microsoft.com/en-US/security-guidance/ad...
bacteria carrying magnets could generate current could generate power?
I recommend 5BX. It's simple, requires no equipment, doesn't take long and works. It's often looked down on because all sorts of other advanced programs have come along. But if you need something you can do anywhere this is a simple plan and it's well laid out.

https://en.wikipedia.org/wiki/Royal_Canadian_Air_Force_Exerc...

http://fit450.com/HTML/5BX_Intro.html
I've used it as such for extended periods of time during a long working holiday. Not ideal but it worked well enough, and the form factor is very portable indeed. The screen cover keyboard is a must though.
MS OL works surprisingly well with OneDrive on my iPhone. I frequently use this pipeline on my desktop instead of using my USB printer/scanner.

I've also used OL on Windows 10 (desktop) to crop images of documents sent to me from others. The GUI assumes you're using the app on a tablet, but it's workable.

I don't like the recent update to OL which added a carousel of images from my iPhone's stored photos. I use OL exclusively for business, so the carousel showing personal photos is idiocy.
You're not wrong but the M4 is particularly good at follow up shot performance (stock in line with barrel and raised sights to keep the barrel in line with your shoulder will do that) and M14 is particularly terrible about being hard on the user.

If you want to be all proper and sciency about it you should probably compare guns that are on the same general platform (M4/AR10, AK/PSL, G3/G33, list goes on).
TBH thats bollocks as well as the frequent platitude that 'Its already priced in..' or that the professional investors are so sophisticated that normal people don‘t have a chance so why bother
Hopefully if the shareholders loose a lot of money this way, they will demand better governance of the next company that is set up. This, at least, is how it _should_ work.
I guess allowing them to fail could lead to their large derelict vessels littering up the ocean?
Microsoft has been trying to make a good touch screen/desktop OS hybrid since Windows 8. The Surface line has been around since 2012.

The entire idea of the Surface is fundamentally flawed because of three factors - it’s dependence on backwards compatibility with Windows and using x86 processors.

The Chromebook is already a success in education, but it has the opposite problem than the Surface. Google has no clue in how to create an ecosystem. Android on tablets have been a non starter and Chromebooks are still nowhere as capable as iPads.

Android succeeded because Apple refuses to compete on price and everyone needs an phone. A tablet is a luxury product and Apple competes pretty well on price. The $329 iPad is a very good device with a better ecosystem.
I used to have an ASUS EEE PC from about 2010 (I think it was 1215P). It was an incredible machine -- it was cheap for a student, fairly powerful for internet browsing, text editing, and a bit of coding. The battery easily lasted over 6 hours, so forgetting the small charger at home was not even a concern. Lastly, the keyboard was actually decent as well.

I have never really seen many as well-executed machine since (although I have not been looking too hard).
Not only sulphur oxides, particulates as well (see my first quoted link). Particulate matter from combustion is extremely nasty. These floating petri dishes choke everything in their path.

> But those things add cost, and why would a cruise ship company do it if they are not compelled legally and their customers don’t mind?

Because their owners give a shit about the world they're leaving to their children?

Oh, well, I suppose they don't, then, do they?
Develop AWS Lambda with Clojure directly in the browser
> A carbon neutral cruise ship is not too far away.

Have you got some good links? This would be amazing, but sounds extremely unlikely.
Getting started with GraphQL, Apollo and React hooks
A video of the “anti-gravity” hover board, using pulsed DC, similar to what’s used in spacecraft: https://youtu.be/006d36WWyaQ
Naver to Takedown Abusive Comments and Users
Having never used a bidet or water jet, I wonder, is the process the same at public facilities or at work? Do you bring your own soap, towel, etc?

Water tends to spray _stuff_ around. Do those public facilities need extra or more frequent attention?

Does a bidet or water jet change the cleanliness perception of a public or community toilet?

Thanks
enterprise sysadmins are just giant gamers
Must say your comment sounds quite poetic to me.

Sorry for OT/meta.
If we take that the liquor store that tourists shop in is the same liquor store/cafe/plumber that the locals use, then aren't those several layers of "fleecing" just..the regular economic activity for the area?

I can't imagine anyone ever thinking, "gee, good thing the cruise ships dock in Barcelona, otherwise the prices at Carrefour and the supermercados would go back to being astronomical and the garbage collection services would be able to take full advantage of us again"
Why link paywalled article?
The economy of the entire world is at stake and you ask me to define ‘it works’ and for whom...
Spreading the message: Five steps to eliminate coronavirus
Ask HN: Infrastructure setup for relatively easy app?
Hey HN!

We are currently experiencing some issues with our staging environment and would like to set up something to replace it. And in the future we'll also need production environment which will have extra requirements.

There are 3 main infrastructure components:

- Postgres (we need PostGIS extension)
- Redis (we use it as a cache, so data doesn't need to be persisted)
- NodeJS (we have it dockerized already)

Staging Requirements:

- So we can easily push a new version of the NodeJS app (docker image) to be updated from the CI
- So we can easily run migrations/seeds (so far we've been running a docker image in the cloud but instead of starting it we run migration command)

Production Requirements:

- Postgres Backups
- Alerting/monitoring system (we were thinking of prometheus and grafana but happy to hear suggestions)
- Auto scale
- Auto Failover
- Load balancing
- Deployable from CI as well

I have used a bunch of different technologies in the past, but prefer way more to focus on development than infrastructure, so we are looking for something easy to maintain, something that could ideally be transferred between hosting providers. Managed K8S by DigitalOcean seems to be like the good option, but I am not sure I want to pull in the complexity of k8s for a team as small as ours.

What would you do in my situation?

ps. are databases like postgres supposed to be running inside containers and not on bare metal? Isn't performance affected a lot?
It was only filed in July. So we probably have to wait for some sort of response.
Fourteen kilobyte WebAssembly Game in C#
I used to write some code on a 11.6" chromebook years ago. Nowadays the smallest laptop my eyes are comfortable with is 14". Preferably a Thinkpad for the way superior keyboard.
I own two iPads, and I really don't think it is there yet in terms of writing any serious code.
EU raises eyebrows at possible US encryption ban
Yes, of course! Which is why it's a rhetorical question.

Many technologies, I can see how people would want to hack on.

But Kube, to me, is going way down the rabbit hole - a tech to support another tech, to support another tech, to support another tech, to do maybe something at scale, which few will ever do.

I feel as the Kubes is one of those almost entirely arbitrary forms of complexity that pulls our nerdy attention into the netherworld.

I feel lately that tech people are creating a fully on dystopia of total complexity: more than any one individual can grasp in a lifetime, and a situation in which it's nary impossible to know even which direction someone should head to be a 'pragmatic contributor' who also has 'some semblance of a life' without woefully falling behind.

It's one thing to have enthusiasts, it's another to have a situation wherein only kids coding since 18 and running their own 'kube clusters' and 10-layer stacks at home have the chops to do what's necessary.
Bandwidth and processing power are limiting factors. Our department tried to run a large Big Blue Button instance to support a dozen of conferences at the same time, ranging from 10-150 participants, all day long.

The experience says: you need hardware (not virtual), starting from 32 cores and 64GB RAM, it turned out it was not enough, added another machine, then another machine, ... and more.

I can't give more details.
Companies do not exhibit humanity and in many cases are legally beholden to maximize profits. Regulation cannot afford to fail with contemporary companies like it does with individuals. Individuals have humanity to fall back on in most cases.

Also, I wanted to open with the pollution point first because most people associate "pollution" with "CO2 emission" and a cruise ship certainly does not produce a million times more CO2 than a car. Because of this, I feel that it's important to say specific pollutants.
Intel 14nm Rocket Lake-S New Core Architecture, Xe Graphics, PCIe 4.0
There is this popular Schwarzenegger guy in reddit who posted exercise regime for home without equipment just 3 days ago.

https://www.reddit.com/user/GovSchwarzenegger/duplicates/flz...
Have you considered a wearable computer then? https://github.com/andrey-utkin/wearable-computer/wiki
Cronopete – A Linux clone of Time Machine
Over 50 Android Apps for Kids on Google Play Store Caught in Ad Fraud Scheme
I do something a bit different:
I have a Surface Pro, which is OK in its own right. But I don’t develop straight on it. Instead, I spin up a VM on Azure with all my dev tools. I use RDCMan as a RDP client to connect to that, and code there. When at home or office, I dock the surface and have 2 big screens and a nice keyboard. When at a coffee shop, I just use the Surface as-is. If I upgrade my laptop or decide to use my MacBook etc, I just use that to remote into the dev VM instead. My dev environment is agnostic to the screen I use to connect to it. I’ve been doing this 5+ years and wouldn’t go back. I will say I’m more productive with 2 screens, but I routinely worked from coffee shop just fine.
You can buy add on toilet seats with bidet functionality for a couple hundred dollars and they are easy to install. If you can turn a wrench, you can install one. As long as you keep the old seat to put it back on when you move out, you can do it in an apartment even and not risk penalty on move out. I highly recommend everyone get one. The brand I have is BioBidet, but I’m sure most are comparable.
not anymore.
Silicon Valley’s Chance to Step Up for Humanity
Great article! The author (Yuchen Wu) is a master communicator.
I don’t really like Zoom, but I was on a call the other day with 3 other people calling from phones and iPads, all using virtual backgrounds. You don’t need beefy specs to use the feature.