skysight-inc/HackerNews huggingface dataset:
There's already an established principle of double taxation treaties between countries so worst case the company would pay max((country.tax_rate for country in company.operating_countries)).

It's also worth noting that there has been and is a strong effort to harmonize accounting across countries (eg GAAP). Countries might tax differently but that really doesn't matter since you're just slicing up the same pie differently.

Don't get me wrong: this isn't simple. For one thing, once a company likes Apple gets into a position of choosing how to divide up $20B in taxes between countries, this gives them a lot of power. Countries will try and incentivize them to pay taxes to them instead of someone else.

Again there is precedent for this sort of thing and arrangements can be treated by the like of the EU or even the WTO as unfair tax subsidies. But it could get complicated. Like what if Ireland decides to exempt Apple from sales taxes and the UK decides to exempt Apple from payroll taxes to incentivize them to pay taxes their instead of somewhere else?

This is one reason why it'd be important to, at the same time, establish a minimum baseline for what taxes a multinational owes in each jurisdiction. The fact that a company can do billions of pounds in business in the UK and report all that income Ireland thus paying a few million pounds in taxes each year is ridiculous.

How about this for an idea: establish how much revenue comes from each country based on the source so if someone in UK hands you money then that money is attributed to the UK. Divide that by total global revenue and then at least that percentage of profit has to be taxed in that counry.
How can you determine something IS a fake news? I can post an event I witnessed solely on my own, and yet people can call it fake news. Is UFO a fake news? No scientists have disapproved the possibility of the existence of UFO. I am sure many of the UFO accounts aren't UFO, glare or whatnot. But you cannot punish NYT from reporting "A man from NYC reports UFO sighted over Hudson River and it's getting viral". You cannot until you do editorial work.

This is what journalism is all about - not an algorithm's fault. Even NYT isn't immune from inaccurate reports. A responsible journalist has to do research, sometimes, days of research and dozen of interviews, to get a story out. Not simple "oh this is a fake news". No algorithm in the world can solve this problem. Never. Perhaps 1+1 = 3 is a fake news? No. Someone can write a joke about 1+1=3. In fact, we know humans invent the "1". We could have written 1 as "2". So 2+2 = 4 is no longer true. If we could use an algorithm to detect something is a fake news, an improved lie detector would have been produced. Remember history and scientific facts can be rewritten. What's is true today isn't necessarily true tomorrow.

https://en.wikipedia.org/wiki/New_York_Times_controversies
Are there affordable treatment options for folks with skin cancers in non-1st wouuld countries? If not, then this test seems like it is essentially a "congrats, you have cancer, now you and your family will know what kills you"
Crypto currency miners don't use GPU. They use ASICs, which are about 6 orders of magnitudes more efficient, energy wise.

Indeed, they're not voting for anything.
At least Tesco are giving shoppers a bit of warning this year
Your anecdote is irrelevant - the study only tested extremity pain, a collar bone is not an extremity.

They only tested drug combinations as well, not a single medication.

I presume, from your comment, you also weren't given the 400mg of ibuprofen and 1,000mg of acetaminophen combination first and then an opioid only because that wasn't enough pain relief.

And while we are swapping anecdotes, I was given hydrocodone for an acute extremity injury (leg) and the only noticeable thing it did for me was make me feel really, really nauseous. If it did help with the pain it was hard to tell because of the nausea.
Dinosaurs would have survived if asteroid hit Earth elsewhere, scientists claim
Seems like a pretty sensible behavior to evolve in social insect.

