skysight-inc/HackerNews huggingface dataset:
Yeah, whenever I see a question like that one, I think it's pretty straightforward but then I wonder if my straightforward solution isn't the "brute force" solution and the interviewer isn't looking for some tricky "elegant" solution. Still, if I were asked that in an interview, I'm sure I'd put together something like your solution; I can't think of a "better" way to solve it.
Yes. Sorry, it was originaly all named nextUser, but I did miss that one rename.
Thanks for the feedback. Interesting to see how Quora does answer permalinks. At the same time, then other answers, aren't easily discoverable.

Yea, upvotes only work, if the community "collectively" has a good judgement :- ) Also, I'm thinking about weighting upvotes, with how good a judgement the voter seems to have, based on trust levels and fraction upvoted and downvoted answers, hmm. So a staff user's or a trusted core member's upvotes, have a bit more weight, than votes from a new and unknown person.
Given how much damage Facebook has done to traditional new reporting it would be unreasonable to expect reporters not to bear Facebook any ill will. They're making, what, half as much as they did in 2010? And that's after the huge drop in revenue that Craigslist caused.

I'm sure the reporters and editors involved are trying their best to be fair. But succeeding in those circumstances is really, really hard.
How does that saying go?

"If you owe the bank a million dollars, the bank owns you.
If you owe the bank a billion dollars, you own the bank."
>"NYT seems to be on the attack against FB out of some ideological motivation"

What ideology is that? The ideology of truth? The ideology of facts? The ideology of accountability and transparency? The ideology that one of the most power corporations in the world willfully failed to comply with a federal consent decree? Or that they lied to congress? You mean those ideologies? Did you miss the entire news story about how FB was used to influence the 2016 election?

And as such it is very much a public interest story. And you want to suggest that reporting on such a public interest story by a newspaper of record is "an attack"?
Hey, I'm building a tool that does exactly this. It automatically backs up your email subs and stores them in google sheets. It's still in dev, but feel free to subscribe https://stompapp.xyz/
The Most Successful Caviar Entrepreneur Is a Scrapyard Operator in Wisconsin
Idea: a site that collects all the deep dive articles and groups them by topics/tags.

Why? Because when you are out researching the next piece, someone else's article is being read.

That way you build an audience.

Wait, you say. I don't want my content on someone else's platform?

That's okay, the "platform" just links back to the long form content. It can even have ratings, which are even more important in long form content.
Normal (not utility scale) capacitors do not blow up anymore. You can plug them on the wrong way directly on the rectified mains, they bubble, expand, get hot, and smell; they don't blow.
"That's obviously how science works: just counting how many studies there is on each side, without paying attention to the publication or the methodology (preferably without even reading the abstract), and the truth is the one with the higher score…"

The truth. Obviously. Kary Banks Mullis hast still the rejection letters from Nature and Science and kept them for his Noble price winning works. I don't know how much you know about science but looks to me you can't tell your ass from your elbow.
> I had to wear those in nuclear environments and they limit vision significantly and beep constantly if you bend over and choke the hose at all.

These current-day issues and other considerations like them appear, at least to my layman's eye, to be solvable problems.

Now, whether or not they are morally/economically feasible, trivial vs. non-trivial to introduce solutions for, and if they align with both the users' and the companies' producing the units needs are the major challenges.
By default you would then end up with less energy than you started with
Android Q will support Vulkan native rendering engine: fluency/game experience
Nonsense - these are not 10-page EULAs we're talking about. The permission dialogs are clear and explicit about what they will share and who they will share it with. And you always have the option of not installing the app.
Pointless. I got older and fatter. Increased savings a bit, work got a bit better.
My first reaction was, "wow, what an unbelievably terrible message to get about something you've invested time, effort and emotion into." That's a terrible message to receive and I'm sorry you have to deal with that level of hostility.

