skysight-inc/HackerNews huggingface dataset:
Will be irrelevant in a few hundred years, you mean.
I dunno; I think it's a balancing act between dependencies and code reuse. I think npm needs to not let people unpublish stuff without thought - that is where the problem is and I'm sure they are thinking about a solution to this.

I think a lot of this is implying "don't use micro packages on your package manager, copy and paste code in helpers.js FTW". I've seen people advocating this as if it's a better solution than have npm remain consistent even after people unpublish packages.
Easiest way to do this is to roughly time how long they spoke for and contribute back the same amount. If you do it right, you'll wind up spending 50% of the conversation talking and 50% listening, which is a reasonable split :)
Needs more Enterprise. Where are the factory factory builders?
> How stupid of people to trust their package manager to be consistent and correct and return packages they were expecting.

Obviously people shouldn't have trusted npm - that's the reason things broke in the first place!

> How does everyone taking the piss intend to protect themselves from this in their OS package manager, or PPM or composer or pip?

The usual method is to bundle dependencies rather than pull them down from the web at deploy-time. That or use a package manager with rather stronger guarantees on availability of packages.

> It's not javascript devs fault that the standard library is so piss poor you need these short code snippets

This is very true.

> the level of smugness here is absolutely ridiculous.

Also true, but funny nonetheless.
I don't often agree with the WSJ, but they got this one right. FBI director James Comey is a loose cannon and needs to go.
It's 2016! Left-padding without any deep learning algorithm is so lame.
Probably yes, but consider this interpretation:

> Seventeen prominent roboticists think: "Google should do with its robots."

Doesn't matter what. They should just do.
I'm not sure I understand your comment (I don't know what you mean by "limit work-in-progress") but one of the principles is to be explicit and formal about all the projects you've got going, as opposed to having fuzzy ideas about an unlimited number of potential projects in your head. When you track all of these projects, you adopt a more realistic approach, and you think more carefully about whether or not to start one.
With the time it takes to maintain that setup, you could probably do another task or two per day
Believing [1], the wreck has already been found in 2009 and identified to be the USS Conestoga in October 2015. Only the official announcement was made now.

[1] https://en.wikipedia.org/wiki/USS_Conestoga_%28AT-54%29#Redi...
Ooops. Upvoted you by mistake.
Why would it be so important?
> This was a failure on npm's side by including a functionality that allows users to trivially remove packages from a package management system that is used by hundreds of other packages, something that most major package management systems have decided was a bad idea.

That is emphatically not the problem. The author of those modules could have just as easily modified the code instead of deleting it:

function leftpad(str, len, ch) {
// NPM won't let me delete modules, so here you go
return "";
}

Now you'd have an even harder time figuring out what happened to your code that you did if the module just disappeared. What you're asking for is basically for the repository to adopt a policy of "all maintainers must be given free rein to get their modules correct and keep them maintained, but they shouldn't have the ability to do anything that causes problems downstream" which is impossible and frankly silly.

The problem is the dependency, not the precise mechanism by which that dependency screws you when it goes bad.
I don't understand why this community has to have a weekly cycle of bashing different programming communities. Every week there's a new drama thread bashing Java devs, Go devs, Javascript devs etc. The thing that I come to this community for every week is to read about new developments in our industry, if you don't come here for that then what are you coming here for?

And wasn't it just a few months ago people were praising the innovation of Urbit for having a 'global functional namespace'? But because it's popular to hate on javascript devs for applying -- sorry, I forgot this was javascript bashing week -- for reinventing concepts from other areas in computer science and software engineering the HN community has to start hating on another programming community's work.

That said this is a pretty funny satirical page, apologies to the author for venting at the HN community.
Which means unpublishing is the problem, not micromodules (in this particular case).
I would swap the expressions on each side of the '&&' around. While JS doesn't care (as it'll apply '>' to just about anything, even in strict mode), this is perhaps a stronger statement of intent:

return Number.isInteger(x) && x > 0;

