skysight-inc/HackerNews huggingface dataset:
> If oil wealth was all you needed to have good government, then the arab world would look drastically different

It's not all you need. But if good intentions are there, it makes a little difference whether you have a $700b oil fund (for a population of 5 million) or not. In other words, many other countries might be similarly well governed, but lacking financing.

> Sweden actually has a quite low corporation tax.

It was higher than the EU average until Jan 1st 2013.
Sorry in advance for being off topic, but: I rely a lot on Clojure repos like clojars.org and I in addition to checking my few Rails and Sinatra apps in the last few days, I have become a little concerned about the same sort of thing happening with clojars, main mavin repos, etc.
I love openbsd but even their proactive approach hasn't made them immune to remote exploits
the link is broken. follow this
http://ganesshkumar.com/?p=123
If you are not a parent, evaluating parenting strategies is not possible

As devil's advocate, i would argue this is not true. There are externalities to any strategy. And one can judge the impact of strategy X on people outside the immediate family. This is perhaps a caveat outside the scope of the context, but when evaluating things generally is worth pointing out.
Lose Yourself
You are being completely misleading. Of the foreign-born in Nordic countries, most are white. The black and Hispanic population are almost nonexistent. Canada also has a very small percentage of blacks and Hispanics.
The controls don't react if you press them too quickly. How about queueing up key presses and then each additional step of the snake would dequeue a key press?
I guess that depends how you define it. The only thing it's doing is taking transactions as input, along with a random number, and hashing them. It's just that the result is required to have a certain number of zeros to be considered valid, so you have to do it over and over again with different random numbers.

If you didn't require a difficult computation, anyone could compute a different order of transactions and it would look just as valid. Easier hashing would not accomplish the goal of making a universally-agreed-upon transaction order.
This is amazing. I have fond memories of playing Lightcycle/tron-style games on some older computers against my brother as a kid. We got that program installed and we played forever.

This has a lot of potential, some suggested improvements:

* Chat System

* Rematch (both players agree, then yes, one says no, then no)

* Names for players

I like this and I'm sure you could monetize this with ads if you wanted to. Have you thought about supporting more than 2 players? There are many directions you could go with this, but this is an excellent MVP, if you want it to be an MVP.
Bionic limbs
Today, the level of development of medicine has reached such a stage of advancement that doctors have implanted fully functional limbs to the patients.
I found it hugely annoying that I couldn't just start, that I had to press "Enter" first. I don't know why that is necessary and I wish the author didn't force us to do this. Otherwise, very nice job.
At least two questions are bad.

7. a = "5"; b = 2; c = a+++b;

Why even ask that? It's boring. And operator precedence is not really important in practive, and it's bad style and no one writes like that. It's a question for junior-level interview, when you can't ask anything meaningful and (because you have to ask anything) you ask _this_.

9. (16).toString(16)

Oh, so Guru should memorize every obscure parameter, shouldn't he?

Other questions are fine, though (except 10. Numerical systems, c'mon, it's 2013, not 1980s)
The Art Of Science
Wow, that's actually a lot like Kickstarter.
Actually, when I talk to people who teach or TA at other universities, they tell me that Harvard's policies are comparably harsh. If you plagiarize a paper at many universities, you are likely to get a zero for the assignment. That means that you might lose a letter grade in one class. At Harvard, professors were until recently required to report students to the Ad Board which generally led to being forced to withdraw.
Magick?
Being able to answer these questions has very little to do with being a good javascript developer, because a good javascript developer knows he should never, ever write code like that.

Javascript has flaws and pitfalls, to be a good Javascript developer you must know what they are, but is it really necessary to be able to pull the results of (1/null) out of your ass?
Pretty amazing stuff. Reminds me a lot about reading about the Pegasus class hydrofoils, reputed to have been capable of 55-60 knots

http://en.wikipedia.org/wiki/Pegasus_class_hydrofoil
People on here who have worked at both big companies and startups should really appreciate how hard it is to manage large organizations efficiently. Things that work great at small scale fall apart as they grow (both organizationally and technologically).