The more reliable mechanism is the one that evolved - other insects decide who gets to stay and who has to be removed.
People also choose to smoke, drink alcohol, take drugs, not exercise, lay out in the sun, engage in unprotected sex, all things which can lead to health problems. So your anti car analogy isn’t quite right ;)
Show HN: Feature rich, open-source WordPress theme to showcase yourself
Bayer is the original manufacturer and trademark holder for Heroin, so I imagine they could have entered the opioid game if they wanted to. However, they might still remember the 100 years old lesson of what comes from marketing opioids to the general population.
I'm totally for the spirit of your comment. However, taxing borrowing in general seems like an odd move to make, no? Wouldn't that put an undue burden on people who are just borrowing funds legitimately? What's particularly pernicious about the tax avoidance structure you described is that it doesn't seem like there's an easy way to create a rule that captures that case and doesn't ensnare ordinary businesses. Maybe i'm not understanding your point fully though.
Declaring a single legal domicile is a great way to prevent problems with location-based voting and taxation.

Hypothetically, if you owned two houses, and spent exactly 182.5 days per year in each, an outside observer would not be able to tell which one you considered to be your true home. So that observer might presume it is not your home, and prevent you from voting there, or presume that it is, and levy location-based taxes as though it were your full-time residence. Worse, different observers could make those determinations separately, and you might end up paying double taxes while being denied the ability to vote in either place.

There are also concerns about the correct address the government should use to send its official communications to you. It isn't always about knowing exactly where to send the cops in ninja gear to rouse you out of bed at 2 AM.
Your analogy is ridiculous. In what way is polluting a river like hosting a social network on your own servers?
Red Hat introduces JDK 9
All the commenters thus far seem to think they know more than a randomized clinical trial that was double blinded looking at oral (not IV morphine) combination doses of opioids like codeine, hydrocodone, and oxycodone with tylenol vs ibuprofen+acetaminophen (tylenol). Here's the actual study if you would like to read more...

https://jamanetwork.com/journals/jama/article-abstract/26615...

I'd like to note that their p-value was awfully close to the statistically significant differences in pain reduction, so a larger study is definitely warranted.

We've known for a while that IV acetaminophen is just as effective at pain reduction in acute pain compared with IV morphine, as well. See this study, there are more similar to this:

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4608332/

For those of you that think that a few doses of opioids can't cause addiction, think again. This study found that even after 10 days supply of opioids, 20% of patients had a dependence lasting up to a year.

https://www.cdc.gov/mmwr/volumes/66/wr/mm6610a1.htm#F1_up

Here's an arstechnica link that is more digestable: https://arstechnica.com/science/2017/03/with-a-10-day-supply...

I've seen patients get 30 day supply for appendectomy regularly, and my dentist friends have prescribed up to 50 at a time in the past.

We need to do these studies, and discuss them, and make them better, so that patients get the best care that they can. What we absolutely cannot do is rely on anectodal evidence to make clinical decisions.
How Kickstarter migrated a 9 year old app to Rails 5
I suspect that there is no comparison to opioids for chronic pain either.

Obviously that is a bad use case for them and you would be crazy to use them for chronic pain.
Thanks for your reply. I've not ditched graphQL forever, but there's a lot of buy-in involved for what it could give me right now. The tech is quite intrusive on your web server.

I didn't know people using redux also cached responses forever, that seems beyond naive to me :)
x := some_code_here says "x is a NEW variable whose type is whatever the result of the expression on the right hand side is".

Say we have a function, GetInt64(), which...returns an int64. x := GetInt64() both declares x to be an int64 and places the resulting value of the right hand side into x. If x was already to declared to be an int64, E.G.:

var x int64

x := GetInt64()

Then the compiler complain that x is not new - it has already been declared. In this case you have to omit the colon to remove the fancy "auto" semantics.

var x int64

x = GetInt64()
If someone enjoys bitter then to them it's not unpleasant, surely, by definition?
> I never did use social media

Yet here you are posting on HN.
That's because poor people are fat and we have a volunteer military. A draft would solve that problem, by drafting richer healthier people and also by forcing fat poor people to exercise and eat better.
I have years of free Prime because my 2 day orders never come in 2 days. At least they give you something when they mess up, but they do mess up a lot.
My favorite is finding the libraries that now have typings (they migrated to TS themselves or got a good definition PR they accepted, maybe even a PR you sent the library directly), and sending the removal PR to DT. DT is huge so every file that can be removed is a little bit less of a papercut in checkout time and testing time for the next branch/developer.
> When you receive an invitation from someone to connect, you imagine that person making a conscious choice to invite you, when in reality, they likely unconsciously responded to LinkedIn’s list of suggested contacts.

