skysight-inc/HackerNews huggingface dataset:
Back browser button
Hello everybody,

i have a issue on a ruby app, i need to capture the event when the user click on back browser's button and display a warning message about that action.
any help is appreciated.
this are the things that i have tested without luck.
onbeforeunload
onunload
history
$(window).onbeforeunload

Thank you in advance.
Is the "International Journal of Modern Physics" as published by "World Scientific" considered a reputable journal?
I don't think you understood what I meant by "buy options".

So let's flesh that out a little. Suppose steel costs $2/unit from a US firm, but costs $1/unit on the world market. We can go to companies in various other countries and pay some nominal fee (say, $50k/year) to buy an OPTION to buy their future steel output, not at the current price, but at twice the world price. So in the best case scenario there's no war, the steel company gets paid a nominal fee for an annual option that never gets exercised, and the US military saves far more by buying low cost steel through the years than the cost of the options. But if there ever is a war, we execute the option and get to buy (on 6 month's notice) that factory's full capacity at a 100% markup, crowding out whoever else they would otherwise have sold that steel to at a much lower price. So in wartime we pay foreign companies exactly what we would have had to pay a US firm - twice the world market rate - without first having to wait to build any US factories!

The foreign firm just has to allow for this in their contracts - that they reserve the right to cut off any buyer (paying a suitable penalty fee) with 6 month's notice. Now our stored 6-month supply is exactly enough to tide us over until options can reasonably be exercised (and penalty fees paid) that provide us with substitute sources.

We sign those sort of contracts with firms in a variety of countries in a variety of geographic locations. Unless our primary low-cost supplier gets mad at us and ALL those "safety" countries also get mad at us at the same time, we have an adequate safety margin.

All our steel - heck, all our ships - gets made for HALF the current cost until such time as there actually IS a war with our main supplier, whereupon it all gets made for exactly the price it would have cost to make domestically, had we kept that industry around.
This is probably one of the most controversial and highly politicized topics of the last and current decade. Lets see if we can discuss this without bringing politics into the discussion.
We know much less about the climate than we do about evolution.
I'd be interested in commissioning side projects.
I understand where you're coming from, but I don't think that if Double Fine took the $3.3 million and delivered a 2D, mobile, prototype-esque game (which if you watched the documentary, was what they would have gone for with the $400,000) in the timeline they stated, people would have been happy.

It's exactly like they took the $2.9 million and ran. I think quite a lot of people would call that a scam at that point. In the end, with an extra $2.9 million, what were they going to do with it other than make sure that the game they end up delivering lives up to the huge sum that their fans gave them?
They're both wrong. Global warming is caused smartphone batteries.

And don't give me the old, "That's obviously stupid" response. I demand a good faith refutation that treats my central thesis seriously, even though my predictions have a poor track record and my thesis is outside of mainstream consensus.
Wow. I really didn't expect that to work
Intro to User Analytics
So why are you just sitting there? Endorse it already! :)
For the one were you are supposed to ask the guard (xzoor) for the key I keep getting the error
Property 'door' of object # is not a function - Try again.

Otherwhise looks cool, plus I've always wanted to learn CoffeeScript, so thanks!
Absolutely, this is going to be a major part of my job going forward (this is my second week at rackspace :)).
Wise.io Debuts Machine Learning Service,Offers What Google Builds For Itself
Show HN: I made a 7 minute workout iOS port
You could sue the guy for damages, if you believe there are some that would be valued by a court.
I don't think this is true. I believe that steam accounts were temporarily locked while disputes were resolved (although now only the disputed game would get locked, not the account); I don't believe steam accounts were permanently locked for a payment dispute.
If you're interested in the "other side" of this story (such as it is; this article doesn't really take a side), here's what the USG says happened with Kiriakou:

