skysight-inc/HackerNews huggingface dataset:
But what do you ask? You can't do fuzzbuzz for an hour.

I'm sure I can show you a study that shows some of your questions are wrong.

It's one question, at the end of the day every question can probably in isolation be said to be wrong.

While they are answering a question like this you see many things, how the handle stress, how they handle something they don't know, how they communicate the solution or ask questions.

We all know this question is not meant to be solved right? That bit's not rocket science. It's about how people tackle hard/impossible stuff they don't know.

If you answer a question you don't know the solution to by walking out of the room, that to me is a fail and a good test. If they try and get defensive that to me means they are not good team players and won't ever ask for help.

How else does one see if they are a team play in an interview? It's easy to bag the questions but people aren't really coming up with supposed solutions.
They might have popularized it or invented the machine, but the technique is at least 20 years old.

1994: http://www.nhn.ou.edu/~johnson/Education/SeeS_SZ/Chemistry_o...

http://en.wikipedia.org/wiki/Molecular_gastronomy
Interesting. If true, this would skew the numbers I cite and basically every other poverty number out there.
[Russian Foreign Minister Sergei Lavrov] criticised what he termed US attempts to blame Russia for his disappearance, saying they were "groundless and unacceptable".

and

Meanwhile, China has also described US accusations that it facilitated the departure of fugitive Edward Snowden from Hong Kong as "groundless and unacceptable".

Does anyone else find it slightly odd that they used identical wording? Is this a case of the Chinese saying "well the Russians nailed it, let's use the exact same phrase", or what precisely?
Samsung Galaxy Phone Deleted Photo Recovery
When you accidently delete photo from Samsung Galaxy phone,don't panic. Android Phone stores the photos on a type of storage which is friendlier than iPhone (see how to recover iPhone). The deleted photos are not permanently erased. Deletion only flagged the storage of the deleted files as being available for overwritten. Hence you can recover deleted photos from Samsung Galaxy unless the space is re-occupied or overwritten.
A demo in JS - if it gets too demanding on your hardware, just make the browser window smaller :)
Cupcake Ipsum - sugar-coated lorem ipsum generator
Windows is, by any reasonable definition, closed-source. It is possible (in some cases) to gain access to parts of the source code if you're an OEM, partner or large customer - but this is true of almost any software project, and such code is by no means readily-available.

If Windows doesn't count as closed-source software, then nothing does.
باسم يوسف تكتب : الإسلامجية ومصارعة المحترفين | التيار
Yes, just quoting the docs: "Facades provide a "static" interface to classes that are available in the application's IoC container."

Your comment on Whoops rings a bit hollow because it was only added a few weeks ago. I was using it before it was added but it certainly helps. That was before Laravel hit 4.0 stable though.

Whenever something didn't work for some reason, digging through the abstraction that is Laravel+Symfony could be frustrating. Thankfully Symfony 2 has good API docs.
I simply get very tired very quickly when reading philosophy, not because I find the arguments difficult but because those works never seem to get to any conclusion regarding the problems being considered and there is anyway no way to validate what is being said with the external world or apply it to anything. It's a bit like closing your self in a room and talking to yourself for prolonged amounts of time, there is something unhealthy to the human psyche and from observing other people I see that the more someone contemplates things like "meaning of life" the more unhappy they become. Now with this observation in mind I try to come up with some explanation of this phenomena.

Imagine a neuroscientist watching a person contemplating a so-called philosophical problem, like "what is beauty?". You have a part of your brain that is responsible for language and discourse and inner dialogue and most likely a completely separate part that is capable of the emotions you experience when seeing what you personally call beauty. Now that language part is capable of creating a great number of the most wild hypothesis about what beauty is, but the part that really perceives beauty and creates the associated emotions operates completely unconsciously so you have no chance to capture with your conscious self what beauty "really" is to you. So all this "philosophizing" is just your brain chatting random things somewhat related to the concept of "beauty", but there is no purpose to it, no conclusion, no validation and all this you could just experience some beauty somewhere instead.
Standard diplomatic language perhaps?
Something looks wrong here…

