skysight-inc/HackerNews huggingface dataset:
Some things are traditionally measured in inches even worldwide, like screen diagonals or pipe diameters or, as you have noticed, mil grids. But in any other cases, seeing those feet, yards, miles and pounds in some internet resources presumably made for _international_ audience annoys the heck out of me. In our country (tip: Ukraine), not any ruler or tape measure even has inch marks, yet they are optional here when centimetres are a must. But as soon as I see a video about something "that's 36.5 feet tall", I have to run a conversion to find out what is it in metres. Pretty much the same as the case with some foreign and non-universal character encoding (when everything I see is just garbled letters and/or squares).

P.S. And yes, my ruler is made from aluminium, not aluminum.
There's not room in my two-bedroom house in Silicon Valley for bulk versions of normal staples. I do not have a basement or attic. I have two closets; one has my clothes in it, the other is full of my daughter's baby stuff. Toilet paper gets stored under the sink in the bathroom. Does it seem insane to you that I don't have space for bulk toilet paper buys? That I'd actually consider storage space during these types of purchases?

Congrats on your basement, do you think apartment dwellers have basements?
Agreed on the middle school levels. I'm also in the "boring" programming jobs section, even though I don't find it boring.

Also, if you're coming from a non-maths background I've found you occasionally "discover" some little bit of math in the process of coding something up. It's a nice bonus when you find something interesting and look it up and it clicks instinctually because you were wrestling with a concrete example of the idea.
Wow, I am sorry. I did not expect the coupon runs out so quickly. Here is another one:

https://www.udemy.com/introduction-to-encryption-terminology...
> Why should your drug use, or anyone else's, create obligations for other people to support you, treat you, and help you overcome addiction?

Well because we don't live an idealized Ayn Randian universe.

Unless someone moved off the grid, cut off all ties with society, and is on a boat in international waters, or some uninhabited island, they are part of a society. They might not like it, but they are.

If they have children, parents, siblings. They are part of the family. If a parent, is using drugs and not providing for their children, I don't think it makes for a healthy society to watch from the sidelines and say "That's ok. Everyone is responsible for themselves. The gospel of Ayn Rand says so. So let the children starve".

That doesn't advocate incarcerating or punishing anyone. But it advocates helping. And it is, and I think should be, a major obligation. At least I would happily spend my tax money on.

> The libertarian case for legalizing drugs falls apart if society has to take ...

It does fall apart. But making sure the liberatrian cause survives and is proven correct, is not a priority. What is a priority though, is making sure children have safety, shelter, are clothed, are not hungry etc. If, as a result, the libertarian cause must falter and be proven to be a joke, I think most people will be ok with that. (Although it seems here on HN quite a few would be rather distraught).
But if there is a persistence or network layer involved, when compromised, it could function as an injection vector into the application, right?
Money buys speech.

I also used to fantasize about the democratization of speech via the internet. No longer would money determine what information reached you.

Adwords is no less ethical than search rankings, newspapers, TV, radio, literature, bus stops, music - reality, ultimately.

Good news: I agree that this is a problem.
Bad news: It's incredibly more prevalent than you realize.

If communication of information isn't democratized, you can't have a democracy. It shouldn't be a surprise then that we don't have a democracy, but an oligarchy [1].

Mind you, this is just one of many factors that makes a true democracy impossible as they currently exist. [2]

1 http://www.bbc.com/news/blogs-echochambers-27074746

2 https://en.wikipedia.org/wiki/Iron_law_of_oligarchy
Where is the link to this exactly? I only see things like the following, which still require rolling a VM and setting it up yourself:

https://azure.microsoft.com/en-us/documentation/articles/vir...
immune to Google I guess
Toyota Hires Entire Staff of Autonomous-Vehicle Firm Jaybridge Robotics
Money buys speech.

I also used to fantasize about the democratization of speech via the internet. No longer would money determine what information reached you.

Adwords is no less ethical than search rankings, newspapers, TV, radio, literature, bus stops, music - reality, ultimately. Reality is for sale.