My next reaction was that those types of people exist and feel entitled to access content/entertainment. This should not be a deterrent from continuing to produce what you're already doing. If it is sustainable and you enjoy doing it, I hope you continue to.
Deep automation in machine learning
That’s not an argument.
"Your data has been deleted" pretty much has always meant

To whom? My mother? Nope- she thinks it's gone. So yeah- it's a lie, and you only catch it if you know better.

"Yes Dad I did my homework" has pretty much always meant that he hasn't started it yet.

No, it's a lie and the organization knows it. They are responsible for training their CS folks.
I think Fabric http://www.fabfile.org/ does some of that already.
I wonder how many people will base their mining operations in the UK when the government wants to take their cut.
Note: You shouldn't use #!/usr/bin/env python. Instead you should explicitly specify python2 or python3, unless your script is compatible with both.
Minor typo I think:

Proof of the Countability of the Rational numbers ℚ
Let us first propose that the set of rational numbers ℚ is
countable. To prove this assertion, let us arrange all the
rational numbers (ratios of natural numbers) in an infinite
table as such:
1/1 1/2 1/3 1/4 1/5 ...
2/1 2/2 2/3 2/4 2/5 ...
3/1 3/2 3/3 3/4 3/5 ...
4/1 4/2 4/3 4/4 4/5 ...
5/1 5/2 5/3 5/4 6/5 ...
... ... ... ... ...

The last fraction should be 5/5, no? Not 6/5.
Ask HN: Why did people switch from COBOL to newer languages?
I realize COBOL is still alive and kicking, and there are a lot of banking jobs that still use it. It's probably much better than most people give it credit for.

However, what are the reason people mostly stopped building greenfield projects in it?
I get a login page only. URL is likely https://perl6advent.wordpress.com/2018/12/10/day-10-jmp-star...
A similar thing happened to me while using their Mandrill system. After years of using it with no issues, all of a sudden no emails were getting out. They shut us down without notice and without recourse. We were sending simple support emails, and auto-emails (when you register, forgot your password, etc).

Absolutely would never recommend.
Hm, that relationship is also what you'd get if people were perfect at estimating their own skill while the proxy being used by the researchers was imperfect, isn't it?
Ask HN: How long should it take a single developer to develop a single app?
I know, the first thing is what is the app? Let's benchmark on a given app. Let's say:

1. A todo app like http://todomvc.com

2. Or, say a blog app, with login (authentication)

How many hours ought it take a "typical" developer? If you feel like answering it, you can of course give a range or talk about other factors (experience level, is it documented, is it secured etc)
That's awesome. I think this is one the major things holding back TimescaleDB. There are limits of how big you can reasonably make a Linux Server.
> Gizmodo and other news outlets have reported cases of the tool’s recommending friend connections between patients of the same psychiatrist, estranged family members, and a harasser and his victim.

Geez, and I thought I was annoyed with mere former bosses showing up who I didn't part on good terms with
Loading takes 15 seconds, Blockstack account is required, which is not what I would want to.

Maybe this app puts users' data first, but but the user.
I don't mean to be rude, but who the hell cares. I don't understand why people think if they are using something for free they have a right to privacy, or if the company isn't trying to make money from them to fund the service. The only way you would know you are protected is if national laws are passed, they are enforced, and they clearly set a framework of privacy that creates an even playing field...

People here might care, it might make good headlines, but I don't think any normal people out there care. When I talk to my friends who are not in Tech they just assume FB knows everything about them.. and they don't give a shit as they just want to use it for free.
I ended up using a custom plugin to make it easier. The actual real world attempt was more complicated and had a crappier version of Ansible. I also wish the map/format one worked.
Also a robust appeal process is used to stave off legal challenges - its why companies have hr grievance/discipline procedures.
Real reason: that's the only thing most beginners are taught. (For better or worse, but that's the facts.)
Sorry, I'm old enough to have come from the era of "DIY" mass emailing which transitioned (rightfully so) to using providers like Constant Contact/MailChimp. I've seen first hand the drawbacks of emailing thousands of people via your own SMTP server. Blacklists, legal threats, deliverability issues, proper unsubscribe, formatting etc. And this was early 00's when much of the legal framework around email marketing was either non-existent or weakly enforced.