There's a worse version here: some companies will mine various sources of information to get a strong indication that A knows B, suggest to B that they should connect to A in a way that sounds like an invitation from A but isn't, and if B takes the suggestion, send an invitation to A saying that B wants to connect.
I'd say the shuttle's insurer should be partly responsible here. The Engadget article seems to show the shuttle stopping in the truck's blindspot.[0]

A reasonable truck driver would assume the driver of the other car would back up a little bit. But in this case, the car stopped where the truck couldn't see whether it was backing up or not, and wasn't programmed to understand the truck's movements at this angle.

So, software was responsible for:
1. Stopping too close.
2. Stopping in the blindspot of a truck.
3. Having no horn.
4. Not backing up or understanding fairly common motion by a truck.

[0] https://www.engadget.com/2017/11/09/las-vegas-self-driving-s...
Probably the same as already exist for when you rent* one's infant to modelling agencies or film sets?
It is possible to see all traffic it sends, and possibly even fake certificate authorities (depends on how resilient the Alexa is to this tampering) and trick the Alexa into giving you the data it sends encrypted using a key that you control.

However, this line of reasoning can be refuted all the way down to being impossible to prove/disprove. For example, there is reasonably an audio processing chip in Alexa that does always-on keyword listening, and it's possible it could track breadcrumbs over time (e.g., voice fingerprints, triggering keywords like "bomb", etc). This data can then be interlaced with innocuous data, for example inside an access token (opaque blob used to identify on whose behalf the Alexa is making requests). That would make it virtually impossible to find even if you had full access to the network traffic.

Anyway, when it comes to these things I like to take an Occam's razor approach. There's a great number of things a company can do to spy on you, but most likely when it comes to mass surveillance it's easier to tap into more obvious sources of data like your browsing history from the ISP, your phone line, Facebook/Google tracking data. In fact, I'd be more scared of say Facebook's and Google's voice assistants than Amazon or Apple because the latter two don't depend as much on consumer identity as a business.
Simple Explanation of Markov Models Using Ruby
No-one goes out of their way to choose a slower language. People who choose to write something in Python are getting value out of it, or at least believe they are; if writing the program in Go will be more costly (in development time, defect rate, library availability or something else) than writing it in Python then writing it in Go is premature optimization, and if writing it in Go wouldn't be more costly than writing it in Python then why were you thinking of writing it in Python at all?

IME thinking about language performance at all is premature optimization; language performance almost never makes the difference, other between-language differences will swamp any gains from language performance.
Highlights from @reactjs: smaller bundle sizes, suppressHydrationWarning and official support for custom renderers.
Red River Floodway (Winnipeg, Canada)
I'm more familiar with markdown, and I think for non-emacs users the plain text format is more familiar as well
(Sheep? Is this political science research?)

>For the first time, the study reveals that sheep can mentally take a two-dimensional image of a face and rejig it into a three-dimensional representation

Visual cortex can automatically adjust and learn some tasks, but some others require intentional mental effort, at least initially.

I haven't read the paper yet. But what I want to know how much intentional processing the sheep do to achieve this. As far as I know, best way to detect mental effort is the delay before action.

In humans mental rotation of picture is not automatic after the angle grows past some threshold. Then humans must intentionally rotate the image in their mind.
One place I worked at found this during the big storm in the UK UPS worked fine and all Telecoms Golds Machines stayed - but they had forgotten to put the Modems on the UPS :-)
Not a dermatologist but I've following melanoma research for several years now thanks to my wife's diagnosis.

