skysight-inc/HackerNews huggingface dataset:
I mostly agree with the thoughts on testing, and agree with the principle that unit test overkill is not constructive.

I don't think 100% control path coverage is hard to achieve though. If done correctly, it should not require an excessive number of tests. If your methods are so convoluted that covering every path is complicated, you probably need to split up your code further.

I name my test methods like this: test<MethodUnderTest><Assumption><Expectation>, e.g:

void testCalculateWithIncorrectFooIsNotValid()

Writing lots of tests that have ridiculous names is a code smell that I've overdone it on testing. Although this doesn't happen as much with statically typed languages, since the compiler does a lot of the work for you.
Two Types of Data Scientists: Which Is Right for Your Needs
Migrating a containerized DNS server with persistent data using ContainerShip
Actually there are providers which will sell you a port ACL as part of their DDoS mitigation service. These ACLs can block almost all of the BS volumetric attacks which will cripple you. Everything gets blocked on the provider side. NTT's pricing is especially reasonable. TWTC has a similar service.
Good Posture: Its Importance, Benefits, and How-To – The Art of Manliness
> Wealth exists only within an economy and thus is a social construct that makes it's owner intrinsically beholden to that society. Wealth thus increases the moral obligation to the society from which that wealth is derived.

This notion pops up quite a bit in HN discussion of basic income. Can anybody provide some references to any sort of scholarly work on this concept? Presumably it has been described and discussed in depth and I'd like to be able to understand it better or even associate a name to the concept.

In any case, I'm not sure I follow the logic in this particular description. Why does wealth being a 'social construct' make the 'owner intrinsically beholden' to that society? What does 'intrinsically beholden' mean? These seem like arbitrary and poorly defined assertions to me.

> Minimum income is ... given to everyone.

Define minimum income. Do you imagine it enough to provide food, shelter, clothing? If so explain what other mechanisms would prevent the emergence of a large group of people who simply lived off the efforts of others as a choice. What mechanism would keep that sort of system in equilibrium rather than the consuming group growing and the producing group shrinking and the resulting tensions escalating? And don't we want to construct a system that moves towards a state that maximizes the number of self-sufficient people rather maximizing the number of dependent people?
Why Am I Right-Handed? – FiveThirtyEight
If your email is hosted on the same machine as your web server, I don't think DDoS attacks are your highest priority.
I still don't understand. Why would length be undefined if that's how you tell whether a string is small or not?

Even if you can remove one of the branches because you know if the string is small, the logic of "this branch can't happen" -> undefined -> delete sounds more complex than "this branch can't happen" -> delete.
Kinda reminds me of the old teleology.
Harvey Mudd College, Ratio of Women in CS Increased from 10% to 40% in 5 Years
I'm using npm / browserify etc in anger for the first time today. This is a horrible issue to have run into and it's left a pretty sour taste.

The fact that it's possible for someone to unpublish 17 lines of js and break the install of major bits of infrastructure for everybody is pretty insane. It seems like at a minimum the dependency tree should be traversed to see what the flow on effect will be. Should it even be possible to revoke an old version that's depended on by other libs?

These few lines of js cost me a couple of hours tonight! :-/
“No Win, No Fee”

So people will begin to submit every little grievance since they won't get charged if they don't 'win' on the chance that they'll get a payout if they do win. At what point does JaaS stop scaling? Perhaps this one stop on the way to fully digitized contracts?

Two things came to mind when I see this (neither of which my Search Fu is successful at finding...): 1)A short story placed in the 'near future' where people receive emails from lawyers about copyright infringement where settlement of a few cents is offered and can be paid right from the email. 2) Recent research into digital contracts for financial systems. JaaS feels like #1 developing from the consumer direction.
You are off by an order of magnitude. Assuming a $5 CPM, you are looking at half a cent per ad. And a $5 CPM is very high for user generated content, especially display. It's likely closer to a $1 CPM if not lower.
Ah, interesting. I'm not super familiar with torrents and didn't know about that feature. I suppose he could release many versions with their own unique hashes. Would people be less likely to put the effort into creating a cracked version if they felt there were already a lot out there? I always wondered who does software cracking and how hard it is.
Didn’t get down-voted overall so fine on that end.