Maybe I'm too old? Has email come around to the point where someone can host their own email and send out thousands of emails without having to deal with a mountain of headaches again? That would be sweet, maybe I can go back to telling clients it's okay to paste a massive list of email into their Outlook's BCC field? It would certainly save them some money. I still to this day hear from clients who send "small" mass emails wondering why their friends at AOL, or <insert your ISP here> didn't get the email.

Sorry but this is based on my direct, first hand experience with hundreds of small businesses doing this exact thing. I don't base my business model off of some random blog post, I base on years of experience and the lessons learned from getting burned.
I think that for anyone paying attention, Facebook has been a continual shitshow since inception. The idea that they will ever learn to have a sense of civic responsibility towards their general userbase is simply delusional, for the simple reason that to do so goes utterly against Facebook's entire core business model. It is the 'punter model' of doing business with customer as puppet/adversary and it is also the main moral failing at the center of Google. The fact that there is a recent pile on by the media might be that there is some nefarious competitor stirring up trouble. Or it might be that they have woken up and decided to do their jobs for once and this seems unusual.
Isn't that the intent?
I don't remember the whole thing, and I couldn't take it with me, but what I can recall is this:

It is much more important to determine whether there is a real intersection at all, than it is to determine how big the area of intersection is.

Calculate distance between centers.

Add both major radiuses.

If distance >= sum, skip this pair. Intersection area is entirely imaginary.

If distance < max( minor radiuses ), the pair definitely has a real intersection. Put it on the list for later and check the next pair. Upper bound, min( ellipse areas ); lower bound zero.

Find the maximum extents of each ellipse, when projected onto the segment between centers. If the sum is greater than the distance, there is a real intersection. Put it on the list and go on to the next pair.

Then there was a bit of a race against time through increasingly esoteric tests that relied heavily on the calculations from previous steps. The goal was to produce a list of ellipses, sorted by decreasing real area of intersection greater than zero with a single reference ellipse. So if there was only one on the list, you didn't even need to calculate area. That was the answer, and you're done.

At some point, the reference ellipse was transformed into a circle at the origin, with the center of the comparison ellipse on the x axis. Some tests only used one quadrant of an ellipse at a time. Each test refined the bounds on the fraction of the reference ellipse that could be in the intersection, so again, if those limits were enough to sort the list, the area calculation was skipped.

If there were still enough ambiguous tests, then finally you calculate the points of intersection. For zero or one, the area is exactly the area of the smaller ellipse. For four, first approximation is the area of the quadrilateral, as minimum. For three, the area of the triangle, as minimum. Two was the worst case, because then you needed to pick out a third point for the triangle, which was probably one of the four where a major axis intersected an ellipse. If you needed a maximum area, it was the smallest circle enclosing the points. Each test either increased the lower bound, or decreased the upper bound, until there was no more overlap in the sorted list.

After all that, if the list was still not clearly ordered, you finally calculated and added chord areas to get exact results. You couldn't really get here with real-world test data, so now you had to invent test data specifically to make it this far, to be sure that if any real-world data set ever does execute this branch, it ends up ordered correctly. But I don't think we ever got funding to bulletproof it. Customer was fine with the possibility that a tiny fraction of inputs might end up ordered incorrectly, so long as the wrong answer came out quickly.

Clearly, if all the areas had to be calculated exactly, it would have been more efficient to just do that from the start. But that wasn't the problem.
#!/usr/bin/env python is almost guaranteed to give you a surprise at some point. If someone has a virtualenv or conda env active in that shell it will be a different python environment (with different installed modules) than in other shells.
How would trade retaliation even work? Software isn't that straightforward to tax. For example, say you 2 video games, one of which is Chinese owned (say League of Legends), the other is American owned (say Dota 2). Tell me what justified trade retaliation you would use to promote one over the other? Would you add a $0.01 tax to cosmetics?

