skysight-inc/HackerNews huggingface dataset:
So many unknown new players, almost all better than Nuance (thus Siri). Hard to believe though that those new companies are approaching Googles accuracy. As much as Google is worth being shunned for eroding privacy, their TTS always feels miles ahead of anything
This isn’t a very nuanced piece.

The glucose control effect is not unexpected. You are telling ICU drs, who spend their lives trying to adjust physiological parameters to keep the sickest patients alive, to do less. This is anathema to their way of operating. Of course adopting more intensive control and then letting it go will not happen at the same pace.
I'm not criticizing the cheatsheet and can see how it can help but if I may point out 2 possible points of confusion for Git novices:

If the conceptual boxes of "stash", "workspace",...,"upstream repo" represent a left-to-right timeline of workflow, having "stash" being on the left of "workspace" is somewhat misleading. A stash point-in-time usage can be thought of in the same vertical time-alignment as "index" or "local repository".

If the conceptual boxes represent a storage model, then stash being a separate isolated box is somewhat misleading. The stashes are actually stored in the "local repository". (E.g. an alternative diagram would show "index" and "stash" as nested boxes inside of "local repository".)

I readily admit that spatially rearranging how "stash" is diagrammed complicates the arrows illustrating the git commands. Therefore, maybe the way the cheatsheet did it is the best compromise.
If you really believe that, you should email the mods and lay out why you think so. That's a bannable offense.
Remembering 10 single letter mappings vs clear variable names sounds onerous.a, b, c, d, e, f, g, h, i, and j vs price, discount, coupon, item_description, item_id, ...
Yeah, people that aren't deep into numerical algorithms often don't appreciate that there is an important reason to have denormals. The people who came up with the scheme weren't dumb, even though it has some limitations/oddities due to the time it was designed that would probably be done today, I think it's a pretty big design success that it has worked as well as it has for as long as it has.
well I went traveling to Europe last year and I came away with the opposite impression. The US is only great if you're in perfect health and rich.
watch out for polonium!
Google can ban youtubers for breaching a threshold of community guidelines.

Apply the same to process to incorrect flagging of copyrighted content. Break the rules, prevent Sony from uploading for a day or two (or some other functionality).

This will never be implemented because there is a symbiosis between a mega content creator and an advertising company.

Sanctioning a producer like Sony would be a sanction against google itself.

I'm afraid the little people will have to suck it up.
Is it ever the other way around. Admin looking to get into devops?
What?

How do i downvote this nonsense. Well done on your bravery by the way.
Even your second version of the comment is too what and not enough why. What comments are worse than no comments. They take up valuable space and become a liability if they're not kept in lock-step with the actual implementation.

As I've matured as a programmer, I've found that commenting everything is actually an anti-pattern. Every line of code is a liability that contributes to maintenance costs, even comments. Just as you should think about every executable line in your source code, you should put the same thought into all non-executable lines. I prefer to comment judiciously and try to write my thought process and anything that's likely to be confusing to help future developers understand the overall approach and intent of the code without trying to lay out the intent of every single line. Lines that are particularly complex get a comment, but anything simple stays uncommented, especially if it's idiomatic for the language.

If, to take your example, the code were:

let cartTotal = products.reduce(0, (total, product) => { total + product.price });

It probably does not need the comment you've listed. The names alone convey intent. If, however, you're were doing something like integer math, you would put a comment to the effect of

// cartTotal is computed in cents to avoid floating point math/rounding
// and must be divided by 100 to get the dollar amount.

That conveys information that is very difficult to extract from the code or the variable names.

I've also realized that, by far, the best comments I can leave are unit tests. They never become incorrect because they're forced to update with the code. When I'm trying to learn a new code base, I always start by running the tests and, if they pass, reading the tests before I read the code they test. There is no better way of understanding what use cases a developer thought were most important than the automated tests s/he felt were necessary. I love that new languages like Rust give developers the ability to combine documentation and tests and I hope many more languages follow that example.

The second best documentation are function/method/class/object/struct names. It's very important to get them right because they not only provide meaningful information in the place they're defined, they also provide useful information wherever they're used. Try to avoid the following:

/**
* Helpful comment
*/
class UnhelpfulName
...

The reason this is such a big problem is that it requires the developer or the IDE to find the comment whenever the name is referenced elsewhere in the source code. Names permeate throughout the codebase much better than comments. And if you lean too heavily on comments to provide meaning that the names do not, you end up having to write the same comments in many locations.
It's quickly becoming the norm to create Chrome-only apps. As far as I'm concerned it just means I won't use it.
> None of my students knew the meaning of "show your work."

https://www.boredpanda.com/funny-math-answer-drawing-bobby-s...
Why would you say it doesn't add value? It doesn't add factual information but that isn't what a title is for.
The new Context API can't be used in lifecycle methods, which is a bit of a letdown.
I like the idea of storing the precision by default. Some algorithms already do this in order to keep track of what they're losing in lossy arithmetic operations, such as adding small numbers to big ones.