I believe that these small Nordic governments can be effective and accountable, but that doesn't mean that it will translate to something 30-60 times as large. For comparison, Kaiser in California (one health care provider in one state) serves 8.9 million patients.
See this StackExchange answer for an answer to this question:
http://bitcoin.stackexchange.com/questions/5617/why-are-bitc...

Some issues with "useful" computational work is that it needs to be computationally easy to verify the result (a hash function is but other work may not be), also it may not be crptographically strong so someone could come up with some method to solve the problems much more efficiently than others and make the network insecure.
This is just plain wrong. The means of production in Sweden have always been held in private hands, the one attempt to change this ended in spectacular failure. The big exception would be LKAB which is the owner of the iron ore mines in northern Sweden. A country where private equity companies owns schools is not socialist.

There is a large public sector in the Nordic countries but this is run off the taxes from these successful capitalist companies and their employees. So a better name would be welfare capitalism, not socialism.
if you try the U turn too fast you die.

for example you're facing south and press est and then north immediately after: insta death.
Unhandled exceptions can't be exploited in general, because they safely unwind the stack and terminate the application. This crash is just an unhandled exception. By contrast, a segfault (at an address other than NULL) would be more interesting from a security perspective.
Anyone else feel weird they got all of them right?
When i started Kaya.gs i drove away from Rails by a similar logic. Rails is quite heavy and abstracts a lot of what is going on, and comes bundled with many things you may not use.

I used Cuba for Kaya and i can safely say I understand the entire stack of the application.
For a long term learning of web developing, i strongly suggest fiddling with a micro-framework to get a deeper understanding of everything.

However, now with a much larger understanding, i was annoyed at the process of making things again or tediously , which frameworks already solve. I.E. , simple crud views, user authentication, etc.
Good for him - then what most people say abpit And Biskopsgården/Hammarkullen/Angered or Rosengård or Rinkeby/Sundbyberg must be wrong too.

I left Europe. I was initialy from the french city where the jihadist killer short jewish schoolchildren - along with their professor. My mom still lives there. She was attacked twice these last 2 years.

Europe is full of hate and hatred - no wonder why guns are outlawed. It keeps some balance.

I pray and hope I will never ever again have to live there - ever.
Depends on your market and industry.
I just learned that I am such a sloppy coder since I hit semicolon with my index finger apparanlty, and my right hand only uses my thumb, index, and middle finger.

No wonder I can never hit the semicolon or parens/braces/brackets. I use my index finger...
Inspiring! I'm glad to have read it.

After posting this comment, I'm going to start something similar: reduce Internet usage to a minimum (checking health of my servers, etc.) for a week, and with the free time, de-clutter. OMG the clutter is killing me. All these little pieces of paper, things lying out, stuff I don't use... it's negatively impacting my life. So call it a kill two birds with one stone deal.
There is also no unique URL for the particular exercise. If the author can create hashes for that. I will be really helpful and we can share them too.
This isn't a JavaScript quiz. Mostly it tests if you know how numbers really work, operator precedence, and some obscure coercion rules. Boring.

The only slightly relevant question, I thought, was what typeof NaN was. Not knowing that might result is actual bugs.
My experience is the opposite, where booking way in advance will give you often the best deal, if you are using their special offers.

Most airlines have those special offers, where you can book a cheap flight within a specific date range for a huge discount.

I've been doing this for all the "big" holidays and usually ended up with a price that got me the second ticket almost for free, when compared to the normal flight prices.

However, this means you are planning the trip based on your flight dates and not the other way around, which of course doesn't work for almost all non-holiday trips.
Consider the fact that these pickaxes cost half a million dollars to make and only come in batches of 1000. Also, there is nothing to stop some other folks from building a similar batch of pickaxes.
Removing the background makes it much more useable.

$("html").css("background","white")
No one in this comment thread has expressed an opinion anywhere near one of being opposed to allowing kids to yell out of joy or fright.