You can't do it. Of course it doesn't matter to the CPC what Tencent does with this game, because games are inconsequential. But if this wasn't Tencent's LoL, but rather WeChat we were talking about? At that point CPC policies, including censorship will be applied by Tencent. And what "trade-retaliation" will you use then?
Well in the latter the user specifically gives permission to Spotify when they choose to connect their FB account to Spotify's desktop app. NYT's wording makes it sound like they have unilateral control regardless of user consent. You can revoke Spotify's access whenever you want from your FB account settings.
> dpkg -L helps a lot when figuring out where all the files get spread.

Well yeah, that was the central point of this conversation :)
even I am trying to learn a new language and basically finding it a bit harder.

can you let me know the process you have followed and how did you practice and tips on getting better
Gobble
> It's insane that people spend time and energy on keeping secrets from their relatives and friends (which everyone does) and yet can't see that a third party that actively seeks your information is more likely to cause you harm than people you know. This is a trivial deduction, yet so many people can't comprehend it.

I think this deduction is actually wrong. Ask yourself why you hide some things from your relatives and friends. Could it be because quite a lot of people are really bigoted, and the immediate social costs of them learning more about you would be dire? Whereas data collection currently has only one visible consequence on the individual level: what kind of ads & spam you get, and how much. People correctly recognize this as mostly harmless.

People do react to things that affect them directly. In my country it is widely known that people trying to cheat our IRS or social insurance got busted over Facebook photos, so they know not to present a lifestyle that's different than the one they report to the government. (E.g. if you're consistently reporting low income, don't post photos of your two limos. If you're on a (paid by social insurance) medical leave that restricts you to bed, you'd better not get tagged on a photo placing you in a restaurant.)

EDIT: I don't mean to imply that the government has a backdoor access to this data; it's just there were cases of people dumb enough to share incriminating evidence of fraud that found its way to government investigators, by e.g. being posted publicly.
The problems with rating systems for content is they can often lead to brigading to suppress/promote content. At which point, you're on an infinite whack-a-mole marathon to curb that sort of behavior.
How difficult was it to set up an SMTP server? I know that merely installing and configuring the software isn't that hard, but the common opinion of late seems to be that setting up things like MX records(I really don't even know how those work) is too onerous. If it's not that difficult, then there really should be fewer people/orgs relying on services like MailChimp.
Even Athenian Democracy (which had a restricted electorate) didn't have every one vote on every thing.
It's not a perfect acronym. I didn't come up with it either, but for some reason the games have had the following shortened forms:

Super Smash Bros. -> SSB or SB64
Super Smash Bros. Melee -> SSBM OR SMMSH
Super Smash Bros. Brawl -> SSBB OR SMBSH (pronounced sm-bush)
Super Smash Bros. for 3DS / for Wii U -> SM4SH (the 4th Smash Bros game)
Super Smash Bros. Ultimate -> SMUSH
That measures only direct results, though. An organization that teaches others to read and write may have a much bigger impact, if they teaches one person who then goes on to do something massive.
This is a nice product! I appreciate that you made a free version: very valuable for students
Have Purism explained their processor choice anywhere? It would have been nice to have used the i.MX 8 QuadMax - it would have given a little more hope for the phone lasting.
Hey, I'm building a tool that automatically backs up your email subscribers and stores them in google sheets. It's still in dev, but feel free to subscribe https://stompapp.xyz/
Page isn't loading in Materialistic (HN reader on Android/F-Droid repo), but: do you have this exact verbiage on it? It's very concise!
The company is set up to deliver a lie, even if the last person telling it is doing so unintentionally.
The s stands for simple.
It's harder to focus on learning a single thing perfectly with all the noise out there. Did you get employed as a python developer?
Cloud trends 2019: 5 for IT leaders to watch
Fedora at least as of F28, moved to have system tools like dnf use Python 3.

For RHEL 8, the tools included with the system will use a different binary, platform-python that isn't in /usr/bin.