f(-1) = 0
f(0) = -1
f(f(-1)) = -1

Your code doesn't seem to handle the f(f(-n)) == n case
It makes China look like a good world citizen and the US look like a self righteous sabre rattling bully.
Snowden is not in Iceland
Another example of Android being used for highly specialised crowdsourcing projects, (and also in the woods!)http://www.newscientist.com/article/mg21829205.600-old-smart... - use of phones to listen out for illegal logging.
I don't doubt this is great ice cream, but this is also a superb example of PR at work.
This wasn't intended to sound that rude - it just happens that I know this question quite well because I wrote one of the first answers. I was just a bit »WtF!?! Why is everybody posting solutions that are already there?« turning this discussion into a unreadable mess within minutes; HN isn't really made for posting code.
Your ultimate goal is to ensure that the service is at the latest version.

There are numerous dependencies to that task - one of which may be stopping the service before upgrading. There are dependencies to stopping the service - maybe telling the load-balancers or your monitoring system. When the service has been upgraded, you can trigger notifications that other items within your config can depend upon (for example, when an upgrade is complete, restart the service, when the service restarts, add it back to the monitoring system etc).

All of these can be modelled in these config-management tools, as explicit dependencies within your manifest file - as opposed to implicit and ad-hoc dependencies within your script.
I'd love to pick up a book that deals with this issue: why and when painters - and more generally artists - have come to adopt this anti-technological outlook.

Was it a fear that the pervasiveness of technology would make their craft(s) obsolete?

This sort of thinking is rife even within artistic circles.

Artists whose medium is photography are like the ugly lepers of the visual art world.

I find this anti-technological bent in modern Western cultural life particularly unsettling.

Don't take what I'm saying to an extreme; I have nothing against consumable art in its many forms.

However I think the cultural life of cities in the West - in its various forms (art, theatre, cinema, classical music, architecture) are ruled by cohorts who wholly constitute the anti-technological fringe.

They live for abstraction and something about that makes them virulently anti-technological.

Suggest a book or essay that addresses this issue in great depth.
> It makes China look good, it makes the states look like the bully

Is it this specific statement that does that, or their whole policy? They've chosen to fight Snowden, so at this point any statements they make are unlikely to change minds, but they do help keep the support of people who already think of Snowden as a traitor.

It's like an awful lot of politics, where the aim isn't to change minds, the aim is to make sure the minds who agree with you don't forget to support you.
On the subject of adding random "interesting" keywords - Emacs has had "spook mode" for a long time:

http://www.cypherspace.org/rsa/spook.html

It inserts some random "interesting" keywords into the buffer.

I wonder if there could be a web version of this - that adds form fields/headers filled with "interesting" keywords - might break some applications though.
I agree with the idea, but there's room for a coordinated effort nonetheless. From a naming consistency standpoint on strpos vs str_replace, for example, we could have a new set of function names aliased to the old, and let those run in parallel for a while, with deprecation notices on use of the old ones. Ugly? Perhaps, but it's a way forward to standardize the internal function naming without breaking BC overnight.
Folders, drag and drop feeds between them, the caching of entries Google did, and the Android app was ok, and it didn't install some browser crushing plugin to work, it was a website.
The Joy Of Giving : Narayanan Krishnan at TEDxGateway
The term "enter" (a country) is a term of art in immigration law and international law, so, yes, it is technically possible that Snowden is on the sovereign territory of Russia without ever having entered Russia. The issue of what travel documents he was using to get on the last airline flight he took, and whether or not those will be considered valid for entry to Russia by Russian authorities, is one of the many interesting open questions in this case.