The topic is about the question how to blank the screen when a certain loudness threshold is reached. Which means "is even anyone else in the house" or other such factors do not enter into it. Which in turn means this isn't teaching politeness, this is like teaching a dog; no disrespect to dogs intended, but I mean that they usually just learn what to do, not why (which is fine in the case of a dog, unacceptable for a kid).

Maybe it just seems like being dramatic to you because I'm actually paying attention to the finer details here, and you don't. I complain about this specific case, and you defend it because there's sometimes a reason to tell a kid to not yell etc... which is funny, but not quite the rebuttal you imagine it to be.

Telling a kid to quiet down while playing a PC game is simply to teach them to respect the presence of others around them.

I completely agree; what in anything I wrote makes you think I don't? And what about the topic makes you think what is being done here?

Though I would add that I wouldn't want to be the person who doesn't sometimes also get joy out of the loud expression of joy from others. Depends on what you're doing etc.,.. so respect also means letting the kids holler sometimes. Respect doesn't just go one way, and if you haven't made children to become happy humans, what have you made them for?

But don't get sidetracked, remember: The parent in question does NOT tell their kids "I want you to be more quiet, so I made this script", they outright lie (and proudly report that it's working, too), and even seek to automate it just to put a hard cap on the loudness levels of their kids.

And that's okay because it's effective, gets the desired result, case closed...? Well pah, I disagree, just like I also frown upon telling kids they should be nice so Santa gives them presents; not because I am against being nice, but because I'm against the layer of indirection and dishonesty.

This is the second time I responded to a strawman, and I find that telling in and of itself. I have nothing against something the parent in question isn't even doing, I have something against what they actually are doing. Is that so hard to understand? You don't turn kids into "good adults" by not taking them seriously and telling them the computer is annoyed by loud noise... What. The. Fuck. That this topic is not _full_ of ridicule, just like the comments on the linked site, is just sad.
A little OT, but if you read the PDF of the bill [1], you can see that the way in which they go about updating laws is the equivalent of a hand maintained, text based version control system. Every object (text lines) is uniquely identifiable by page and line number (a hash), and modifications are in the form of additions or strike outs to these lines (deltas). If you get the original bill and follow through all the subsequent modifications you could even build a version control tree! Neat.

[1] http://www.lofgren.house.gov/images/stories/pdf/aarons%20law...
Coursera Wins “Best New Startup Of 2012,” Get Schooled
Confirmed that the bug doesn't affect Lion.
Pair Buys UK's Cupple and Rebrands as Couple
Portrait of a hacker
How about swarms of these designed to fan out and seek out any humanoid mammal in the area and deliver a taser/ tranquilizer charge? The batteries will run out in a few minutes, but not before everyone in the area has been incapacitated or telemetry data has revealed the location of all people encountered by the swarm. This could be the basis of a new counter-terrorist weapon.
Can you summarize how you interpret that article?

For example, do you think that is common practice in Norway? I read elsewhere that the policy was quickly abandoned once it was made public. Do you think the 50 students who demonstrated in protest show that this was an unexpected practice? Might the comment of "school captain Helena Skagen" .. "what they did was wrong because you can't split the students according to their culture" might indicate that this was an unusual event, and hence newsworthy?
Unless I am going blind (perfectly possible) the link makes no mention of Pro - just RT.

Thus the editorialised link title was erm misleading.
That's why I said you can slot in any proof of work. Anything slow to do but quick to verify will suffice.
Wow this actually almost brought tears to my eye :D

These guys have been at it for so long it is hugely deserved !

listen to his voice on the record's video (http://www.youtube.com/watch?v=wnjyusAgk8I ) I think it helps get a sense of it must be like sailing at that kind of speed
Right, so it's perfectly possible to be both right, and an asshole.

I don't begrudge people being right (although, I also don't happen to think that Mr. Potato there is totally correct). I do however have a problem with people being jerks.

