skysight-inc/HackerNews huggingface dataset:
By sheer randomness I was having the thought about it today: I made some code to highlight where the stdlib json module sees the mistakes in JSON decoding in the python stdlib.

I used the exception with string "blabal at line x, col y, char(c - d)" to actually highlight (ANSI colors) WHERE the mistake were.

https://gist.github.com/jul/406da833d99e545085dac2f368a3b850...

I played a tad with it, and the highlighted area for missing separators, unfinished string, lack of identifier were making no sense. I thought I was having a bug. Checked and re-checked. But, No.

I made this tool because, whatever the linters are I was always wondering why I was not able to edit or validate json (especially one generated by tools coded by idiots) easily.

I thought I was stupid thinking json were complex.

Thanks.
Hillary was a Classifying Agency - meaning she is one of the very few people in our government allowed to grant people access to classified information. Along with this responsibility comes a massive amount of training and demonstrated understanding. You cannot claim that she "is almost 70, can't use computers".

It is common knowledge, and common sense - that the top concern with classified information is in handling. Literally the only danger is that the information can get into the wrong hands, and the only way to prevent that is to use secure systems.

Whether you believe that Hillary is a "Bond villain" or simply lazy, this constitutes "extreme carelessness" with national secrets, in FBI Director James Comey's words. It should be shocking to everyone that as a reward for this behavior, she may be given a promotion and have her clearance elevated.
What about companies who's sole source of business is illegal activity? Ones that produce negative externalities they don't have to pay for? Do we applaud them, too?

