skysight-inc/HackerNews huggingface dataset:
That‘s what I was thinking when writing my edit. The somewhat ironic thing is that C++ people could use early exits safely, but often don’t, while Java folks typically write early exit code when they really shouldn’t.
Mozilla's client-side encryption uses a key which is itself encrypted with your Firefox Account password — and Mozilla serve you the JavaScript used to log into your account, so they can steal your password whenever you log in using your web browser.

There old password-storage system really was secure, but they end-of-lifed it.
The reason it matters is exactly what you said. MegaUpload did comply to the law and not one inch more, just like they were supposed to. Then the MPAA got the US government involved in what should have been a civil matter. That wasn’t enough so then the US government induced an allied government to execute a tactical raid on the guy’s house and seize his business assets including the servers containing customer data.

The outcome is that this has been strung out in court so long that companies like Google/YouTube far exceed what the law requires in bending over for the MPAA/RIAA mafia, leading to massive amounts of false copyright claims. The precedent set by MegaUpload was “it doesn’t matter if you follow the law, the MAFIAA is so powerful that the US will send men with guns after you no matter what corner of the Earth you reside in.”
> Their business model has nothing to do with their own analytics talent

I recall — some years ago — when they were advertising for Jobs, some of the criteria for potential technical fitness was a high placement in some of the competitions. Plus, I have engaged in a few of the competitions and you have to have a team of capable data scientists to design them. They are not clueless people.
Smart Home Controls
I am too lazy to check right now. ;-)

Honestly, this story was told to me by an SAP consultant. I do not think he was an avid reader of BOFH. I might be wrong though.

Either way, I think this approach to avoiding bikeshedding has been invented independently numerous times. ;-)
A pro maintains consistency though so that is good.

I like One True Brace Style (1TBS) with an uncuddled 'else', which has else/else if on new-line with the break before it (similar to Stroustrup K&R without any same line properties, one thing per line, no bracket-less statements) and setup the standard that way if I am designing it, but do Allman or whatever variant the codebase uses if it already exists.
What's interesting to me is, anecdotally, the people I know who are the biggest K&R haters are people who started with K&R, then had to switch to Allman for a significant length of time, and then had to switch back to K&R.
Uber Sells Southeast Asia Business to Grab
On the website it's explicitly stated to be a test without disturbing people using "Saved Logins". I suspect Lockbox will replace those in the future...
Show HN: “New52”:  My attempt to dive Wider, not Deeper
I've always been one of those people who has an absolutely terrible time coming up with side projects for myself, primarily for two reasons: I aim too high, and I love to stick with familiar technologies.

To this end, at the beginning of the year I started my NOT A NEW YEARS EVE RESOLUTION project (because NYE resolutions rarely see completion): I decided that I would spend all of 2018 learning entirely new technologies - one new one per week, every week, and spending at least 8 hours on the technology. I also set a hard line that I wouldn't "give multiple weeks" to anything, no matter how much I loved it. I would move on at the end of the week, and anything I wanted to pursue further would either have to wait, or would be tinkered with on TOP of the work I did for New52.

I am coming up on 1/4 of the way done with this project, and I figured now was a good time to share it, now that I'm confident I'm "sticking with it" (unlike many other NYE resolutions...)

I wanted to share it here for inspiration to others, but also for a selfish reason: I would _love_ to get people's advice on what to explore! I'll accept PRs to the README list of tech ideas I have - I have 40 weeks to go still, and nowhere near that many items left in my list!

Thanks for taking a look!
Yes and no. Sure, 'hate' is probably the wrong word, and may be counter productive in many cases. And you're right about the empathy; everyone likes to apply labels that mean they don't have to feel.

On the other hand, accusing the people you oppose of being demonic Satan-spawn looking to corrupt our youth and destroy our lives and country, of being the baby-molesting other that causes nightmares, well, that probably isn't caused by an excess of good feeling.
> California is a two-party consent state for recording, and it's not an unreasonable stretch to say this should also include call metadata