Thus the more general assertion (is it an integer) guards the more specific specific one (is it greater than zero).
How to Make the Most from Big Data
Beyond orchestration: Taking it to the next level with container operations
I'm sure it is. (That doesn't make it not a grammatical error.)

It just seems like every time I follow a link to Medium, the article's littered with them; surely even the most cursory of proof-reads catches an issue with the opening sentence.
If you can read German: https://fahrradjaeger.de/
The e-books case. You cannot very well settle an FBI request or subpoena.

http://www.bloomberg.com/politics/articles/2016-03-07/apple-...
As best I can tell, that last graph would've been clearer as a bar graph and not a scatter plot (or at least better labels). The x axis merely indicates the location. So, "mean annual salaries by location (in kUSD)" might be a good title for the last one.
You are right of course, but, for someone outside France, it doesn't matter that much.
Title is killing me.
I think Functional Reactive is the right way.

Do you know Elm ?

http://elm-lang.org
You need a code of conduct to prevent that if you are not to pre-vet all slides, which is excessively bureaucratic and creates an implicit code of conduct anyway.
Numerical cognition
Since early childhood I have visualized numerical constructions [1] (and other discrete abstract objects) in an "imaginary" space, in a particular way. That is, when imagining ordinary numbers, I have "seen" them along a particular path in space. In fact, its representation in space is so permanent, and established, that I am able to draw its path on a paper.

I not only visualize ordinary neutral numbers (the number line), but also visualize calendar-cycle/seasons (months), clock (24 hour line), and the alphabet -- each system with its own and dedicated path in space.

I have always taken this for granted. Only recently I began wondering whether other people visualize numbers, and how. I made a quick search online and found that this property of the human mind has in fact been known for along time [2], and it has been studied recently as well [3], [4].

Do any of you perceive numbers in a particular way, e.g. with a number-space association? Do you create number-forms (as explained in [1])? I am interested if any of you have any thoughts about this issue. Is it subject to change, or has it remained unchanged since early childhood?

[1] https://en.wikipedia.org/wiki/Numerical_cognition#Relations_between_number_and_other_cognitive_processes
[2] http://www.nature.com/nature/journal/v21/n543/abs/021494e0.html
[3] http://www.nature.com/nrn/journal/v6/n6/full/nrn1684.html
[4] http://link.springer.com/article/10.1007/s00426-015-0741-2
If it doesn't have a CORBA and EJB interface, it's not enterprise.
As a very sarcastic person, I highly approve of this. This absolutely reflects my opinion of all this mess.

Thank you for making this site so that I don't have to write an opinion piece like everybody else seems to have to. Instead, if asked about the issue, I can just point them at this site.

Yes. This isn't constructive, but this mess had so many layers that I really can't point to a single thing and offer a simple fix as a solution.

As such I'm totally up for just having a laugh, especially when it really isn't being nasty against specific people but just laughing about the whole situation.

Thank you to whoever made this
Not just making them feel... I think this may be targeted towards recreuiters, who may be impressed by the sheer amount of npm modules someone has published.
AskHN: Looking for a collaborator to do something cool with neural networks
I want to do something cool and open source it on github, that would be interesting to many people and help me practice with neural networks. I mean that I'm not going to develop some new method, but just apply something that already exists (but invented recently, in two-three years) to some non-trivial dataset, and I'm asking about a clue for both. I'm open for collaboration and want to take the coding part of the work.

I'm mostly interested in RNN/LSTM, but deep convolution networks are interesting for me too. I'm planning to go with TensorFlow/Keras because them seems to be raising in popularity and I'm already familiar with them.

I have experience of software development and have taken a couple of online courses about machine learning and neural networks, don't have any thoubles with basic math required for neural networks, but don't have practical experience with them.
Looks like this is the public repository of all lightcurves recorded by Kepler: https://archive.stsci.edu/kepler/publiclightcurves.html
Docker for Mac and Windows enters private beta
>How does everyone taking the piss intend to protect themselves from this in their OS package manager, or PPM or composer or pip?