We're not talking about protecting a political activist. We're talking about illegal rentals.
That is too bad. I wonder if a laser in the front would be useless as the heat build up as it enters the atmosphere would make the "bounce-back" hard to receive.
Good to know about rkt and docker images, I stand corrected. Looks like it supports remote docker registries as well.
Except that they didn't, they said "probably carcinogenic". That implies dangerous.
With only a modest simplification you can view security as ultimately just being a figure measured in dollars: "it costs an adversary $X to beat these countermeasures." Your goal in securing a system is not to push X to infinity, though that might be a reasonable goal (e.g. if you're a security researcher designing new crypto primitives). Instead your goal in engineering your company's security consists in evaluating the value $V of what you're securing, and then raising X until X > V. There are uncertainties in measuring X and V and in how attackers will view these tradeoffs and so forth, but it's nothing you can't account for by building in an engineering tolerance like X > 2V. The basic story remains.

Spotify simultaneously has large resources and offers a non-essential infrastructure service (music to listen to while you're doing something else). The V gained in DoSing them is very small. They got attacked anyway because they shared infrastructure with other companies, which pools the V together to create something much larger. Some attacker saw a case where V >> X and attacked it to great success until Dyn was able to bring up X again. During the interim, Spotify was down despite having V << X.

In short: Spotify probably can't do DNS better than Dyn, but they can do DNS better than the sort of people who have reason to attack them (presumably trolls, maybe some future hacktivist who doesn't like some business decisions they make, unscrupulous competitors). This attack was a wake-up call for them, "oh, if we're pooling with these other folks then we'll become targets of larger hacktivist attacks and state actors, who are not directly targeting us per se." Those attackers could presumably still take out Spotify's home-rolled DNS, but they have no real motivation to target Spotify in particular any more.
Well it is definitely better then current iMac. Will see tomorrow indeed.
I was turning the volume up loud enough to drown out the loud conversations when using ear-buds. By damaging, I mean I was constantly asking people to repeat them selves because while I could hear them I couldn't distinguish their words. Not everyone was like that, just moderate to soft spoken people or those with deep voices.

I didn't make the connection until I happened across one article about it, which I think was posted here.

The only thing I don't like about noise-canceling headphones is that I can't just wear them without sound. It creates a kind of pressure on my ear drums that just feels weird to me.
Ah yes, the land area would be a better comparison than total area.

https://www.wolframalpha.com/input/?i=ratio+of+land+area+of+...
I'm not expert on this, but I think that the use of a horizontal drill is more common.

Check out this horizontal drill: http://www.ballantineinc.com/sites/default/files/img/Copy%20...

See this diagram for how they're used: http://www.ajvac.ca/images/directional%20drill%20diag2.jpg
Renters lost the following things:

- The ability to rent out their home when they go away for a long weekend or take a couple weeks of vacation somewhere, most likely financing a good portion of their rent or vacation.

- Affordable ways for family to visit, especially nearby to where they live (e.g. When my family comes into town to see their grandchildren, there aren't even really any hotels nearby, let alone affordable ones. AirBnB was a good, affordable way for them to be nearby when they visit, since like most people in NYC, we don't have a guest bedroom).

What many renters would really celebrate, would be an end to many of the restrictions on building that are enriching the owners of the properties at the expense of renters. Much of NYC suffers from height restrictions, historical building laws, and an expensive process to build anything new (and neighbors who will do anything to make sure their properties don't have new competition that might lower prices).
Docker is a container runtime, not merely a developer tool. It was intended as such from the beginning. It is successfully used in production at large scale by a number of companies, including Uber.

The fact that you don't like Docker doesn't change any of that. If you don't like it, don't use it. But there is no justification for you to claim it is only a developer tool when it is obviously more than that.
> To execute the attack, a bad actor scans for servers with an open 389 port, which supports Connectionless LDAP-based data communication. The adversary then sends queries to these servers, using a spoofed IP address. The server will then send its voluminous response to that spoofed address, bombarding the recipient. [...] amplification factor of 46x
10 Commandments of Self Love
Er, should GAAP net income include SBC? Otherwise, it's non GAAP.
There's not enough density to justify trains in upstate New York. But we should be spending tens of billions to upgrade the Acela corridor (which runs east of upstate NY) to something comparable to Europe's high speed trains.
Ask HN: Realistically if I became homeless in California what would happen?
This is my last-resort plan when life fails. I just buy a ticket to California and become a bum. What would happen? I don't expect to last, but the weather hopefully would be nice, and I'd walk around to see places like Venice Beach and the Golden Gate bridge before I kicked the bucket.
> In other words, don't assume that just because you are an art snob who was educated at the Sorbonne and obsesses over the textures that you can run your fingers over that the entire market (or even a majority of it) is like you.

No need to be rude.

I'm certainly not an "art snob", though I did study art and art history in high school over thirty years ago. And only then to escape playing football (soccer) in PE because I took A&AH as an extra subject. To be honest I was largely bored rigid, but I was, at least, clean, warm and dry and not getting tackled and kicked in the shins. However when I went to college I bumped into numerous artists and through hanging out with them the subject grew on me as a passing interest, but certainly not a snobbish obsession as you so impudently assume.

Anyway, I am just pointing out that, should you wish to inform and educate yourself a little better, if you visit an art gallery and see real works of painted and drawn art (regardless of era), you'll discover they're massively different from $18 poster prints.

I don't know what art galleries you have in Chicago so can't comment. I'm sure google and wikipedia research can help you there (and if it's a half decent gallery then it'll have a wikipedia entry).
Pretty neat for a high school side project!
A developer's sacrifice – why did I solve my problem with Django than Java
Top of the Cream of the Crop
Not sure if I'm missing something or why nobody else has asked this -- the things you've done "for SEO purposes" all seem like full time jobs on their own! Like:

- Building a robot
- Neural algorithm AI
- Multiplayer 2048 clone

Is there any secret to all of these, like outsourcing or anything, or are you just an insane genius? (which I don't doubt actually..)
The Universe May Not Be Expanding at an Accelerated Rate
This seems to be the meaningless complaint du jour right now. If you don't like a business or product, just accuse it of introducing negative externalities. No evidence needed!

Whatever negligible externalities are introduced by Airbnb, they are vastly outweighed by positive effects like making travel more affordable and busting up the hotel oligopoly.
Why are you so openly hostile to everyone being confused by your inability to differentiate between the output of a 2D printer and the 3D texture of an oil painting?
Have you seen their investor roll?

Do you think they are sitting around looking for a 500m exit?
> versus the fraction of the percent you can get from a savings account

Ally savings account is 1%. It's where I keep my emergency fund now. Once I built up my emergency fund I stopped putting money into it, however, but it's nice to see some noticeable interest gains every month vs. the pennies I would see with my Chase savings acct.
> The amount of the purchase isn’t material, and the transaction should close next month, Groupon said Wednesday in a statement. Amazon.com Inc.-backed LivingSocial had cut more than half its workforce in March, part of a downward spiral from the headier days of 2011, when it was valued at $6 billion in a funding round.

For a company of Groupon's size ($3B annual revenue), that doesn't necessarily mean that it was free, right?
So what is your alternative? Run containers your own unique way and roll your own distribution mechanism and networking to fragment yourself from the tools in the "container" space?
الجزائر:الأمن والجيش يعتقلان إرهابيان
I am thrilled to see more companies doing this. One of the key points that's not mentioned in your article, is that this provides incredible confidence to anyone who wants to design and build around your service. If you go away, or if the price becomes unreasonable, or for any other reason they have to, they can simply run their own copy.
Well, one could argue that automating away the jobs and producing those Unemployeds and then complaining about them, constitutes as worser. But i understand your point of view, i helped a friend to move out of a flat that was near a living complex mainly inhabited by collaps-cascading community members.

Anyway, constructive criticism, how to prevent such self-destruction? Boarding schools for ghetto children, to avoid prolonged contact with negative examples and behavior?
Identity Based Decision Making: More Informed Decisions
Firefox has an extension called watch in mpv which allows you to click on a given video or a button for the page and open the video in mpv. If your window manager allows tabbing various apps together you can even keep this in its own tab with firefox in the other.

Being its own app you can of course have this window floating and on top of your firefox window off in the corner. You could even designate a hotkey to move and resize this window to that position if you so desired.
I have ADHD, meaning that open office is great to distract me...

But also, one of the symptons of ADHD, with the "H" there, is that people must move, in my particular case one of the things I tend to do is tap my nails on the desk, use tupperware as drums, or if a actual musical instrument is nearby, even if I dunno how to play it, I play it.

So, ADHD person in open office not only has terrible productivity due to other people disrupting, but also disrupts everyone else.

To me this is terrible, since now that I know all this (and I've been fired multiple times), I've been trying, and failing, to find remote work.
It is one CEO with one 800 bed hotel and 3 < 200 bed hotels speaking this way.

As a NYC resident, we don't want transients living in our buildings. There are safety issues for children, the elderly, an women, as well as potential theft. Many buildings are doormen to keep transients out.

There are $60 hotel rooms in Union City, NJ (according to Priceline) which is about 15 minutes by transit away from Times Square, the center of tourism in NYC. These Union City hotel rooms are closer to Times Square than a number of NYC hotels.
Casting a vote online can be secure and convenient
On the other hand, people that I know actually use "meta", so it's probably a better choice if I intend to communicate information to another person. As used in the comment that you replied to, the intended meaning is unambiguous.
>Some issues have a clearly wrong side.

Very, very few, and pot legalization isn't one of them. Whether or not it makes sense depends entirely on what you value and what you think the result will be a decade or two from now.
I was being intentionally verbose so that readers not familiar with Scala or the collections types/methods used would have an easier time following it. I also was avoiding use of pattern matching as they are cousins to conditionals IMHO.

However, below is another version which employs idioms more commonly found:

object Fizzbuzz
{
val fizzes = None :: None :: Some ("Fizz") :: Nil;
val buzzes = None :: None :: None :: None :: Some ("Buzz") :: Nil;

def apply (amount : Int) : TraversableOnce[String] =
{
val alternates = Stream.continually (fizzes).flatten
.zip (Stream.continually (buzzes).flatten)
.take (amount)
.toArray;

0.until (amount).map { n =>
alternates (n) match {
case (Some (f), Some (b)) => f + b;
case (Some (f), None) => f;
case (None, Some (b)) => b;
case _ => (n + 1).toString
}
}
}
}

Fizzbuzz (100).foreach (println);
It is called Testifying
I totally understand the argument for the merger, I'm just saying that this announcement of one profitable quarter (because they sold the ZEV credits) doesn't change anything about that merger math.
It was once illegal to be a Jew and own a business in Germany.

Private companies holding out against government oversight is not only often a good thing but should be a human right.

Last thing we want is to give any government full insight into everything.

R.I.P. Lavabits.
"State actor" today is an abused term, because it helps the victim look less bad, the government will back it up, because it paves way for new regulations and there's no way to prove one way or the other. Especially when it comes to DDoS.
Rollbar's DYN DDOS Postmortem
I've successfully used Docker in production since it was a hobby project of dotCloud. I was answering the OP's question about why anybody would ever consider not using Docker for containers, so it's ironic that I'm now responding to your comment as the followup about my personal preferences.

Clever commentary trap: why not? Here's why. Oh, well, nobody's forcing you to use it.
> A layman equipped with some of this knowledge, for example, will be much more able to understand current events in the South China Sea, the infrastructure projects across Eurasia, the proxy war in Syria, the importance of the Crimea to Russia, the crisis in America over its policies toward Cuba, and much more.

"never get involved in a land war in Asia"

That about sums it up for Russia vs. USA.
People ruin their lives with drugs, already. But one reason they resort to crime is drugs are expensive (since we restrict them). Plus we fire people who use them on their own time, if they are the kind we can detect later. We don't differentiate between things that have worn off by work time usually. It's a different category to be drunk and driving, vs high last night but not now. White collar jobs like programmers are treated differently, no one cares if you get high, unless you work for the govt. Your work is what matters.
Wasn't there just a study that AirBnB consumes excess demand anyway?

Doesn't that mean the Hotel CEO should've been able to raise prices anyway, regardless of AirBnB?
Why color matters in web development
> Open source is not free software

Yes it is, or it's intended to mean the same thing, and that essay you linked to acknowledges several times that it's the same thing (or nearly the same thing).

Open source and free software are kind of like climate change and global warming: two terms that refer to almost the same thing but have different political slants.

http://jordi.inversethought.com/blog/5-things-we-have-forgot...

The reason I insist so much upon this is that I want people to remember that in order to qualify as "open source" it must provide the same freedoms as free software. How and why it provides those freedoms is a matter of philosophical differences, but in the end results in nearly the same set of free and open source licenses. It is very rare and unusual for the OSI and the FSF to disagree on licenses.
The first example is code duplication, and almost every line is suspecious.

var listOfGoodFoos = new List<Foo>(); // is listOfGoodFoos a good name?
for(var i = 0; i< listOfAllFoos.Count; i++) // is the loop condition correct?
{
if(listOfAllFoos[i].IsGood) -- the only interesting line is burried in here
listOfGoodFoos.Add(listOfAllFoos[i]); -- is i the right index variable? (vs. j, k, n, especially in nested loops)
}
return listOfGoodFoos;

The second example is obviously correct, and highlights the condition.

A quote from Tony Hoare comes to mind:

There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies.
When you say unlimited bandwidth what does it mean? Doesn't youtube have unlimited?
Well technically they didn't lose these things, they were already illegal.
Their filters do SLAM?
I think the improvement new stacks are bringing are getting more and more marginal, compared to the effort required to learn them, and instead of learning those new framework, I would rather spend time learning about new fields in programming; for example the things I am interested are, in no particular order: neural networks, compilers, 3D graphics, high performance computing, and maybe crypto and OS development.
> What I don't understand is how Jack Dorsey could believe he could successfully manage two companies, Square and Twitter, at the same time at such critical points in their growth. I just shake my head at the unbridled hubris and over-estimation of one's own abilities that one must have to make this decision.

Blame the board, too. They are the ones who decided to approve the hiring of a CEO who wanted to keep his other full-time CEO job. If Twitter fails, the board will be just as much to blame as Dorsey.

I'd be pretty unhappy about this if I were a shareholder. I don't care that Dorsey was a founder. It's just not responsible for a board to hire a CEO who isn't dedicated 100% to the company.
C and c++ were close to the only language available some 10-30 years ago. There is still lot of legacy to work on.

Java is superior to everything else. Go and C# only came in much later.

Javascript is the only language supported by browsers.

It's not pop culture, there are real historical and practical reasons for them to be where they are.
What it uses JavaScript? Muy interesante
> Maybe because everyone wants his companies to succeed...

Surely the only ones who don't want dramatically cheaper space launches, cheaper, widely available solar PV installations and attractive, affordable electric vehicles are deeply entrenched incumbents whose continued profitability involves polluting the planet, or those who really hate the environment for whatever reason.

There are valid criticisms you can level at Musk (I wouldn't like to be a direct employee), but taking on the Wall Street quarter to quarter thinking with enormous, risky endeavours that have the potential to completely revolutionise some of the biggest industries out there (energy and transport) takes an extreme type of individual to succeed.
The majority of AirBnB hosts are individuals just trying to make some extra money. The lobbyies are claiming these units prevent the homeless from finding homes. How about the people that avoid becoming homeless by AirBnB'ing one of their rooms?

The hypocrisy in this situation is mind blowing. Thanks to Citizen's United, corporates are protected and allowed unlimited money for lobbying as “Freedom of Speech”. But when the individual wants to advertise a room in their private home, the government censors that speech?

This is just another example of how our Democracy has been hijacked by lobbyists. Neither Clinton, nor Trump, not even Bernie Sanders could cleanse this rot from our democracy. The only way I see for us to take it back is with a Constitutional Amendment ending this legalized bribery. The group that's making the most progress towards this goal is Wolf-PAC. You can read more about it and help with the cause here:

http://www.wolf-pac.com/the_plan
The Wacom has the pressure level advantage: 2048 vs 1024 levels on the Surface. But with well-calibrated software, it should be enough. I'm not sure if people can discern 2048 levels of pressure, and I'm sure this device was tested on a lot of artists. Can't comment from experience but I would think the delay would be a bigger issue than levels (MS say they optimized for delay.)
No WiFi. Less space than a nomad. Lame.
I have read it. They use a misleading definition of "free software":

> Often the first thing you think of when you hear Open Source is “free”. In the software world, free software is often associated with being the inferior choice. That’s especially true given that historically, many businesses offer an inferior version of their product for free

Free software has a well-established definition, and that's the definition that should be used. Especially in an article that aims to educate people about the benefits of open source and free software.
> If you attended a bootcamp, did you find work as an engineer afterwards?

Yes. I haven't attended any bootcamp, but the fact that I found a job as an
IT engineer makes the implication from the title true.

https://en.wikipedia.org/wiki/Logical_consequence
Can someone explain what this[0] means? It would seem that when you buy the car, you don't own it after all.

[0] http://www.huffingtonpost.com/entry/tesla-self-driving-car-n...
Did the Intel firmware fixes come via Windows Update or did you have to do something specific?

DPI oddness (moving between low DPI external monitor and high DPI internal one triggered it) seems much less now.
I used to run a computer simulation that proved the same thing. It's called Dwarf Fortress world generation.
That's a very easy way to put it. By their own admission, they knew their users were breaking the law ( attorney general claimed 50%, airbnb claimed 15% ).[1]

You can claim "users rights" all you want, but knowing people are using your service to break laws, and just refusing compliance, well gets you to exactly the position they are in.

[1] http://www.wsj.com/articles/SB100014240527023034803045795759...