skysight-inc/HackerNews huggingface dataset:
It doesn't piss off anyone I know that knows how to code because it's simple and it only takes a few seconds to complete. Everyone I know that can code is done the exercise before its even a second thought.

I agree with being transparent about the discussion around the result of any programming done during an interview but having the person do it before hand defeats the purpose of using it to catch out people who can't actually code because they will just Google the result.
"It's not a zero-sum game" - In a world of finite resources, land/oil/water it is in fact a zero sum game. Either I own the land or you own the land. We aren't making any more land.
This is especially true since they pick a much, much leaner choices for Subway. I can't understand that.
Storage Made Easy Enterprise File Share and Sync Solution for SwiftStack [pdf]
What's the percentage that you filter out in your experience?
One of the developers of DCSS said that the hardest problem of procedural dungeon creation was avoiding generating a swastika by accident.
Sony wants your Twitter account suspended
Deploying a station orbiting Mars would be pretty expensive.
huh. If we're talking about the "general consensus" You are perhaps the only person I've heard of who would put both lee and grant on the list.

Some would add Lee (though personally, I think that is for political/tribal reasons more than anything else... but I do acknowledge than many have a high opinion of the man, especially when it came to cavalry.) - but even those of us who sympathize with the north generally don't rate Grant much above 'competent enough' - he got the job done, but nobody is going to compare him to Caesar or Napoleon.
Ask HK: platform-based 2d barcode redirector
Hey HK - I hunted around and couldn't find anything that would let a user take a photo of a barcode and redirect them to the right app store based on the platform they were using - so I built it.

What does HN Think?

http://appmatic.weebly.com/

Thanks!
Streak (YC S11) Is Hiring for a Lead Android Dev
The biggest problem is not food, it's radiation.
This test still seems to be under the radar of a lot of candidates. We'll need something else to weed out the surprisingly large amount of candidates who don't seem to be able to actually code one day though. Any ideas?
That qsort example is getting tedious. I wonder why restrict keyword is never mentioned when talking about C++'s performance advantages over C - it can offer a huge boost on modern CPU architectures. I know it's supported by all major compilers, but still - it's not a part of C++'s standard.
There were a few projects on this, from the same school.
For one, James King's artificial meat: https://www.youtube.com/watch?v=xmqHnBp8odg
Is it? Seems to require about the same knowledge as the original FizzBuzz. Even if it didn't, if a candidate couldn't write the logic to determine if a number is prime or not... that's another red flag.

def is_prime(x):
if x%3 and x%2:
return True
else:
return False

print is_prime(4)
print is_prime(7)

EDIT: Oops, nevermind... you're all right and I'm wrong. I'm not fixing this code so everyone can see exactly how I screwed up.
It does internally. Pretty sure that's even defined in the standard.
Don't forget the radiations. The main problem of the Mars atmosphere is that it's too thin to stop enough of them for human beings.
Brainfuck may be a bit of a silly use case, but we use similar approaches to e.g. manage database transaction boundaries in a safe way, while making higher-level functionality available.
Helpful for readability:

var style = document.getElementsByTagName('body')[0].style;
style.width = '800px';
style.margin = '0 auto';
style['font-size'] = '19px';
I was under the impression Keurig made that move after the patent on the cups expired. I use an Eko Brew refillable k-cup replacement and will not be buying the 2.0 should this old one fail. I never thought they sold the coffee makers at a loss, I do remember rumors of a seven cent fee per k-cup.

I do not mind DRM on items I am renting and am expected to return, however if I make a purchase where there is no understanding it is to be returned for refund of deposit or the like it should not have DRM.
Thanks for the thoughtful reply, though I may have to read and reread to truly appreciate Capability Cases. I have a feel that the books you recommended are very closely (if not exactly) what I need to read.

I will likely code up disparate solutions for various problems first i.e. asset management, performance analytics, interactive dashboard etc. As much as I want to think at architectural level, I better show some quick results while learning more at the sides.

