skysight-inc/HackerNews huggingface dataset:
> The Chinese government, which has long used its country’s vast market as leverage over American technology companies, is now asking some of those firms to directly pledge their commitment to contentious policies that could require them to turn user data and intellectual property over to the government.

This first paragraph seems to be an egregious and willful misrepresentation of the document[1] by the New York Times. Most of these promises appear to be good and reasonable ideas without an ulterior motive. The only part that I don't quite understand is #6 where they talk about the "supervision of society".

Farther down the article:

> The letter also asks the American companies to ensure their products are “secure and controllable,” a catchphrase that industry groups said could be used to force companies to build so-called back doors — which allow third-party access to systems — provide encryption keys or even hand over source code.

I don't see that phrase anywhere in this document, though the individual words do appear several times. Moreover, I don't see how anyone can reasonably argue that anything in the document implies third-party access to secure or proprietary information.

[1]: http://www.nytimes.com/interactive/2015/09/16/technology/doc...
For one, "this" could refer to anything at any time, depending on who invoked the enclosing function.

function myFunc() {
console.log(this);
}

var myObj = {};

// this = window
myFunc();
// this = window
myFunc.apply(null, []);
// this = myObj
myFunc.apply(myObj, []);

myObj.myFunc = myFunc;
// this = myObj
myObj.myFunc();

var tmpFunc = myObj.myFunc;
// this = window
tmpFunc();

Another issues is closures, where variables and properties available to nested functions are dependent on the outer functions. Combined with the floating "this", leads to highly dynamic behaviour which can only be assessed at runtime.
Huh, I hadn't noticed that quote. Now I'm really confused.
Even ignoring Apple's rules, I don't think it could be done within the confines of the sandbox that third-party apps run in. Some of the stuff that gets transferred just can't be accessed.
This is online storage.

If a GET fails, just retry as usual (most higher-level libraries do this automatically, sometimes with a backoff mechanism).
Show HN: User Script to fold HN comment subtrees
Warning: I left a few ugly hacks[1][2] in it (and not nearly enough comments), and I've only tested it under a recent-ish firefix+greasemonkey. There could easily be bugs, especially in the layout.

That said, I think I'm using features that should be standard everywhere (e.g. querySelect). The icon for the voting triangle is repurposed with a 90deg rotation and some opacity. This could probably use it's own icon(s)? I'm not sure.

Anyway, I wanted a quick method to collapse comment theads, and I ended up with a tool that lets you fold/unfold any subtree (as determined by the indent width).

[1] I'm sure there are better ways to handle the CSS for the fold-icon. The <div style="width: ..."> hack seems to be necessary or the icon wraps to the next line. This might be completely unnecessary if the icon was placed somewhere saner.

[2] I should be binding the click handler once above all the posts. Probably not a hard change, but for now the per-comment closure seems to work fine.
Everything has to go through pre-submit checks before it makes it to HEAD. And if you get it past those and it starts breaking stuff, there are robots that will automatically roll back your change if it breaks enough stuff.
The interface is different because if you use a green thread within a GC'd language, you can do anything -- change anything, interact with anything -- and nothing will crash. No locking involved, and no hidden locking under the hood.

It's not meant to be a performance boost, but a way of writing code where "might this crash?" is a question you're never bothered to ask. It's wonderfully freeing.

Not true of native threads. If a goroutine were replaced with a native thread, it would swiftly crash on GC.
-It's an opposing orthodox religious family

-It's in an ethnic christian holdout of the earth

-The kid is above average, and the device looks like he's been dreaming of a suitcase nuke

People should respect the patriarchy and the nations of the Earth. This family should live in the larger city in Texas, if anywhere.