The USG's position is that Kiriakou left the CIA and, in an effort to drum up consulting business and sell a book, told journalists on several separate occasions about (a) the identity of a covert operative who was still undercover, and (b) the affiliation of another USG employee to a program to a classified program capture Abu Zubaydah. Kiriakou was questioned by the FBI and, the USG claims, lied about his disclosures. Kiriakou himself had, according to the USG, repeatedly claimed he hadn't intended to compromise either operative, the subtext apparently being that he assumed the title of "whistleblower" when it became convenient to his defense.

FAS does a great job tracking all these leak investigations:

http://www.fas.org/sgp/jud/kiriakou/

I don't know what to think about this case. It's not the most sympathetic case, but certainly not the least. But I'm also biased, because I think both Guantanamo Bay and the rendition programs were abhorrent.
"Should I not open an e-commerce shop because Amazon exists?" - probably not, and definitely not if you're going to only sell 10 things.
There currently is no good evidence to suggest that one is worse than the other; either they are both inert or they are both evil. The difference between them is too small to matter in moderate consumption, and in excess both are harmful to health:

http://examine.com/faq/is-hfcs-high-fructose-corn-syrup-wors...
Thanks for your contributions. I apologize that you've found it difficult. Just to respond to your points:

1. CLAs are a fact of life in open source to keep the lawyers happy (http://en.wikipedia.org/wiki/Contributor_License_Agreement). We've tried to make it as simple as possible: you fill out one web form, we do the rest. And it's just once, not every time. So if you're already listed as a contributor, you're done with this forever.

2. You're free of course to prepare the code any way you want. We insist on the hg extension to manage the review of the patch, mainly because it makes our lives easier: there are a LOT more contributors than there are core Go team members doing code reviews. (And we don't just review; sometimes we even like to write our own code.) I hope using the tool isn't really too burdensome. Many people work with other things, like git in the same dir or hg in another dir, and then they copy the changes into their "review" tree.

3. This is a real problem. We don't have a good system for tracking these: so far we've just been letting everyone watch the same stream and deal with what needs dealing with. But the volume has gotten high enough that we are dropping too many incoming changes or bug reports on the floor. We're working on a new system to track incoming changes and bug reports and assign them to a clear owner so that everyone knows who is responsible for what. I hope this will go live soon.
Wikileaks Insider: Julian Assange Is Everything He Once Despised
Hearing someone bluntly say this made my skin crawl, you're okay with enormous economic imbalance in your favor backed up with no greater justification than the collective willingness of the society to which you belong to engage in mass murder against the members of societies to which you do not. That really has no ethical implications for you at all, personally?
Petraeus, the former director of the CIA, said this in reference to John's conviction:

"This case yielded the first IIPA successful prosecution in 27 years, and it marks an important victory for our Agency, for our Intelligence Community, and for our country. Oaths do matter, and there are indeed consequences for those who believe they are above the laws"

I have to wonder if practitioners of torture will ever have reason to believe otherwise. Somehow, I don't find it to be likely.
That doesn't address my original point at all. My original point was that all the laws passed in those states have been driving the cost of living up and median standard of living down, while consistently stripping away the rights of individuals.

You can tout Wall Street all you want but not many out side of your city see them as a good thing, most of the country sees them as a parasite with too much political power and way too little oversight. SEC, Secret Service, FBI, and DOJ be damned none of them have gone after them with any rigor.

You also don't have a good grasp on your own cities history. There as a time when manufacturing and textiles was its biggest industries. Yet you managed to drive them all out. If we decide to stop sending you food and gas you city comes to a stand still. Then you can have hungry entrepreneurs on every street corner...
Citibike
Naming and shaming who? Unlike you, Sherwin has never been anonymous. Like me, when he criticizes people online, he signs his name.
Complex Algorithm Auto-Writes Books, Could Transform Science
The Story Behind the WWW Hypertext 91 Demo Page and UNC and me
Of interest: Tim Burners-Lee's first paper on the WWW was rejected by the ACM's Hypertext 91 conference (although he was offered a demo) and, even more interestingly, the anonymous CS professor's list of “deadly problems with the WWW“ are now largely considered key to its subsequent success.
Webflakes Curates Lifestyle Content From Bloggers Around the World
Painless Payment
Elon Musk's plans for Hyperloop, a new form of transportation
'Deniers' isn't a useful term - in fact, it's the kind of label that is designed to shut down debate. Like "communist" in the McCarthy era, or "defeatist" during WWI (hat tip to PG for opening my eyes to this).