I'll be happy to drop you email later, after I've done some homework. :)
Fastmail uses Hacker News to spam, I mean publish all their new developments.
What books/resources do you recommend for advanced topics?
If you do a Google search for "PHP6 Book" you'll see why they had to rename it:

https://www.google.com/#q=php6+book

Basically a lot of authors thought they'd get 'ahead of the game' and publish PHP6 books very early. If a 'real' PHP6 was released now, there would be confusion.
"looking forward" (as the article attributes to being Obama's argument for not prosecuting) is something one does to forgive others. self-punishment is something one does to prove trust to others. The looking forward policy of the US was important in the construction of the Marshal Plan. But now is the time they need to show they are trustworthy arbitrators of any moral ground. If they fail to prosecute anyone for torture they set a horrible precedent but more importantly the lack of correction turns any future moral arguments into platitudes.

This article deserves juxtaposition with this scene from the Act of Killing:

http://youtu.be/tQhIRBxbchU?t=2m9s

"We need our gangsters to get things done" @BarackObama
Open source online game gets students excited about Linux
In-house vs. Cloud-based Development Environments
Reminds me - a little bit - of this:

https://www.goodreads.com/quotes/540355-he-walked-straight-o...
Even if each instance of std::sort fits in the instruction cache, it's helping to push some other code elsewhere in the program out of the instruction cache, slowing that code down in the process.
"defeats the purpose of using it to catch out people who can't actually code because they will just Google the result."

Then don't use FizzBuzz. It's that simple

FizzBuzz irritates me because they haven't gone to the trouble of thinking something else.

Another thing I was given was "make me something interesting in 30min" or "try to solve this problem in 2 hours"
Write on the Virtual Wall of Love. Text Notifications Incl. Promocode Xmaswove14
Interview with Boost VC, the Bitcoin Accelerator
Interesting, Chromium's network inspector does not show me how this transmits.
I used to ask them to find average of array of ints. For bonus points to make code bullet-proof (what if someone passes null array, what if integer overflow happens etc). Surprisingly how many candidates failed because they used integer division (in Java), and how many didn't even think that something can be null...
Bad Santa Stealing Presents from a Postman
What I find strange about this test is that it also weeds out 99.5% of candidates who can't seem to google for "programming interview" before turning up at one! Amazing how many (3rd year Comp Sci) students have never heard of it.
Yes it would be worthwhile for anyone planning on supporting the big 3 "smart" watches to check this product out and the apps for. Simply to see what is popular, what works, what doesn't, and so on.

I do not expect them to have the big numbers of the others, but there should be room for entry level "smart" watch makers. the prices bandied about by Apple and others are simply appalling for a device which is slaved to another for some functions, at these prices it should be a phone on its own
I find any argument involving rights to be poor.

Our goals in a social context are always to make the best possible decisions with what we know, and to enable each other to do the same. We have goals, information, communication, and laws. Rights are inarticulate and overly-understand things -- almost to the point of purposelessness.

People should not be making arguments based on rights, but upon what is known about ourselves and our reality. We should use what can be rationally supported and what can be reasonably predicted based upon shared experiences and cultural knowledge. Rights are just a vague and small slice of this, easily made muddy by the fact that people can know they have rights without even knowing why they should have them, where they apply, or when to give them up.
I don't have proof to back this up, but I strongly suspect that the fact that all flights are now exclusively non-smoking has had a big influence on that decline.

I remember as a child how the smell of cigarette, coupled with the decrease sense of equilibrium that you can experience in a plane, would easily cause nausea.
https://gist.github.com/zenry/76b42f464a6430dd8524
WAKE UP diP SHITS
Great Books List:Global Era
I actually don't think I've had anyone completely blow up on it, except once a long time ago in a previous company with someone who turned out couldn't even do helloworld. They usually do it and later all the devs look at the solution if they like it or not. In my company you can't know how everyone votes. It's just a bunch of anonymous "+1"s or "-1" and after the votes are added up if the candidate got a huge negative number it's a no-go. Around zero is handled case-by-case I think and huge positive is extend offer. A neutral person does the vote-counting. I guess the phone screens are doing a pretty good job of dropping anyone who'd bomb it in the office.

So... actually, I don't know if it's filtering anything really. It's just interesting to watch people do it and it at least establishes that the candidate isn't a complete faker.
Here's what it looks like - http://i.imgur.com/3ECOcaX.png

I can see it from Kenya.
The demo page is quite anarchic but it's a fun concept. Given a goal there would probably be more incentive for random users to work together on something.
Why did you decide to use Redis and in what areas are you using it?
For what it's worth; the main component of your success I can't figure out how to replicate is ranking for your keyword.

From my perspective your business model seems to be:

1. Pick a niche and figure out keywords for that niche.
2. Perform the Magic SEO Incantation to rank high in Google.
3. Sell well to the visitors that gets you.

I can do 1 and 3 fairly well; partially based on your talks/information. Number 2 still seems like sheer black magic to me though...
I don't care how it looks, it if still cannot drive in bad weather, snow, and worse needs detailed up to date maps, its not truly autonomous driving, its like programmed driving with a few extras.

When the cars can come to you where ever you may be, broke down on the side of the road for example, and take you anywhere regardless of conditions then it can be heralded.

As it stands now its nothing more than the automated cars shown as high tech in Jurassic Park.
I can't even tell if you are being sarcastic or not. Either way I certainly wouldn't hire you.

Edit: Perhaps you should keep this in mind next time you declare 99% of programmers incompetent because they made a typo when you asked them to write code down with pencil and paper in a high pressure interview situation.

It's amazing how much doing a few interviews inflates people egos.
25 ?
It uses Firebase for networking.
I'm a little bit surprised of "if-else if-else if" mindset in c2.com wiki entry for this. I always thought of FizzBuzz solution without a single else, like this:

for (int i = 1; i <= 100; ++i) {
boolean pureNumba = true;
if (i % 3 == 0) {
System.out.print("Fizz");
pureNumba = false;
}
if (i % 5 == 0) {
System.out.print("Buzz");
pureNumba = false;
}
if (pureNumba) {
System.out.print(i);
}
System.out.println();
}
You're not the target of Fizzbuzz though clearly. But with that in mind you should be able to finish it so quickly that it would take less time than a standard question about your last job.

>FizzBuzz irritates me because they haven't gone to the trouble of thinking something else.

Because they don't have to. It's simple and easy to use filter that will remove a lot of noise. It's not perfect, some people will memorize a solution to it but simple changes to the question solve that. But it does really work.

I think having to sit on the other side of the table for a while gave me a lot more respect for the pain that is being an interviewer.

>Another thing I was given was "make me something interesting in 30min" or "try to solve this problem in 2 hours"

Which are totally different and often useless beasts though done right really helpful but honestly I was never willing to invest 2 hours into a single interview nor make someone sit in a room for 2 hours while I went back to work.
I can never understand why Wellington would call soldiers 'scum of the earth'. Soldiers don't get anything whether 'His Majesty' wins the war or not. No wonder Scotland wants independence. They sent soldiers to Wellington's expedition. Scots Grays were the ones who charged French line and batteries at Waterloo which avoid disaster. And yet they are 'nothing but beggars and scoundrel' to Wellington.

History is written by winners. Had Napoleon not gone to Russia, European feudal system would have fallen much earlier, and we'd be writing this in French.

Napoleon's contribution to history is not military feat. It's the civil code, education, equal opportunity, emancipation of jews, tearing down of ancien régime and giving birth to idea of nation states.
This is probably not a popular opinion, but I believe that PHP's associative array is one of the best-designed data structures in programming languages.

Its main distinguishing property, as mentioned in this article, is that values can be indexed by key, but are still iterated in the order they were set. This is "do what I want" in so many cases that it's just nuts.

Sure, just as often it's just needless overhead, but as a programmer who prefers to reason about domain and not performance, I often don't care about that. I hate that many other languages, including C#, Ruby and Python, force me to choose between either an unordered map or a list of (key, value) tuples. EDIT: clearly, i'm behind the times with that remark. thanks commenters :-)

I wish more languages had a native data type like this. It scares me that in practice JS objects have the same property, but officially the iteration order is not specified.

(that said, PHP's choice to mix regular arrays and associative arrays into a single type strikes me as a bit odd. i've also never seen a good use case of arrays with mixed string/int keys)
No, he can do that regardless if it's BSD code, as long as he keeps the copyright notice intact.

I can take any BSD code, close source it, develop it further inside my company, then sell it as a proprietary, closed source app.

Or re-license to GPL.
http://youtu.be/tQhIRBxbchU?t=2m8s
I don't want to get into an argument with Americans, but I'd agree that the outcome could have been different. It would make a good counterfactual historical novel at least :-)
Yes, it does.