Does anyone reading this thread have any serious doubt that China uses all national technical means available to maintain surveillance of as many places it can reach, especially in regard to separatist movements like the Tibetan and Eastern Turkestan independence movements? Likewise for Russia; can there be any reasonable doubt that Russia monitors much (all?) Internet traffic to the country from elsewhere, or within the country in general?
Excellent!

I'm pretty flexible about what counts as winning.

If DDG's recent upswing is maintained I guess that counts as a win. If some other mainstream sites announce privacy services I guess that counts as a win too.
First North Korea and Iran make a mockery of the USA in negotiations over their nuclear capabilities. Now it's Hong Kong and Russia. Next in line is Ecuador. The reservoir of USA authority is evaporating fast with no real way to stop it. As far as the game of diplomacy is concerned the score so far is USA 0 - 4 Rest of the World (all own goals).

The consequences of this could be rather serious. A diminished USA is going to leave a vacuum which, regardless of the current behaviour of the USA government, is not going to be a good thing as Russia and China rush in to grab what they can.

Writing the history of this and the subsequent events in a hundred years or so will be very interesting.
I am surprised nobody mentioned CommaFeed yet; How are people using CommaFeed holding out?
There is no universal right to be forgotten, says top EU court advisor
Git pre-commit hook for PEP8 checking
What's the source of that $5/month claim? It's not on Reeder's site or twitter - is there another place that's come out? Not calling your statement into question or anything, just very disappointed to find that out...
Why Google interviews will still be hard
That seems the most likely, doesn't it? I'd love it if somewhere there were an official diplomatic language glossary with translations for what these terms really mean, e.g. groundless and unacceptable: "justified and permissible".
An expert in the declarative chimes in: https://twitter.com/neil_conway/status/349268560830398467
Isn't part (majority) of their Singularity OS written in C#? I've been waiting to see if they were ever going to release the realtime GC as part of that project to the C# community at large.
Well honestly, even as a fellow non-American, I think it's common sense that the US government should have to justify their actions only to US citizens.

If the other countries are concerned about the effects that PRISM can have on theirs, it should be up to their own governments to take the issue to the US.

It's kind of worrying (although not surprising in the least) that basically there hasn't been a serious complaint from anyone.
Yeah, I finally tried out NewsBlur yesterday after waiting as long as possible to decide on a replacement. There's a lot going on there. I think I've more or less figured out what it's all for and how to navigate around, but one thing is still bugging me -- what's that orange triangle on the left of the feed area, that follows the cursor around unless you "lock" it, for?! Totally unexplained ux element.
All this hype on Google Reader makes me miss not using it to begin with!
How to Teach a Child to Argue
I agree, but when you work nights/weekends it's often hard to do so.
"It is pretty much becoming something out of a Tom Clancy novel"

In a Tom Clancy novel wouldn't the Russian/Chinese spy be fleeing to the United States?
Advertise a Job	
Great article about advertising a job and posting ads online. Must read.
At JS1K http://js1k.com/ are also some great JavaScript demos
Speaking of cutting up a video recording to skew or amend facts to mislead the viewers. I am reminded again why I don't really read/watch mainstream media.
Film production jobs
Excellent article – “Find jobs in animation, production, creative, VFX, film production for Free.”
That's why you issue depreciation warnings over the lifetime of the next major release but support both naming conventions rather than just nuke the old function names.
Yeah, I'm feeling so good about this that right now I'm building a local server with full disk encryption to host git repos and internal company chat.

Good bye shiny cloud services. I guess the ease of use/low administration overhead without any high price tag attached was really too good to be true.
Managing Your Ruby Toolchain part 2: The Package Repo Rant
>Russia says it has had no involvement in the travel plans of fugitive US intelligence leaker Edward Snowden.