It is very unreasonable. All modern phones automatically keep a log of your phone calls (call history). Should I ask for the consent of anyone I call or delete the phone call from phone history immediately after, otherwise I face criminal penalties?
> In this case, the software is open source, so the software can be evaluated.

You enter your password on a page Mozilla serve[0]; they can change the source of that page at any time, and for a single user. They could for example, send your password in the clear back to their servers if they wished.

0: https://www.mozilla.org/en-US/firefox/accounts/
"The strategies included using meditation to enhance intuition, relaxation, visualizing good fortune, and talking to at least one new person every week."

These are basic techniques that have been taught by almost every spiritual system for thousands of years. Unfortunately for all of my atheist-materialist friends, you have to change your metaphysical views to employ these techniques.
Upton Sinclair comes to mind: "It is difficult to get a man to understand something, when his salary depends upon his not understanding it!"
> The data is somehow segregated so that it's excluded from being sold to advertisers in any form.

That doesn't mix with there being free users whose data is sold to advertisers, because it's the same data. You share your photo with another user who in turn shares it with another user etc. That's what a social network is.

So what happens when the vast majority of everything is shared with both types of users? If touching a free user means it can be subject to facial recognition and tagging and everything else for advertising then there is little point in paying. If touching a paid user means it can't then it destroys the revenue model for free users and the price of paying would be high enough to discourage everyone from doing it, because you're de facto paying for all the free users you share anything with.
Cleaning up resources after use is not a question of performance, it is a question of correctness.
The Future of Social Networking (2008)
Stealthy Dopant-Level Hardware Trojans: Extended Version (2015, Pdf)
She was laid off from a job at a bank, per the article.
No, you usually have to debug just as much, you just don't have any nice tools to do it with. I agree the monadic approach looks cleaner, but just be ready to undo it for any kind of hairy logic that requires debugging.
In any case, the "lost sale" doctrine is always inherently flawed, because it presumes that those downloading have unlimited entertainment budgets. No one can spend more on copies of information property than they have in discretionary income, and thus the purchase of one copy precludes the purchase of another.

It would be easy enough to presume that everyone is always spending their entire entertainment budget, and a dearth of funds for legal purchases may be why they are obtaining illegal copies. By this reasoning, the damage done due to piracy is always zero. But that's just as clearly bunk.

Some people pirate so they can spend their money on something else--something they would not have otherwise purchased if they were compelled to spend money on the information copy they might have preferred. Thus the media company is damaged because someone spent money on something else they didn't strictly need. Even by this argument, the damages would have to be capped by calculating the total discretionary income of all illegal copyholders and summing them. IP addresses assigned to an ISP serving US residential customers could likely be associated with a number for the median discretionary household income in that census tract.

You can't reasonably say that a homeless person who illegally copied 80 GB of music files from a public library computer is costing the music industry $80 million in lost sales. That person has negative discretionary income. They wouldn't ordinarily buy music until after paying for food, utilities, and rent. You might be able to argue that having already copied the music, they won't buy it when they finally do have the money to do so, but that's not strictly true. A lot of pirates do "settle up", so to speak, for the works they enjoyed most when they finally do get some extra money, by buying things legally when they previously copied them illegally.

So the sky-high plaintiff's calculations involve a lot of assumptions and shortcuts, and a competent defense would surely be able to cut them down to more reasonable, if still practically unrecoverable, numbers. But the court has no need to review those arguments unless the defendant is found liable in some way. Perhaps examination could be triggered even without finding of liability if there were also a counterclaim that the mere magnitude of the accusation constitutes defamation? I am not a lawyer, so I wouldn't know.
in my opinion, Java:

https://docs.oracle.com/javase/9/docs/api/overview-summary.h...
I have often wondered the same. It must be torture for animals with a higher flicker fusion threshold. The Wikipedia page seems to suggest that your threshold is related to your metabolic rate.