Leaving that aside, my point to the OP was that he was being naive in assuming that calls to limit industry would cease if CFCs were proved to be the sole agent of AGW.
Seriously, say something critical about Go on HN and you better have some karma built up or it's instant hellban.
More like Reddit to be downvoted for the truth. Public School teachers in the USA generally have very good job protection, it's a fact. You can say it's fine, there's good reason for it (for instance perhaps in this case), but why downvote a fact?
The amount of sleep people need varies from person to person as far as I know. I prefer to sleep 7 hours in the night and take a nap in the afternoon, and that leaves me feeling pretty good most of the day. Some people I know can sleep less than that and feel fine, others sleep more than I do and need it.

As far as I know, sleep is an extremely complex topic that we still don't understand all that well, and in my opinion this seems overly simplistic. I do like the presentation though!
http://www.nizkor.org/features/fallacies/ad-hominem.html
Thanks for the additional insight! Unfortunately our server is barely able to handle the load at the moment, but as soon as the dust settles I will append that source to the investigation.
Took me about 5 minutes of furiously rubbing my phone against my shirt to realize that it's the website background that's dirty looking, not my screen! Grr.
The physics of CO2 trapping heat is well-established, and pretty well matches the amount of warming we've seen. So if it's actually CFCs causing warming, then two things have to be true:

1) There's some kind of unknown physical process that prevents warming by CO2, and

2) The warming from CFCs happens to match the expected warming from CO2.

Seems shaky.
You need to take the mindset of someone who hates humans. Just channel Kahn, it will be easy.
Yeah - it's all just so mysterious and uncertain. 97% of climate scientists might say that human produced carbon causes warming. (http://climate.nasa.gov/scientific-consensus) But that's just their opinion. There is still doubt. The imperative is to protect the oil and gas industry, and keep putting carbon into the atmosphere. It's great for the economy, and some say it's good for plants!
Problem with BSD license?
We are discussing two separate issues here

1) Ability to unlock or root your device to run any OS

2) Having access to an open App Ecosystem.

The GNU license doesn't help with either of this issues. There are plenty of GNU/Android devices shipped with locked boot loaders. And nothing is stopping Google from locking down their App Store like Apples except a different corporate policy.
Pinterest Is Looking For Ways To Permit The Right Kind Of Nudity
It is possible for both things to be true simultaneously: that the specific illegal disclosures Kiriakou made were crimes, and that the torture of detainees at Guantanamo and in sites around the middle east were also (grave) crimes.
To be honest both. How can you have a nanny system that doesn't impact the quality of life and continued economic viability of the state?
Well, for one thing, you didn't even show a graph that at least hints at a correlation between smartphone batteries and global warming. I wouldn't attack your track record, I would attack your complete lack of an attempt at demonstrating evidence for your claim.
Keep in mind though, Tim's not going to be as involved on this particular project. He's not the lead on this one ;)
Given that he's making the same argument that was refuted previously, the link is very applicable.

In any case estimating the relative impact of different chemicals in the air right now is a relatively straightforward modeling problem. And from that we know that our introduction of CFCs contributes a lot less radiative forcing to the atmosphere than our CO2 and methane increases. (What is much harder is estimating future growth in gasses, and the variety of feedback loops. But current impact of changes is something we know pretty reliably, and CFCs are not the top cause.)
That Fox News myth has been debunked http://thinkprogress.org/climate/2013/04/23/1909881/debunkin...