Is Russia relenting to the US pressure?
Classic linkbaiting. The outrage!
That's actually a pretty good articulation of what I've seen within the musician community as well. It's a view that's slowly dying down with newer generations I feel like, but there does seem to be this sort of fear around technology devoiding them of 'humanity', and thus their creativity, which is the most treasured thing you can possibly have as an artist. I've seen similar resistance towards learning music theory and writing things down[1] within some musician circles as well, which tangentially stems from this. Makes artists seem paradoxically conservative in a way, but I think the logic makes sense even if I don't agree with it.

[1] Jazz is a good example of this; usually they only have bare-bones lead sheets (musical skeletons/outlines of sorts) to go off of, due to the genre's unique improvisational nature. And in a different realm of music, Lil' Wayne never wrote down any of his lyrics during the prolific stages of his career either. So there something to be said about such things possibly helping creativity; and if something as simple as writing stuff down could be interpreted as 'hindering' creativity, then complex technology usage can surely be interpreted that way too. Sometimes the best way to squeeze out creativity is to impose some restraints on yourself, so it's not all that surprising.
There are definitely some interesting questions here.

Snowden's passport has been revoked so in theory there is no legal basis for him to leave the transit area. He can assumably claim asylum whilst there but according to Russian Federation Law he doesn't seem to meet the conditions:

http://en.wikipedia.org/wiki/Russian_Federation_Law_on_Refug...

So I would imagine that Ecuadorian diplomatic officials would have to process his asylum request in the transit area and then fly him from there ?
This is the way I look at the problem.

f(f(n)) = -n

We can solve this by letting f(n)=-n
and subsequently f(-n) = -n

That is, f should be a function that gives the value -|n|, and therefore has a fixed point for all negative numbers.

So given that I took this as a math function challenge rather than an actual programming challenge, we can solve it one of two ways

f(x) = -|x|

or f(x) = -(n^2)^.5

The 2nd solution is more pure math because absolute value is a piecewise function.

Now of course, being that the problem is actually about 32-bit integers, we can solve it by doing a two's complement only on values > signed INT_MAX. Someone else posted the bitwise shift version which has some cleverness so I won't elaborate.
Plus in both cases these could be translations from Chinese and Russian languages.
Are they allowed to though? He technically isn't in Russian terroritory.
Great, so the choice is between using everything in the open, unencrypted, and then maybe they won't look at it, or encrypt it and then there's a very high chance they'll look at it.

It seems to chill speech either way. This is why the wholesale spying must stop.
I especially liked "the man who claims to have leaked a trove of classified information" -- maybe he's really just a fake!
I used feedly for 5 minutes, saw that stupid little button, and quickly uninstalled. I refuse to use some that invasive.
Give me a break. You think anyone is going to care next week when the attention of the media will shift, as it always does, to whatever else is most eyeball baiting, elsewhere in the world.

The baseline strategy has been more or less the same. Hide Obama from the press. Send out robotic talking heads to spew about anything remotely relevant to the issue at hand. And wait for the press to get distracted by something else.

I am racking my brain to come up with an incident that was under the media spotlight that actually pushed the Govt. to act.
You definitely can be fully in control. The question is "does what I'm doing fit within the bounding space I can exert full control over.

Right. It's probably fair to say that lots of present-era PaaS doesn't give you a large bounding space. Perhaps cloud providers always limit your space. Your own hardware can even provide limitations. But within that which you control, it's extremely important to version, package and test configuration sets .. or you wind up with a wide class of tangential issues.

Salt Cloud and the Salt Bootstrap script [are] capable of operating much closer to your aim than you give them credit for.

You may be right.

... waste any time trying to ensure I can recreate it...

If you can't automate the generation of your environment, you want to maintain the systems that you produce, and they of reasonable complexity, then IMHO you are asking for trouble in the long run. This is something that took me awhile to learn.
Pirsig's "Zen and the Art of Motorcycle Maintenance" is about exactly this. Some random quotes:

