skysight-inc/HackerNews huggingface dataset:
The quicksort example seems oddly named, I would have called it "unique" or "removeDuplicates".

If you change one of the inequalities, say ">" to ">=", then it does sort (without removing duplicates). It still wouldn't feel fair to call it "quicksort" because it isn't in place.
http://www.forbes.com/sites/erincarlyle/2016/04/13/bidding-w...

>Buyers who become frustrated tend to shift from looking in popular urban core neighborhoods to suburbs where competition is less intense, or from single-family homes to condos
> So, because libstd (well, Rust itself, but you get the idea) all three of FromStr, &str, and SocketAddr, it's allowed to do this. You, in your own package, could not define this, since you wouldn't have defined any of them.

It's unclear to me what you're saying here. It's true that you can't make an inherent method `parse` on str like the one being called here, it's also true that one couldn't implement FromStr for SocketAddr in an external package, but one can create a custom generic function that uses FromStr and have that generic type be SocketAddr for some call sites. Of course, if this function wanted to have the syntax of a method call on str, it would have to be defined in a trait that users then import.

> In tokio-core, they bring SocketAddr into scope: https://docs.rs/tokio-core/0.1.3/src/tokio_core/net/tcp.rs.h....

To be clear, this isn't necessary for calling methods---including inherent methods on SocketAddr---unlike the methods in a trait. The only reason to do this is that it lets one abbreviate the name: "SocketAddr" instead of "::std::net::SocketAddr".
SemVer is declarative so technically it's not even possible for it to be an anti-pattern.
I don't believe that is an accurate characterization of the left, to say they're anti-science or anti-GMO. As far as I can tell, the American left generally wants GMO ingredients to be labeled, as they are in Europe, so that consumers can make their own choices.

As for Trump being a master of words, no, not if you posit that words have meaning. Here's a quote from a speech he gave in 2015 (source: http://www.vox.com/policy-and-politics/2017/1/11/14238274/tr...):

"Look, having nuclear — my uncle was a great professor and scientist and engineer, Dr. John Trump at MIT; good genes, very good genes, okay, very smart, the Wharton School of Finance, very good, very smart — you know, if you’re a conservative Republican, if I were a liberal, if, like, okay, if I ran as a liberal Democrat, they would say I'm one of the smartest people anywhere in the world — it’s true! — but when you're a conservative Republican they try — oh, do they do a number — that’s why I always start off: Went to Wharton, was a good student, went there, went there, did this, built a fortune — you know I have to give my like credentials all the time, because we’re a little disadvantaged — but you look at the nuclear deal, the thing that really bothers me — it would have been so easy, and it’s not as important as these lives are (nuclear is powerful; my uncle explained that to me many, many years ago, the power and that was 35 years ago; he would explain the power of what's going to happen and he was right — who would have thought?), but when you look at what's going on with the four prisoners — now it used to be three, now it’s four — but when it was three and even now, I would have said it's all in the messenger; fellas, and it is fellas because, you know, they don't, they haven’t figured that the women are smarter right now than the men, so, you know, it’s gonna take them about another 150 years — but the Persians are great negotiators, the Iranians are great negotiators, so, and they, they just killed, they just killed us."

That is not a masterful use of words, unless you intend a nonstandard definition of "masterful".

You may consider that there is "emotional crybabying" from the left, but from where I sit, people across a wide swath of mainstream thinking are concerned about a lot of the baggage Trump is bringing to the table.

You're free to disagree, but I'm also free to think that you haven't thought things through very deeply when you say the things you said up there.
"parts of the region are below sea level and the ocean is only cut off by about a 20-metre block of land in Eritrea."

This caught my eye. How big is this region that is just 20m away from being flooded? And 20m of Eritrea at that. Not exactly comparable IMHO to the rather more politically stable Netherlands.
The reasons that Rich Hickey tore into SemVer seem to be issues SemVer weren't concerned about solving and his alternatives doesn't solve the main issue SemVer was created for. The problem of "can I reasonably upgrade this library without breaking my own code, and if possible to so in an automated fashion" isn't solved by chronological versioning. If I need to upgrade my application due to a security vuln, SemVer lets me know if I can just "drop-in" the upgrade, or if I need to work more.