https://en.wikipedia.org/wiki/Flicker_fusion_threshold
That's because the issue is a lot more complicated than that.

I'm going to make the assumption that you are not from the United States.

In a lot of ways the United States is not like the rest of the western world.

The right to bear arms was so important to our founding fathers that it is the Second Amendment to our Constitution (right after the guarantee of freedom of speech, religion, etc.). The fact that American colonists were so well armed is probably a major reason for their success during the American Revolution. The idea was that so long as we retained the right to bear arms we would be able to keep tyranny in check. History shows that calls for sweeping gun control are often a canary for planned authoritarian infringements upon our other rights.

A lot of the gun statistics that are reported are quite misleading.

For example, more than 60% of gun deaths in America are suicides. [1] I would suspect that the majority of these individuals would simply choose another means of suicide. From everything I have read our suicide rate is no worse than other similar developed nations.

We also have a massive inner city gang homicide problem. No matter how many gun control laws we pass, these individuals will continue to obtain guns through illegal means.

There are wide swaths of this country that are very rural and very remote. The police response times are over an hour in some parts of the country. Self defense via a firearm could actually be life saving. Additionally, as the recent Parkland shooting demonstrates, law enforcement is not guaranteed or even required to intervene to defend anyone from homicide.

[1] - https://www.nytimes.com/2015/10/09/upshot/gun-deaths-are-mos...
Car Subscription Service Technologies Are the Future of Vehicle Ownership
It's interesting when style becomes rules, the years goes by and no one challenge the "best practice", languages and frameworks might change, but the rules stay, for no good reason. So yeh, why only one return !?
I have the exact opposite experience. If you find yourself annotating your variables and methods with extra adjectives and nouns, your code isn't simple enough. Those explanations go in code comments.

Often it means you can refactor it so that there is only one of any "thing" so there is no need to clarify which version or role this "fooBarThing" is serving to disambiguate it from the other "bazBarThing".

Functional composition and well structured data is the key to this. It's basically halfway to point-free style.
MBP? That's surprising to hear then, they've got great (not $1600 Dell HDR monitor perfect, but great) monitors.

One of the core issues is constantly fiddling with the brightness, especially with multiple monitors.

That's where ideally you'd want to have the brightness of the panel fixed, and change it with a lookup map, e.g. what f.lux does for color mapping at night.

That's where you'd get ideal results, would be able to enjoy media in high quality without having trouble with too high contrast or too low contrast websites, and you could choose separate profiles for text and media.

Not everything supports this yet, but with the move to HDR10 and DolbyVision, support is getting better, because now people do have content in the same window that's mastered with completely different contrast ratios (the min for HDR10 is "moonless night", the max is "as bright as sunlight on a cloudless day", while for text the ideal min/max is newspaper text)
Why you should use column-indentation to improve your code’s readability
for a vi user, visually selecting a block to its matching end for cutting/pasting is the equivalent of coding photoshop
Can the Most Hated Man in West Virginia Win?
"Email marketing lists naturally degrade by about 22.5% every year".

I would have thought that it would have been much higher than this!
You could use a std::unique_ptr with a custom deleter: http://en.cppreference.com/w/cpp/memory/unique_ptr
Did you even read those articles? They do not show "vast amount of astroturfing by the USA & NATO Spy agencies", which was the claim upthread.
If you’ve ever had to deal with various errors or to filter out something and return the appropriate output, it is much more concise. Read past the if’s and you have the main logic of that function.

But that max function should have an else statement since it's part of the logic. Less code doesn't always make it more concise. If there's a more complicated logic, then it'd actually be harder to understand at a glance.
> I’ve been a LastPass user in the past but quit after some event I can’t even remember

The 2015 security breach?
It's 2018 and most video conferencing tech is still crap
For those that like HyperCard, I really recommend looking at LiveCode (www.livecode.com), it is a modern version of it that is able to generate standalone applications for MacOS X, Windows, Linux, Android, iOS and the Web.