From the network inspector, click the one that says "web sockets"

Then select the entry from the list, looks something like ".ws?v=5&ns=pixelpals-server"

Then select frames from the 3 options "Headers Frames Cookies"

Should see the json data
Web Developer Reading List: Introduction to SVG
The Interview (2014) : Ratings: 9.9/10 from 32,597 users on IMDB
The cynic in me says
(i) having "everyone, even the CEO" help out with customer support is a good motivational device to emphasise in what might in every other respect be a substandard customer support working environment
(ii) paying regular customer support staff at the low end of market rates is one way of recovering the imputed financial loss of having your $100/hour senior engineers and top bizdev staff focusing a part of their working year on basic customer support queries...
Line Icon Design. What I've learnt so far
Blücher's Prussian army arrived to save Wellington's ass despite Wellington not saving theirs at Battle of Ligny. Can we please give Germans some credit.

http://en.wikipedia.org/wiki/Battle_of_Waterloo
From a link in the article -

"The Nonhuman Rights Project had addressed that argument in their brief, countering that young children and adults with severe mental disabilities are not expected to fulfill the social obligations of mature adults, but are still granted legal rights.

While that is true, wrote the judges, “it is undeniable that, collectively, human beings possess the unique ability to bear legal responsibility.”"
Looks interesting.
Any testimonials? Or community where it is discussed about?
A lot depends on the type of plane. A little DC-9 would have made more people sick than a 767. As we're flying more we ride more in larger aircraft and on direct flights so there are less rides in little puddle jumpers.
who ended up maintaining the internal tools?
do you hand it off to the IT team?
Fax documents and payment information, poorly formatted support replies, supervisor escalation system after a couple different people over 2 weeks couldn't address a simple on-boarding issue.
From my understanding of NK, if they retaliate, my bet is that it will be in the realm of physical and not cyber at all. Possibly blowing up the first american person/property they can reach.