The problem of knowing whether 1.3 vs 3.7 was written 10 days ago or 10 years ago doesn't seem useful. Rarely has software I have written depended on how recent the library was released.

Ultimately, the talk tears into version numbers in general, but not semantic versioning - he doesn't discuss anything particular to SemVer. He could have been talking about Postgres' versioning conventions and the talk would still hold.
If you live in an affluent neighborhood you've probably already improved the property as much as you reasonably can because you get a good return on the cosmetic stuff - what's really costing you money is the location of the property.
It looks like it's not just using the camera/vnc images as input, but also uses depth data to simulate LIDAR input (http://deepdrive.io/).

I wonder, what makes it hard to rely on solely the 2 cameras to calculate/guess the depth, similarly to the way us non-robotic drivers do it, when it comes to machine sensing.

EDIT: found this: https://web.stanford.edu/class/ee368/Project_Autumn_1516/Rep... on the topic. Is there anything else I should read up on?

EDIT: found lots of articles: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&e...
wow, this thread made my head spin.
Ah, duh, good call.
>I don't see how the world's ~sixth largest economy succeeding from the world's 1st/2nd largest is good for the latter.

Seems clear to me. California, like Texas, has the largest concentration of Electoral College votes within a single state. While TX is reliably Republican, CA is reliably Democrat. Since Trump lost the popular vote by a large margin, a CA-exit would be highly beneficial to his re-election efforts.

CA is obviously an economically important state and a CA-exit would be enormously disruptive to the US economy. That said, the impacts might not be felt by the time the re-election campaign begins.

And even if they are felt by that time, the current state of American civic literacy, combined with the disproportionate size of older voter blocs is still enough to win elections by ignoring the reality of automation on jobs and blaming weak job markets on globalization, immigration and trade deals.
Whats so hard to grasp? Some people seem to be jumping to conclusion on this. You're hired for a position that is detailed out in your EMPLOYMENT contract. If you get to your job and find out you have to kill kittens instead of the job description YOU'RE choosing to carry out the task. No one is forcing you to do it. On moral grounds and ethical ground I would resign instantly and contact the authority of the kind of material stored on the server.
I once chose to live in my car instead of taking a crappy job.

With your kids, right? Oh yeah that's right -- you didn't have any.

What is better? Having a job to take care of kids? Or telling the story to your kids about how you left a place because you didn't believe in what the company believed/ was doing/ etc?

If your kids are taken away from you because you're living in a car and can't afford to feed and clothe them... then I guess you won't get too many chances to tell them stories about how principled you once were and how you stuck it to the man and all, way back when. Now will you?

So please let me know if I am missing something.

The whole point the above commenter was making was just because you felt you faced a similar(-ish) situation to those people once -- that doesn't mean that your boundary constraints (and emotional / psychological history) were the same, or even roughly comparable, to what they were facing. And so what felt like a "true choice" for you, may not have been a "true" (or even remotely viable) choice for these people.

In other words, it all comes down to this thing:

https://en.wikipedia.org/wiki/Empathy
Also both of the inequalities in the list comprehensions are strict, so it removes duplicates in addition to sorting.
How long do you think humans will be around? Sure, homosapiens have been here for like 2~3 million years, right? But out modern human civilizations are very young, like ~ 10,000 years at the most (depending on your metrics and what is a civilization).

To quote Blade Running, "the flame that burns twice as bright burns half as long." We could be here another million years, or we could be here only 50,000 more years .. or 5 year or 5 days, if Dr. Strangelove gets his way.
I personally find the nodejs async much more intuitive than goroutine + synchronous code in it, but this is a highly subjective subject.

nodejs use to be pretty annoying when dealing with complex workflow in term of code legibility when it was fully callback-based, but with async/await you get the best of both world IMHO.
Apple's 2FA is good, but their geo-location needs some work. I constantly get notifications that someone located 3000km away from me is trying to log in whenever I perform a 2FA sign on.