It would be nontrivial to implement this efficiently - the simplest implementation would require a second float for each original float that has an uncertainty, doubling the time and memory requirements. A tensorflow-like system which can see the whole flow of numbers might be able to provide precision estimates efficiently only where needed.
It's a bit weird that the author acknowledges the difference between UK regions and London, promptly ignores that, then continues to adjust the US figures by the different PPP figures by state. It definitely makes the whole thing a lot less apples to apples.

Also, the cost of goods and services being cheaper in the US might not be a strictly good thing. If food, clothing and haircuts are only cheaper because businesses are employing people on well below a living wage, or exploiting cheap labour from undocumented immigrants, then it's hardly something to celebrate.

On that last point: "the bottom 10% in the US have the same incomes (yes, PPP adjusted) as the bottom 10% in either Sweden or Finland. While the top 10% have very much larger incomes than the top 10% in either country. All that redistribution hasn't made the Nordic poor richer than the American poor but it has made the rich poorer". I'm not sure of the details, but it's easy to see how that would be misleading if those income figures don't account for government transfers from rich to poor, or nationalised/socialised state services in health, transport or education.
> Soon, white will become minorities there. Yes I know this is politically incorrect by just saying it, but people from different origins are actually quite different, and it takes guts to just state that fact these days.

The demographic fact is not politically incorrect. What's immoral and unethical is acting like that fact is a priori a bad thing.
+1 for Jackbox Party Games. I have all 3 on my XBone and 1 & 2 on my laptop (and Drawful 2 on both as well). It's a fun game as long as it's all setup and ready to go.
Because they put out well written, well researched and thoughtful scribs I can read while smoking my pipe?
I wouldn't automatically refactor on the 3rd time.

It's not enough for the three passages to happen to be identical at this moment in time. You've also go to be sure that, going forward, they will need to evolve identically and in lockstep.
If you have dozens of instances of nearly identical code and not a single person knows of more than 2 instances of them, you've got much bigger problems.
BLE was included to demonstrate that the convention for "low power" IoT devices is usually expressed in terms of years (of battery life). This is not saying BLE is a LPWAN, but in the minds of customers the expectation, like for LoRa, Sigfox, or active RFID, low power means years of battery life.
I read 'inharmonious' to be a value judgement -- I suppose it can have an objective meaning. I apologize if I misunderstood you.

And yet I can't help reading your comment as if you are proscribing how things should be, rather than simply describing how they are. But again, I may be misreading you, so apologies.
The terrorists are winning by just sitting back watching us do it all to ourselves.
There's a documentary on Netflix about physicians setting up shop on a race track to offer treatment to the poor and indigent in Bristol, TN: https://www.newsweek.com/remote-area-medical-shows-what-amer...

You wouldn't see these scenes in even the most deprived corners of Newcastle-upon-Tyne or the Rhondda Valley. The crowds the event attracts! This is what a developing country looks like.
Inequality is one thing, but the US is still a wealthy country.
It would be interesting to have a metric that is a combination of economic well-being and quality of work.

Ie, in your one hour vs eight hour example; CountryA on average works much much less, but has the same GDP as CountryB. This would seem like a very meaningful metric for the success of the country, one that GDP would obscure entirely.

Though perhaps hours work plays into one of the other quality of life style metrics, in which case perhaps it's already covered.

I don't know any of this stuff, just commenting as a spectator :)
If this gas supplier thought it could get away with not putting an odourant in the gas supply, I suspect it would do exactly that.
> I'm not sure when medical care is cheaper in the US

You literally just quoted the article saying it's more expensive in the US.

> In the US ... medical care generally more expensive
True,but I work in a UX role and for a moderate-to-large website, "good UX" means a basic responsive design with a logical information architecture and navigation that optimizes conversion (e.g. product purchases). Good UX is business-driven and businesses are often boring.

I'm not a huge fan of this particular design but I do appreciate the effort they put into showcasing GSAP's capabilities. The web could use more interactivity and motion. The death of Flash and rise of mobile-first design seems to have led to websites where the only thing moving is the text/image content that's displaced once the ads on the page finish loading.
I'm in Michigan, with DTE Energy gas service. I had an experience a decade ago where they came to the door and informed me that the line needed to be replaced due to a leak. That made me pretty worried, but their nonchalant attitude seemed to indicate that it wasn't a big deal. Turns out (if I understood and remember it properly) that it was a small leak that was known about for some time—it was probably detected by a vehicle that drives around with sensors mapping out leaks.

Both that house and the one I own now are over 100 years old. The water, sewer, and gas lines are, AFAIK, original.
Ironic that 1-3 and the bonus could equally apply to some patients.
this is on the front page already, please check for duplicates before submitting!

