skysight-inc/HackerNews huggingface dataset:
Is this what you had in mind: See George England, "The Air Trust", http://www.gutenberg.org/ebooks/12826
> Making a profit needs to be balanced with the reason the company is in business, (i.e. the needs of its customers), its employees, and the environment.

I completely agree. I also don't think, that public sector is always optimal. Public institutions some times tend to be inefficient.

The problem, I see in many privatizations, is that profits are the main (and sometimes only) motive and any efficiency improvements are put into shareholder value instead into public benefit.
"We believe no one wants to wear a pair of shoes/clothing made by a child or a pregnant women under abusive conditions."

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

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

Do you believe I'm misinterpreting him, and that pregnant women are actually allowed to work for Markhor?
I mostly agree with you. There are related exceptions. Take the Metro UI language as an example - minimal use of icons, high usage of text and plain shapes. It's becoming quite pervasive, the new iPhone UI is loosely Metro and Material seems to be inspired by it.

On the disagreement part, one thing is particular stands out:

> Interacting with the stream

Only developers care about that.
Why is damaging someone's paint job less acceptable than blocking someone's ride home?

A person could wave a key in the part of the world where the Tesla has no right to be, and the Tesla owner is responsible for making contact with the key.
Most of these have been possible for many decades if not longer, even if it wasn't done the same way. Before e-mail there was fax and telegraph before that. Video transmission is nothing new either, and it's honestly not really that useful when you just want to talk with somebody. I bet that by far the most common use is erotic chat...

Nothing revolutionarized transport more than the railroad. Airplanes have changed very little since the 1960's. Cars have changed much more, but for all practical purposes they work exactly the same. In 1885, cars and airships were little more than a novelty. Electricity became available in the late 19th century and much of electric devices we use today were developed during the first half of the 20th century.

Medicine advanced very little. Maybe we are better at treating certain injuries, but for most things, medicine can only keep you dying longer than it used to. The decades before that saw major breaktroughs like antibiotics and vaccines that actually worked and malaria was elliminated in much of the developed world.

We live in a world of things we don't even fully realize we have.
Previously: https://news.ycombinator.com/item?id=10368107
This has been posted on HN 9(!) times, but I still enjoy rereading it.

For more discussion, this posting had the most comments:
https://news.ycombinator.com/item?id=1174912
Forgive the question, but I'm trying to understand. How is the position you're defending different from "All people are equally responsible for all things"?

For example, let's say that my live-in boyfriend confesses to me that he's been sleeping with another man. He has, essentially, no other home. Do all of the following people bear equal responsibility to take him in: me, the man with whom he has been sleeping, and you? Based on your comment, are we all in the same moral boat – none of us are paying to take him in?

(Unrelatedly, the phrase "sit at home enjoying pregnancy" may not communicate what you wanted to communicate.)
A problem with most OO programming languages is that methods are declared as part of the class itself. This makes it difficult to extend an existing class you don't control, or reuse a method elsewhere.

C# supports extension methods, which are basically static helper methods whose first parameter is the type to which you want to attach the method. For example, I could create a 'ToTitleCase' extension method on type 'string'. Then, given a string instance, I can simply do 'myString.ToTitleCase()'.

One step further would be to add support for multiple parameters. For example, instead of listing all functions that accept an 'int' as an argument, you could ask for all functions that accept both an 'int' and a 'string' as an argument. Given 3 and "test", the 'repeat' function could be suggested, resulting in "testtesttest".

To make things even better, one could provide (explicitly or not) the return type of the function they're looking for. For example, if you're assigning to a variable of type 'int', and all you have is a 'string', then you probably want to see a list of all functions that take a 'string' as an argument, and return an 'int'. In that case, you would see functions like "parseInt" or "getLength". It's kind of like playing domino, where you already know the type of the input and output, and only need to connect them together. Keep in mind that you can't always transform one type to the other in a single function call, which means the system would also need to recommend combinations of functions, such as "parseDateTime + getDayOfWeek" when you need to transform a 'string' to an 'int'. Perhaps the name of the arguments could even be used as some kind of sorting heuristics (a 'string' variable named "date" surely should be parsed to some kind of DateTime at some point).
As an example, today's cars are radically different beasts compared to what we had in 1950 (or even 1980). They're safe, faster, lighter, and full of subtle drive-by-wire algorithms and technology. And there's a huge amount of science and engineering advances that made that possible.

While I agree with his broad point that in-your-face radical advances are on the decline, there's a lot going on under the hood that's easy to miss. Taking that to an absurd extreme, if we all suddenly became immortal, it would be a huge advance, but we wouldn't look any different.
It sounds to me (apart from the auto-suggest) that this is exactly like piping on the command line.