Moreover, being right does not give someone license to be a jerk either.

-----------------------------

As for the substance, yeah I do think there are ways to secure Ruby gems better, and I think that given the way the Ruby community is organized (since it's not a monolith), there are paths forward that can be organized and implemented by smart and interested rubyists, and those paths can and will be adopted by the bulk of developers who aren't as engaged in the Ruby ecosystem.
http://jeremy.zawodny.com/blog/archives/006784.html Here's a video of iced tea in a barrel roll.
More homogeneous, yes. But cultural vs ethnic.

Also note the comparative reversal of inequity. During the 20th century, Sweden worked very hard to address it. Whereas since the 70s, the USA has been working very hard to undo the progressive New Deal reforms, allowing inequity to get much worse.

I can't imagine a well governed state with gross inequity.
I would've thought we'd have consumer fly-by-wire by now.
Answering correctly to these questions only means that you know these edge cases/quirks, heck you could memorize most of them. A real developer should never write code like that.
that's not the implementation, that's the design. It gets faster as you keep playing it.
Thank you very much for finding some of that information.
Goodhart's law - When a measure becomes a policy target, it ceases to be a good measure.

http://en.wikipedia.org/wiki/Goodhart%27s_law
Why has arithmetic become the universal example of currying and partial function application?

Examples: "Currying", Section 9.3 of Programming in Scala (addition); Ruby 1.9.3 documentation for Proc#curry http://www.ruby-doc.org/core-1.9.3/Proc.html#method-i-curry (addition); "Currying" at the Haskell Wiki http://www.haskell.org/haskellwiki/Currying (division); "Currying" at Wikipedia http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_... (division); "Currying" at c2 wiki http://c2.com/cgi/wiki?CurryingSchonfinkelling (addition, multiplication); PEP 0309 for adding curry to Python http://www.python.org/dev/peps/pep-0309/ (addition); this StackExchange post; etc.

Surprisingly, searching for currying in JavaScript returns this John Resig post with actually useful examples: http://ejohn.org/blog/partial-functions-in-javascript/ although they still have no advantage over doing partial application by just defining a new function.

The only situation in which I've ever thought to myself "I know, I'll use curried functions," was in passing a set of data through a bunch of filters with different arities.

To take an example from HN's front page today, say you want to take some map of key value pairs, grab all the keys, convert them to strings, reject duplicates, sort them alphabetically, and finally concatenate them separated by commas.

Let's assume you have the following functions available (in pseudocode):

keys(map) -> vector
flatmap(func, vector) -> vector
tostring(anything) -> string
sort(sort-func, vector) -> vector
compare-strings(string, string) -> first-is-greater, theyre-equal, or last-is-greater
unique(compare-func, vector) -> vector
concat(separator, vector) -> vector

and assume you have some way of connecting a list of these filter functions together like pipes, where the output of each function becomes the input of the next:

reduce(composing-func, list-of-filter-functions, initial-input) -> final-result

Here, the composing-func takes two arguments: input, which is the output of the last iteration (or initial-input); and filter, which represents each function that will be applied in turn to produce some output. Notice that each filter function must take exactly one argument, which matches the return type of the previous filter-function in the pipeline.

composing-func = (previous-result, filter) -> {
apply(filter, previous-result)
}

Now looking at our available functions, we can use currying and partial function application to pre-fill-in some arguments needed so that their input and output types line up:

list-of-filter-functions = [
flatmap(keys),
map(tostring),
unique(compare-strings),
sort(compare-strings),
concat(",")
]

And actually, we're now done. All of our filter functions have been partially applied as a sort of initialization for a complicated pipeline.

I'm guessing that currying and partial function application are useful in building parsers (like haskell & scala's parser combinators) but I don't know.
Ask HN: Help Finding/Deciding on A Graphics Designer
Hi Hacker News, so lately I have been working on this idea. Now I can code or at least I can learn to code and have been doing so for the past month. Problem is I cannot design but I am learning from hackdesign unfortunately I have no cash to shell out for a mac. So I can't really do stuff with what I have learned yet. Which leads me to the main point of this post. How do I find s graphics designer and how do I decide if that graphics designer is the right one? I am currently having a friend do some initial mockup sketches but he has talent just no drive. I have given him deadlines multiple times and he has failed to meet most of them. I am wary of cutting the cord with him but am unsure if I should continue working with him.
Winning because of
Don't deceive them, let them be kids, yadda yadda are almost funny to read. Like you said, walk a mile in the parents' shoes.