By signing packages and not allowing literally anybody to re-upload a brand new package that does something completely different under the name of an existing, widely-used package. There's not much excuse for that in any respectable package manager.
If it's already what you feel is expected of you, why object to agreeing to it?
It's interesting to me that people find this convincing. I find it to be complete insanity. People need their libraries, but putting everything in tiny buckets is just not working. Why aren't people working on good utility libraries instead?

There's even some guy calling for a "micro-lodash". To me, as a Python engineer, lodash [1] is already a tiny utility library.

I guess it's also about the fact that JS is a pretty bad language. That you need a one-line `isArray` dependency to `toString.call(arr) == '[object Array]'` is crazy.

[1] https://lodash.com/docs
Docker for Mac and Windows Beta
Actually, thats a good reason to use trivial functions like the one described. Hopefully the author has discovered all of the quirks in Javascript that might affect this. It will likely be a lot more tested than any version I would write.

As someone who spends 80% on the back end, I often get bit on the ass from JavaScripts quirks when I need to add some front end stuff.
I need a SOAP binding for this, because reasons.
That's good, even if nobody is perfectly enough to a botnet. I thought more of the user running the node application.
This is really not how you should write C++ in 2016:

- Manual memory management

- NULL-terminated strings instead of std::string and/or a string_view class
Hi!

Popular enough to turn it into a book? :)

Well, maybe it was because I'd read the story before (and really enjoyed it) so I couldn't get the same enjoyment from the book.

Anyway, good work and keep writing.
I'm with Knuth here, a lot of the arguments for discrete function units sound like premature optimization. In the end, you won't get the equivalent of the MODULA-3 standard library or something equally well-defined, but PHP4's mudball of functions.

All this because a few bytes of functions would ruin your experience and/or dead code eliminiation isn't part of your pipeline.
The Hierarchy of Engagement
So Apple is supposed to safeguard our data now? If you really want privacy don't expect big corp to keep it for you.
Buying groceries for rich people, I realized upward mobility is largely a myth
The perfect to-do list is the one that inspires you to do the things on the list. This is highly individual.

I'm glad you found that Trello works well for you, but that doesn't mean everyone else's search will end in the same place.
Maybe you're running on an embedded processor that can do sin/cos/tan with high performance but sinh performance is bad. Maybe part of your project needs to depend on an old version of sinh with a correctness bug so that you can reproduce existing calculations, so you don't want any other parts of the code depending on sinh. Maybe your legal team doesn't want you using sinh because they believe the implementation might infringe some patent.
Show HN: Google Stackdriver Error Reporting
I don't understand your design. How does the fact as to whether you won cause the photon to activate the explosive?
Left-pad for Python (how could we have lived all this time without it?)
No one will buy a bike without a number.
I am Product Manager on Google Cloud Platform, I worked on Stackdriver Error Reporting.
Your questions and feedback on the feature are welcome.
I just end up using text files or written notes. Works both as a to do list and idea scratchpad. The only thing I'd want to change is be more organised about keeping the text files in sync (we can't use Dropbox at work, so I end up using emails).

I've heard good things about org mode in emacs, wonder what added value I'd get from that.
Not all views are equal. Some views are so horrendous it is our moral duty to ostracize their believers.
"You guys cannot choose which aspects of capitalism you want to like and which not..."

Every country chooses which aspects of capitalism they want, via regulation, taxes, social programs. Even the most laissez-faire county does. There is no pure capitalism, it doesn't exist.
sprintf and friends will pad strings for you, no?

printf("%20s\n", "Hello");
But this would suggest the opposite of reality - that rents increase faster than house prices.

In this case German house prices are relatively high & rising faster, when compared to rents.

In Berlin in particular purchase prices have increased by 8-10% per year in recent years where as rent prices have only increased by 3-5% per year (both are still cheap compared to Vancouver).
It's sad, really. I've been coding for roughly 11 years, since I was 14 or so, and have always noticed the constant pissing matches between programmer groups. It's easy to fall into them, because when you do something a certain way for so long, another way looks so foreign and terrible. I tried to make an effort to always stay out of those arguments, but absolutely fell in here and there.