edit: You don't respect how the world and culture and sanity works or how many people are on it if you're opposed to this way of thinking.
With the cost per GB for Glacier Storage now. Any small to medium company would be fiscally irresponsible to not use it as a primary disaster recovery option. $84 per year per TB is ridiculous for geographically diverse storage.
When I went to college over that way, it wasn't a huge shift from the part of western Maine that I came from, either. At least the locals, anyway - there was quite a bit of culture shock dealing with my fellow classmates, who certainly were cut from a different cloth. Hanover has some of that "get up in everybody else's business" vibe, but outside of that bubble, it's a lovely area.
When I lived in California I would often do a twitter search after feeling a small earthquake. If there weren't any results, I would usually assume it was a truck passing by or something like that.

Very often there would be tweets about the earthquake several minutes before the official USGS page for the earthquake was created.
Just for the record Charter Schools have a purpose BUT not to replace Public schools.

1) I think in experimentation charter schools do serve a good purpose, but right now it is the battle of not having another New Orleans (New Orleans has ZERO public schools and its school board has dissolved).
One obvious question: Is there a way to fix the problem compatibly?

AMD doesn't seem to be vulnerable, so you'd imagine that code couldn't rely on this behavior because then it would fail on AMD chips, but... well, once you've read enough of The Old New Thing, you get a feel for how gonzo some developers get with This Never Fails and This Will Never Change, and if they have to write different codepaths for Intel and AMD instead of doing things sanely, that doesn't seem such a huge imposition to the irrational mind.
The "Move to iOS" app is, to some extent, pointing out just how much of your data can be read by any application.
I also highly recommend the Global Disaster and Alert Communication System set up by the UN and European Commission. Their ranking of orange vs red level events tends to map pretty well to how serious the event is in terms of destruction.

http://www.gdacs.org/
Java compiles to its own bytecode ahead of time. The standard JVM also makes use of JIT to compile hot code paths to machine code.

Python compiles to its own bytecode, but only when a script is first interpreted.

Haxe compiles to many different source code languages ahead of time, including C++, Python, Java, JavaScript, and C#. It also compiles to a custom "Neko VM" bytecode.

So, "compiling" isn't necessarily ahead of time, depending on what level of "compilation" you're talking about.
This article really taught me the error of my ways. Thanks apple and Google.
To play devil's advocate, though, most people have probably never seen electronics out of a case.

Although the police really have no excuse not to know what a bomb does and doesn't look like.
More importantly to me is that Apple created such an app in the first place. That's a very defensive move, certainly not the kind of move you would expect from the owners of a platform who are comfortable in their lead and their superiority.

This kind of move is usually the first step toward downfall.
A ticking device that is not supposed to be brought to other classes(he was notified by his science teacher), and is closed up with some string so you can not see what's inside, and by a 14 year old Muslim student, and suddenly it starts to tick during a class. If I'm the teacher I will call the cops too. Yes I know I'm politically incorrect here, and will get down votes for this, but if I'm the teacher I will do the same, though I do agree the cops can be much nicer to handle this.