I can't remember if that's also the case for F28/F29.
Reminds me of a great quote, from Ender's Shadow:

"If he's this good at making people love him, why didn't he do it before? Because these fools always look up for power. People above you, they never want to share power with you. Why you look to them? People below you, you give them hope, you give them respect, they give you power, 'cause they don't think they have any, so they don't mind giving it up."
It can NOT translate "hello, dude!"[0]

> We couldn't find what you were looking for in our dictionary.

> A few suggestions:

> - Check your spelling.

> - Try searching for similar words.

[0] https://www.russiandict.net/transations?utf8=%E2%9C%93&searc...
Take your “honest” estimate, double it, and round up to the next highest value (day, week, month...)
I really want to get into Go, I like that it's opinionated, I like that it's compiled, I like that it's garbage-collected, I like that coroutines are built-in.

My primary use case is scientific computing, both data processing and interactive visualization.

I know Julia is an option as well.

For reasons I don't want to bother getting into I dislike Python.

Thoughts?
Just a heads-up, Pale Moon 28.0 was released on August 16.
"In [Father of The Bride, George Banks [Steve Martin] heads to a local market in order to cool off after having had a bit of a meltdown over his daughter’s impending wedding. While there, he has an even bigger meltdown over the fact that while hot dogs are sold in packages of eight, hot dog buns are sold in packages of twelve. So, he decides to take a stand by ripping open packages to remove the four offending buns. When a befuddled clerk tries to stop him, George says that the hot dog and hot dog bun corporations “are not ripping off this nitwit anymore, because I am not paying for one more thing I don’t need. George Banks is saying ‘no’!” LOL He winds up getting arrested and is sent to jail, where his wife Nina (aka Diane Keaton) has to bail him out."

http://www.iamnotastalker.com/2011/06/28/the-father-of-the-b...
That is the purpose of the "flag" link on stories.
Williams-Sonoma accuses Amazon of copying West Elm furniture
Thinly veiled insults at someone who used to work for facebook is hardly within the rules of HN. Let's not start flame wars.
It's fine for sharing publicly-palatable things with friends and family members.

I wouldn't conduct anything on it that you'd care to keep secret, though.
Rationally I understand that people such as this sender are not representative; most individuals who bother to contact us have only kind and/or constructive things to say. But over the years these isolated haters have dumped a lot of their bile onto me, and it's hard to resist the corrosion indefinitely.

That being said, posting that nasty email here is part of my strategy for maintaining a rational view of it. It's less destructive out in the light.
It will be. We always move the goalposts of what "polite society" should look like.

Trump got elected despite having his past (or because of?). People with visible tattoos are CEOs. Elon smoked weed on camera. You think that shit would have flown in the 1940s?
Good catch. Yes, it should be SMTP. Yes, you can extract multiple spans from the text.
Revealing autism's hidden strengths
Not what they mean by "hunting down" at all.
Creation of quark–gluon plasma droplets with three distinct geometries
Your advice is great and all and obviously would work, but it doesn't help his resume or help him achieve "influencer" status.
Didn't say it was hard.
Did that message explicitly say "we are going to give access to your private messages to external companies like X, Y, Z" or was it a more convoluted message like "Facebook has direct access to your private messages (of course it has, I'm on FB, ain't I?) and as such it might process your private data with another external entity"?

Either way, many, many of the users would have clicked OK on the confirmation screen even if it had said something like "Facebook is going to sacrifice your first-born child", that's why hiding behind confirmation screens/TOSes when doing nasty stuff like what's described in the article is not enough.
If I turn on Windows Backup on my Mom's laptop and she right clicks a file and selects "Delete" is the expected behavior that it be deleted in every backup as well?
The major advancements in Deep Learning in 2018
Evidence that he's lied to those entities?
Wow! Can I ask what country you live in?

There are definitely some parallels here to the way people now often friend their bosses on Facebook, leading to uncomfortable knowledge sharing.