I actually never though of the existence of a continuous cone of focus outside of the plane — the graph I had seen were all focused on the whether the plane heard it.

I guess an alternative option would be to find routes above the polar circle, or through the narrow of Central america — but the increased distance would make it less interesting at “just” Mach 2.2.
This is incredible. They screwed the author about ownership once and then they did exactly the same thing again.
Lost PLA 3D Print to Metal Casting; Complete [video]
As you can see here[1], changing the argument order does not prevent `elem` from showing up in the first position.

If there are multiple close matches, ordering of arguments can change which is first, but the one you're looking for is almost always in the first few.

[1] https://www.haskell.org/hoogle/?hoogle=%28Eq+a%29+%3D%3E+%5B...
I applaud this action and while I'd like to point the finger at NPM, there's no real other method to fix historical package versions that depend on this.

It is worth pointing to the silly state of NPM packages: Who decided that an external dependency was necessary for a module that is 17 lines of code?

module.exports = leftpad;

function leftpad (str, len, ch) {
str = String(str);

var i = -1;

if (!ch && ch !== 0) ch = ' ';

len = len - str.length;

while (++i < len) {
str = ch + str;
}

return str;
}

Developers: less dependencies is better, especially when they're so simple!

You know what's also awesome? The caret semver specifier[1]. You could install a new, broken version of a dependency doing that-- especially when other packages using peerDependencies rely on specific versions and you've used a caret semver specifier.

[1] https://github.com/lydell/line-numbers/pull/3/files
> Cheng says that while Global Archery is an operating company, it still meets his criteria for being a patent troll.

> "Global is asserting questionable IP rights aggressively and counting on the high cost of defensive litigation to win, so we consider it a troll," Cheng said. "Newegg hates trolls—they bully the weak, they hurt consumers, they hurt America, and they just suck."

Yeah, no. Nobody really considers a company that is actually making the products its IP covers a troll. You're just throwing that word around because of its negative connotations, and trying to redefine it.
Before OS/2 Was OS/2
Then how can you ever install anything in the first place?
I agree. I use and love NPM and others like it, but when it comes down to it, i check-in my dependencies when my applications get "released".

Committing the updates is only one more step, and in my experience it's not even another step since we already have a rule that new installs or dep updates need their own commit.
If you use your bike everyday the biggest cost factor will be chains, cockset and sprocket. Those modern 10 or 11 sprocket cocksets require smaller chains which wear of faster then snow smelts in the sun. You are lucky if you can use them for longer than 3000km. If you can downgrade to an old XT with an Uniglide (UG) chains you can save money as those will be ok for up to 25000km.
You don't have to do what your customers say. If you are right, they will probably catch on eventually.
That sounds (to me) like corporate newspeak for "litigious copyright troll as a service"
Found it [1].

Looks like the patents are somewhat original. '413 has a removable foam tip secured with barbs and '159 is similar with an overmolded tip. Might be tricky to come up with prior art on those.

The trademark violation looks legit too. AdWords were being used with their trademark as a keyword. Don't see how this company is trolling other than the ridiculous gag order.

[1] http://arstechnica.com/wp-content/uploads/2016/02/GA.Gwyther...
NOTE: Safety info and details on equipment used starts at 27:00
Graphics aside, the revamped input options alone justify the remaster IMO. They got a lot of things right with the original but tank controls were not one of them.
A bot that interfaces with the Tinder API using Node.js
True, very true.