Maybe the whole point is to instigate an escalation from "alleged vandalism" to "verifiable act of war".
In general I dislike FastMail promotion on HN.
But this article is different - it's some new open development, potentially very useful to many users, and its success is directly related to the number of developers who will pick it up. So at least this time it deserves some attention.
> we ended up using pack() and unpack() to store stuff that should have been in an array because it would grow to 100's of megs using PHP's array() and using a binary structure it stays under 10 megs.

How many items were you storing / how big was the data in each item?
Please elaborate. I would love to know whether you mean that they have (a) more rights than others, (b) less rights than others, (c) different rights than others, or (d) individually different rights among themselves.
Oh right, now I see the:
["error", { type: "unknownMethod"}, "client-id"]
-bit. Still, it sounds like you're reinventing HTTP verbs and statuscodes and embedding them inline in the JSON just to be able to multiplex the calls. Might as well use HTTP2 or SPDY, then.

Also, caching JMAP may be easy on the client side, but not for any intermediate cache - unless it understands JMAP.

I'm not saying RPC over HTTP is bad, mind, but you do seem to lose some of the benefits of HTTP.
Python has https://docs.python.org/2/library/collections.html#collectio...

I've never wanted this though. I just discovered OrderedDict when I was looking for something like std::map.
Cool! I didn't know that!
Human rights are an interesting phenomenon.