Good news: I agree that this is a problem.
Bad news: It's incredibly more prevalent than you realize.

If communication of information isn't democratized, you can't have a democracy. It shouldn't be a surprise then that we don't have a democracy, but an oligarchy [1].

Mind you, this is just one of many factors that makes a true democracy impossible as they currently exist. [2]

1 http://www.bbc.com/news/blogs-echochambers-27074746

2 https://en.wikipedia.org/wiki/Iron_law_of_oligarchy
Ask HN: Help with understanding a solution to a problem on Segment Trees
In preparation for interviews, I participated in the Accel Hack2 on Hacker Rank. I was able to solve problem number 5 (Devu's Diet), my solution was not within the time limit.

I looked at other people's solutions and learned about Segment trees.

The problem amounts to this:

You are going to build an array of numbers of size N (they could be +ve or -ve). You need to find all possible intervals L, R in 1 to N where sum L, R >= 0.

My solution was this:

//helper function
long the_sum(int i, int j, long sum_asc[], long sum_dsc[], long diff[], int N) {
if (i == j) {
return diff[i];
}
else if (i == 0 && j == N-1) {
return sum_asc[N-1];
} else if (i == 0 && j != N-1) {
return sum_asc[j];
} else if (i != 0 && j == N-1) {
return sum_dsc[i];
} else {
return sum_asc[j] - sum_asc[i-1] ;
}
}

// main Algo
array[] -> initialised to data
sum_asc[] -> initialised to sum ascending
sum_dsc[] -> initialised to sum descending

count = 0;
for (i = 0 to N-1)
for (j = i to N-1)
long sum = the_sum(i, j, sum_asc, sum_dsc, array, N);
if (sum >= 0) {
++ count;
}

There are 4 classes of solutions that passed.

1. Using Binary Indexed Trees
2. Using Segment Trees
3. Using Mergesort and counting the inversions done
4. Using an AVL (any other balanced tree would have done)

All solutions in these classes were within the time limit.

If anyone can throw some light on how a Segment tree could be applied to the solution, or how any other solutions worked would be great.
I am able to understand how a segment tree can work to calculate a sum from L to R (in array 1 to N). What Im not able to understand is how to apply it to work for all L,R intervals in 1 to N; there is some key insight that I'm missing.

Thanks in advance.
Distributions can have licenses. Most modern distributions are MIT licensed (meaning you can create derivative distributions under the conditions of the license). OpenSUSE is still GPLv2 and is one of the last ones (Debian switched to MIT recently IIRC).
I do have a sense of why some people use drugs because I have lived inside of a heroin epidemic. There's no reason to have such a condescending tone. Anyway, they should be punished to prevent them from using dangerous drugs.

You shouldn't mix me up with prohibitionists and Christians. I only want to prevent unnecessary suffering. Heroin and other very hard drugs only cause suffering and death. I have seen this first hand. That's how I know. People seem to hate me personally for having these opinions and I can't imagine why because I only have the welfare of other people in mind.

edit: I have looked through some of your comments. At one point you posed the question: what is the difference between letting someone eat cheeseburgers and use drugs? You practically make my point for me. Regulating the contents of food is extremely effective in reducing health problems. It has been done with success in many places. Saying that hard drugs (not weed and the like) should just be legal is like saying we should let food companies put anything they want into their foods and by extension let people eat whatever they want. Obviously, everything is much better when we regulate our foods.
Not sure why this is downvoted. I use Lyft and this feels like why to me.
This article is misleading. Yes, I know many of my friends who I respect who turned down opportunities at Uber due to cultural issues. At the same time, I also have many friends who I deeply respect who chose to join Uber and describe it as a positive and respectful workplace in which they are solving hard problems and having real impact. Almost without fail though, just through knowing a friend's personality, I can predict with 90+% accuracy whether they would be someone who would enjoy working at Uber.

But here's the thing, Uber doesn't need to hire every single talented person in the tech industry, it just needs to hire enough of them. And from the people I see being attracted to there every day, they definitely still have the clout to hire enough of them and attract the calibre of top tier talent to keep the service viable.

It's the same issue Facebook had during its growing years (and to some extent, still has today). Many of my friends looking for work then dismissed Facebook out of hand for it's perceived cultural issues and yet Facebook had no problems growing because enough people did fit the culture.

The real risk is not that it can't grow, it's that the cultural polarization only ever increases over time and the company becomes monocultural in a way that inhibits flexibility and it's ability to adapt. At the same time, that cult-like maniacally enforced conformity might be exactly what it needs to ruthlessly execute and crush competitors and markets until it becomes as entrenched in the world as Standard Oil or the Dutch East India Company.
I'm not American, so I'm probably missing a lot of cultural context with the last 2 quotes in [2]. With regards to 3), what's wrong with saying that you would much rather be at a fancy hotel than spending time arguing with city officials? Same for 4), I agree that it's not a good thing to say out memes in real life, but not something to the level of having to bring a PR person with you or have it quoted as proof of you being sexist in an article.
Google's latest application process: Creative Lab
Virtuoso
The Juniper products only support Linux.

