skysight-inc/HackerNews huggingface dataset:
Should highlight that many private hospitals are attached or "next door" to NHS hospitals. With surgical "complications" (post-infection, mid-op crash, etc), many of these private hospitals will discharge their patients to the NHS hospital for care.

How? Because they can. It keeps costs down and the NHS can't [0] refuse to treat somebody, even if they're coming from a private surgical ward.

I'm not saying that's what's happening here, but this is one reason why private elective care is so cheap in the UK. The other being that they have to compete with £0.

[0] https://www.nhs.uk/chq/Pages/2572.aspx?CategoryID=96
> It's mostly distressing that a lunatic like that can get the time of day, let alone a paying job as an opinion writer.

That's who you've got remaining on the right. Take a look at sane conservative writers like Jennifer Rubin at the Post. She wrote as a conservative for years under Obama, and now she's suddenly labeled a leftist traitor now that she's critical of Trump. She didn't change, her party did.

Or just look at the economy. Fox News can't find reputable economists to come on air and say a trillion dollar tax cut and increased spending by a trillion is going to balance the budget. No one will say that because it's nonsense, yet that is the policy they have to sell.

Or look at the President's legal team. You'd think a billionaire President would have the pick of the biggest DC firms to represent him in the case of the century. But he is left scraping for guys like Sekulow.

The only people willing to toe a line like that are extremists, or people who are easily duped. Not people you would label experts or competent.

It's what Brennan meant when he called the US a kakistocracy - a government by the shittiest.
> I once had an occasion to ask a very prominent AI researcher for early career tips. His advice was simple: write!