It's enough to concern me on the odd occasion that someone is trying a MITM attack.

I am guessing it is because in Australia, quite often the central server allocating IP addresses for our major ISPs can be in a completely different city?!?
The issue is in the same category as patent trolls.

Basically, our society has ended up in a place that you can sue anyone you want out of business as long as your lawyer team is bigger and better than theirs, despite how ridiculous or wrong your claims are.

I think the solution hinges on very large punitive damages for offending parties who sue for no reason and lose, e.g. in this case suing a magazine over "I invented email and you can't say that I didn't, give me $15M" should result in the accuser having to pay $15M himself because the claim is obviously a lie, and the intent of the lawsuit is not to be proven right but to harm the defendant.
Automotive Reliability: analyzing data collected from used car auctions
Huh Facebook starts journalism .. This can be dangerous.
He's making good points, but what alternative is he offering?
Possibly if you have very few dependencies, and those also have very few dependencies it will work out OK. But in a lot of circumstances, this is a recipe for shooting your foot off. For example, if you are building a server application in Node and the total number of included packages can reach into the thousands. And then if you deploy to your server and for some reason it has to update NPM, suddenly you have a potential of any and all of those thousands of packages to break, or interact poorly, or whatever. Since you have specified that anything between 1.0.0 and 2.0.0 is perfectly fine, you have absolutely no idea what secret sauce is necessary to get a working application again. So your website is down for hours while you struggle to figure out a working configuration.

/me displays closet full of T-shirts.
Not flaming, I don't think, but pragmatism:

> This isn't hypothetical; my cofounder and I agree that we won't take money from Thiel or any Thiel-affiliated fund.

Have any such offered funding? Would your convictions hold true if they were the only ones offering funding?

We (people) have a tendency to make statements like this when it's safe to do so - such as when there is no such offer on the table - but it's not as easy to do when the distasteful choice is the only one available.
That system worked because of a tremendous number of slaves, though.
One of the factors driving insane real estate prices is low density, partly to accommodate cars. Another factor is bad zoning laws, tolerated on the assumption that cars will be used. And if the bus service in your neighborhood is bad, that's likely because the rich and powerful drive cars, so they have no incentive to improve the buses.

Remember, the proposed new state of the world is not just like the current one except that you personally don't have a car. It's one where nobody owns a car, and everyone shares the benefits of that.
Show HN: Posixcube, a shell script automation framework alternative to Ansible
>10 million years in the future

Well you can get away with making any prediction this way
The impetus for this project was that I wanted to move away from Chef because it was costing me an extra administrative server per month. I wanted to try something new, so I didn't bother looking into chef-solo. I wanted something agent-less, and it seemed like Ansible was the latest alternative, but when I looked at its YAML, I felt fatigue at learning yet another domain specific language. I thought, "Hey, why not shell scripts?" (insert jwz RegEx joke here). I checked search engines and Stack Overflow, but I couldn't find much except for FSS which didn't meet my requirements, and I had always wanted to learn more about shell scripting, so I created my own framework called posixcube.sh (open source, MIT license): https://github.com/myplaceonline/posixcube. There were a few requirements that I had from my Chef cookbooks:

* Idempotent file templating with variable substitution
* Plain-text and encrypted variable files
* Logical packaging of recipes
* Roles and a way to check for roles in scripts
* Repeatable sets of actions for certain types of servers

So beyond the basics in posixcube.sh of uploading itself to the remote host and providing a consistent API, the above requirements were solved with: cube_set_file_contents, gpg for encryption, "cubes" for logical packaging (although loose scripts and straight commands are also supported), -r ROLE, and cubespecs.ini, respectively.

