skysight-inc/HackerNews huggingface dataset:
All you have done is used a function without understanding what it was doing, or reading the documentation. Most JS developers know how parseInt works, and even if they run into this problem, would quickly discover the cause. I don't see how this is a flaw of Javascript; it could happen to a developer of any language, if their strategy is 'well, it looks like it'll work'.
Stardatetime: Python datetime for the next generation
These aren't the moderate Muslims you are looking for. Move along.
A North American Teenager's View on Social Media

Even better. Though I'm sure someone from North America could improve on that title.

FWIW, I thought it was a very well-written piece which outlined some of the subjective pros and cons of various social media. As someone who doesn't spend any time on any of the social network sites and who barely uses a smart-phone, I found it to be quite informative.

Edit: After posting this comment, I used a search for the word "North" and saw that quite a few other commentators had already made the same observation.
probably the best reference besides the o'reilly books.
Funny, when the IP addresses weren't NKorea, as earlier highly voted HN articles have told us, it was proof that it wasn't NKorea. Now that they do, its somehow further proof that it wasn't N Korea.

I understand knee-jerk anti-US comments are karma gold here, but I don't think you guys realize how ridiculous you sound to the rest of us. I think its pretty difficult to arm-chair analyze this stuff and come out with a definitive answer, especially considering a lot of this stuff will never be declassified, but the Alex Jones-like conspiracy thinking here really brings the discourse down to a reddit-like level.

Purely from an Occam's razor perspective, the country that attacked this film and warned of consequences if released-- consequences that actually happened, is probably at fault here. This analysis of how it must have been anyone but NKorea, especially considering NKorea's reputation, is highly questionable to the unbiased observer.
"Facebook is dead to us but we use it for X,Y, and Z." I found this kinda funny. Obviously it's not dead to you if you use it for a variety of purposes. Seems like friends I have with teenage kids are mostly on Facebook. Now it may not be their primary outlet. But "dead" seems to be a bit of an exaggeration.
>> "It's definitely the most popular network amongst teens in my (UK) school."

I'm not sure I'd put to much weight on that. From my personal use and what I've seen people seem to spend longer periods of time on Facebook. Whereas Snapchat requires seconds at a time. When you're asking who used something before school you have to remember these kids likely got out of bed, didn't have time to shower and ran to the bus :) I'd love it if you had also asked about what they did after school the previous day. Of course my evidence isn't very robust either but I don't think you can draw your conclusion from that survey.
Non-credible-threat? North Korea?

I'm not a fan of the US' foreign policy in some ways, and certainly place no blind faith in the declarations of the government, but, that doesn't exactly make North Korea the 'good guys'...

http://www.ohchr.org/EN/NewsEvents/Pages/DisplayNews.aspx?Ne...

http://en.wikipedia.org/wiki/North_Korea_and_weapons_of_mass...
> Or maybe you want to look at the Boston Marathon bombing that ended in a shoot out with a SWAT team

In that case, poorly coordinated, heavily-armed police fired hundreds of rounds into a neighborhood of primarily wood-frame houses in Watertown, Massachusetts. That's a good case for disarming all the cops involved in that incident.
One targeted a civilian organization, the other targeted a government installation (one could even make the case it was a military target). It's not hard to understand why some people would give one a "terrorist" label but not the other.
10-16 year olds also live with their parents and often "hate" them. Now that more adults are there, it's not as natural to get on Facebook as a teenager/pre-teen.

Will they join later when they move out and seek ways to stay connected with family? Who knows - but I can definitely see why they're not there yet. I'm older, but the only reason I joined Facebook was to have a way to keep in touch with family once I moved 2000 miles away to California.
This article doesn't seem to have been updated in a while.

No mention of ARM (which is a RISC architecture)? No mention of power usage advantage? You're not just removing those code translation transistors to simplify your chip, you're also removing them to reduce power usage!
"Cursory Google results show surveys and polls where 67% of parents approve of corporal punishment and half of parents spank their children regularly."