They have a FOSS version behind that confusing website, the livecode.org site has access to the GPL version, you can download without acquiring a membership. It is just a bit hidden.
It's up to you to litter your code with these `defer` blocks. Although I'm a bit skeptical about POSIX sockets being such an obscure API that it's not worth creating a proper RAII container for them. (not to mention the pre-existing boost socket library)

To each their own ¯\_(ツ)_/¯
Its an attempt at shaming and shunning "wrongthink". They can't get much done via laws, or they feel its not enough. So people who think the "wrong" things need to be punished and ostracized from society.

Its not going to go they way they think it is.
Choosing an environment that requires you to clean up resources instead of handling it for you is mostly a question of performance.
I use both if else and return, so in case I forget any the code still works as intended.
Then how do you confirm Facebook is complying, and how do you confirm that the regulation they need to follow is sufficient, and if it's not, how do you really create any change to make it sufficient?
By "actual people" do you mean "who cares about animals dying in horrendous ways when people will be dying?"
Leader of $1B Carbanak Cyber-Heist Gang Arrested in Spain
What is the legality of Facebook recording the SMS conversations of someone who never signed up for FB, but whose text messages got caught in the feed of someone who did?

Secondly, were they just siphoning text or did they get a whole bunch of nudie photos too?
I used Python enough that braces are completely meaningless to me in languages with them (ie, everyone else). Indentation is my mental delineation of code blocks. I just have to write these {} things all over the place because every other language is a gramatically bloated mess.

The advent of automatic code formatting (and Python pioneered this in many ways with pep8, but even huge C++ projects are realizing the value in clang-format, clazy, etc) put the nail in the coffin of arguments against whitespace blocking. You can have an enforced uniform style throughout a project now, with no ambiguity, and in such contexts using whitespace as a block delimiter also has no ambiguity. It just takes advantage of formatting already being done to avoid redundant glyph use.
The old walled city of Shibam, Yemen – 7000 people living on 0.8km² of desert
but biased fans of both would argue that opening and closing a block in the same indent level (allman-style) is closer to python.
Eliminating Front Running with Decentralized Exchanges
Silicon Valley Data Is the New Wall Street Debt (2014)
Bskt: a smart contract for creating decentralized token portfolios
In 1962 they would have had multi-channel magentic tape (analog) recording. The first flight data recorders date to the early 1940s.

Fitting it in ejection seat might be another challenge but I'm sure they would have developed something before moving to live subjects.
Indeed, depends. Most places I've been say "the sign at the [driving side] is canonical, the other one is optional and informational only".
I look as environment (and privilege) as an equivalency group. If all other factors are the same, then evaluate this as advice with that cohort.

You can be trained to be lucky, and it is a simple problem of exposing yourself to more and more. Try more things, spend more time, be open to new ideas.
"But according to Troy Mursch, a security expert who spends much of his time tracking Coinhive and other instances of “cryptojacking,” killing the key doesn’t do anything to stop Coinhive’s code from continuing to mine Monero on a hacked site. Once a key is invalidated, Mursch said, Coinhive keeps 100 percent of the cryptocurrency mined by sites tied to that account from then on."

This is where I think Coinhive ethically crosses the line; perhaps legally, too. The mining scripts should stop when contacting Coinhive and determining that the specified key/ID has been disabled due to complaints or fraud.
Malaysia seeks 10 year-jail terms for 'fake news'
It's really code tetris
And spaces sub factions/opinions on 2 vs 4 spaces.

The correct answer is whatever the project is already using, unless it is new and then you luckily get to choose.
Show HN: How early can you retire if you move to another place?
Entirely too much FUD in your comment.
Totally agree. My mom wouldn't know that damn dialog has two buttons. This is the epitome of “we’re shitty by default, but if you know your way around our system, then you’re fine.” Yeah... how about no?