I'm part of a University system pension scheme that, while operating with a sizable unfunded liability, is fairly stable and has a good outlook. In the end there is a risk but it's difficult to quantify looking out 35 years in the future. I do know better than to take it as a 100% and have eggs in other baskets as well.
Back in 2012 coral reef zoologist / mathematical ecologist Roger Bradbury, argued that the coral reefs are already "zombie ecosystems" and we're better off focusing our efforts on trying to understand what happened, rather than futile efforts to save the coral reefs.
http://www.nytimes.com/2012/07/14/opinion/a-world-without-co...
My advice: I do carefully select the experts I listen too

"One Belgian counterterrorism official told BuzzFeed News last week that due to the small size of the Belgian government and the huge numbers of open investigations — into Belgian citizens suspected of either joining ISIS, being part of radical groups in Belgium, and the ongoing investigations into last November’s attacks in Paris, which appeared to be at least partially planned in Brussels and saw the participation of several Belgian citizens and residents — virtually every police detective and military intelligence officer in the country was focused on international jihadi investigations.

“We just don’t have the people to watch anything else and, frankly, we don’t have the infrastructure to properly investigate or monitor hundreds of individuals suspected of terror links, as well as pursue the hundreds of open files and investigations we have,” the official, who spoke on condition of anonymity because he was not authorized to speak to the media, said.
“It’s literally an impossible situation and, honestly, it’s very grave.”"

See http://www.buzzfeed.com/mitchprothero/belgian-authorities-ov...
You're right, in certain cases it would still cause trouble, but it would be a lot fewer cases than 100%. Reading only once would be safe, and passing it to another functions would make a variable that can no longer change unexpectedly.
Depends on who's doing the describing. Some university offices of "technology licensing" do act like patent trolls.
Is AI right now useful as a way to provide value for small projects or startups? Any examples of that?

I'm going to make the simplifying assumption of saying that "machine learning" is a subset of AI for our purposes, and that "machine learning" includes "simple" techniques like linear regression, logistic regression, k-means clustering, etc. I don't think any of that is terribly controversial, although I know a few people would quibble over it. Anyway...

Given that, I'd say the example is absolutely "yes". AI can help startups and small projects. There's actually a really nice example that Andrew Ng talks about in his Machine Learning course on Coursera. In that example, a t-shirt manufacturer is trying to figure out how to size their shirts. So they go out and take a bunch of height/weight measurements of prospective customers, and then use k-means to segment the data into clusters. Let's say they do 5 clusters, corresponding to extra small, small, medium, large, and extra large. Now they can look at the measurements in each cluster and figure out how to size their shirts.

More generally, anywhere that you have data, and you want to extract insights from that data, you likely have an application for some level of machine learning / AI. Of course it won't always (or even often, perhaps) be the case that you need a deep neural network, or anything like the cutting edge in academic research. But, then again, you might. :-)

that get added to existing products by large companies with access to large datasets and computing power.

Do you have an AWS account? If so, you have access to large datasets and computing power as well. Look at all the data that's "out there" in terms of Open Data, LinkedData, etc... As an exercise, browse around data.gov sometime, and look at things like the datasets the UN makes available, and the world bank data, etc., and see if you can think of a way to combine a few of those datasets and extract some meaningful insight from a combination nobody else has looked at before.

If you come up with something, it's not terribly hard/expensive to spin up a cluster using EC2 and run some analysis.
IANAL also. But it's important to distinguish a copy (which is just more or less copying what you read in C) vs a derivative work (a work that could not have been done or would have been done noticeably differently in the absence of the parent work existing). Just because you read Harry Potter 5 years ago and only now bother to write a fanfic in French using your memory of that world as a base, maybe keeping most names or subtly changing them a bit, does not mean your new work isn't derivative. It probably shouldn't be derivative given how much of our creative culture is remix upon remix, but hey, that's a much more extreme position that gets close to abolishing copyright entirely.