Us humans don't even have basic human rights, as evidenced by the recent extensive publications regarding the torture practices of the US (rectal feeding?). Such a contrast to this (otherwise completely unrelated) article.
B/C I guess. It's not what I mean, it's what's a fact.
I was just reading it again and again to see the thing I was missing :)
that sounds interesting. Any blog explaining ?
So NetworkManager has been using the GRUB model of what "1.0" means, then?
Mobile phones to combat Malaria
> 1. Node.js doesn’t provide scalability. One CPU is not going to be enough; the platform provides no ability to scale out to take advantage of the multiple cores commonly present in today’s server-class hardware.

https://github.com/Unitech/pm2

> 2. Dealing with relational database is a pain if you are using Node.

http://sequelizejs.com/
when I worked at Barclays (it was >10yrs ago now to be fair) the enforced password policy for our internal system was "4 ascii letters + 1 symbol + 4 digits" in that arrangement (ie: abcd!1234)

you know, for security.
Thanks for the clarification. Yet another reason for the ICC and its ilk...
While I agree with you that in general there's nothing wrong with RPC, I'm not sure what the advantage in this case is. You seem to have an idea, though…?
> PEG parsers are not streaming.

PEG is a superset of recursive descent. You can structure you grammar in a way that backtracking is not required at all or minimised.

> They have to keep the entire input in memory in case backtracking happens.

Not necessarily. You only need to keep something like around a current statement (or other small syntax entity), discarding everything you've already streamed.

> I've actually implemented a Pratt parser in the past but I thought it was just for parsing operators with precedence?

Exactly. And it's really easy to mix it into an otherwise PEG-based parser, eliminating the need to backtrack for the worst backtracking case (binary expressions).

For example, there is a very efficient implementation of such an approach (pure PEG+Pratt, no memoisation and no backtracking) in Nemerle.

There is also a Packrat+Pratt parser used in https://github.com/combinatorylogic/mbase
I find my version much more readable. I am a hobbyist, is there anything better in beardo's version apart from being re-usable? Mine seems more like a direct transformation of the "verbal" logic into simple code.

<?php
for ($i=1;$i<=100;$i++) {
if ( ($i%3===0) AND ($i%5===0) ) {
echo "FizzBuzz\n";
} else if ($i%3===0) {
echo "Fizz\n";
} else if ($i%5===0) {
echo "Buzz\n";
} else {
echo $i."\n";
}
}
?>
Yeah I'm pretty excited by this. Its one of those small usability improvements that will make everything just feel nicer.
I applaud this decision. At least some people are recognising the direction of the arrow of history here.

My thoughts on this last time this concept emerged on HN: http://swombat.com/2012/11/6/dolphin-history
Thanks for the clarification. That makes a lot of sense. Still a damnable outrage, but I can see more of an argument for not prosecuting the torturers.
Humans most certainly have rights. In this case, those rights were shamefully violated.
Hey guys, I want to keep this thread going. This concept jump-started my noggin and wanted to gen-up a quick concept. The mockup has not been made responsive yet as I do not have the resources where I am currently.

Thoughts? http://codepen.io/matthewjamesr/full/LERpOB/
If you like my contribs, please up-vote, I need some of that so-sweet karma.
Why should i work for ceo who has a failed startup? post your views anonymously
Rosetta Code has some examples of different methods and different languages. The most naïve way is trial division: http://rosettacode.org/wiki/Primality_by_trial_division
> I hate that many other languages, including C#, Ruby and Python, force me to choose between either an unordered map or a list of (key, value) tuples

Another commenter mentioned Python's OrderedDict, and Ruby's hashtables are ordered (from 1.9+):
https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-...
It looks like C# also has an OrderedDictionary class:
http://msdn.microsoft.com/en-us/library/system.collections.s...

I never had to use any of these classes even if I do use hashmaps all the time, so IMHO the Python way is best (default to a 'normal' unordered hashmap, offer an ordered alternative)
Comet Lovejoy Shines Bright in Night Sky for Christmas