What's exciting about this one to me is that if the detection mechanism is truly sound, this is a great leap over the ABCD(E) criteria which have been the clinician's main tool, and which has a high false negative for one of the deadliest forms of melanoma, nodular melanoma. This often does not present with varigated coloration and because it tends to invade tissue rather that spread superficially its morphological characteristics aren't as apparent until its more developed, greatly increasing the risk of metastases. This was the case with my wife's primary, which her dermatologist almost didn't send out for a pathological workup, and had been missed by a couple of different doctors thanks to its atypical presentation.

All of which is not to say that ABCDE isn't a valuable rule of thumb, but its always struck me as somewhat subjective, which I guess is tempered with the experience of the physician but also does have the false negative problem, even with specialists.
Elastic Acquires Search Startup Swiftype
Yes. There's no other way to get it legally.
Sounds like your doing it on the cheap
Hi, I'm a Redux maintainer.

First, could you clarify what _you_ mean by "Redux boilerplate" in this case? The phrase gets thrown around frequently, but it means different things to different people. Just yesterday, I tweeted some thoughts on how you can use as much abstraction as you want with Redux, and linked to examples of reusable action creator/reducer logic [0]. I also wrote a pair of blog posts that discuss the intent behind Redux's design [1], and why common usage patterns exist [2].

It's worth noting that React-Redux was originally written using a "render props"-type approach, but was changed to be a Higher-Order Component before it hit 1.0. In fact, there was a thread a month ago that discussed render props-based reimplementations of `connect` [3], and in that thread I linked to several recent examples of people reinventing that wheel as well as prior discussion of why React-Redux wound up as a HOC.

Finally, earlier this year I opened up an issue to discuss ways that we can improve both the "getting started" experience for Redux users, as well as build more powerful abstractions on top of Redux [4]. I'd love more feedback and ideas (and ideally people from the community volunteering to help us make things better).

[0] https://twitter.com/acemarke/status/928453589739155456

[1] http://blog.isquaredsoftware.com/2017/05/idiomatic-redux-tao...

[2] http://blog.isquaredsoftware.com/2017/05/idiomatic-redux-tao...

[3] https://news.ycombinator.com/item?id=15427954

[4] https://github.com/reactjs/redux/issues/2295
a TypeScript compiler takes a bunch of text as input, and produces a bunch of text as output. That's not really special or weird, is it?

In the case of a compiler used for production, it may have lots of optimizations, most of the time, this optimizations are non-idiomatic code that's hard to understand and its purpose its not obvious.
Isn't that Tylenol(the acetaminophen in it)? Ibruprofen screws up your kidneys I think.
NodeSource survey reveals developers are slacking on security
Depends on how you define "exceptional" and what their area of expertise should be.
Sean Parker: We Built Facebook to Exploit You
Microsoft, Facebook, and Google were created by rich kids, who got investment funding because they have wealthy friends. Not randos with laptop.

Apple was a little better.
1) The reviewer may have had similar work and wanted to hold up the publishing of OP’s paper while finishing their own work. Or there’s some personal animus. Or OP’s paper may have threatened to surplant the reviewers work. There’s a whole plethora of reason for a particularly hostile review. It’s a big enough problem that my partner who’s going through grad school now had the option of requesting specific people NOT be on the reviews for her (first publishing in gradschool as a first author!) paper because of scooping, animus towards her PI, etc. that may have resulted in an overly hostile review.
ICML 2018 Registrations Sell Out Before Submission Deadline
This site inspired me to make my own medicine for common cold. It's more or less a green dragon tincture with Rum. I like to think that it really helps me, because it puts me to sleep, raises the body temperature and I drink more water.

I also recognized that it helps my digestion. If you know the Bristol Stool scale, my score is perfect the days after I used my medicine.
Create your own national holiday LOL totally legit
The most general answer is OCaml, though in practice I'd probably use something else depending on the details. For most cases there's a better pick than OCaml, but I don't think OCaml is ever a worse choice than Go.
Selenium IDE ported to Chrome and Firefox, export to multiple frameworks
Wait, they’re a scam, but you think there should be more of them?
Hi, I'm a Redux maintainer. Could you clarify what you mean by "doesn't play nice with Redux"?
When you've got a huge out of order engine the extra effort it takes to decode x86 instructions is lost in the noise. When you're going with the flock of chickens approach and you have a huge number of very small cores then the overhead is killer. Intel tried to solve this by using medium cores with big SIMD units but SIMD is just less flexible than a GPU's SIMT is.