Just wrote about it here: http://www.tnhh.net/posts/shitty-by-default.html
Honestly the most surprising thing to me was the study that is cited out of the gate:

According to our latest research, however, conventional wisdom is wrong. A vast majority of Americans (91%) do in fact want to receive promo emails.

While 86% would like to receive promo emails at least monthly, 15% would like to receive promotional emails every day.

Is my personal experience of not wanting any email promotions just way off here?

[1] https://www.marketingsherpa.com/article/chart/how-customers-...
I do believe the reference is to her capacity for intellectual work (teaching vs driving a train) based on the environment her parents would have raised her in. Not genetics.
The great "vimtutor", in 15 minutes you'll be extra-proficient.
You're right. I think I'm referring more to "federated" than "decentralized".
Do you think it will be possible for US citizens to take advantage of GDPR by just saying they live or are a citizen of the EU?

Will Facebook even check or will they just play it safe and accept most requests?
We don't even know they always did this with permission, because in the past they didn't actually need permission for it, which could be why Facebook is trying to make such a big deal out saying that collecting call history and text is "normal" when they collect your contacts.

It was required in 8.0 to tell the users that they're collecting this data. So the question is, did they collect it before 8.0 w/o permission?

https://developer.android.com/about/versions/oreo/android-8....
Facebook rolls out locally-focused News Feed globally
I'm afraid that I agree. Convenience and network effects are the two most awesomely powerful drivers of adoption and retention and Facebook has both.
Create a Bitcoin Hardware Wallet with Golang and a Raspberry Pi Zero
Re: "Email marketing"

I wish it was opt-in as opposed to opt-out. The amount of email spam and physical spam received is absolutely ridiculous. I shudder to wonder how much electricity is wasted sending unwanted mail and delivering unwanted emails.

Sounds like it'd be a win for everyone based on this guide. Those who want it would opt in, and the company could focus their campaigns for those who want it more. Meanwhile those who don't can be left alone.
I feel your pain :)

I have been keeping Oni and VSCode open while I work so I can use Oni for editing and VSCode for the nice diffs and replace in project functionality.
Thanks! Yes, a big reason to why I designed the site was to remove some of the monotonous nature of exercising, and also to reduce as much resistance as possible (that's why I wanted to use autoplaying gifs) It is also a response to all these trendy "7-minute workout" apps, I think it's dangerous to give people the idea that you can just exercise 7 minutes and then sit on your ass the rest of the day.
I don't see it mentioned anywhere, but

git log -N (where N is 1, 2, 3, 4...)

will show the last N commits only. I find myself doing `git log -1` pretty often to see what was the last commit, so I imagine I'm not the only one.
Most countries don't have a history of race based slavery. Rome, Inca, etc viewed conquest as the path to slavery. Even most American slaves where at the root captured by a different group in Africa rather than based on skin color.

The race to slavery connection was more an accident of history than any design. Early America had some black slave owners and they imported from Africa because Native Americans tended to die from disease or escape.
As someone who has been working on a Scala codebase for the past year and who now forgets to use the `return` keyword in other languages, it still pains me when I see stuff like that first example in coding interviews. It doesn't help that the solution for my go-to problem has a bunch of places where you can return early...
Making it a standard requires a lot of work. Not doing so gives firefox an edge against other browsers.

So if you are resource constrain, testing a product, and an underdog again, I understand the idea.

But my guess is they will make it more generic and open later, mozilla being mozilla.
OTOH, if cardiovascular issues are preventing or interfering with diet and regimen, then it might help.
> The idea was that so long as we retained the right to bear arms we would be able to keep tyranny in check.

How's that working out for you? The vast majority of my 2nd Amendment-supporting friends seem to support Trump, whose authoritarian statements and actions are like nothing seen in a US President.

Possessing the means of insurrection doesn't entail having the judgment to use it appropriately.
Thanks xconverge, it's great to hear from you and appreciate the kind words! I'm a big fan of the work you're doing as well - really impressed with the VSCodeVim plugin.