But like a lot of propaganda it continues being spread after being killed. Zombie propaganda.
Ex-Microsoft manager plans to create first U.S. marijuana brand
This isn't uniformly true, though. The original Xbox was, for all intents and purposes, and amazing product launch. Same with the Kinect, Office 2003, Windows XP, etc.

This models seems to hold more truth in recent years, however. I can't come up with a solid reason why this is, but it isn't an absolute truth.
As a californian who used to live in texas, I concur. Cars are like bling here.
You could say that of very many things... perhaps even most things. The body of research we have on evolution is awe inspiring.
Less diversity of thought increases the chances that everybody shares the same blind spots. It's a simple monoculture argument.
Just to confirm, because I fear the game show has a loophole, what is preventing you from eyeballing the key when he picks it, memorizing the notches, then you have a much better chance of getting the correct one. Prisoners have been known to memorize notches on a key in order to build duplicates and break out of jail.
Tests Are Your Best Friends: Do Not Neglect Them
Except that the article claims that global temperatures have decreased since 2002, correlating with a decrease in CFCs but with no correlation to CO2.
On the step with the doors and the lier guard, there is a trick to know which guard is lying by asking one question only. This is due to the fact that you use coffeescript.
Maybe you should whitelist the parameters allowed for the questions, to avoid "cheating".
Go designer here.

We created Go first and foremost for ourselves. Go is the language we want to be (and are) writing programs in. I haven't had this much fun writing programs in a long time.

It is emphatically NOT true that Go is "created for people less smart than the designers". At no point during any design discussion did we say "well, that will be too difficult for the average programmer".

The part about "large teams of varying abilities" is not true either. What is true is that Go was designed for large-scale programming, though, and the things that work in a 100-line Haskell pearl don't necessarily scale to million-line programs. Rob Pike gave a talk about this at SPLASH titled "Go at Google: Language Design in the Service of Software Engineering" [1]. I highly recommend it if you want to see where we're coming from with some of the design.

Your third point is certainly true, but I can't think of a decent language that doesn't attempt to make certain types of errors harder than the languages it replaces.

[1] http://talks.golang.org/2012/splash.article
4) Already got 'em. A Brainfuck iterator is just a bracket loop with an ascend command before the closer.

5) !!!

6) I am but a mere mortal, sir.
THanks man!
or that CFCs and CO2 are both responsible?

Why does everything need to be black and white?
That it might be. However, the state is remarkably adept at not pursuing crimes that its agents commit... Unless those crimes harm the interests of the ruling class.

There's a pretty clear - and abhorrent power imbalance at play, here.
But the more I thought about it, the more this made no sense. Why would the uncle of the Times Square bomber be in a low-security prison? He should be in a maximum.

Why? Should family, rather than crime or danger, dictate what type of prison a sentence is served in?
who can really? (insert quote of linus torvalds awesomeness here) their problem isn't that they can't get it right. their problem is that it takes them forever to fix it.
If you have a ton of embedded if/else statements you're doing it wrong. Only one if/else is required.

Thanks for giving me a course about game design and asking questions obviously not answered in Chapter 1. Where can I send you money? <3.
All this on top of the fact that their most recently released game, The Cave, was mediocre at best [2].

How is a 67 on Metacritic "mediocre at best"? It had mixed critical reviews and generally positive user reviews.
Well played sir/madam/robot.
That link claims that global temperatures have declined since 2002, which is untrue. Will hunt for more authoritative sources, but a quick search turns up this story from Forbes, refuting that non-fact: http://www.forbes.com/sites/petergleick/2012/02/05/global-wa...
Or, the state is adept at making the cases it can actually make, and less adept at making systemic cases whose prosecution would cost tens of millions of dollars and seize up operations at intelligence services that actually do need to function, for instance to curb proliferation of nuclear weapons.