Polls of parents as people with children, or people who have had children? Most every person I know with kids today is against such punishment. But their parents, those whose "kids" are now in their forties, have radically different views. And there are far more old people who have had kids than parents whose kids are currently under 18. Imho this issue is the quintessential generational device.

That 67% will drop as the old people die off along with their antiquated notions of violence upon children.
I see no indication from the article that having the text in a different language would change this. It's probably based on browser locale.
How to be better at accomplishing any of your goals
Finnegan's Wake is easier to read, in my opinion, because it isn't a linear novel. By its very construction, the non-deterministic "narrative" implores the Reader to leap, skip, and jump about as though lucid dreaming. John Bishop's introduction to the Penguin Classics edition (not my favorite edition, but definitely the best intro) provides a supporting context for this.

I think the book is great fun.
You say that, but as a small site operator, my experience is that I add the characters "SPDY" to my nginx config, and clients are happy cause stuff loads faster.

Why did nothing happen since the HTTP1.1 spec? Everyone say around until Google decided to move stuff forward.
Thanks, I'll have an email off to you tonight.

And regarding "Huh, who knew", while I won't go so far as to say "everything has value", if you can create value for someone else, you can charge for it.

I'd highly recommend you check out patio11's work on this: http://www.kalzumeus.com/start-here-if-youre-new/
Luckily for all of us, the Durham County District Attorney in the Duke case named Mike Nifong, was found to have lied to the court and had withheld evidence which would have exonerated the poor accused lads much sooner. For brandishing his own personal form of social justice, Nifong was disgraced and disbarred and shortly thereafter, went bankrupt. It's a shame that even with the tax evasion issues and outright lies that Sharpton has built his career on, he's still on the Whitehouse guest list. It says a lot about our current political climate.
> the Alex Jones-like conspiracy thinking here really brings the discourse down to a reddit-like level.

That's where political discussions inevitably and invariably end up. Probably best to just flag these articles.
JS equality table
An awesome LEX tutorial
Am I in the minority by thinking a 19 year old college student is not what people think of when they hear "teens?"
Just looking at your example:

for (var i = 0; i < y.length; i++) { ... }
for (var x in y) { ... }
for (var x of y) { ... }
y.forEach(function(x, i) { ... })
Object.keys(y).forEach(function(x) { ... })