Code is just tricky though and metaphors for books and other things often break down easily... API / module substitution copyright seems silly, but maybe only to people who understand programming or who can grasp the metaphor that copyrighting an interface is like saying any book that uses numbered chapters (instead of custom named chapters) is a derivative work of the first book that used numbered chapters. Some code "could be but one way", naming included / irrelevant (I think a lot of SO code is like this, there are very few ways to glue together certain bits of code to do small thing X in context C), some of it is more like performance art, some of it is just almost pure math, and some of it works as a whole to solve one particularly hard problem which in itself has business value, just as music has business value by solving the problem of being appealing to listen to so that people buy it. Copyright law seems ill-equipped to handle it. Strategically though, I'd go with what the lawyers advise -- a lawsuit that I win can still be more costly than just playing it safe to begin with.
> Glad to see this high-profile acknowledgement that "patent troll" doesn't exclusively mean "non-practicing entity".

Except that's exactly what it means (unless it means less than that--excluding universities and the like).
Start with your personal blog first. That will go wherever you go, even if the company doesn't work out.

That's how I did it and it worked out perfect.
I think you missed the caveat about the actual damage caused. Wasting people's time is nowhere close to murder.
He made it clear he doesn't want to consider it a knee jerk, which has approximately zero relationship to whether it actually is.

Protesting trademark law sounds like a lot of useless fun. It may be the "correct" thing to do, but it will have no result.
The Patron Saint of Inner Lives: On Wallace Stevens
Reading the article I thought it was some massive popular framework. But when I visited the library's github page, it seems to have only 8 favorites. Am I missing something?
Agreed, I think the big problem here is that we have "soft-drug offenders", and not only that, but we have lots of them - more than rapists. This erodes the public image of what "criminal" is - if we look at random criminal and it's a pothead that just wanted to get a little high without harming anybody, then the natural question people ask is "do we really need to be that harsh on that?" And the answer is no. Because he's not a criminal, and only idiotic laws make him a criminal. But the harm is done because the idea of "criminal" is now confused - are we talking about rapists? Are we talking about murderers? Are we talking about potheads and public drinkers? Do we want to be hard on them or soft on them? The only way to untangle the mess is to get people that we don't really need to prosecute out of criminal system altogether.
These examples (mugging, burglary) are serious crimes that have a lasting impact on most people. In addition, a place where mugging and burglary is happening without consequence has a really negative effect on the people there. Ask a black mother whose kids live in fear whether that guy who is mugging, robbing and breaking and entering belongs in jail.

The punitive nature of arrest and jail makes the cost/benefit less attractive of capture looks like a high risk. (Example: NYC)

We don't jail cheating spouses because society learned that moral turpitude as a crime creates other problems that society is struggling to move past.

We don't effectively police many categories of white collar crime because the risk of capture is infinitesimal.
(bit offtopic) but what about:

module.exports = function leftpad (str, len, ch) {
return Array(len).join(ch || ' ') + String(str);
};
I find the `async` library excels at this:

var fs = require('fs');
var async = require('async');
async.waterfall([
(cb) => fs.readFile('foo.txt', cb),
(data, cb) => my_function(data, cb),
(result, cb) => myDb.lookup(result, cb),
], (err, finalResult) {
if (err) {
console.error(err);
} else {
console.log(finalResult);
}
});

There are all sorts of helpful async primitives in there. I don't write Javascript without it!

Here is a link to the documentation: https://github.com/caolan/async
This feels very wrong to me. I know, open source, etc., and it's likely that the source license allows it provided the license remain intact, but still... For better or worse (worse, IMHO), the author decided to un-publish his nam modules. He asserted his authority over that package of his code. For npm to usurp his authority, even if the licensing allows it, feels wrong.
You Were Funded for a Liquidity Event – Start Looking
My impression is that there's a fairly vicious catch-22 at work here; there isn't a substantial dialog in our culture about mental health issues "from the inside," and as a result, people with said issues aren't accustomed to identifying as "people with mental health issues" in the same way as they might identify as "person with non-standard sexual orientation" or "person into such-and-such sport." And as a result, there's no one to have a dialog about mental health issues from an insider standpoint, and around we go again.