After having migrated an entire Ruby on Rails architecture (https://github.com/myplaceonline/myplaceonline_posixcubes) to posixcube, I thought it went very well, although I certainly see some of the downsides of shell scripting such as checking for error codes in a pipeline, strange HEREDOC interpolation, etc. I also see some of the benefits of complete idempotency, but I didn't find the additional procedural checks to emulate idempotency (outside of file templates) that difficult. For the simplest cube example from the previous link which configures an NFS server, see https://github.com/myplaceonline/myplaceonline_posixcubes/bl... and for a more complex nginx+Rails cube, see https://github.com/myplaceonline/myplaceonline_posixcubes/bl...

You can test it as simply as:

git clone https://github.com/myplaceonline/posixcube
cd posixcube
./posixcube.sh -h $SERVER "cube_echo Hello World"

For more complex examples, see the usage. I'm open to any feedback and any philosophical debate on this approach versus Ansible, Docker, etc.
Well, that and undefined behavior sometimes would require absurd amounts of runtime checking (eg. on signed bit shifts, etc.).
Here's the text of Peter's speech at the national press club, explaining his reasons for supporting Trump.

http://www.mercurynews.com/2016/10/31/peter-thiel-on-trump-a...

(ps downvoted you for homophobic nonsense)
Finding tools is (unfortunately) not the hard part about being a founder.
Not going to repeat myself about whether it's a choice. There's better comments in this thread.

>and contact the authorize of the kind of material stored on the server.

Uh, I don't think you understand how this works. I'm sure if you tell the FBI that Microsoft works to remove child pornography from OneDrive and report the offenders they're going to say "Okay...?".
Simply awesome. Will add to my regular 'listen list'.
"It's more about the fact that there's a normal lifecycle for venture-backed companies that ends with going public or being acquired. That lifecycle seems to have stalled out with mega-companies staying private for long periods of time."

No. There is no 'normal'.

There was X money going in Y coming out.

Now there is 2X money going in, and still Y going out.

It means a lower rate of return for those putting money in.

As for 'money not available to fund other startups' - clearly it is - the charts show actual investment is still high.
You wouldn't expect the uptick in venture financing to immediately result in an uptick in venture exits. Using the 'pipe' metaphor, the flow takes time. The pipe has nonzero length.

In fact, the pipe's length should be roughly the length of the average time to exit for a startup (weighted by exit size). So the latency in the system should be much longer than one year.

This is the problem with semi-quantitative thinking. And lazy journalism. Then again, I did click on the link and read the article, so maybe I'm misunderstanding the point: the author got what she wanted out of me.
I'm probably one of the most critical people of the new AI-safety craze, but even I wonder if training AI on games like GTA is a good thing to do... if it is something I'd be hesitant to let my kids play, should we really be training our mechanical offspring on it?
https://applynow.chase.com/FlexAppWeb/pricing.do?card=FLDN&p...

How to Avoid Paying Interest on Purchases

Your due date will be a minimum of 21 days after the close of each billing cycle. We will not charge you interest on purchases if you pay your entire balance by the due date each month. We will begin charging interest on balance transfers and cash advances on the transaction date.

This is a standard credit card.
I read The Economist regularly, and I read miscellaneous articles from the NYTimes, HuffPo, WashingtonPost that comes up on HN/FB. I enjoy the Joe Rogan podcast but Rogan is wildly uninformed and likes to push conspiracy theories.

I think you're looking for a "badMedia -> uninformedCitizen" trend, but you're not going to find it. My values are just libertarian--- so I've been on the sidelines every presidential race ever. I wasn't excited about either candidate. I just want to hear some good honest arguments. But I see so much emotional manipulation from the left.
As far as I know, the walls came up as security measures because of the second Intifada. Before that, people lived in Gaza and worked in Israel and people travelled between for shopping, etc. (This isolation gave serious economic problems in Israel too.)

So the isolation and security came up because of violence, the terror against civilian Israelis is not an original reaction to the wall.

But I suspect you know this.
My neighborhood in Japan is surrounded by graveyards, including many, many jizo. At first, I was creeped out by the ever-present reminders of death, but now I feel it is a very healthy society that confronts mortality head-on and makes death part of the visible landscape of daily life.
A minivan becomes a necessity when your family hits around 5 people. You can get by with a midsize sedan but it's difficult and you're unable to offer rides to anyone. Unfortunately in the US they can't or won't sell 6+ seater variants of smaller vehicles like the Prius or Accord.

Larger vehicles like conversion vans and full size SUVs that don't seat anymore people than a minivan but get half the fuel efficiency and take up twice the space are on the other hand completely impractical.
How you can save the world. Literally
When Russians fake election results, they may give us the statistical finger
In term of programming interface, you deal with them as if it was a traditional thread. (with its pro and cons:
pro: all your code is sequential, it's intuitive to understand what the programmer wanted to do in a specific scenario.
cons: data-races are hiding in every corners :/)

Being a green thread with a growing stack is an implementation detail for the developer writing Go code.
This was in the Style section, so I suppose they have to humanize their subjects, even if the subject is a reclusive billionaire whose daily life does not even remotely resemble ours.
Move Over Acai the Maqui Berry Is Here
There are many variables, this is true and unfair of me. It was more to get into the mindset of someone else's thinking.

I have however had to work towards someone else's life (maybe not as extreme as a child) and would love nothing other than to serve humanity in a greater way.

I ask because I genuinely don't understand this thinking so thank you for taking the time to respond and not down voting into oblivion. People like you really are why I come to this site!

Not everyone has good parents. Some people need to still figure things out, even at age 30...
BlackRock's Robot Stock-Pickers Post Record Losses
> I've lived all over the country and doubt the poor neighborhoods in Chicago (where I'm from) and Detroit (where I once lived) do their respective cities much good from an investment point of view (whatever that means).