On the other hand, I frequently found to speak your true thoughts here at HN, it _scares_ me to some extent, because different thoughts here will immediately be punished by down votes, such as the one above. Maybe it's time to close my HN account all together.
... if the user approves such access.
Add HTML Contents to Existing PDF File and Mark Text Formatting as Strikeout
Uh, how much is it actually? (Simple searching didn't seem to get me the answer.)

We should have a list of these things.
It is an easy claim to make but just as easy for them to test as well, so it works out.
While I hope flash drives will come down in price, who has a 2TB flash drive right now? My entire desktop OS, with at least three web browsers, multiple sdks/compilers etc take up a grand total of 15GB. Granted, that'd still leave room for 150 "apps" in the same space (note that I actually only have 3GB free, though). Still, 100 MB for what is essentially high-level code? It's absurd.

[ed: Not directed at op, as such, just how silly the general node ecosystem is currently]
If I could have a git API to glacier I would be happy.

I have tried various glacier clients and they all seem to suck. So I have trouble tracking exactly what I have stored there sanely. :( Unusable.
IANAL but seems like an anti-trust suit waiting to happen
Bootstrapping isn't no capital, it's no outside investment. The two founders had worked for Yahoo for years before quitting, they used their savings and kept expenses low.
SAP's McDermott Loses Eye in Accident, Will Continue as CEO
To me it sounds like:

S3 Classic: Your file gets replicated on 3 live HDs (and/or HDs backed by RAID arrays—not sure about the internal S3 storage topology).

S3 Infrequent: Your file gets stored on 1 live HD (or single hardware redundancy component) and a copy in Glacier. If your live HD dies, your file will be automatically restored from Glacier to a new HD (but your data may be inaccessible during the automatic re-deploy).

Glacier: offline bluray combined with error correction accessed by robot arms, temporarily restored to live HDs on demand.
Huh? You know what pain it is to move from one platform to another? Within Android, moving from one manufacturer to another is already difficult enough. If Apple manages to really assist here, it's a big win for them.
I think the point here is or ought to be that there are a lot of things that are completely normal that might be mistaken for a bomb by the ignorant or the uneducated. And no, that's not an excuse for the Irving ISD or Irving PD peoples' actions either since we expect them to be neither ignorant nor uneducated.
For the first few months I used HN I didn't read the comments. Now, occasionally I just read the comments and don't read the article, if there's an interesting thread that sidetracks me that doesn't really require knowledge of the article.
Default profile pictures generated on the fly
I am in Arizona, one of the least funded states in terms of education. Your statement " accept donations from their teachers and parents," is slightly off here. In Arizona they DEMAND money. My free public school education came with a 'recommended' $1500 per year, per kid. They do accept payments however.

It is not mandatory, your kid is not expelled if you don't pay. But the school does very clearly say "this charter school has better teachers, because we pay bonuses out of the donation money". So I make payments, because the other choices would be private school (more $$), regular public school (less education), or homeschool (no.).

It is not 'accept donations' . Require, or demand. Personally, I make payments.
Not worth the negative press when they accidently censor reviews on an app which should not be censored.

Also, why should they care? Apple should be happy Google even allows them in the Play Store.
I created a fake business and bought it an online reputation
A small crew searching for MH370
Use UPSERT, it's correct -and- fast rather than just correct.

Increasing the transaction isolation level shouldn't be done out of laziness.
I understand that 99% doesn't mean that 1% of the objects will be always unaccesible. Instead, I guess that they mean is that they allow themselves to have up to 80 hours a year of downtime for any bucket.
Glacier pricing is cheap only if you don't need to access it quickly.

Glacier pricing is surprisingly complicated, and the actual
cost can be much higher than $0.01 per GB-month if you don't
read the fine print.

The biggest gotcha is that you can only access 0.17% of the data
you've stored in any given day without extra charges. So if you've
stored 1000 GB, you can only access 1.7 GB per day for free.

https://news.ycombinator.com/item?id=9184466
But the Android Wear app is available so, like most of Apple's rules, it's selectively enforced.
Not worth the negative press when they accidently censor reviews

It's a frigging app store. Negative reviews should probably be deleted automatically with a random probability anyway.
The point of the PRC's tech company pledge that you say you find difficult to parse happens to be the one where the phrase "secure and controllable" is used:

Article #6 states:

"Accept the supervision of all parts of society. To promise to accept supervision from all parts of society, to cooperate with third-party institutions for assessment and verification that products are secure and controllable and that user information is protected etc. to prove actual compliance with these commitments."
You're right, they haven't made money on iOS in years. They're making such a small portion of the profits in that market. They'll fail soon enough. We heard it here first...
User Testing by Example
Hypocrisy is damn good business.

Don't ever fool yourself into thinking Apple is positive for humanity.
Imo this is censorship and unwanted control
8.3 magnitude earthquake strikes Chile
Google Glass renamed to “Project Aura”, hires from Amazon
Turn art into fashion and donate to your favorite nonprofit
This review hits all the right keywords:- http://static1.squarespace.com/static/55781673e4b058c6d6a34d...

None of the reviews is a critique of the app in itself, except some material design ones, but just the fact that the app is from Apple to lure away Android users. This also highlights the common problem with app store reviews, they are not able to paint a picture of the app for me. If I have to purchase something, I look at Amazon reviews and they provide me a decent picture of the product. But app store reviews are a cesspool.
I use marijuana as a pain killer alternative to opiate based pills. I can not stop using it, I have a chronic pain condition. My consumption exceeds the top 10 of my friends casual use. I don't think marijuana revenue will decline as much as you do.
I suspect that a lot of it comes down to dynamic typing -- the fact that the type of a variable is determined on-the-fly at runtime. Also the fact that Google pulled out all the stops when they created v8. It works very hard at runtime to undo the inherently dynamic nature of Javascript and make Javascript code behave more like equivalent static code.
In many cases the recovery times won't be sufficient for that. If the bulk is archived or log data a couple days/weeks of recovery are OK, but of you need everything immediately...
One possibility is the reduced SLA is to account for code bugs / youth, not for any expected difference.

They might expect to be just as good as regular in the happy path, but are under-promising out of fear of some code-bug or other issue.

Either way, I'd definitely not migrate too soon for exactly the above reason.
Ask HN: Is it acceptable to take a short break from work to decompress?
I'm looking for some advice.

I've been at the same startup company for the past six and a half years. It's a very small, less than 20 person company. We found success with a large client, but that large client has wholly consumed us. Over the years, we turned into their custom coding shop, for all intents and purposes, and lost sight on growing via additional clients. While I did learn a good amount during the first few years, the last few have been stagnant in terms of growth. We maintain the same two or three software offerings for the client, and it has been that way for the entirety of my tenure here. I reached burn out point about a year ago. I can tell that I'm growing pessimistic about basically everything relating to the company. I have been job searching and have even had offers, but turned them down. I feel as though I turned them down solely because my depressed and burned out state of mind has made me so apathetic about working that once I received job offers, I immediately had that "don't care" feeling.

I have been seriously debating just resigning and taking a month off before trying to enter the working force again. I want to allow myself to get re-energized and enthused about some of the things I'm passionate about. I feel like for me to actually allow myself to do that, I need to get rid of this depressing job that I'm at.

My question is whether or not that's advisable? My only concern is explaining that to future employers. In my mind, it's a valid explanation (obviously wouldn't go into details, other than just needing to decompress after previous job).
Reviews not pertaining to the app should be deleted. But Google is not gonna police their app store for each and every review submission.
Peter Thiel in Zero to One: "Of the six people who started PayPal, four had built bombs in high school"
There's a small possibility you're right, and this signals the beginning of a rapid decline in smartphone market share.

More likely, this is a move to solidify any existing opportunities to move a user from android to ios.
They are Google with a capital G. If anybody can do automatic curation of textual data, they can.
I have never met the dealer like you describe. Most pot dealers are in love with weed, and want to talk all day long about this flower vs that one.

I would guess that you personally are not purchasing marijuana?
AirBnB as your criminal conspiracy supply chain strategy seems like a bad idea, how trivial would it be for the DEA to get a list of addresses on past/current listings, then search USPS db history to find patterns to investigate.
> As the first major open source code ever donated by Google to the world

Uhh... what?
When Treasure Hunting is the Family Business
1:1 donation matching
Has always been the case with Apple review process.
Uh, this sort of hardware doesn't get upgraded in a year or two. Or ever. One word: COBOL.
From: https://hackermenu.io/
"Do you have the habit of jumping to comments before reading an article? We got you covered. Comment is just one click away. So is vote."

I did a quick browse and search of the source on github for "comment", "vote" and "login". How do you handle logging in/submitting comments/votes? Just present the regular hn login inside the app, and use the hn site?

I thought there was some TOS/gentlman's agreement that APIs only had read access to stories, and one needed/should use the hn page for comments/votes? Perhaps I'm mistaken?

I suppose there's no rule against making a custom browser though -- while a bit heavy handed, I suppose there's really no difference between wrapping node+electron and enhancing the UI/UX with greasmonkey -- I suppose the main issue is to behave closely enough to a regular web visitor, so as not to put undue strain on the service, not demand that every visitor actually uses a general purpose browser...?
@fnordfnordfnord To my knowledge, no one has asserted this was ever a bomb. This is all about the zero-tolerance policy public schools appear to be applying to situations like this and others (see: gun shaped pop-tart). Hopefully situations like this give reason to begin discussions about rethinking the way we treat children in an environment where this kind of activity should be encouraged, not punished.
Telling crazy people to go away isn't censorship though.
Apple is hardly a monopoly in the mobile space, so not going to happen.
If you are using VS 2015, TypeScript is accessible through the Extensions & updates window.

For downloading plugin for VS 2015 available at:http://www.microsoft.com/en-us/download/details.aspx?id=4859...

and VS 2013 available at: http://www.microsoft.com/en-us/download/details.aspx?id=4873...
In this case, "Android Wear" != "Android", so it is allowed.
I did not suggest what happened to him was RIGHT
(which would qualify as suggesting otherwise). I
said it was PREDICTABLE.

No. Your "extreme analogy" was to illustrate your "point" that he should have exercised "common sense." This is a form of victim blaming and is wrong. It does indicate you think he shouldn't have done what he did. This is "suggesting otherwise" because if he has the right to do something, he shouldn't be shamed or criticized or hurt for it. He shouldn't have to fear for it or operate by your nonsensical "common sense."

Second of all, I labeled my analogy as "extreme". Perhaps
you missed that, or once again maybe it's just that your
reading comprehension skills are lacking. I used an
extreme example to illustrate my point clearly.

No, I did not miss your "extreme" nor your sadly ignorant point.

Once again, this might be WRONG. But it is PREDICTABLE.
This is the concept of idealism vs realism. The way the
world is versus the way the world ought to be. Perhaps
this type of conversation is above your head though.

I'm well aware of what constitutes an ideal and what constitutes reality. Here's reality: he was within his rights to do exactly what he did, he is now better for doing exactly what he did, and you suggesting that he settle for the status quo and suggesting that he made a mistake (because his immediate reality is filled with ignorant people) is not helpful. It's stupid, it blames the reaction he received on him, as if that's something he should have been concerned about. Your comments shame a victim and you're asinine for it.

In no world real or imagined was that something he should have been concerned about. Or the parents. In the real world, you fight the dickwagons who hurt you or your son. And in the ideal world, it never even happens.

To reiterate the point of my previous criticism: the illogical behavior / lack of common sense is completely on the part of the system. There ought not be a suggestion other than "fix the broken-ass system." Don't tell people what to do on the basis of a racist and dehumanizing system. You're perpetuating that shit.
Crystal – Block Ads, Browse Faster. By Dean Murphy
The takeaway?

Don't use standard e-mail (gmail or otherwise) for anything that needs guaranteed privacy. Once you send an e-mail, it is not within your control what happens to it or who sees it.

That's why, for example, in healthcare -- messages are commonly wrapped in secure message "containers". The e-mail simply has a link that takes you to a third party where the actual message is stored, encrypted, has an expiration date, and you must authenticate to view it.

Convenient? No. But privacy always comes at a cost of some sort.
Note: it is not true. Irving government is one of the racist groups pushing "anti-Sharia" laws.
the order of magnitude is well known to be defined in base 10. That's regardless of your base of choice.

https://en.wikipedia.org/wiki/Order_of_magnitude
Give the Chinese some credit for this one. At least they are being open about the demand. This pledge seems a bilateral acknowledgement of the situation. China can demand backdoors and so can the US (calea). Such things are legal in their respective countries. Companies, especially those that are publicly-traded, must appease local governments if they want to keep shareholders happy.

Our anger should instead be focused on solutions to surveillance that do not rely on trusting corporations. F/OSS tools and client-side encryption is the path forwards, not extracting unenforceable promises from trillion-dollar tech giants.