Or, have had the luxury of having great parents who never bothered playing such mind games with you. Of course, since such gifted parents are rare, it's easy to simply dismiss such a high standard. But once you go non-bullshit, it's just hard to go back.
Probability Puzzle: Guess Position of Card
Very nice, this is very much needed. I had the exact same idea, which I worked on for a while about a year ago, as with lots of projects, it didnt get finished. :)

As other have commented, a discussion area for each change would be very interesting, especially if there are multiple changes happening at the same time.

I can imagine not everyone want this focus on changed tos, but its very good the user can easily get the information.
> in almost all cases the recruiter makes more money by getting you a higher salary

Where you get screwed is negotiating non-monetary compensation because it doesn't benefit the recruiter. More vacation days, more stock options, that kind of thing.

Additionally, it's a lot like the chapter in Freakonomics about realtors. It's in the recruiters best interest to get you to accept and so, while they will get a little more money if they can get a higher salary for you, the most important thing is to close the deal. A recruiter has little incentive to play hardball for you. Another $1000 in salary for you might only translate to $50 or less for them.

I don't begrudge them because I understand the incentives they're working for but people should be aware of it and think about it before they start working with a recruiter. If you have a salary in mind tell them its firm. Don't believe that they are your best friend and that what they say is max salary truly is.
Scientific genius is extinct, expert argues
Academic self-proclaimed "babe" correctly points out minor flaws in a major insight, misses the forest for the trees.
"No, but I was one."

And frankly, most of the criticism has nothing to do with parenting but with intellectual honesty and how much you yourself understand about the world. If you teach your kid 2+2=5, I will be sure that is wrong, and "but you don't have kids" is a hilarious rebuttal.
What does this plot describe?
This is a graphic from a d3.js tutorial (slide #42 http://bost.ocks.org/mike/d3/workshop/#dot-chart). The aside reads "Nerd cred if you recognize this!"

What is it exactly?
We will be adding an Options panel soon, and we'll make it possible to opt for this. Thanks!
I want this, but I want job postings relative to me. What I mean by that is my preference for location, salary/rate, my skills, telecommute.

Now I know you are doing this manually initially, but will you be organizing the jobs, can you do something to give us that info up front?
Regarding "(16).toString(16)": yep you should know that param and nearly always write myNumber.toString(10) and parseInt(myNumber, 10).

JSHint complains if you don't provide the radix. The reason is to not get your ass in fire in production by the fact (016).toString() === "14" (leading 0 means JS guesses a number is in octal representation, unless it contains 8 or 9). And you use JSHint, don't you? If no, install it right now as a pre-build hook.

--

EDIT: what I wrote above is bullshit, see the comments below; toString is a different story than parseInt.
Surprised to see people claiming that this isn't essential knowledge. Understanding what the system is doing at its core allows you to answer these questions; as 'tricky' as they may seem. If you're dealing with JS, you should know how things are working under the hood. There shouldn't be any memorizing, instead, you should be able to reason what the outcome is in those cases. At least that's what I strive for.
Also, it's so absurd that you would remember it.
In my experience, the people who talk about America being the most violent, the most corrupt, etc. are the ones who also like to decry 'American exceptionalism'. And if you think that non-Americans don't think about Americans that much, I suggest you listen to the BBC.
Voodoo is in your mind, perhaps, but not those who found it interesting which apps use NSTextView and which don't.

Right now, Sublime seems to be the only one. Anyone care to try TextMate?