Well, check the data, don't just "doubt it". It means that neighborhoods on the bad side of town tend to generate enough tax revenue to pay for their road, electric, and sewer maintenance, whereas neighborhoods on the good side of town tend not to.
SemVer is sometimes very annoying (pre-release and metadata rules specifically) but also just solves versioning. You have to jump through some hoops to use `git describe` in a sane way with it, but it's worth it.
That's not true. Like any old codebase it's got its sketchy corners, but it's certainly not "horrible".
Here is a map: https://pubs.usgs.gov/gip/dynamic/East_Africa.html
One look around you would probably convince you that this is not necessarily the case.
No the idea is that you invest on the real estate with your own money, and invest on start up with LPs' money.
Netflix's Chaos Monkey
> I once chose to live in my car instead of taking a crappy job

I'm assuming you're male.

You also need a car.
> Big box retailers sell things in big boxes.

Err... I think we have different definitions of what a big box retailer is. Big box is a reference to the shape of the building and not what it sells.

Wikipedia - https://en.wikipedia.org/wiki/Big-box_store
Peter Thiel: "Most importantly, I no longer believe that freedom and democracy are compatible."

(second paragraph of link from article, direct link here: https://www.cato-unbound.org/2009/04/13/peter-thiel/educatio...)

Since when do we have to tolerate this kind of thing? Extremism in the defense of liberty never used to be a vice.
For background, I read his article [1] on why density, so he argues, doesn't matter. Instead, he proposes a different metric - the ratio of private (i.e. productive, main property) investment to public (infrastructure/supporting) investment, which should be high; 20:1 or ideally much higher.

However, most arguments for dense development are EXTREMELY relevant to this ratio - the idea being that dense development is cheaper, per unit population/economic activity, to build infrastructure for. Maybe it shouldn't be viewed as an end in itself, but it is a good heuristic.

[1] http://www.strongtowns.org/journal/2015/12/16/best-of-2015-d...
The issue here is that the real data is known, intimately, by exchanges. The rest of us speculate.

These moves are mostly retrenchment and speculative/sentimental response to China messaging though. Consider -- if there was real, imminent concern that Chinese exchanges might be shut down and funds frozen, would the price at these exchanges fall or rise?

It would rise, because getting BTC out is going to be far safer than fiat.
I mean, no, it's called a competitive bidding process.