I would guess that a print magazine is not an agile enough platform to jump-start such a dialog effectively. Obvious comparison; tumblr, among its multitude of various unusual communities, hosts a thriving little culture of mental illness thought, almost entirely derived from the freely available writing of non-professionals with first-person experience living with such conditions. A zero-buy-in medium is much friendlier to people with little initial commitment to the subject; a decentralized medium with no gatekeepers is able to fluidly adapt to the changing opinions of its user-base.
There are no legal claims to be made over NPM package names. NPM has a policy for assigning names and third party attorneys don't get a say.

Are you serious?

>Seriously
Anyone heard of xAPI (tincan)? Is it AI related; more than basic learning?
> I can't think of an example of UB-exploit in the compiler that wouldn't result in different branch behavior,

What about Implementation-defined Behavior? This is (I think!) technically a subset of Undefined Behavior and it permits such things as setting values[1] to arbitrary (but well-defined!) values on various operations, such as "excessive" left shifts. What I'm saying is that a compiler is permitted to substitute IB for UB and still be conforming. So it could start to do strange things to arithmetic, etc. Does that make sense as an example of what you're thinking of?

EDIT: [1] I obviously meant memory locations... as referred to by "variables" which aren't really variables, but are really binders/aliases. But here we are.
That might be how you're choosing to use it, but I've seen widespread usage of "patent troll" to mean anyone abusing patents in a variety of ways, whether they make a product or not. So it depends on who's doing the describing.

In this case, Newegg's attorney concisely described another type of patent troll.
Wow... No one said lawyers can't be wrong, but the law is complex, and if you haven't studied it, it's a pretty good bet you don't really understand all the details. It's pretty funny to see you belittle lawyers in the same paragraph you say any lawyer's mind would melt by the complexity of software. Having a PhD in CS doesn't make you an expert in the law, the economy, or any other field unrelated to CS.

I was going to respond to the wikipedia article, but I'm realizing that would be a waste of my time. Good luck with your crusade against the almighty lawyer-priests.
> This is not a knee-jerk action.

The only thing knee-jerk and honestly irresponsible is not warning anyone first, especially knowing how much his modules were depended upon.

Otherwise, there's nothing wrong with this.
True. The description/achievements are key. I guess my point was that the distinction in my titles was largely a result of HR practices at the organizations and not an indicator of advancement. For example, at most companies an "Analyst" position is higher than a "Programmer", yet I had that first. And if I didn't choose to become a manager, showing growth at my current position would be difficult.
Science allows the development of technology and technology is responsible for most fossil fuel emissions and pollution.

I agree that theoretical science in itself is neutral - the same science can be used to build technology which is climate neutral or even useful in cleaning up the mess.

Besides, there is more than a subtle difference between the concept of "pure science" and what form science takes in reality - interweaved with politics, economics, personal egos, etc.
> You're completely missing his point if you think this suggestion is at all reasonable.

Is this the kik we're talking about?

http://dev.kik.com/
https://trademarks.justia.com/858/93/kik-85893307.html

Is the point that kik should just give up on their company trademark?
He's not protesting trademark law; he's protesting that NPM just handed over his module to someone else.
It's trivial for companies to not spend resources helping problem customers.
Have you been to the Pacific Islands, thousands of miles from any continent with industrialised agriculture? Swam in Vanuatu? Dived in Samoa? Snorkelled in Fiji?

There is coral bleaching on a massive scale that can't be explained by any of the reasons you mentioned.

Here in Fiji, last month we had ocean temperatures so high that thousands of fish died. This is unprecedented in Fiji: https://www.newswire.com.fj/community/fisheries/fish-kills-u...

The same happened in Vanuatu: http://eveningreport.nz/2016/02/09/vanuatu-heat-wave-suspect...

A week after that happened, the same warm seas spawned the second biggest tropical cyclone ever recorded in the entire Southern Hemisphere, killing ~50 people. https://en.wikipedia.org/wiki/Cyclone_Winston