A lot of Juniper products arrive with FreeBSD pre-installed. They just aren't obvious about it.
Has everyone creates one of these?

https://github.com/dclowd9901/betterObjectToString

Yours is clearly better.
If you use only structs, lists, numbers and strings, print is perfect. It supports circular structure when PRINT-CIRCLE is true.

For custom classes you have to define custom printing methods, because, well, how you print a particular object readably has no general answer: for example, for some data (streams, threads), it makes no sense to serialize them. Java has the "transient" keyword to avoid serializing some fields in classes. You should also set PRINT-READABLY to T so that you have an error if an object cannot be printed readably.

Also, Common Lisp has to serialize values into FASL files when compiling them, but it can do it only for its own types. You can use LOAD-TIME-VALUE to have a form evaluated at load time, and MAKE-LOAD-FORM is a generic function that you can specialize to print a form which, when read, allocates and initializes objects at load-time.
For your own classes, it is sufficient to use the helper function MAKE-LOAD-FORM-SAVING-SLOTS.

All that gives you a lot of control over what, how and when forms are evaluated and stored. The good news is that you have libraries available to do that very easily: http://www.cliki.net/serialization (see for example http://www.cliki.net/cl-marshal).

See http://clhs.lisp.se/
Introducing the AxiDraw
Looks like they have persistent indexes in the roadmap (ver 3.0) https://www.arangodb.com/roadmap/ which might help.
System loads Web pages 34 percent faster by fetching files more effectively
> ... and the OS places no copyleft restrictions!

I'm still baffled why people think this is a benefit. If you actually care about software freedom, lack of copyleft is a bad thing IMO. What's to stop $EvilCorp from creating a system that is completely locked down, can't be replaced, and is based on your technology? That's what UEFI is, by the way. It's only by Microsoft's blessing that you can install alternative operating systems on new Windows laptops. So please tell me more about why copyleft is a negative. If TianoCore was GPLv3, UEFI would actually be more bearable to work with (but core/libreboot is clearly the way to go on from here).
True. Without hardware improvements the processors that can evaluate 2 million positions per second while 'fitting' into a phone (qua processing power and power usage) would not exist though.
Has Apple ever hired one of its fans?
So I always see these absurdly elaborated almost pro-grade concepts for apple products made by big fans of the brand but I always wondered if any of those fans were actually contacted by apple for a position at the company due to their work.

Any cases like that? or apple mostly ignores this stuff?
Right on. I remember using a VAX in the 1980's and it still seems like the fastest computer I ever used. Everything that came after seemed sluggish by comparison. Then many years ago I tried someone's VAX image in the simh simulator running on on MS Windows. It was "too fast", if there is such a thing. I want a pocket-sized VAX.
I'm not a BSD guy, but I can still see it's a little unfair to compare the network throughputs of Linux and *BSD as guest VMs on a Linux host running KVM. You aren't going to get good throughout in that case without hardware passthrough (even then it's still bad). End of story.
I've never seen a countertop oven, except as a "feature" of an expensive microwave. As I understand it, results for baking especially would be poor, as the oven has less air mass and less heat capacity.

