skysight-inc/HackerNews huggingface dataset:
Using HTTP status codes in your responses is a trap. It conflates the API transport with the actual semantics of the API. The goal of HTTP error responses is to say that something went wrong in the transport layer. The goal of API error responses is to say that something went wrong in your service. For example, your HTTP REST server may be perfectly fine, but your back end DB may be misbehaving. Having separate API level error responses, for example an explicit field called "error" in your JSON response, I consider to be best practice. Frequently your client needs to know the difference, for example to determine what kind of error to return to the user or what retry strategy to use.

In typical HTTP REST services this transport/API error split makes it really easy to create client code which only needs to check two conditions - if the HTTP response code is 200 or not, and if the error value is set or not. You also don't have to shoehorn your error handling into the very limited set of errors provided by the HTTP protocol.

The other real-world advantage of this is that when you outgrow HTTP as the transport protocol for performance reasons this makes porting the API really easy to, e.g. protobuf RPC, or even raw TCP. The error is already defined as part of the API and you don't need to rewrite all your client code to deal with mapping multiple HTTP response codes to your new transport. It's good future proofing I've seen pay off in a at least a couple of real-world cases.

Bottom line - your server should always return HTTP status 200 and a separate API error response.

There's also a reasonable debate to have about whether non-error responses should also include an explicit "error" field with some default OK value. There may be good reasons to leave it out, e.g. if you want to save bandwidth, but I consider that a fairly insignificant point. For consistency my APIs always return a default OK error field on non-error responses - your mileage may vary.
There is a difference between "a Google Product" and "Code to which Google holds copyright". Most importantly, the latter may include all code written by any Google Employee during their employment.
I don't know if I agree that the 70s through SpaceX landing weren't inventive. It seems possible that we got all the low-hanging inventive fruit from "physics" by the 1970s. Through the 90s and 00s technological invention just wasn't of the physics variety. I'd consider software/AI/sans-human information synthesis--manifestly self-driving cars--as inventive. I'd also consider DNA manipulation, both construction and editing, inventive capabilities. In this regard it's more a matter of timing, and which fields are primed for inventive leaps at certain points in history.
I recently read a comment (I think it might have been on HN, but I can't find it) that said something like this: if you recently learned/mastered a topic, you're in a far better position to teach that topic than an expert, who's so deep into it, that they can't understand the beginners.

I wish I could find the source for this, because it was much better put, but that comment contains the gist of my motivation behind writing the book.
That actually sounds... more plausible than I would have expected. Like, doable with technology I can imagine being within reach in the next 50 years even if we don't achieve any currently-unforseen breakthroughs.
wow, i must suck at writing because you just made the same point i did.

namely: legal and illegal immigration are completely different things and anyone who says otherwise is disregarding law and social norms.
Create a build system for your React app in 5 minutes or less
CoffeeScript 2.0.0-alpha1
Browse the career pages of Y Combinator companies
Can you elaborate on what you have that Travis does not?
This did not really add something to what I said, I did not deny the existence of the problem. You have to argue why mentioning the race is helpful, why it helps to reduces biases. Why does it not do the opposite, why does mentioning the race not reinforce its importance?
2000 saturn v rockets sounds possible
I've found the exact opposite, there's no way I'm going to get all my friends and family to install Telegram and set up an account just for me. That's why it's pretty unreasonable to casually propose Telegram as a replacement for solutions like Whatsapp. Unless it lets me talk to users on other platforms (how would it even do that?), Messenger and Whatsapp are here to stay.
Supporting the governmental bureaucracies like the NSA is by definition participating in coercion.
I will definitely be grabbing a copy of this and going through it, thanks!.

Anyone have recommendations for a book or tutorial for creating a REST API with Go?
F5Bot[1] is a free alternative that sends an email instead.

[1] https://f5bot.com
If you're using a good framework like C# Web Api, you don't have to choose. Just implement them all by adding them to the pipeline and the framework will automatically serialize/deserialize based on the accept header.
> and not some weird strange thing like a jar or a fund the corporation came up with.

BTW, if a company puts out a tip jar, by law that tip jar must actually go to the employees. The company cannot come along and take the contents of the jar for itself (and if they try, employees can sue them).
Easily Deploy Any Web Application to AWS, DO, etc. With Docker and Nanobox
I read the comments, a few of those are actually disgusting neo nazi propaganda!

You've referred to a few people claiming that the Germans didn't have a Jewish extermination plan in their concentration camps. I recognize a few of the names, I don't have time to look up all of the unfamiliar ones.

The Nazis ran 4 types of detainment camps, lets call them Concentration, Work(forced labor), Extermination, and Transit

As it became clearer that Nazis would not win against the Allies, the Nazis stepped up efforts in the Extermination camps.

As far as I know, the American forces only saw the results of the detainment camps, and never got to the extermination camps (they were in territory that eventually was held by the Soviets).

There's a good book on how the empires of Hitler and the USSR squeezed between them the jews and slavs of Eastern Europe, resulting in millions of deaths, "Bloodlands"

https://www.amazon.com/Bloodlands-Europe-Between-Hitler-Stal...
They are still in separate orbits so the straight line between any two varies greatly in length... not to mention intersecting the star regularly.
If you're going to assume heavy equipment on the other end (ours or "someone else's"), it's not ridiculously beyond our current capabilities to simply transmit DNA sequences along with enough digital training material to "grow" and raise a human population from scratch.
my favorite part is the natural ventilation. will need to check up on what larger buildings pull that off
Did you examine all of those people's claims? Even Raul Hilberg thanked revisionists for helping him come to terms with the fact there was no Hitler order (for the extermination), which he said there was in the first edition of his madterpiece, but then retracted in the second edition, among other corrections. Smugness and pretending to know what you don't does not help anything, especially to defuse racism and ulterior motives. Raul Hilberg understood that, which is why in his second book about the sources of the holocaust, he admits most of the narrative is based on testimonies and that there are no susbstantial documents to support it. He came a long way from his first impressions on his subject. I doubt you even knew he published a second book, with all due respect.
Crumbles from the design-table. Oh look, a new object type. I'm not even sure this is an improvement to straight JS any more, it just fails in more exotic ways from pretending to be something it isn't. Once the choice is made to compile to JS, there are plenty of real languages to choose from.
The fact that the only non-coding activities outside work you can list fall under "other time wasting stuff" speaks volumes.
Just some notes for the CLI:

- It's the same runner which is used for running the builds on https://www.bitrise.io/

- You can run the same build config (YML) with it both on https://www.bitrise.io/ and on your Mac/Linux

- CLI [home page](https://www.bitrise.io/cli) | [docs](http://devcenter.bitrise.io/bitrise-cli/) | [GitHub](https://github.com/bitrise-io/bitrise)

(disclaimer: CTO here)
Would an overlay network with a shared secret for encryption of pod-to-pod networking be another solution to this problem? I feel like the ideal should involve keeping the key material in as few places as possible.
What's the math behind your estimations? Doesn't sound so unfeasible.
Yes and no.

You're sending traffic over google's SDN in the clear, which is still encrypted by google if you believe:

https://cloud.google.com/security/security-design/
"Due to its mass, the star has the ability to live for up to 4–5 trillion years"

So when the rest of the universe cools off and stars start to die, Trappist one keeps on shining and shining... We need to get there. But first, let's get rid of our genocidal tendencies.
30 fps is pretty good for an eInk screen, and UI design for a two-tone black or white screen seems like a really interesting challenge.

Maybe I should build one of these...
Interesting. I would like to purchase the PDF version.

Is there a PROMO CODE available?
Depending on the spectrum of the star, I would be concerned about non-visible radiation doses when in close proximity to the star.

IANA astrophysicist, though.

Actually, adding onto that, I'm wondering whether orbits this tight would result in a noticeable centripetal force -- that is, that you'd feel lighter on the night side of the planet than on the day side.
No, in fact, market segmentation by price sensitivity is a pretty basic mechanism of applied capitalism, taught to basically everyone who has ever taken a marketing class in business school.
There are scientists who dispute the existence of global warming, too. But on the subject of both disputed topics, I will go ahead and go with the consensus of 99.99% of experts and witnesses.
Custom tab menu using simple JavaScript and CSS
Hah! Called it!:

http://www.nature.com/news/these-seven-alien-worlds-could-he...

HN Discussion here: https://news.ycombinator.com/item?id=13707547

Video of the announcement (you will currently need to rewind about 40m): https://youtu.be/UdmHHpAsMVw
That's odd. I work in a 100% typescript shop and about half the devs use intellij and webstorm full time without much trouble.

Jump to definition/auto import/implement interface/etc all work.
You would just blow by it though. If you wanted to stop there, your ship would have to turn around and aim the unicorn farts forward to decelerate you 1g the second half of the trip, bringing the time to ~7-8y
Criticism of bad research: More harm than good?
The GP already posits a theoretical perfect fusion drive.
So Liberalism is good and improves things, and therefore everyone will choose it?

Assuming the first part is true, just becomes something is better does not mean it will be chosen, so I don't think that argument works.
MongoDB developers arnt not writing said software in a way specificly targeted at government usage for surveillance.
If a recruiter checks my github they'll find a project to internet-enable some bathroom scales.

Hire or No Hire?
Hah, called it: https://news.ycombinator.com/item?id=13698672
Your argument would be true if the lower and middle classes were benefiting from the growth of the economy, but it hasn't much at all.
With Travis you have to use their yml and reimplement your whole configuration per app every time.
On Bitrise with the reusable integrations you can simply just drag & drop more than 100 integrations like HockeyApp and with only adding your API token you are ready to go. However we also have the YML file and an open source CLI, so you can run the same thing locally.
Also when you add your app to Bitrise we will scan it and instantly give you a workflow that builds, tests and deploys your app.
They're only one Kessel Run away!
Then Apple people would talk to non-Apple people. That's not allowed.
> Great products deserve great marketing—Tweet this

For early-stage founders, this is a misleading suggestion. Yes, it's true that if you could have great marketing without any cost, you'd want to have it.

But this misses the point that if you put $5k into marketing every month, then you're putting $5k less into the product.

So the real question is, would you rather have a good product and great marketing, or a great product and good marketing? I will concede that some founders don't put enough emphasis on marketing, but quotes like this overlook the basic cost-benefit balancing act that early-stage founders live and die by.

Also, I cringe every time I see a "Tweet this" link. Especially in a piece about marketing, it reminds me that this guy wants to build up his personal brand, which is why he's blogging in the first place. I understand that, but this in-your-face reminder (3x in one blog post) makes the piece come across as less of a "I learned some lessons I want to share" post and more of a "I'm trying to build a brand so I blog a bunch, and this is what I came up with for a post."

It kills the authenticity and makes the whole thing suspect (and then when I read trite stuff like the above quote, that confirms that the information contained within isn't thoughtful—it's largely filler).
No. If I'm not mistaken we're in the order of magnitude of 0.0001c.
No, but we probably could with enough fuel. The bigger issue is space dust. Hitting it at relativistic speeds would be like flying into a cosmic shotgun for the entire journey.
After attending a recent hackathon focused on this topic, I came away thinking most of the solutions were emphasizing some kind of automated fact checking solution.

I don't know if that alone will fix it. Fake news exists because people want to believe it, and are willing to lower their bullshit meters in order to use the article as "ammunition" in a political argument with their friends/family/Twitter egg. People aren't looking for "antivirus" tools to stop fake news; they're actively looking to share links that confirm their view of the world. It doesn't even matter if the link has a "wordpress.org" or "blogspot.com" domain. We live in a time when people don't even read the articles, they just look at the headline and jump into the comments to fight someone.

To fight fake news effectively, perhaps we need to do a better job of uncovering why people apparently have so much time to spend on the Internet to argue with people they'll never meet. Perhaps while we're at it, we could also look into why we have a political system where legalized bribery ('lobbying') gives preferential access to the powerful. We're at the point where winning elections is based less on getting enough people to agree with your vision, and more on playing one group of disaffected voters off against another.

I wish you luck, but I believe this is a people problem, not a tech problem.
That's one more issue with the industry. Everyone says they don't want to train because the devs will just leave, but they refuse to give them the raise to keep them there. If a company won't give a disproportionate raise to a person who deserves it, then some other company will hire that person.

My first gig paid only around 30K/yr, but I became aware that moving jobs was a good way to get a raise. When you already have a job (and genuinely have the ability), it's pretty easy to negotiate aggressively. My next job was 70K and within two years, I was in the top 10% of dev salaries.

If I weren't willing to jump companies, it would have taken years more because (as you point out) companies don't like giving raises.
Well, I read your comment, if that's worth anything.
The answer for an outside observer is:
@ 1g of acceleration it would take 11 months to accelerate to the speed of light. A formula you can put in Google is: (285000000/9.8)/(60x60x24).

So 39-(.475x2) = 38, and 38/.95 = 40. So 42 years is your answer.

I have no idea how to calculate the relativistic spaceship's elapsed time.

It's all wishful thinking. The fastest thing man has created, the Juno spacecraft, travels, by some quick calculations, @ 0.00147% of the speed of light.
Why isn't there any Cryptocurrency for fuzzing well-known softwares?
https://security.stackexchange.com/questions/152036/why-isnt...
Sometimes the company just takes it for itself. Sometimes the restaurant is contracting out with a third-party company for deliveries and the delivery fee goes to the third-party company (but, again, not to the driver themselves).
According to the Nature paper (last section of http://www.nature.com/nature/journal/v542/n7642/full/nature2...) --

We computed [via n-body and other simulations] that TRAPPIST-1 has a 25% chance of suffering an instability over 1 Myr, and an 8.1% chance of surviving for 1 billion years (Gyr), in line with our n-body integrations.

And, further,

However, [these lifetimes] do not take into account the proximity of the planets to their host star and the resulting strong tidal effects that might act to stabilize the system. ... The masses and exact eccentricities of the planets remain uncertain, and our results make it likely that only a very small number of orbital configurations lead to stable configurations. ... The system clearly exists, and it is unlikely that we are observing it just before its catastrophic disruption, so it is probably stable over a long timescale. These facts and the results of our dynamical simulations indicate that, given enough data, the very existence of the system should bring strong constraints on its components’ properties...
But the danger of both of those things surely decreases with the square of the distance to the star?
Source on the 'trillions of years' number?
I'll second that. I use an IDE from the Intellij family and things work fine.
5 iPhone Gadgets You Need to Buy ▶3
I mean, why not go full postfactual, in this day and age. Did you also see that comment in thread that says you can make $104000 a month working from home by just clicking the link. Why not give it a try?
Obamacare launched a new wave of startups. Now they’re bracing for what’s next
Phone Numbers Are the New User Identity
This estimation was already assuming a fusion engine.
That's a revolutionary discovery; you should probably publish it immediately since it refutes decades of genetic research.

https://pdfs.semanticscholar.org/9f67/21bf5954d1129d0212bc4f...

http://journals.plos.org/plosbiology/article?id=10.1371/jour...
Configuring Vapor Apps for Testing
> As adults, we have very little free time and spending it on software seems like a gross misallocation of resources

Well programming is one of the most entertaining thing that exists. It can be a great hobby, just like some others will do wind surfing, build RC vehicles or go to the club. Even if you are already paid for it during the day. Contributing to common goods and exploring new stuff is very fulfilling.
My claim is: highly objective criminal-code/constitution ==> low corruption. Do you disagree with this ? Any couter examples.

Note: "jailtime += 20yrs if skin_color==black" is objective but not libertarian.
Do a search for ryzen, they are there.
Based on Voyagers current speed it would take approximately 18000 years to reach this system, the referance of a jet airplane taking millions of years seemed a bit misleading, with current technology and using gravitational boosting I would think that the time could be much less. Maybe it would be worth sending a probe? Granted I will never see it in my lifetime but it might be a project I could get behind.
Here's an example article just published that shows plenty of people use Standard Model in a way that assumes gravity to be part of what's encompassed by that term.

https://www.nytimes.com/2017/02/20/science/hubble-constant-u...

Standard model is conventionally used in modern times to mean "the current understanding of physics"
If something like this could solve the problem of having to deal with redundancy and scaling every time you deploy a growing app, that would be worth using for those purposes alone.

Nanobox deploys also require using it as a dev environment, but that's not so bad.

Regarding setting up dev environments, from AlternativeTo.net: http://alternativeto.net/software/nanobox/reviews/
----
"On a fresh laptop, our latest dev was up and running with Nanobox - repos cloned, DB imported, local running - in 7 minutes flat. Unheard of."
It vastly exceeds even what you would expect from the 80-20 rule. I don't have a source for this, but I've read that about 0.7% of commenters are responsible for about 75% of the comments by volume, and they trend overwhelmingly negative.
The linked benchmarks are putting the $350 1700X about on par with the $1100 6900K when it comes to both single-threaded and multi-threaded performance. Both of those processors are 8-core/16-thread chips. Also the 1700K is a 95W TDP compared to the 6900K's 140W TDP.
I've had the same dilemma - the options right now are either to give a service access to your bank accounts, or manually track expenses in a spreadsheet.

I've been working on a POC type of project where instead of connecting to your bank account, the service would just parse the email alert that gets sent out any time your card/account is used.

There's more up-front work with setting up alerts for your accounts, but this way you get the benefits of automatic expense tracking without worrying about your bank credentials.
Would also seem that Travis doesn't have Xamarin support, or so it appears.
i'm saying that legal and illegal immigration are two different things. the fact that steve bannon dislikes both types and probably (almost certainly) dislikes non-white people has nothing to do with my point.

let's say all your worst fears are true, and bannon secretly is literally hitler. does that change the fact that legal vs. illegal immigrants are different, and should be treated differently, with a different set of laws and social acceptance? because i would say that even if he is literally hitler and mussolini combined, that would still hold true.

i mean, what is your actual point here? that you don't like steve bannon? okay, great.
I guess J.J. Abrams is somewhat forgiven for this, then:

http://vignette4.wikia.nocookie.net/startrek/images/2/29/Vul... [edited for direct .jpg]
Couple of additional things:

- Local CLI / runner: http://devcenter.bitrise.io/bitrise-cli/

- Trigger Map, to configure what to build when: http://devcenter.bitrise.io/webhooks/trigger-map/

- Linux/Android image available as an open Docker container: http://devcenter.bitrise.io/docker/run-your-build-locally-in...

- Open source, offline workflow editor (UI, beta): https://discuss.bitrise.io/t/offline-workflow-editor-workflo...

- (GitHub,) Bitbucket and GitLab (full API) support, and additional webhook support for Slack (trigger a build from Slack), visualstudio.com, gogs, deveo git repos through the open source Webhook processor (https://github.com/bitrise-io/bitrise-webhooks) - the last two were contributed by the community ;)
I haven't been there in about 10 years (I moved overseas), but one of the things that bugged me about Sydney Olympic Park was that it felt a bit like a barren business park.
Which begs the question, why haven't we at least even tried to have done anything like this already?

Do we really need to repeatedly spend comparable amounts of money on yet another dramatic TV special about humans traveling to Mars, as narrated by a favored celebrity? We really are running out of time. And it almost seems like it's pre-determined to happen. :\
> The repeated use of the same facilities would also impact the sports.

Doesn't seem to matter to the Cubs or Red Sox who both play in parks over 100 years old and are two of the most popular baseball teams. When you don't have to build them new every Olympics the facilities themselves could be much higher quality and actually be maintained.