echo "My random thoughts" | tweet
I need to do cleanup for the code. sorry for that.
If you're doing this then make sure that your router uses your DNS server so you don't have to manually enable it on all your devices (especially those pesky Android devices that don't allow you to have a custom dns server with a dynamic ip).

You can also replace your routers firmware with OpenWRT. OpenWRT uses dnsmasq by default (and allows you to customize the configuration, of course), so you don't even have to use a separate server.
All of the self-driving car accidents in CA were caused by humans
Not cheap (quality) but inexpensive a big difference I know you meant that but maybe some people don't care about the source of the dairy they get. I live in an area with a lot of farms and fishing but I am neither a farmer or a fisherman.

The problem is all those small dairy farms can't compete with giant industrial farms which use steroids, growth hormones, or antibiotics. Milk is actually dumped and farmers are fined if any trace of antibiotics are found in the milk.

Supply management is based on the cost of production at the farm itself which I think is fair since I see too many poor farmers and fisherman who work 20 hour days only to get a pittance of the final cost of the product.

It's a huge culture difference too Canadians tend to know a lot about their dairy products and don't see it as a product like an iPhone I think they do in the US.

I know people in my region will just refuse to buy imported dairy regardless of price due to the use of hormones, antibiotics (still in the milk) and steroids. Most now buy local beef, pork, chicken and seafood.

Eggs and chicken are also have similar controls.
Is this a parody or something? You're saying he cannot possibly be the hero because he's... white? Stop with the victimization schtick, evaluate actions for what they're worth and don't inject race, gender or whatever classifications you want to come up with into everything. The whole victimization game is quite literally just trying to invent your own new form of superiority over another group, a group who by virtue of some immutable characteristics (gender, skin color) is ineligible or somehow innately worth less than another group? I'm tired as hell of hearing everyone scream racism at every little thing, but that is flat out racism.
Read the paper (https://dl.dropboxusercontent.com/u/85192141/2012-scannell.p...), it addresses these objections. The "easy problems" objection is just a form of the "no true Scotsman" fallacy, where you redefine difficult problems to be the ones you haven't stumbled across a solution for.
Thomas Edison and the Cult of Sleep Deprivation (2014)
My intention was that the user will not need to install an external library.
I fully expect to be downvoted to oblivion for pointing this out, however it seems to me that the supposition that the word 'bro' is inherently 'misogynistic' is not only absurd (bro is simply a shortening of the word brother, after all) but it also reveals a deep-seated devaluation (and even demonization) of maleness which I find disturbing.
And, quite honestly, I have trouble with phrases like “The biggest hero.”

Social activism is not a contest. Every action matters. It is not for me to judge how difficult it is for you to do such-and-such a thing, and whether overcoming those difficulties is “heroic.”

Peter Norman’s actions are turning out to be even more important in hindsight than they were at the time, in part because the focus at the time was on the black men on the podium, so their stories have already been told.

When he passed away, there was more attention paid to his story, and thus his actions reach through the decades and helping to change minds today. That’s amazing, and wonderful.

I need not try to compare this to how much the other men have suffered or accomplished to take of my cap and stand in wonder and appreciation.
Because something is in fact provided, be it by the government or the market, does not in the least confer to me a right. If it does, then I have no idea what you mean by "right."

The fact that I can rely on the existence of high-quality open source software to use in my projects does not mean that I may demand that you or anyone else write it and offer it for free. If I go hiking on the trail near my house, I know that I can expect "free" plastic bags in the city dispenser to clean up after my dog. Their existence does not make it my "right" to receive them for free.
It could be worse – Charlie's Diary
Interesting. I'd not realised this before but in terms of human language classic CLI is of the form:
Verb Subject

Whereas English (and other European languages that I know some grammar for) are of the form:
Subject Verb

I.e. you're advocating that CLI interfaces should be more like English...
> I believe the greatest failure of REST is that it is unable to set clear rules and boundaries as to what is REST and what is NOT REST.

It hasn't failed in this. The principles are very unambiguous. The problem is that people don't actually read the source material and just follow crappy tutorials and ape other systems without understanding what REST is. Then they go on to build things that aren't REST, they go on to write crappy tutorials themselves, and everybody learning from them and aping their systems fail just as badly. The problem is not clarity of communication, it's bad PR.

> I want to see a canonical implementation of what an ideal REST architecture is. Never saw one.

You're using a pretty good example right now. The World-Wide Web is an implementation of the REST architecture. It's not perfect, but it's the archetype REST was born from.

> REST is at best a set of vague ideas and I understand why a lot of developers do not like that. because I don't.

Look, it's really not difficult to find the concrete, unambiguous description of REST. It's right here:

http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch...

All you had to do was Google it or look at the Wikipedia page. There is nothing vague about it whatsoever. The problem is not that REST is vague, the problem is people just don't bother reading the source material.
There's also no mention of Eric Schmidt, who has funded a company to help Clinton's campaign:

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

"The Groundwork, according to Democratic campaign operatives and technologists, is part of efforts by Schmidt — the executive chairman of Google parent-company Alphabet — to ensure that Clinton has the engineering talent needed to win the election."

Not all huge contributions to political campaigns are cash given directly to the candidate. Non-cash contributions, like Schmidt's, are much harder to track and regulate.
The vast majority of people working in software in the US are men. The statistics, various studies, a mountain of anecdotes by women working in tech, etc. all point to systemic problems of sexism in the industry and society more broadly. There's a growing movement from various corners to try to address fucked up tech industry culture issues in various ways, encourage interest in programming among women, etc. So statistics like these are encouraging.
Fortunately I've just released an ncurses wrapper that deals in printing strings exactly how they're formatted.

To update the view call update_content(0,"Some\nLines.") on the appropriate Pane object.

https://pypi.python.org/pypi/window
Totally agree here - would be easy to fabricate DNA oligos with given mtDNA or STR sequences, especially if you know forensic investigators are only going to use very small target sequences for identification purposes.

This could be a case for using shotgun / whole genome sequencing - we'd expect to see a more even distribution of genome coverage than one would get by leaving targeted oligos behind. But this isn't likely to happen anytime soon; the costs are far too high (10-100X greater than targeted sequencing).

In the meantime though, one highly feasible avenue for spotting synthetic DNA oligo fragments is the presence and position of nucleosomes (https://en.wikipedia.org/wiki/Nucleosome), which are DNA-associated protein complexes that occur in DNA from organisms, but not in synthetic DNA oligos. These have been used successfully to trace tissue of origin in cell free DNA in humans, and have specific signals related to chromatin/genome topological state. The only way I can think of to fake this signal would be to have a cell culture from the person you're trying to imitate. Granted, this too is not completely unreasonable - there are now very robust commercially available protocols for deriving iPSCs from small dermal fibroblast samples.
Ask HN: Recommendations for a book about algorithms and data structures?
Is there any book that acts as a reference book for algorithms and/or data structures that have the following:

* Explanation

* Code examples

* History (when/who first used it)

* Application examples
Amazon Has 74% Share of the EBook Market – Author Earnings Report
easy to use? clean code?
it's not complex.
This is an interesting point, but I raise you search and types. One of the points where "the Unix philosophy" (as usually espoused at least) is sorely lacking is that all programs interact with what is popularly called "text" (or a "single type"/"unitype").

For practical reasons it isn't always text, but more importantly (the first bit is a subset of this problem): almost every program has to understand (100%) the output of every other program it has to interact with.

If output were typed our applications could ignore (reliably) the bits they don't care about.

If output were typed we could search by output-type (e.g. diff produces patch-like-output, so don't bother piping to "xargs", but allow "less" (any type of input) or "git apply" (patch-like-input) or "patch" (patch-like-input).

Types could add a huge amount of searchability to CLIs -- and for some reason this isn't appreciated even though we've seen it in a much more limited context such as OOP.

(I think my original inspiration for this line of thinking is Paul Chiusano, and he probably deserves most of the credit, honestly.)

EDIT: Actually, pondering this a little more: All programs should be forced somehow(!) to carry a "source location" for the source of their output. This is such an annoyance in the daily life of a programmer if you perform a chain of commands like "git diff ... | grep FIXME | grep ^+ | ..." just to get a grip on the FIXMEs you've introduced. The output doesn't show line numbers, because... well, for no really good reason, really. It's just that transformation as text meant that we sort of lost that bit.
Why do "we" want that?
Ask HN: How can you tell if you are insane?
My family is quite worried about me. Two days ago I believe someone hacked in to my cellphone and computer. It was behaving oddly as was my cellphone. Coupled with several harassing emails one of which told me that "here is something over your head" and contained a link to someone using Metasploit in a YouTube video demonstrating a root kit attack against a mobile device, I became concerned.

However, I also truly believed that they had my cellphone and were intercepting outgoing calls to my wireless provider. I tried to use the home phone which, immediately began to call out when I tried to use it, even though I never completed dialing. I called my wireless provider to check data usage and it felt like the person was "off" taking long periods of time to answer and give normal pieces of info back to me like other phone numbers on the account and basic stuff. My passwords were all on my phone so I honestly believed someone was looking up the information and they were stalling for time. Battery was draining while phone was off and didn't seem to hold a charge well.

I also felt very ill about 2 days later and had stayed up resetting and wiping all my devices and router. I went to the 24 hour walk in clinic with symptoms of being very weak dizzy and other general things.

My family thinks I am crazy. At first I was angry but I realize there is no way for me to really objectively consider this. I really believe my system was compromised and I am starting to doubt my own sanity I guess. Is there a way to figure out if I am crazy? It could be brought on by lack of sleep and stress, I doubt/hope it isn't anything permanent. I am 26 male, don't think it is something as serious as Schiz. And I take adrall (40mg) daily, slightly more recently, but other than that do not take drugs or drink.

How can I evaluate my mental condition objectively?
City-dwelling public transit users should not be forced to subsidize suburban sprawl, especially since there's such a straightforward way around it.
I'd prefer something that doesn't track you or invade your privacy. URSpider94's solution above about ticketing non-chargers would be preferable.
https://en.wikipedia.org/wiki/Plebs
> If you tell your boss "I am going to take tomorrow off", and they say, "Actually, you're scheduled for an interview, can you please come in? But take Thursday or Friday off by all means", you're going to still go to work, right? Informing, in practice, is identical to requesting ...

In my experience, "you must ask for permission" is substantially different from "you don't have to ask, but your decision may be overruled". It sounds like your experience is different.

Perhaps the differences I see can be put into another context. Think about the action "eating off someone else's plate", rather than "working from home". Do you see the gap between informing and requesting in that circumstance? The difference seems huge to me.
Dogma, the claim I disagree with is this: overall intelligence has more to do with your early development than your genetics.

You know what has a huge influence on your early development, your genetics. Do you really think I could be as good at math as Terry Tao if I had spent my childhood practicing? If we raise a chimp right, could it beat Terry Tao?

Yes, high IQ people vary more between tests, but much of this is regression to the mean. And still scores are relatively stable. The common superstition that environment and effort matter more than innate capacity is false - also perseverance is hereditary to some extent, too. I have not read the paper, but I very much doubt this effect would mean environment matters more than genetics. If you clone Terry Tao, and let this clone be raised by two average-IQ parents, he will not grow up to be average.

The summery you provided doesn't seem to discount the value of biological interventions to any great extent, as the "extended period of synaptogenesis" would likely have a genetic cause, given our knowledge about the heritability of IQ.
NetBSD-7.0 developer interview: Pierre Pronchery
No, that's not how it works here. When the event is mentioned in the media it is usually in neutral terms that do not mention the perpetrator. The emphasis is almost always on how we support those who were injured and the families of those who were injured or killed and on how to move on. When the camp at Utøya was formally reopened in the summer the opening speech was about the future not the past.
I see. Oh well.
This is great. I like it because the challenge is HARDER the more progress we make. You should get more upvotes here, from the real hackers.
I made some calculations.

The total cost of ITER is $14 billons (and going up :) ). The total production of electricity in the word is 20000TWh/year.

If we magically switch to 100% tokamak fusion production, and we want to recoup the inversion in one year, it would add 0.7 $/MWh to the production (and distribution cost).

A more realistic scenario is to generate only the mythical 1% using tokamak fusion reactors, and recoup the money in 10 years. With this modification the R&D cost is 7 $/MWh.

Just for comparison, the current cost of electricity is 50-150 $/MWh. So 0.7-7 $/MWh is not too much.

Anyway, the ITER project is not even close to make a functional power generator, so the final cost may be much bigger than $14 billons.
Basically I agree with everything you say, with one exception. There are many methods to refine gold, but none of them are particularly safe, involving, for example, the evaporation of substantial amounts of mercury, gold cyanidation (what Turing's mother believed killed him), chlorine gas, or boiling aqua regia. This kind of thing can be made safe, but it's even more difficult than making mercury processing safe.

So I suspect that the main issue is storage and transportation, not refinement.
> "how carefully other people read an article" is not a valid topic of debate on HN

Debate, perhaps not. As feedback, it's absolutely valid. Here you have two people whose first reaction is that you seem not to have read the article closely or completely. Will you really not consider the possibility that you didn't?

Anyway the operative point didn't occur to me until this morning. The author does indeed start out presenting an argument that could be taken to support the conclusion that Java is no more secure than C. But he never actually draws that conclusion.

It does take a closer reading to notice the absence of something than to notice its presence.

Your postscript is valid as far as it goes, though the sneering tone of your dismissal ("pointy-haired boss analysis") was unmistakable. I think it went beyond measured, defensible criticism.

For the record: I have no connection to SEI CERT or David Svoboda (the author), nor any pre-existing opinion about them.