None of the "for" variations are considered good practice in ES6. You should be using "let" (or "const" if it's allowed here) to avoid var-hoisting of "i".

Personally, I'd advocate using "for" if you have a need for early return/break/continue -- otherwise I'd go for the first forEach() variant. Or, even better, use "map" and avoid side effects in the function you're mapping over the collection. Unless of course you're doing something imperative.

The fact that the last forEach() variant is possible is a good thing, though I wouldn't recommend its use in this case because it's needlessly complex -- it shows that the language/stdlib is becoming more compositional.
Anyone can learn how to program without any kind of "bootcamp" or an education at a 4 years university, but it is near impossible to learn computer science without a formal education.

Bootcamps are just wrong in my opinion, unless you are in it for the money from the current tech hype. I believe that most people need a formal education (working on problem sets, problem solving with algorithm paradigms, formally learn about NP-completeness) to do any kind of real software engineering, very few can do it by themselves without guidance.
I had the same opinion about the official sed page[1], until I noticed the footnote. It got my attention and I decided to learn. One of the best, portable, elegant tools I use every day.

[1] http://sed.sourceforge.net/
If we eliminated treatment with drugs with resistances against them, we'd no longer be artificially selecting for those bacteria, which would mean the bacteria that naturally performed better would be the most likely to survive.

Essentially if we stop treating with the drugs with resistances against them, we'd eventually end up with a bacteria gene pool that resembled the original pre-resistant one, where resistant bacteria were replication errors that were drowned out by natural selection.

The only issue is we can't do that without sacrificing millions of lives. So having a drug that works via completely different mechanisms would fulfil both.
Whoa! I overlooked this from the WSJ editorial:

> police are six times as likely to be killed by black civilians than black civilians are to be killed by police. . . . . [P]police are 22 times as likely to be killed by nonblack civilians than nonblack civilians are to be killed by police.

I think this tells you everything you need to know. Police are always more likely to be killed by civilians than the other way around. This is probably as it should be, unfortunately. The police are highly trained and will typically strive for non-violent resolutions. The civilians they are interacting with, however, are sometimes criminals who are high, desperate, evil, or what have you.

Officers respond to this threat with far greater force when the threat is black, than when it is white. As the author explains, "the juxtaposition suggests that the police respond far more defensively to blacks (a 1-to-6 homicide ratio) than to whites (a 1-to-22 homicide ratio). African-Americans would correctly perceive the police as three to four times quicker to pull a lethal trigger against them than against whites."

The article goes on:

> Police officers naturally take a different perspective. While blacks are 14% of the U.S. population, they account for 47% of killings of police

But this perspective is faulty. While the 6:1, 22:1 statistics naturally take into account the frequency of police-civilian contact, the latter 14:47 comparison does not. In other words, this latter statistic is likely due to the fact that police have a disproportionate amount of contact with African americans. But the 6:1, 22:1 statistics do not have this problem.
Mapping the World
Uh.. Could it be that people under 13 are not allowed on Facebook?
It could be as simple as they saw a bunch of UDP traffic with a spoofed src that was a dprk ip block.
What is the exact name for the survival mechanism you described?
Re: "Clearly biased towards Snapchat":

I only know a handful of people (myself included) that believe Snapchat does delete your photos. Everyone else I know believes that Snapchat has some secret database somewhere with all of your photos on it.

I don't think there is a lot of positive bias when he states that, "Everyone he knows believes that Snapchat has a secret database somewhere with all of your photos on it."

I'm not sure where your negative criticism is coming from. This is a single, very well written, anecdote. He EXPLICITLY states that there is almost certainly general data that will disprove everything he says. He makes it super, super clear that this is just a single individuals experience. If anything, he goes overboard in the opening paragraphs trying to disclaim everything he is about to write. Everyone else (including you) is free to write up their own stories, and from those many, many stories, we get a good picture of social media from the teenagers perspective. After all, the plural of anecdote is data.
Reflections on reading and summarising a CS paper every weekday, 100 papers in
If it's available on your platform, you could print it to a local file since the print version doesn't use the same CSS as the web (OS X = print to PDF, Win = print to XPS, etc).

Or, presuming you're on a modern browser and care that much about the content, you can just inspect the dom, find that <link type="text/css"...> in the head, and delete it.
"No use" is not correct. For instance, an attacker could MITM a critical info service and provide malicious instructions.
When they made roundup they expected plants would never be able to be resistant to it[1].

And in fact plants did not become resistant in the way they expected. Trouble is plants found a completely different way to resist roundup that no one expected.

Their claim that bacteria would not become resistant to this antibiotic is rubbish. They do have the ability to determine that.

If they actually want to know then deliberately try to (carefully) create resistant bacteria by continuously giving them low levels of antibiotic and slowly increasing it.

[1] http://www.npr.org/blogs/thesalt/2012/03/11/148290731/why-mo...
Great copy! My only issue is with the "How I Can Fix Your SQL Server Woes". Everything prior is the right level on the ladder of abstraction. This section needs to be more specific though since it is the last area besides the testimonials to handle potential client objections.

It needs to have actual use cases where your Dad's expertise helped these businesses. You can think of it as the bullet points in a resume. It may also help to include some kind of case study that formalizes your Dad's offering.
I really like this comment but I tried the "fun exercise" and I recognize way too many of the companies. Maybe I'm just a product of effective advertising...
I use the Clearly browser plugin for pages like this. Works like a charm.
Interior point methods become ugly if the feasible region is not full-dimensional. Then you have to find the affine hull, find a base of the affine hull, project down etc. For all these steps you have to pay attention to the numerics etc. Not nice. So I think (working in mathematical optimization, but not on interior point methods) implementing a good interior point method is only considered easy because you usually don't care about these ugly parts. The simplex algorithm is less problematic since the only ugly situation that (you could imagine) occur here is that the polyhedron has a non-trivial lineality space (thus has no vertices). But this can't happen since at the beginning the simplex algorithm converts the polyhedron into A x = b, x >= 0^n form and this class of polyedra is pointed as you can prove easily.

Even in the nice case interior point methods are only nice as long as you are interested in the optimum value. As soon as you also want properties from polyhedral combinatorics for your solution (say: a feasible base), interior point methods become really ugly, especially if the face where the optimum value is attained is not just a vertex.

Disclaimer: I'm working in mathematical optimization, but not on interior point methods.
For context, note that this site was part of a class project from 2000. Some stuff is still relevant, some not.

Other similarly styled informational sites created by students in this course over the years can be found here: http://cs.stanford.edu/people/eroberts/courses/soco/
Python 3.5 to include 'type hinting'
Why is everyone seemingly falling over themselves in a rush to discredit this guy?
congrats on getting clean. thanks for expressing this publicly and confidently.
Facebook is not popular for groups because it does it so well, it's used for grouping because you can safely assume that 98% of your classmates have a Facebook account, know hoe to use it and even check it occasionally.
I think some in depth academic research would be required to determine the optimal strategy. Intuitive strategies may not be as good as some counter-intuitive options.

I'm not qualified to answer either way, I imagine several people could get PhDs finding out. It's too important to handle quickly
yup, maybe a post to recapitulate everything in 5 days might be better (grow of right movement, germany's reaction, france's resolutions, etc...)
Ask HN: The struggle to stay motivated
I'm an engineer at $LARGE_SOFTWARE_CO. I'm just shy of 10 years in the workforce. With some skill and lots of luck, I find myself as the lead for a prominent product with a large, established user base. I've run this project for a couple years and enjoy a lot of creative freedom and influence over its future. The project itself is successful and growing fast. The team is smart and effective.

I make great money in this role, which is really the only way I'm able to eke out a decent lifestyle (married, kid on the way) in my hometown, $INCREDIBLY_EXPENSIVE_US_CITY. I set my own schedule, and I never work 40 hours. I carry a pager, but it's not much of a burden. By all accounts, it's a top-notch job and I'm lucky to have it.

Problem is, I can't stand it anymore.

I'm constantly stressed; I have no motivation to complete anything; when I'm in the office, if I'm lucky I can work for two hours before I'm overwhelmed by the desire to leave. Talking to managers and product people sends me into a rage. My task backlog isn't getting shorter. When I'm home the last thing I want to think about is work, and I spend half my work time just trying to stay motivated.

I've felt this way about work before, but I always blamed it on whatever dead-end job I had. But my current job is the polar opposite; I never expected I'd get it, and I can't even imagine a better job. Although I've interviewed and received offers for positions elsewhere over the years, I've never found one even slightly attractive in the end.

All of my mentors became millionaires or startup founders. I'm not a millionaire yet. I've worked at a startup and hated it. I don't find startup work exciting, and I like my personal life. But what the heck else can I do? I feel like my output has peaked, and the future looks surprisingly grim. How am I supposed to get motivated?
That's the first book I thought of. My other was reading the Odyssey in Greek. Sort of fitting I guess! :-)

My third is Gödel's Proof by Nagel & Newman.
Smalltalk was invented at ... Xerox PARC. The author works at CDG Labs where Dan Ingalls of Smalltalk fame is employed. I'm fairly certain the author is aware of the history around PARC Smalltalk environments and the PARC Lisp graphical environments that followed.
Graceful degradation – not so 'graceful'
N. Korea also offered to send personnel to help the FBI in the attack investigation, which is extremely uncharacteristic of N. Korea to say the least

They offered to help investigate the Cheonan after they sunk it. So it's really not uncharacteristic.

And why do you have attack in quotes? Do you believe Sony wasn't actually attacked?
They do? I personally haven't seen much of that, though I'm admittedly relatively new to the BSD world, so perhaps I just haven't been watching/using the BSDs long enough to notice that sort of tendency in OpenBSD relative to the others.

I know they've been making a lot of switches lately in terms of what ships with the base OS, but pretty much all of them (that I know of) have been more akin to forgetting someone else's old toys and playing with their own shiny new ones. OpenSSH and PF in particular seem to still be alive and well, and they've been around for quite a long time.
> If it's available on your platform, you could print it to a local file since the print version doesn't use the same CSS as the web (OS X = print to PDF, Win = print to XPS, etc).

Yeah or you could go read a better book
I tempted to write "What could go wrong?" or "Life finds a way.".

A fast Google search gives this paper: " Relatively Alcohol-Resistant Mycobacteria Are Emerging Pathogens in Patients Receiving Acupuncture Treatment" http://www.ncbi.nlm.nih.gov/pmc/articles/PMC140401/

There are some archeas (and a few bacterias) that support boiling temperature, but IIRC they don't like meatware because it's too cold for them. http://en.wikipedia.org/wiki/Hyperthermophile
If somebody were to want to frame the North Koreans, what would stop a motivated attacker (perhaps a nationstate) from just abusing BGP to spoof source IPs? How hard would that be to detect, particularly if you controlled direct peers?
AT&T will let 50M customers carry over unused data to the next month
The "manually adds funds" flowchart block looks, to a banker, like a risk item. How does that work? Every hour or so, some clerk opens a safe full of USB sticks and takes one out? Now you have an insider theft risk. Did they copy one? Who has physical access? If you're operating 24/7, more than one person will need access.

A secure off-line "cold wallet" system is hard. Physically, it looks like a collection of storage media. Those devices need to be backed up. But backing them up means making a copy of the private keys, which means the backup medium and the backup machine have a path into the funds. How do you audit a cold-wallet device, short of sending the funds in it back to yourself? Looking at it visually is useless, and reading it out exposes the keys to risk.

Some of these problems have known solutions from bank currency management operations. But some don't. In currency management, you can count and recount bills. You don't have to worry whether some of them have been used and invalidated. Bitcoins in some stored form are not like that. Just because you have a sealed plastic bag with a USB stick and a label that says "1000 BTC, validated on 2013-04-21" doesn't mean it's still good. If there was a copy made at some point, someone else may have the keys to those BTC. Even if they haven't transferred them yet.

So manual handling isn't a magic bullet. Off-line vault operations for a sizable Bitcoin operation are going to be complicated and expensive to do securely, more complicated than bank cash vault operations.
We've already seen what happens when they're not done securely.
Yes, changing from TCP is about as difficult as changing from IPv4 - it would take years, and it would take a) catastrophic emergencies like IPv4's address exhaustion or b) completely passive, low-effort transitions/dual stack over years. Note that TCP processing is built into the hardware of all modern network ASICs from your PC to backbone routers and firewalls.

Unfortunate, but true.
I would disagree on your point that "knee-jerk anti-US comments are karma gold here" on 2 notes, 1 that being anti-US-administration is not being anti-US, and 2 that most unsubstantiated comments that are critical of government actions almost always get down voted to oblivion.

Everyone knew that North Korea had it out for Sony, what's to stop a network security enthusiast from stirring the pot by performing the attack and planting "evidence" that it was coming from North Korea. I don't think it's far fetched to think that many young security enthusiasts would get excited to think about causing such a stir.
> Non-credible-threat? North Korea?

Their nuclear program claims it has a range of 4,000KM, but to reach the USA it would take about 10,000KM. Not to mention their last missile launch test could not even escape their border.

That's what I mean when I say non-credible threat; they are incapable of inflicting meaningful harm to the USA. They are really all bark and no bite...

> oesn't exactly make North Korea the 'good guys'.

Of course not. Nobody said they are -- they just simply aren't the "bad guys" we are looking for in this specific case.
8 questions you need to ask about microservices in 2015