(At least, that's the reason my mum gave for not using the feature on her fancy microwave. She used to be a professional cook.)
Facebook allows a few other third party tools for measurement/attribution analysis. Ref https://facebookmarketingpartners.com/marketing-partners/#ad....
You can easily calculate the probability of flipping heads a million times in a row, even though this also has never happened.
Sure, as it could with any part of your app, including wherever your JSON.parse code lives.
Microsoft uses Debian – this is 2010s
Just like responsive web design, only those who "resize" will enjoy it. blink
When Accessibility Gets Labeled Wasteful
> The filter procedure I outlined restricts the aircraft shown on the map only to those that have been flagged as "interesting"

Yep, and that's really neat.

My point is it is obviously b.s. data. there are far too few aircraft being shown for it to be realistic.
Sounds like it. Have noticed something similar on another thread as well.
He meant 'Zoom Out'.
I can see that there would be if that guy keeps using his hockey stick.
hmm.. AdWords seems like the tiny tip of the iceberg. Perhaps you don't realise, but the problem you are alluding to is that money influences which information gets created. Those 'organic' search results are in the same boat as the ads.
I guess automated 401k payroll deductions is the ultimate form of this sort of philosophy.
The equipment is available from various vendors, but the biggest hurdle is finding a datacenter facility that can handle OCP gear. Retail colocation is pretty much 19" racks only and 120V/208V power only. Even small scale wholesale datacenter deployments are tough to do if you want to go whole hog on OCP specs.

You can still get OCP hardware in standard 19" form factors for these environments, but I don't personally see much point in it. You're seriously limiting your vendor and hardware selections, and if you aren't seeing the purported power efficiency gains then it's not worthwhile. The allure of eliminating the pain of classic vendors is still there, but there are paths through the Dell / HP / Supermicro maze that are tolerable without burning it down and going to OCP.

There are other challenges with OCP's overall design in standard facilities beyond the server cabinet level too. Their (optional) battery cabinet design -- where you save on the facility cost by omitting the UPS bank in favor of battery cabinets for every triplet rack -- is explicitly forbidden at basically every top tier datacenter provider that I'm aware of. No batteries allowed on the floor because of the fire suppression system. You can definitely get a provider to build you a room where they'll let you have batteries on the floor, but that is a multi-megawatt sort of problem, not a 50kw sort of problem.
I see. It's a shame you can't intercept the error and display your own along the lines of "upgrade your damn OS already!"
Later, this article makes connection of this decline and presidential politics.
Fuck me. What does that stand for? I know =,==, but not ===
But could JSON.parse() fed with malicious data fire off an XMLHttpRequest or delete all of your data?
"even YC funded ones"

Hah... What makes you think YC funds significantly higher quality of startups overall compared to the general VC industry?
Good work! It would be interesting to cross match the visits with any other source of information (newspaper, wikileaks, etc.) Over a timeline to recreate the hole event of someone. This will allow to identify patterns and their modus operandi.
"I requested that they deactivate my membership. But when I left, I became a security risk. People I knew made vague threats that I would regret leaving or talking about it. A roommate of mine stopped telling me where he was going when he left the house. Friends whom I trusted contacted me and played stupid about their own involvement in order to suss out what I knew."
I know how you feel. I live in Mexico now, and the internet connections in these parts are terrible. It's given me a whole new perspective after coming from cheap 100 mbit back home.
Sometimes I get confused with pages like this, only to later realize that the main content wasn't loaded yet.
Customer experience needs to move to a whole new level
Visualizing Earth's Population via a Kernel Approach
Yes, totally agree with you on the great potential of tools for easy data acquisition.

I have personally used Scrapy in the past, I find it to be a great tool.

Congratulations on your work!
I've always heard there's a substantial legal risk in saying anything other than 'no'. Not sure how true it is, though.
So not only do I get to write yaml or some other template nonsense but I get to choose the dialect as well. Yes, much better.
Isn't StackOverflow open source?
How to mitigate your cloud computing risks
I remember when this came up on my Facebook feed a year or so ago. I shat all over it because they were essentially taking money in, calling it "saving" and then not paying out any interest.

Have they fixed that? Sort of. They now pay a $0.05 "savings bonus" for every $100 you hold with them for 3 months, for an annualized interest rate of 0.2%. Needless to say, the savings bonus won't go up when interest rates go up: it is a "savings bonus" and not an interest rate, after all.

Let's call this what this is: a gimmicky savings account with a crappy APY. Call me when their savings algorithm is mated with an automatic investment in my choice of low cost mutual funds.
We use http://orientdb.com/orientdb/, seems decent so far.
Why wouldn't they trust you? Sounds bizarre. Especially if you're listed in the credits.
'var' keyword proposed for Java
Those are just the pings from the transponder that almost every aircraft carries to help air traffic controllers keep track of it. You can receive and decode them with a $20 RTL-SDR dongle and free software.

There's more info on how I track aircraft and how I figured out that the FBI was flying over 100 aircraft registered to front companies, some of them doing aerial surveillance, here: https://docs.google.com/presentation/d/1zwRyuVJGaQwG6mYMSYWo...
New language built from the ground up for productive parallel programming
And a sprawling python dependency on each side?

You can play the "python's everywhere" card now if you like, but I'll look at you funny.

How many megs, exactly, is the smallest thing you can have ansible push to an empty slave server with no prior contact?
Agreed, and that is despicable.
I don't see anything in the FAQ about Digit being FDIC-insured so that when they go bankrupt or get hacked, I'll have some chance of getting my money back.

This:

https://help.digit.co/hc/en-us/articles/203931308-What-happe...

might be the least reassuring response possible to that question. And it's explicitly contradicted by this response:

https://help.digit.co/hc/en-us/articles/217382378-How-does-D...

> Today, we make money like a traditional bank does, by accruing interest on the savings we hold for you.

If Digit is making interest on (my) money, then said funds are probably in a commercial bank account in Digit's name somewhere. If said funds are in a commercial bank account in Digit's name somewhere, bankruptcy is going to FREEZE those funds. They aren't going to be transferred back to me. And Digit's investors are going to have every reason to argue that said funds SHOULD be available to pay off Digit's debts.

Don't use this.
But if you want to scale to more than two instances you will have to pay a $50k license. $50.000,00 dollars. Which is far too expensive for startups.
It Took a FOIA Lawsuit to Uncover How Obama Administration Killed FOIA Reform
I appreciate your thoughts, it is really logical that website accepting payments online and want to secure their website with best GUI of Green Address Bar; should have to represent few documents. Unfortunately you won’t be able to find exact data you are looking for, you should have to look for various survey conducted on EV SSL and also on Standard SSL.

I would like to give you links for few surveys.

http://www.reportlinker.com/p02779349-summary/Global-EV-SSL-...
http://www.netcraft.com/internet-data-mining/ssl-survey/
http://news.netcraft.com/archives/2011/04/18/extended-valida... (OLD)
https://casecurity.org/wp-content/uploads/2015/04/CASC-Consu...

Old discussion: http://ask.metafilter.com/116185/EV-Extended-Validation-SSL-...

You can find all documents required to get EV SSL Certificate on below website, just search for 'EV SSL Validation Process': https://www.cheapsslshop.com/ev-ssl-certificates
The Android N Developer Preview is out right now
You are correct. If an investor is outbid, his investment is returned to him.
LovElla – Loving You Baby has stopped view stats. why?
It seems like it theoretically shouldn't be too hard to add the ability to validate that the data is a valid lave output if you're concerned about that. That more or less leaves only the issue of anonymous functions in the data being replaced with malicious functions, but frankly the only reason to be serializing functions is if they're user input, otherwise you should instead be serializing function name/key strings or some other well-defined form of function references and/or arguments.
Stem Cells Regenerate Human Lens After Cataract Surgery, Restoring Vision