"The result is rather typical of modern technology, an overall dullness of appearance so depressing that it must be overlaid with a veneer of "style" to make it acceptable. And that, to anyone who is sensitive to romantic Quality, just makes it all the worse. Now it's not just depressingly dull, it's also phony. Put the two together and you get a pretty accurate basic description of modern American technology: stylized cars and stylized outboard motors and stylized typewriters and stylized clothes. Stylized refrigerators filled with stylized food in stylized kitchens in stylized homes. Plastic stylized toys for stylized children, who at Christmas and birthdays are in style with their stylish parents. You have to be awfully stylish yourself not to get sick of it once in a while. It's the style that gets you; technological ugliness syruped over with romantic phoniness in an effort to produce beauty and profit by people who, though stylish, don't know where to start because no one has ever told them there's such a thing as Quality in this world and it's real, not style. Quality isn't something you lay on top of subjects and objects like tinsel on a Christmas tree. Real Quality must be the source of the subjects and objects, the cone from which the tree must start."

“We have artists with no scientific knowledge and scientists with no artistic knowledge and both with no spiritual sense of gravity at all, and the result is not just bad, it is ghastly.”

“This condemnation of technology is ingratitude, that's what it is. Blind alley, though. If someone's ungrateful and you tell him he's ungrateful, okay, you've called him a name. You haven't solved anything.”

“The way to solve the conflict between human values and technological needs is not to run away from technology. That’s impossible. The way to resolve the conflict is to break down the barrier of dualistic thought that prevent a real understanding of what technology is – not an exploitation of nature, but a fusion of nature and the human spirit into a new kind of creation that transcends both. When this transcendence occurs in such events as the first airplane flight across the ocean or the first footsteps on the moon, a kind of public recognition of the transcendent nature of technology occurs. But this transcendence should also occur at the individual level, on a personal basis, in one's own life, in a less dramatic way.”
This is why I dislike the rest of the framework! Do make sure to take a look at https://github.com/Roysvork/LinqToQuerystring/ as this should work more or less fine with XML... if it doesn't raise an issue :)
It really is time to grow up.

They have a product where they can't make money and can't fit it into their corporate direction. Good companies eventually cancel projects like this. Yes, we had a great product for free for a long time. Now it's time for someone else to fill the vacuum.
You don't really have to understand its data structures to use it but, as with anything, having a more accurate mental model of the tool is a great help in figuring out how to achieve your specific aims.
Tell me this is US border police and airport security allowed to detain anyone making a hop in the US? I'm pretty sure airport security can detain any and everyone they desire.
I'm pretty sure that Assange said that Ecuador had issued Snowden with refugee-asylum type documents (sorry dont know the official term) that allow him to travel. Thats what he used to get out of Hong Kong I think. This does not necessarily mean that Ecuador is his final destination though.
Well only if you are incredibly ignorant or have selective amnesia.

China is far, far from a good world citizen. They commit some of the worst human rights abuses, have rampant censorship and lest we forget their system of government is hardly democratic.
This is true. I found new artists from Pandora (my Orbit station) that mainstream radio stations have never heard of and certainly wouldn't play.

In other words, radio is focused around the head (big hits in any genre) while Pandora reaches the "long tail".
what does "to establish all circumstances" mean in this context?
Indeed, I've never given CoffeeScript more than a cursor glance, but I'll say that rates much higher in readability than average javascript I've written. If that is ment to be an example of bad pratice....
Array vs. Object efficiency in JavaScript
At my company we use and contribute back to projects with BSD-like licenses. When using GPL projects we treat them as if they were proprietary binary distributions, never looking at, changing, or contributing back code, and will use an alternative project with a BSD-like license if it looks like the code is getting to be a key part if a system that we may need to enhance.

We would use GPL if we wanted to release code but didn't want it to be tooooo useful to our competitors.

Edit: I forgot my key point, which was that GPL is less useful in "most" cases (IMHO, YMMV, etc), but is successful because of good "marketing" and it being the most talked about license with the most vocal and ardent supporters.