https://news.ycombinator.com/item?id=17981308
Germans have nothing. The money from the middle class goes to social security, civil "servants" and the upper 1%.
I'm so tired of the narrative that these highly-educated people vote on matters that they have no understanding of.

They know exactly what they're voting for, and say whatever is necessary to convince everyone that they're working to protect their constituents.

At least in the US, the vast majority of our politicians have graduated from prestigious law schools and passed the notoriously difficult BAR exam. Unless politicians on the other side of the pond are somehow primarily composed of MUCH dumber people, they're probably similarly intelligent.

They know what they're voting for, and they pretend to be totally ignorant to the "scary new world" of tech so they get a free pass on voting in dumb shit laws like this.
Defense against adversarial attacks using machine learning and cryptography
That would not have been useful at all in the course - which involved programming an actual device, powered by an Arduino.
I can't take any good vs bad discourse seriously anymore. There isn't any such thing as balance, not over universe-spanning timelines anyway.
As a Brit, I don't have a single lick of trust in the UK intelligence services.

They don't exist to protect people like me, they exist to preserve the status quo.
iPhone XS, iPhone XS MAX, and iPhone XR – New Face ID
I'm tempted to classify it as an instance of the logical fallacy appeal to emotion.
the lack of talking about the prez here is revealing
Everything You Need to Know About the New Iphone XS, XS Max And, XR
I was going to try and engage sensibly with this comment but after trying to type something reasonable I decided it wasn't really worth my effort. It's not the second point (that probably deserves a response of some kind) - it was trying to come up with a reasonable response to point 1 that defeated me.
Universal debt is a hell of a drug.
The later versions of Flash supported a Stage3D object, which was basically a Flash version of what you’d expect today from WebGL. It was hardware accelerated (with a software rendering fallback, if I remember correctly) and supported anti aliasing and shaders and all the things you’d expect. Performance was pretty wonderful. If you wrote things using this, you wouldn’t notice much of a performance difference for Flash.
I’m sure we’d all vastly prefer to be the person who works an hour for $100 and has the rest as free time. If those two people have equal “richness” then the term is not very useful.
Britain is certainly not Switzerland.

Source: I'm British.
> Soon, white will become minorities there. [...] The only solution is to have more kids?

Yes, because of course our goal is to have a white majority all over the world, right? Right? (Just casually being a little bit white supremacist has never hurt anyone, ever, right?)

> it takes guts to just state that fact these days.

It also takes something else, and I'll let you figure out what that is.
Ahh, Tim Worstall, senior of the Adam Smith Institute and former press officer for UKIP.

I can stop at the byline to avoid his unusual approach to economic fact.
It’s aactually not possible to downvote someone who replies to you. So it wasn’t me.

Anyway, keep telling yourself that you understand people’s motives, and that they’re bad. In the real world, sexism and racism are not nearly as extreme as you’d think from the perspective of the tumblr echo chamber.
Typically, in the teams I've been on that did the best job of keeping the code clean, we'd handle this by just being good at code review: The person submitting the change might not remember any duplicates, but there's a good chance that one of the reviewers will, if that's one of the things they're watching for.

Alternatively, if you really want to be exacting about this, there are code analysis tools that will do it for you.
Am I missing something or is there no `git push`?
This is the product of the business cult. Speak out, be different; dissenters are squashed into oblivion at worst or simply never considered for promotion at best.
It is also fascinating how some US people cannot even _think_ about a different society than theirs.

Take this simple example:

> No Air conditioning in many hotels/airbnb and they had to switch places last minute.

Why do you absolutely need air conditioning in Europe? I have been multiple times in Southern France, Spain, and Italy, where the temperatures are comparable or even higher than many US regions (say, Aix-en-Provence vs San Jose, which share the same climate with temperatures even a tad higher in the former). Nonetheless, air conditioning is seldom used in residential areas. Commercial areas are using it, but still to a much lesser extent than in USA.

Yet, everything works out quite fine... True, people work later and take a break in the middle of the day, achieving nonetheless a better productivity...

Thus, I ask the question : are you sure the air conditioning presence (or absence) is a good metric of "greatness" -- or general well-being of people living there?
Also this list of countries by income equality: https://en.wikipedia.org/wiki/List_of_countries_by_income_eq...
You can't provide a single generic method that works with T for both value types and reference types, but works without boxing/unboxing for value types. With specialization, you would be able to specialize the relevant part depending on the type.
Thank you, I think that's what I was looking for.
I'm going to assume you're not British / European, but for the record Switzerland is in Schengen and EFTA, Britain is heading for being in neither.
My issue is with when it's still reverently referred to as a serious argument against the possibility of extraterrestrial intelligence, even after we have had enough time to see that an intelligent species doesn't necessarily expand to other worlds just because it can.
So what this article primarily shows is that "wealth" (as measured by PPP-corrected median per-capita GDP) isn't that relevant a metric for measuring anything except "wealth". Of course the not-so-subtle implication is that "wealth" is intrinsically "good" and that income redistribution has not achieved "good" (although the final remark in itself is a silly cum hoc ergo propter hoc and in itself reveals the biases of the author).