I give the same advice to new PhDs. I wrote mini-overviews of stuff I was researching, doing and thinking for the first two years. Write it with LaTeX too. By the time you have to write your actual thesis you can merge papers, overviews, ideas, and will be done in a few months (instead of years for the people who didn't write along the way).
They are not a utility to get a free new copy of windows. However, that notwithstanding, copyright law grants Microsoft the exclusive right to arbitrarily restrict how these disks are created.

It's just like you can offer some content on your website for free to anyone, but sue anyone who redistributes it for copyright infringement.
I use Skyfonts to install fonts from Google Fonts. Unfortunately you can't create account for Google Fonts, so you end up doing select-and-install for each device you own (i.e. no syncing).

At least it's (slightly) better than manually downloading it, unzipping, double-clicking, etc (you get the idea).
How can he do these stuff? can someone explain it here.?
It's not sensible for pushes to be implemented in a caching layer, because pushes are effectively the manual overrides to the User-Agent's own caching; conversely, the User-Agent's cache is perfectly appropriate as a cache, and doesn't need HTTP/2 Push to work. HTTP/2 Push is effectively the server declaring they know better, so they prime the UA's cache to avoid additional roundtrips.

Nginx does have a module [1] and a corresponding configuration option to scan outgoing headers for Link header preload directives, and once it has learned of a preload being declared by a resource, it will push that resource thereafter. Nginx talks about the justification for this feature, where they too admit that statically configuring pushes in the server config is not terribly useful -- it's quite often the wrong place to specify relationships between resources.

[1] https://www.nginx.com/blog/nginx-1-13-9-http2-server-push/
A restore disk IME returns the computer to initial state, usually saving personal data if requested. One still has to enter the license information, just like if you downloaded a free MS Windows install image - the image is free, it doesn't come with a license.

I've given people access to a pre-written disc with such a download on, which they then enter their license details for. Presumably the judge would consider me guilty of copyright infringement if I were in USA.
I really hope he appeals this.
What I like about Redux is the conventions in place to update the store from a number of places. I currently work on a complicated CRM with state needing to change from a number of places. Having a convention and having the ability to update state and manage side effects with sagas has been game changing.

If you're making a todo app, yeah sure, no redux. Creating an app without conventions to manage state? good luck making all of those decisions.
Switching to RCS from iMessage would facilitate more warantless wiretapping, and make it easier for carriers to rent seek by charging per message.

It would also probably regress iOS Apple’s customers have already paid money for.

How is any of that morally “the right thing”?
It appears that the default build does not check for libc support of Full RELRO and PIE. Are there any plans to add checks for this, or is it assumed that everyone sets the right CFLAGS and LDFLAGS? I know that Debian, Ubuntu, Gentoo, Alpine and Fedora package build specs do this by default today.

The reason I ask is that I see a lot of people build this themselves and run it from docker. I am concerned that they are not getting the various libc protections that should be enabled on internet facing daemons. i.e. stack-protector, fortify source, full relro, pie, ssp buffer limits, etc..
No. It used to be that you got a “restore disk” with your new computer. I’ve had a few dells that had this, Apple used to as well. Now if anything, there is a rescue partition or a utility that knows how to download an rescue image. Without a valid license key you shouldn’t be able to use the restore disk. A lot of people who got these just threw them away. This guy was trying to help them reset their computer to a good state. In this case Microsoft would prefer you buy a new license, but these people already have one (usually on a sticker on the computer somewhere).
Pattern matching doesn't work the same way as switch/case though. Using that syntax would be misleading and confusing.
I think the issue here (and the one that's causing all this pain and confusion) is that the level of expertise needed for an engineering role depends significantly on the company in question. For instance, a company like Google (or the other ones in the same league) need someone with a lot of programming experience and knowledge of various algorithms, whereas your small agency or company with a web development team might need someone who can install/maintain the CMS and upgrade the plugins every now and again. What's more, the two companies aren't necessarily paying a different wage for said work, so it's entirely possible that someone with far less coding experience is getting paid a small fortune and someone with lots of experience is on the brink of poverty.

The problems we see in interviews (assuming people are lying, awkward technical tests, etc) all come from this mismatch, and people either not understanding what they're capable of or confusing things deliberately. A senior engineer at a small company might be classed as a junior at a large one, and when question time comes, that causes issues.

And I'm not sure what the solution is there. I mean, the needs for each company are different, and there's always certainly a place where a developer of any standard could find a job. If they can do what their employer wants, does it matter if they don't know fizzbuzz or can't write a multiplication table? Probably not.

The real question is likely about how you distinguish between what a junior/midweight/senior developer/engineer is, in a market where those roles could apply to virtually anyone in the industry.
I've seen it more used to create a narrative about US culture as being overly technology-focused and lacking a sense of making do / good-enough. Shrug.
History of Product Hunt Is #1 on Product Hunt
Have you experienced that your answers are removed by mods because they does not live up to standards? This is only supposed to happen if the answer is outright spam or offensive or totally unhelpful. Otherwise they are just downvoted.

Can you provide a link to an answer by you which was unjustly moderated? I can vote to re-open it.
Try instead Practical Electronics for Inventors, which is approachable if you remember Pre-Calculus. It covers a lot of basic stuff, explains how all the different parts work, and is a wonderful reference for someone who just wants to build some basic stuff. We had a copy of it in our Physics electronics lab next to AOE and as undergraduates we were more likely to reach for it than for AOE.

https://www.amazon.com/Practical-Electronics-Inventors-Fourt...
It's probably training the language model powering word suggestions.
Instead of using if or switch statements to compute a value, you can use a prettier interface.

So this:

function getStatus(status) {
if (status === 200){
return "Success";
} else if (status === 401){
return "Fail!";
}
}

var myString = getStatus(response.status);

Now becomes this:

var myString = match (status) {
{200} => "Success",
{401} => "Fail!"
}
Yes, that's correct. As far as I understood, these restore disks were used to repair a broken windows installation. The restore disk can be downloaded for free on the internet, but if you don't have a windows license already, the disk is of no use to you.
The problem is that you have very short window to migrate to Java 11 (next LTS) with Python there is no such problem as really each release is LTS, so you have three years to migrate from 3.6 to 3.7.
I really like this. The syntax looks a little weird at first, but it's actually a very nice complement to modern JavaScript's object destructing mechanism: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Europe eyes boosting data re-use and funds for AI research
It's more concise than switch, as well as more powerful (can destructure objects). You can't set things equal to the result of a switch. I find the pattern very convenient.

let day;
switch (date) {
case 1:
day = "mon";
break;
case 2:
day = "tues";
break;
default:
day = "wed";
break;

vs

let day = match(date) {
1 => 'mon',
2 => 'tues'
}
Let's see an example of your proposed alternative syntax.
The client will kill the connection if it has the file cached, sooooo, not much.
Seems like a 7" tablet would be a better use case if you don't need pocketability.
The quality of instruction suffers when half the class can barely speak English, and don't contribute to group projects. Getting a degree for half the cost but with half the learning doesn't seem like a good deal to me.
That's pretty cool! Thanks for enriching my day and good luck with your framework!
No, not at all. E.g. Erlang is built around pattern matching as a core feature even though it's an untyped language.
Previous conversation (4 days ago) https://news.ycombinator.com/item?id=16888876
For a great example of its use in a dynamically typed language, see Elixir.
No, have a look at Erlang! Pattern matching is one of it's most powerful feature.
China is definitely going on the right direction, I live in Bogotá Colombia and according to the mayor of Bogotá, the benefit of electric buses are comparable to buses fueled by natural gas, which I think is not that accurate. Despite the new trending worldwide of adopting electric buses, we are not getting them in the near future part of it are political reasons because the cost of an electrical bus is about the same than a diesel bus as far as I know.

Hopefully, this changes in the near future and the government get serious about going green on the public transportation.
I'm not saying they have fewer environmental problems, I'm saying that when they decide to solve one they're able to just go all-in and get it done.
Can’t blame this on Microsoft. Legal department probably said “these disks look visually similar to Dell disks, therefore we must press charges or everyone will start stamping out lookalike CDs and they’ll be able to get away with it by pointing to us not pressing charges here”. Blame the legal system, not Microsoft. All companies are under such obligations to not dilute their IP.
Nope. I remember seeing it on bitcoin-talk.org circa 2010 or 2011.

I literally laughed out loud the first time I saw it, too :)
I live in Uganda and something like this will be a great mobile money alternative. MTN and their ilk take a huge chunk of change for mobile money, and if this is cheap it’ll catch on very quickly here.

It should also make paying domestic staff and various contractors easier, and that’ll be nice.
Yeah I like it but I have tended to prefer to use static pages for the very reasons mentioned. I'll have to try it again sometime. I really wish Hugo would explain why he took it MIT though... as I've been working hard at what I call gnu'izing my stack.
He just lost the appeal...
Out of the major, popular languages today, Javascript is easily the worst.
Have an upvote :)
Interestingly, the match construct is an expression, which I don't think JavaScript has m/any of. Perhaps they could retroactively make if/else expressions, if that doesn't break back-compat.
If the licence doesn't explicitly permit downloading and redistributing copies, then that's illegal. The default position of copyright law is that it's forbidden with some exceptions (depending on jurisdiction) for personal use and such.

I can download Ubuntu, burn it to CDs and sell or give them to others because GPL explicitly permits me to do this.

However, downloading the comment you just made, filling a CD with copies of it, and selling or giving it to others would violate your copyright to it.
MIT researchers turn water into 'calm' computer interfaces
Wait is the implication here that tsinghua uni has no tech cred?

I agree that parts of tsinghua are pretty chummy with the party, but trying to claim it has no tech cred seems a bit of a stretch. It's arguably in like the top 10 eng/comp sci unis in the entire world. Both QS and ARWU put it in top 10. (THE puts it in top 20)
Pattern matching would be a great addition to JS. I built a pattern matching library[1] with a very similar syntax back in 2015 (although I will be the first to admit that it's a naive implementation). It makes validating/traversing deeply-nested objects much less verbose. I'm excited to see where this proposal goes.

[1] https://github.com/cshepp/Kasai
I'm not sure how this leads to being "in two minds over this" - the fact that this is an expected or accepted result for someone dabbling in the world of proprietary software, to me, shows that there is something fundamentally broken about our modern tech industry.
You're shooting at the source, not the content.
Canadian banking is a protected industry. It is fiendishly difficult to set up a new bank due to Canada's proximity to the United States and the fear that larger international banks will (eventually) swallow up the Canadian banking system.

US banking is slightly easier, in the sense that one may be able to either go through the tortuous process of setting up your own bank, or buying a corporation with the requisite licenses and (ideally) existing customer base.

EDIT: Rogers Communications (a Canadian telecommunications provider) applied for a banking license in September 2011 and launched in 2013[1]. I believe the bar is somewhat lower for existing domestic/Canadian companies.

[1] https://en.wikipedia.org/wiki/Rogers_Bank
Between this article and this one: https://news.ycombinator.com/item?id=16837120 (Was there a civilization on Earth before humans?), I suspect we might be on the cusp of some amazing discoveries about the past. Not to say that we will find an advanced civilization, but I think there is a good chance that there has been civilizations before us on Earth, who at least built wooden structures and had a spoken language.
OpenShift is Red Hat's supported fork & distribution of Kubernetes - so its another platform we can install and use Jenkins X on.

OpenShift also includes some Jenkins support; e.g. you can add BuildConfig resources via a YAML file in the OpenShift CLI which will create a Jenkins server and a pipeline. But Jenkins X isn't yet integrated into OpenShift - but its easy to add yourself for now :)

If you are pondering which kubernetes cluster to try for developing Spring services: OpenShift is a good option if you are on premise. If you can use the public cloud then GKE on Google is super easy to use; AKS on Azure is getting there & EKS is looking like it will be good if you use AWS.

On the public clouds the managed kubernetes services are looking effectively free; you just pay for your compute + storage etc. So its hard to argue with free + managed + easy to use kubernetes - if you are allowed to use the public cloud!
And after that, and few EUV multiple patterning litho generation, lies a pitch black abyss called Deep X-Ray Lithography, the only thing that can push things closer to 1nm
Yep, that's basically what the Redux FAQ entry on "can I use setState?" says: https://redux.js.org/faq/organizing-state#do-i-have-to-put-a... . I'll paste the key parts of the answer:

> Using local component state is fine. As a developer, it is your job to determine what kinds of state make up your application, and where each piece of state should live. Find a balance that works for you, and go with it.

> Some common rules of thumb for determining what kind of data should be put into Redux:

> - Do other parts of the application care about this data?

> - Do you need to be able to create further derived data based on this original data?

> - Is the same data being used to drive multiple components?

> - Is there value to you in being able to restore this state to a given point in time (ie, time travel debugging)?

> - Do you want to cache the data (ie, use what's in state if it's already there instead of re-requesting it)?
Not speaking about this case specifically, but the existence of other more serious and/or violent crimes does not negate the impact of small crimes. You can't just say "yeah well there's a lot of unsolved murders so what about those?" as some sort of indictment against police officers enforcing laws.
Never underestimate Oracle's power to shoot themselves in their own feet.
MIT AGI: OpenAI Meta-Learning and Self-Play (Ilya Sutskever) [video]
From looking at the proposal, there are substantial differences. The biggest is that switch is an equality test on a single value, while pattern matching as proposed allows matching on multiple properties of an object, as well as conditional clauses.

I need to look at it more closely, as some languages have matching be an expression, rather than a statement or block like the conventional switch.

It doesn't add something that you can't already do- tcomb and other libraries offer functions that mimic it- but it changes the way you can express certain ideas without needing them, in a way that is already familiar from other languages.

EDIT: yes, it does look like an expression, which means it can be used in many more places than a standard switch.
RCS wouldn't replace iMessage, it would be a new layer of fallback between iMessage and the current MMS/SMS fallback, so the security situation wouldn't change.
I look around me and have neighbors from dozens of cultures and backgrounds, hundreds of opinions and all walks of life. Young, old, sick, healthy, everything in between. How is this homogeneous?
How is if different that just using goto to go to either the true or false clause? It isn't about what you can do, it's about what you can't do if you use this mechanism (this restricts where you can call spawn and join) and the guarantees you can then build on top of that.
3-tier on the client :)
> The only chance: make it replace the stock Messaging app, the one for SMSes.

This is exactly what is happening.
That would be really cool. This match feels a lot like Rust's which is good.
It is a crime to resell a company's IP without their permission, though.
Could Microsoft not have pursued a cease-and-desist, rather than penalties of $299 (original prosecution) and jail time, if this had truly been their intent?
> It's been "trendy" since the 70's.

It's been possible since the '70s but I've seen a lot more talking about it in the last 5-10 years.
GTK isn't native on a huge number of users' desktops, including mine. It wouldn't be so bad if the GTK CADTs would stop breaking style configuration with each release.
Thank you. Half way through and my patience was thinning. It was like an 8 year old trying to tell a story.
Nothing grants the ISP rights to request the data. Anyone can ask Microsoft for the data. However, only Microsoft can decide whether or not to grant the request and actually send the data.

By making physical copies, Lundgren took Microsoft out of that equation. Now it was him and not Microsoft deciding who could get that data. So, unless Microsoft has granted you a license to distribute, then it doesn’t matter how much it costs... it isn’t legal. (Especially if you slap Microsoft and Dell logos on the disks.)

The copyright holder gets to determine how their data is distributed and what strings to put on that agreement. This is good. This is also what gives the GPL teeth...
I never though of tech sector being about meritocracy. Only Meritocracy I know is in sports where pro athletes are being millions of dollars for their sports skills.
Reading the court documents, the conclusion is that the guy is shady and the journalist and the newspaper are borderline lying.

The correct headline is:
"E-waste recycler loses appeal on 28,000 counterfeit windows installation disks, must serve prison term"

>The sentencing judge determined that the appropriate infringement value was the value of the infringed discs to small registered refurbishers: $25. The court found credible the government expert’s testimony that he was able to use the infringing discs to install functioning Microsoft software

So there were 28,000 discs with Microsoft and Dell logos which can be used to to install functioning Microsoft software

That's a different picture than the one painted by the article.

>In particular, the court noted that it did not find it
reasonable to believe that Lundgren and his codefendant had spent at least around $80,000 to create discs that had no value. Using the $25 infringement amount, Lundgren’s guideline range was 37 to 46 months imprisonment. The court
sentenced Lundgren to 15-months imprisonment

https://www.courtlistener.com/pdf/2018/04/11/united_states_v...

Did the journalist read the court papers?
This has been discussed couple of times earlier too:

https://news.ycombinator.com/item?id=16788296

https://news.ycombinator.com/item?id=13201926
However Erlang does include a static analyzer (dialyzer), which every production system should be using.
Well, you cannot always assume so on the internets.
Why is that odder than the Bank of England, which sets interest rates and is also technically outside of the political system.
Oh shit, maybe it's a made up term my friend group and I use?

It's the idea that there are too many decisions to make, so you can't decide. It can happen when too many people play devil's advocate during a meeting and we don't know what's real anymore.
Google will reportedly kill Play Music when it launches YouTube Remix
That's anything but "simple" - you might want to reuse those stylesheets/scripts on other pages as well, for example; if you inline them into HTML, you're now wasting far more bandwidth, as you're unconditionally pushing them with every HTML response.
I guess that explains it ... I'm from India (lots of smiles) moved to the US (fewer smiles).