Lately I've stopped coding for work and moved into a PM++ position as I build up a small agency on my own, and it has been refreshing. I build little meteor apps for fun in my free time (omg meter doesn't scale noob lol) and can keep my blinders on to what the outside world thinks, and my devs can continue to do what they are comfortable with.
I'm very interested in the topic as I've struggled to replace the efficacy of my old Franklin Planner.

I've tried Google calendar reminders, and that hasn't worked. Evernote hasn't been great either. I don't want to go back to Notepad.

Maybe the issue is having the discipline to spend 15 minutes a day planning?
How South America's lithium triangle is gearing up to feed our battery addiction
All life is political. Sorry that hurts your feelings.
I'm not sure how I missed that. I've never heard of if hiTask! A friend pointed out Bullet Journal (http://bulletjournal.com/) too. I like the idea of having it all in your notebook but it does mean you have to carry it around everywhere.
To forget about piracy. I mean no offense to these developers, but if your app can't sell then it can't sell. People will steal software regardless of what you do. Measures like this almost certainly don't encourage more sales, instead they result in negative reviews and fewer sales.

Related question: This was on iOS. How bad is software piracy for this platform?
Even the Java ecosystem managed to get their crap together and make the excellent Apache Commons library collection to deal with a similar situation (anaemic to useless standard library). C++ has STL and Boost.

Only the PHP and JS communities seem to think that not having a solidly designed "base" library is fine (and even PHP seems to be getting better at it with 7).
I had the same thought, but then you have to remember years of experience does not equal mastery.
And we should be providing welfare to help people get better custom service and improve their love life? When we are talking about providing for people's needs, this wasn't part of the agreement. If we want to expand welfare, let's be upfront about it and decide what we expect in return for that welfare.
If anyone thinks there is any “security” in a remote lock/unlock fob, then they are just plain old silly. Even your garage door is dead easy to get into as it’s remote does the same thing. Note the house “remote deadbolts” are the exact same rolling code tech and easy to defeat.

Why? Because the manufacturer does not want to provide real security, and people will whine like crazy if their keyfob does not work. so they make it insecure for price and reliability
A social psychological study of online discussion of 9/11 conspiracy theories
Should you rewrite it for every project you need it in, or copy and paste from the last one?

Should tests also be rewritten or copied each time you do this?

What do you do when you've used it in multiple projects and you find a bug or performance issue?
Yes, I am perfectly okay with discriminating against Nazis.

Since when is ALL discrimination bad? I discriminate against shitty people all the time, and so do you. Don't even pretend you don't, no one will believe you.
When using a language where

isArray(arr)

turns into

toString.call(arr) == '[object Array]'

...then I guess that's more reasonable than if you use something sane.
Best practice for performance for large left-pad jobs is to call the service recursively using mapreduce. Remember that left-pad(str,pad,n) is equal to left-pad(left-pad(str,pad,n/2),left-pad("",pad,n/2),n). This should run in logarithmic time and is highly parallelizable.

If you don't like the "" magic string in there you could replace it with a call to left-pad(null, null,0).
I'm extremely shy AND introverted. I don't like talking to strangers or meeting new people.

But this one time, I had a job interview in DC and my wife and I were at a bar enjoying drinks/dinner. Out of no where this young woman sat next to me and started talking to me. I was extremely uncomfortable/awkward at first but she asked what I did and I replied that I'm a software engineer. She immediately responded with "I work for the Chamber of Commerce." This naturally triggered a conversation about software copyright laws and SOPA. It was the most enlightening conversation that I've ever had with a stranger. While we had different opinions, it was very civil and pleasant. My wife was jealous since I was talking to this woman for so long but it wasn't about her, it was about the conversation. I generally go out of my way to avoid these interactions but I was so shocked how it turned out, once I got over the anxiety of talking to a stranger.
Other implementation, for the curious:

'{:+>5}'.format('abc')
Google may be working on a Periscope competitor called YouTube Connect
Erik Prince in the Hot Seat
Microsoft is deleting its AI chatbot's incredibly racist tweets
Okay so have you checked all of the apt repos you've added to sources over the years or has one of the ppa's changed to something malicious?
Creating 3D Models from Light Fields
I'm using Trello every day, but I don't like that it is too manual. It's like a physical board. There are no options to automate certain things, especially task order and recurrence. I spend too much time maintaining correct order to avoid important tasks moving out of sight.

My ideal system would do the ordering for me, according to the priority, date, postpone hints, and other task properties.
Chalk markings are not uncommon on the Emory campus, and I think it's a little severe to call them graffiti. For example, https://mobile.twitter.com/michaelgraves91/status/5410463631...
its called self-regulation.

Each community has its own quirks and extremes as seen by everyone else.
Without the bashing, they would become even more extreme. At least after this a lot of devs will think twice about making "micro-modules".
-9 out of 77 Chinese were asked if they have Vancouver property
-BS extrapolation leads to 33% figure
I believe it

Ladies and gentlemen, just remember that economic bubbles aren't only bubbles in assets, finance, and the structure of the economy, but also the psychology of the people.

The number is actually closer to 1-2%.
I'm Wakahiu Njenga from Kenya and the cofounder of behold.ai http://behold.ai. All the best with you YC application!
Dependencies are one side of the problem. Unavailability of binaries and dogmatic use of dynamic linkage are the other side.

When I installed a simple lines-of-code counting tool through Macports the other day I accidentally opened the door to dependency hell as gigabytes of not even remotely related stuff started to build [1].

Without a doubt something is going very wrong with Free Software and package managers. On the other hand, never look a gift horse in the mouth so I may not even be the right guy to complain here.

[1] http://pastebin.com/cAZgbaFN
Well, I don't think we can trust NPM on being consistent. They gave away this guy's package to a corp, despite his protest just because they felt like it. I'm not arguing if it was the correct decision or not, it's just an arbitrary decision based on isaac's mood that day.

It's best to treat NPM as mutable and don't depend on it. For example, I check in node_modules to git, even though everyone says no, use shrinkwrap! Yeah, that would definately help here.

NPM is to blame here and people are right to make fun of the entire ecosystem around it. Also, It's just easy and funny.

Noone will start copying stuff around just because of this I believe. The micromodule ecosystem
emerged because it works for people apparently. Devs will find ways to make it work better.
I think one thing it has been good at is adding features or networks. twitter never really evolved.
was discipline an issue with your old Franklin Planner?
Mesosphere raises $73.5M led by HPE, with Microsoft as strategic investor
You can find some of the deleted tweets here: http://uk.businessinsider.com/microsoft-deletes-racist-genoc...
Bonus points for emotion control as a programming tool. You can't code if your head's all over the place.
How to abuse NPM
The NPM model is powerful, but composing with dozens of tiny modules is bad practice plain and simple.

The breaking this week proves it. The risk outweighs rolling your own padding function.

People like to pretend that because of automated tests and CI these risks don't exist. They are dependencies regardless. You incur some risk when you import. Use NPM wisely please.
This makes more sense. String formatting already has it's own specific function, it doesn't really require a module.
a) It's about half of what I'd write for my own, where I would make sure to test all edge cases (e.g. input string being longer than padding length) as well as Unicode characters. Writing expectations is cheap, fixing bugs later isn't.

b) I agree, but you were the one offering "well-testedness" as an argument :)
Well yeah it is a bit of a stretch. He is ridding a wave of anti Islamic sentiment because there is an extremely violent group getting a lot of media attention by killing in the name of Islam. He is painting every day non violent Muslims as the enemy because people like a black and white us vs them. As opposed to the more complex reality, I don't think there is an opportunity for this to happen with other people groups.