Few people disagree that the median purchasing power in the US is greater than in Europe; the real question is "so what?"
The world’s most expensive pet fish
I think the sleight of hand here is that "Britain is poorer" reads as "the people of Britain are poorer" even though strictly speaking in GDP terms, Britain the country has a smaller market.

GDP is not wages. You can make tonnes of money in a company and none of it ends up as wages (just goes in the bank) so GDP is high but standards based on wages are no different.

As an example (I could be wrong - not an economist) but a single company making $1B more in one year would equate to a GDP/per capita increase of $10K in a town of 100K.

There are loads of places in the USA that looks desperately poor compared to everywhere I have seen in the UK so I can live with the headline as an economists click-bait.
A single node swarm is incredibly simple to setup:

docker swarm init
docker stack deploy -c docker-compose.yml

Sure, you could use compose; but it's like using a brick for a nail instead of a hammer. Swarm is just a better tool for Production deployments, and compose is better for development - and since it's so simple on a single node, there's no reason not to, and then you're better setup for multi-node and the best practices surrounding it down the road.

As another commenter mentioned - there's often confusion on using Docker in development vs. production. I think this comes up a lot since people always talk about how "Use the same image everywhere!" when that's not always the case. In development you may be using bind-mounts and attaching your working directory into the container so you can actually edit your files, you may be running the application with nodemon (Or your langauge-equivalent) to monitor changes, or do whatever it is your application needs, maybe you have separate Dockerfile's as you want a more slimmed down Production image. But the idea is more that you bring the dev/production parity closer not necessarily identical. You can now ensure all your developing teams are using the same version of your language, and that things are configured exactly the same, and when you do go into Production - that when the image is built, it will run exactly the same on your CI server as it does in on your Production node. It allows for more consistency. But things aren't necessarily 100% the same between development and production.
He should remove the outliers and study those separately. The gini consideration goes a bit in that direction, but not far enough. Possibly even split the population in 4-5 buckets: from people under the poverty line through to the extremely rich and then compare each of those. Admittedly, this would be way harder but would paint a much better picture.
Cycling Is Key to Safer, Healthier, More Vital Cities
Personally I suspect a lot of the diehard adherents to gas cooking haven't had a chance to cook with a modern glass top resistance or induction stove. IMO the difference has shrunk dramatically.

Water heaters too, electrics have improved and the operating cost difference is really not that big. Electric water heaters might also be extremely valuable for demand response.

When it comes to space heating in cold climates though, I don't really know what replaces natural gas. Probably air source heat pumps, but they are still maturing.
This is super cool. I am glad I live in the future.
>healthcare, education, median transportation expenses - all of which are much higher in the US.

Transportation by car costs dirt in the US. Transportation by rail isn't so much higher to make up for how dirt cheap it is to go places in the US by car when compared to Europe.
From numbers alone?

I can see Bitcoin being stable as its used as a fiat hedge, but the top alt coin Ethereum, failed to solve the Blockchain log jam. It seems overall, apps should not run on blockchain.

These ERC20 platforms have to go to ~0 before we see the bottom.
What a load of tripe. The sheer level of hand-waving in their calculations makes their bias pretty clear.
Which implies that you hold a copy of the repository, which is therefore the master copy, as opposed to trusting a third party to do that.

No, you do not need to hold a copy of the repository. You only need a known-good hash. Commit signing is a way to vouch that a hash is good.

Similarly, when downloading a distribution ISO, you do not have to trust the mirror, you only need someone trusted (e.g. the distribution maintainer) to vouch the correct hash of an ISO.

In both cases, you can hash the data that you retrieved and compare to a hash that is known to be good.
Handling the notch on iPhone X, iPhone XS, XR and XS Max on your webpages
What is Faas here? Firewall as a service? Can you say why mounting the Docker would be intuitive there? Thanks.
I’m not arguing about the absolute rate of taxation, I’m arguing about the ability to exploit different rates. Arbitrage of rules, I guess you might call it, in an environment where those setting the rules can be pressured into what would otherwise be suboptimal decisions.
>and from 2000 other ways to kill someone they chose something that's the equivalent of living their business card on the murder scene...

This was always about sending a message. For that, it has to be obvious who did it.
At the city level you don't need much money. Even state politics often don't need a lot of money. National level does money though.
Retrofit(https://square.github.io/retrofit/) is probably one of the best Java libraries I've ever used, missed it a lot when working in Python. Cross-pollination is awesome.