Power and area generally scale as the square of the single threaded performance of a core. The huge number of "cores"/lanes in a GPU are much smaller and more efficient individually than even your phone's smaller cores. And the x86 tax gets worse and worse the smaller you try to make a core with the same ISA. Intel wasn't even able to succeed in competing with the Atom against medium sized cellphone chips.
TESTING IS EASIER THAN EVER BEFORE
3D simulations can’t create photorealistic images. (Not currently, anyways)
> We are building something evil and reprehensible, but we are open about what we are building, and therefore we are better than the other guys who are doing it surreptitiously.

This basically covers all of American business and politics. I think the anger in this thread is misplaced.
Which framework to use to develop chatbots for web and social media platforms?
Hire Fast, Fire Fast?  Not So Fast
That's establishing a separate component tree. This is one single component tree, hosted in the parent window. That was never possible until portals landed.
Same. In the hospital I was given small doses of morphine, and frankly I was shocked at how well it worked. I've had demerol for kidney stones, and it didn't do much for pain.

But the morphine at the hospital was like magic. And the dose low enough I didn't really feel any other effects.

That said, when it was time for discharge, the doc told me to alternate tylenol and advil every 2 hours (4 hour cycles each), as needed.

It wasn't news to me. I've followed the protocol before. I wasn't really in much pain by the time I was discharged, so I didn't bother with it this time and can't really compare.
Agreed; I've been prescribed that combination more than once by different doctors. It's very common, and often the recommendation is to stagger them. NSAIDs are metabolized by the kidneys and acetaminophen is metabolized by the liver, so they can be safely combined.

EDIT: also, this is pretty much what Excedrin is (aspirin instead of ibuprofen, but NSAID + acetaminophen, plus also caffeine)
Hopefully the initiatives of the Node.js security Working group (https://github.com/nodejs/security-wg) will raise the bar here.
Shufflup – Get free services by shuffling your service with other startups
A Computer Scientist Who Prefers Paper Ballots
Your test would only test the generators. It would not test the transfer switches, or whether everything you think is connected to the backup generator is actually connected, and any equipment in between.
That rules out one of the core use cases that auto was designed for: iterators.

std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>> map = foo();
std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>>::iterator it = map.begin();

is much less readable than

std::unordered_map<SomeTemplatedType<A, B>, SomeOtherTemplatedType<C, D>> map = foo();
auto it = map.begin();
No specific education, just jump in and follow existing patterns. Most devs we hire pick it up quickly and we have people here that can help with more complicated questions. We have a few people who really grok the type system and can help with nasty type issues when they come up.
> My intention here was to say that GraphQL's ability to understand what fields are being asked for makes it easy to return specific cache controls, rather than having to put one on the whole query.

To be more specific: "the entire query" in REST (or, really, in any HTTP-request) can be cached, alongside with all its data on multiple levels of the existing infrastructure with nearly no extra configuration. Cache-Control, ETags, Vary etc.

Most proxies don't even have to parse the query or the response to handle caching in this manner. Match headers, boom, you're done. With proper headers the request might not even leave a user's computer.

GraphQL on the other hand:

- eschews cacheable requests. Everything is a non-cacheable POST

- the "caching becomes easy with GraphQL" in reality becomes a custom caching server that has to parse both the request and the response for each request to find which fields are requested, and match them against whatever's in the cache.

- Actual quote from the video: "add cache-control to your data" ... "and all you proxy or your gateway has to do is interpret your data". WAT. The only time an API gateway should interpret data is when we're transparently upgrading calls from v1 to v2 and back :)