Reasonable people can OBVIOUSLY disagree on this point, but I do not perceive Barack Obama as someone who is sanguine about torture.
The source is really fun to read through. I definitely responded 'cataracts' to 'The more you have it, the less you see. What is it?' question and it was cool to see it in your wrongdir category.
If this is the real deal, then why not ship common language VMs (in asm.js) with the browser? Then you don't need to worry about 200k at all and all code can run in the browser? I mean, if google is shipping NaCL and Dart VMs, why not? Updates could ship with browser updates, or you can still load your own rolled version if you like.
Evernote Pulls Finger on Two-Factor Authentication
See cheating is part of the game - in Chapter 1 it's a bit weak really, but in Chapter 2 it's part of the game.

Surely humans do fight back at one point. Don't they?
"Consensus" is not a valid scientific argument. For the longest time it was the "consensus" that the earth was flat and that existence was only 6000 years old (although not if you ask early Catholic theologians - they always saw Genesis in a metaphoric light, but I digress).

Between this and your last comment, your "scientific" arguments aren't very persuasive, they sound more like daily kos talking points.
I'm sure a graph could be made, something like this:

http://www.venganza.org/images/PiratesVsTemp.png
Yeah I think that might be it to... once again though seemed like a cool idea
Note These Legal Issues Before Hiring Freelancers
There have been plenty of times that ideas outside of mainstream consensus are right and the consensus was wrong.

Is this guy a genius who'll prove everyone wrong? Personally I seriously doubt it. But that doesn't mean the scientific community should pooh-pooh his paper.

Treating this paper as if an adult wrote it can only do good things for the climate debate. Even if it doesn't really deserve that kind of treatment.
Nope, but I'll take this as a compliment.

There are a few references here and there (jabberwocky being perhaps the most obvious one), but otherwise, mostly original.
Who may have, and was convicted of, doing something else not that heroic (disclosing covert agent's identities) completely separate from the water-boarding disclosures.

It's convenient for Kiriakou to gloss over the events he was convicted of and insist that it was merely retribution (which of course it might be, but good luck proving that). His statements about persecution have to be taken with some grains of salt.
"I'm really crossing my fingers that preventing anthropogenic global warming is as simple as banning CFCs."

The snarky response of What's the weather like on your planet? has never seemed more appropriate.
For the record: at no point have I believed this contest was a surreptitious effort to market a product.
Same here. Comments pages don't load for anything.
Sure, that was example code - do you really expect the game to give you the solution by itself? :)
Ahah fair enough, anyway I think this can be a good and funny introduction to programmation which makes more sense than platforms like codeacademy, etc...
Nice job :)
Fine here. Mac OS X 10.8.3 Chrome Canary 29.x
Is this only in Japan?

Also, if British people refer to fries as "chips," what do they call chips? "Fries"?
The curious case of a tiny dev team divided and a pulled crowd-funding campaign
No cloud sites support yet really sucks.
Dropbox Back Up After Widespread Service Disruption
Little know fact: there are 'save codes' - you can load the codes using hashtags, e.g. http://thechoice.amos.me/#firstdoor will bring you right to the programming part.

Didn't take the time to update the hash to reflect that though - some people would've noticed the URL has changed, others wouldn't have, and I would have needed to find an interface artifact to make sure most people get it.

TL;DR design is fucking hard but if you dig most dev-friendly features are in.

As for backspace doing back, blame your favorite browser maker. And change the defaults. And report an issue. That behavior (previous on back) was always idiotic, imho.
Hang on, so you didn't make backups from the multitude of options that Rackspace offers (it even offers snapshot backups for cloud servers), didn't make backups yourself and you blame Rackspace?

If you purchased a car and got into an accident, would you also blame the manufacturer for you not having car insurance?
It's been called climate change for quite some time; for instance the IPCC was established in 1988: http://en.wikipedia.org/wiki/Ipcc
Microsoft ships minimum viable products then iterates based on feedback. In the software industry, lock-in effects can give a big advantage to first to market.