skysight-inc/HackerNews huggingface dataset:
strtol does fail on overflow [1] -- setting errno to ERANGE and returning LONG_MIN or LONG_MAX. Since those are also valid return values and it doesn't update errno on success, it's recommended to set errno to 0 first.

Or, you could c++11 std::stol [2], et alia, which are similar (libc++ is a wrapper around strtol) but throw an exception on overflow.

1. http://pubs.opengroup.org/onlinepubs/009696699/functions/str...

2. http://en.cppreference.com/w/cpp/string/basic_string/stol
It's happening!!!
Revel, the high performance Go lang web framework
It think I was paraphrasing from here:

http://learnpythonthehardway.org/book/advice.html
Totally agree and in fact I say - I'd tell engineers or sales people who just want to do their craft not to start a co. as well.
Deploy your own mini-Heroku with Dokku
Withholding is also an issue for anyone selling services, such as software development.

I work for a US company whilst being in the UK, and a W8-BEN form took most of a day to finish, and I remember calling the IRS direct to help - and they were surprisingly helpful and courteous. Nothing like as bad as they are painted :-\
Also, he mentions (low) cost of borrowing as a key point to his thesis, but my understanding is that the cost of borrowing for Japan is heavily influenced by domestic savings.

IIRC, a lot of the money "borrowed" are the contents of the postal savings accounts (or whatever they are) of elderly Japanese who are extremely conservative investors. I have further seen it commented that there will be complications when that sect of the population switches to net withdrawls as they near end of life or pass on inheritance, etc.
One of those was posted on April 1st :-)

Nathan's post is very interesting - thanks for posting that. He has taken on board the implications of CAP, and built a system (Storm) that is genuinely different.

I wish more people did that. If you're going to use CAP to justify building a database but having it be less capable, that's just marketing. If you're going to look at CAP and think "OK, we can't get to 100%, but how can we get closer", then that's great. For blog marketing reasons, you might describe that as "beating the CAP theorem"; but it's actually finding new solutions within the constraints.
Those who do not read the history of Therac-25 apparently are doomed to repeat it.

If the hardware can be destructive under the control of software then you must have hardware interlocks, not just software safety features.
I disagree with "In most cases, the “best and the brightest” already have jobs, so you’re really just on the lookout for the best available.". Just because one is employed does not mean one is taken. If you want the best you have to work at it. Appeal to their desires and they'll come to you. Looking for the "best available" is no better than settling. In my opinion you'll end up doing a disservice to both your company and the new hire.
The (De-)evolution of My Laptop Battery
Master the Sacred Art of Doing Using Martial Arts Principles
If you practice or practiced in the past martial arts, I'd love to hear what it has taught you, chime in!
http://en.wikipedia.org/wiki/Central_Australia_Railway
If you care about performance, you would use neither format.

Developers choose json over xml because using it and dealing with it is more lightweight than dealing with the very baroque xml. The fact that the typical json payload is 1/2 the size of xml is just a bonus.
Anonymity as a Badge of Honor, Not a Shield of Anger
ironically i have had to deal with this precise problem.

in the real world you deal with real world problems - you don't get to negotiate because you feel entitled - in the general case at least people have zero tolerance for such behaviour and it gets you nowhere.

we have a capitalist society after all... supply, demand and competition rule supreme in our economy.

don't downvote this guy his point is perfectly valid.
The OP implied that this was different-- as in an actual declaration of war. The cold war was never declared, am I right?

Vietname, Iraq I, Korea, etc. were declared but they were declared on specific enemies and thus had sunsets.

I do agree with your general point. We have been on this slippery slope for a very long time.
I think you're making my point, with your inclusions of "if"'s ("If order is only important within gender") that a machine would not and generally cannot know, without understanding the semantics of the data to begin with. That's a disadvantage because that's precisely the sort of "extra metadata" that is needed to complete the XML mapping in the general case that I was talking about - it requires human intervention and therefore a custom one-off mapping, or else at least something like an XML schema [edit: more like JAXB annotations]. The Json doesn't require either of these.

Also, do you really expect an automated process to do the abstraction from "female" list and "male" list to person list? That's more than just metadata that you're assuming to be in context (which was my point), but actual AI! This is very different from programming languages, where collections of things which occur within objects and structs are given names which reflect their intended meanings, like with Json.
Hah, haven't heard it as "cock-up before conspiracy" before, which seems to be a rather amusing way of stating Hanlon's razor[1].

1. http://en.wikipedia.org/wiki/Hanlon's_razor
Maestro is fast becoming redundant, so we decided not to push for support: "This effectively means that practically no UK banks will be issuing Maestro cards, except in Northern Ireland." —http://en.wikipedia.org/wiki/Maestro_(debit_card)
Right - but when you start spending 10,000 or more per month to Amazon, you might consider analyzing if you can save money with own servers, right?
Could use them to do some distributed computing, via BOINC

https://boinc.berkeley.edu/
The Simple API for Google Analytics
You can think of this as a blueprint for snoopworthy governments around the world including all US or Russian allies.

Think about that! (and submit a patch to support 451 in your favourite web server / framework).
Well, sure, just like I can create my invented domain name like hacker.news and use my own IP addresse 1.2.3.4 without being allocated them. The Internet interoperates by everyone agreeing to follow the same agreed conventions, but there is no rule that says you have to. The registry for HTTP status codes has no 420 code and could be assigned for a different purpose in the future: http://www.iana.org/assignments/http-status-codes
Also, just going away from processed food can be an interesting experience. The taste, texture, perfume of raw salad for instance is quite surprising, it's almost candy.
I feel like this is something everyday users on Reddit or HN could have put together in a report.

I'm not so sure. When Hyperloop was unknown, HN spent far too much time enthusing about obviously nonsense guesses about what Hyperloop might turn out to be. Let's not get too conceited about HN's abilities.
Introducing Gratify - Your blog post optimizer
JSON Schema (http://json-schema.org/) seems quite competent. Perhaps the "problem" with JSON Schema/Path is that JSON is simple enough that you could load into native structures and then do validation in the programming language your most comfortable with.

It took years and lots of committee meetings for a W3 blessed XML schema language; and then, key people didn't agree with how it should be done: James Clark's alternative was TREX and MURATA Makoto's was RELAX.
The Myth of Being an Introvert or an Extrovert - The Buffer Blog
i would add as well that i work in the entertainment industry... i have nothing against artist, performers, production staff and feel they deserve rewarding for their work - but (and i have personal bias) i have no love for the leeches that tie them into exploitative contracts then winge when they don't get the benefit of their /should be illegal and are certainly immoral/ business practices because they went out of date 10 years ago.
Press Suckered By Anti-Google Group's Bogus Claim About Privacy
How about Scandinavia - are those countries in the pipeline?
I don't think there is any value in replying. It sounds like an employee referred a friend who got to skip the interview process. I would say it is not common but also not a big deal.
It's funny because it's not me.
How can anyone program sanely in the presence of this:

currentPos = new Point(currentPos.x+1, currentPos.y+1); does a few things, including writing default values to x and y (0) and then writing their initial values in the constructor. Since your object is not safely published those 4 write operations can be freely reordered by the compiler / JVM.

So from the perspective of the reading thread, it is a legal execution to read x with its new value but y with its default value of 0 for example. By the time you reach the println statement (which by the way is synchronized and therefore does influence the read operations), the variables have their initial values and the program prints the expected values.

I'm not anywhere near smart or careful enough for that... I think I'll stick with Haskell.
Just bought a copy. If you would like I can send you my thoughts on it. I've been looking for something like this for stripe for quite some time.
Reminds me of this: "I don't disgree, but..." and then they go on to disagree.
Good catch for April fools! I shouldn't have included that one, obviously.

For the nathan post, reading the comments reveal that he ends up acknowledging CAP is true, which would make him fall into the "( ) nice try, but blatantly false advertising" box of the list.

CAP theorem can be used as an excuse to provide weak systems that don't do much (unfortunately), but it doesn't mean it's what it is meant to validate as an idea, fortunately. As I mentioned in another comment, it's more or less a very basic set of rules (axioms?) to consider when building distributed systems.
Facebook use 'makes people feel worse about themselves'
Actually, a war was declared. An AUMF is a term the US Congress uses to declare war.
We decided against supporting them since Maestro cards are falling out of use. (See my other comment in the thread.)
The local Wal-Mart pay better than minimum wage. No Costco in the area.
I wonder if they really do feel threatened?
Yes, please do! I'm going to be making periodic updates, so any feedback you send will get incorporated eventually.

Thanks!
Two replies to my comment - one saying they haven't shipped anything, and another saying they have shipped something.

The reason I dislike Soylent so much is that it is a scam, advertised using dubious (and possibly illegal) claims.

Plenty of people were interested in it as an experiment - see the interest after his initial blog post. I thought it was a stupid idea then, but at least they weren't claiming it to be anything it wasn't.

They could have released it as an experimental product and been fine.

But they didn't. They chose to make a bunch of claims that have no basis in fact.
A Basic Example of an IoC Container
Creative freedom or unlawful code?
Pedantic point: that car isn't made of gold. The body panels are carbon fiber which have been wrapped in a reflective foil.

Damn nice looking though!
The Web in 1993: An academic's notes from the first WWW conference
I've learned that just because a business is local doesn't mean they aren't SOBs. It is about the same % as every other walk of life.
(Smithsonian announces) New cute furry mammal species discovered
Computers are also not cell phones, and Dell doesn't want to have as tight control over the operating system as carriers / phone makers.
How to install Oracle 11g Express R2
Gets interesting at "My trip report" - the unedited notes produced at the time (i.e. no hindsight)
Exactly. That's what happened... No one seemed to grok that in 2001 (or 1971).
The font family itself is also different, it first tries Source Code Pro.

As an extra, editing JavaScript inside the console is also highlighted to match.
XML schemas only solve the most obvious validation failures – even if the elements are present as expected, you still need the exact same process to handle invalid data. While XML has XPath, JSONPath exists and the downside to XPath is that many environments are stuck with 1.0 and XML libraries tend to be poorly designed (e.g. namespaces are simply unnecessarily painful in most XPath implementations).

Every significant project I've worked on has the same cautious loading process for XML as JSON, with some extra checking at the early XML load stage because XML is harder to work with and thus fewer people produce valid documents (forget schema validations, errors with simple character encoding, well-formedness or namespace declarations are surprisingly common). In practice, I tend to end up with a forgiving parser, a collection of selectors and full validation on the results, which works equally well with either format.
Not even Bruce Schneier recommends Applied Cryptography.
http://www.schneier.com/blog/archives/2009/09/the_cult_of_sc...
I also loathe it when people project agreement on the person they are arguing with. I do not think it is lost on you or I that it is an effective tactic to quickly find where the common ground and the real differences are in a set of beliefs or arguments.
Savvis Acquires AppFog
In recent times I have delivered commercial products in PHP, Python, Ruby and LiveCode. In the past (way past more than 10 years) I used to work with VB, Delphi, REBOL and some Java. While I was coursing engineering, we learned scheme (its great!)
Robots were instructed to bring the backup central mission module from the shielded strong room, where they guarded it, to the ship’s logic chamber for installation.

This involved the lengthy exchange of emergency codes and protocols as the robots interrogated the agents as to the authenticity of the instructions. At last the robots were satisfied that all procedures were correct. They unpacked the backup central mission module from its storage housing, carried it out of the storage chamber, fell out of the ship and went spinning off into the void.

This provided the first major clue as to what it was that was wrong.

Further investigation quickly established what it was that had happened. A meteorite had knocked a large hole in the ship. This ship had not previously detected this because the meteorite had neatly knocked out that part of the ship’s processing equipment which was supposed to detect if the ship had been hit by a meteorite.

The first thing to do was to try to seal up the hole. This turned out to be impossible, because the ship’s sensors couldn’t see that there was a hole, and the supervisors, which should have said that the sensors weren’t working properly, weren’t working properly and kept saying that the sensors were fine. The ship could only deduce the existence of the hole from the fact that the robots had clearly fallen out of it, taking its spare brain - which would have enabled it to see the hole - with them.

- Douglas Adams, Mostly Harmless

To wit: gaping holes in one's understanding can be chronically problematic when what should be in the gaping hole includes that which lets one know that there is, in fact, a gaping hole. One may be capable of proceeding nonetheless (resulting in the rest of the quoted-from book), but with great difficulty.

Of course, arguing over whether Stupid A is stupider than Stupid B is stupid. Better to be neither the self-taught dysfunctional nor the fully-trained dysfunctional. TFA wasn't condemning the self-taught, it was condemning the arrogant self-taught who don't, can't, and won't recognize that there may be a better and simpler way.
"The olinguito is the first mammalian carnivore species to be newly identified in the Americas in 35 years."
Thanks for reminding me of the A-5, I completely forgot it!
MockUPhone - One Click to Wrap App Screenshots in Device Mockup
Thanks, I haven't quiet figured out how to make it truly responsive. That's why when you rotate it gets out of whack.

If you start with it in either orientation it should be fine though.
Bit-player: An amateur's outlook on computation and mathematics
Nice article. It reminds me of a fight I had with Sun Computer (i.e. Sun Microsystems) some years ago, after I created a Web page that computed the sun's position / sunrise / sunset times for a given location (http://arachnoid.com/lutusp/sunrise). Without thinking very deeply, I named my page "Sun Computer".

Pretty soon, and without any nefarious intent on my part, my "Sun Computer" Web page ascended above the official "Sun Computer" corporate website in the search engine listings.

Shortly thereafter I received a registered letter from a team of corporate lawyers who threatened to sue me for disregarding Sun's proprietary ownership of the word "Sun". My explanation that there is an astronomical body with that same name, and that my page provided information about said astronomical entity, fell on deaf ears.

For some reason, the corporate lawyers couldn't bring themselves to simply say that my Web page was above theirs in the search rankings and I needed to do something about it. Instead, the correspondence was phrased entirely in threatening legalese, in terms of proprietary trademarks and public deceit. I finally figured out what the problem was, and renamed my page "Solar Computer". Problem solved.
In addition to theorique's comment, there is a huge literature on the neuroscience of sociopathy going back 10+ years, showing some significant activation differences particularly around social/emotional processing areas in the brain.

It has been extensively studied in part because it's such an insidious personality disorder that many high-functioning people have to varying degrees, and the depth of psychological research on the topic very quickly shows how wrong mjfl's comments are. There is definitely a flippant, pop-psych use of the word 'sociopath', but it doesn't really shed much light on the actual phenomenon.
Why do you say so? Do you suppose that a test pilot gets fired if their plane crashes?
Another similar application that I use, GifCam[0], made by a redditor. GifCam also lets you modify the frames you recorded, add timing delays, save to different GIF formats (B&W, 256 color, etc.)

[0]: http://blog.bahraniapps.com/?page_id=21
Understanding the Random Function in JavaScript
The real question is why do they have a box for title in the first place. If they don't want editorialized titles, just have a URL box and use code to grab the title. Then we stop all these meta discussions. (Or we could leave the box and stop screwing with things once they get to the front page because the original piece was titled poorly)
Can you tell us the corporate structure of Stripe?

Does Stripe have "operations" in the Republic of Ireland?

Will Stripe shuffle UK sales/transactions through Dublin in order to avoid paying corporation tax in the UK?

Quite a lot of people in the UK are sick of companies coming across the Atlantic and playing international tax games.
Why A/B Tests are a Waste of Your Time
Honestly, people who believe in this strongly enough should just start using them and provide themselves as examples of good use cases. That doesn't mean it shouldn't be campaigned for to get more people to use it.
The entropy needed to generate random numbers is a finite resource. If you don't have enough entropy stored up, /dev/random may block until such a time as it has sufficient entropy.

/dev/urandom reuses existing entropy to produce more pseudo-random numbers. It may be less "random", but will never block.

more at http://en.wikipedia.org/wiki//dev/random
There has been a lot going on in the past year for the service:
* Free tier of accounts. Limited to following 40 people, limited file storage
* Multiple microblogging clients on just about every platform
* 2FA and messages, files, search, and geolocation APIs

It isn't just a "gimped facebook clone", the App.net service is a framework for developers to build a multitude of social networks on top of a single platform. The microblogging aspect was just the easiest "get" for them out of the gate. You can look at their One Year post [0] if you want to see a list of everything that they've implemented.

[0]: http://blog.app.net/2013/08/14/we-are-just-getting-started/
Actually, it wasn't.

"While the AUMF did not officially declare war, the legislation provided the President with more authority upon which to exercise his constitutional powers as Commander in Chief."

http://www.law.cornell.edu/wex/commander_in_chief_powers
I've met a few freelancers that claim to be able to do both, but they tend to fall into either the designer or developer camp; either a good developer that can just about use Photoshop, or a designer that can throw some mark-up together. In each instance they've always classed themselves as "Web Designer and Developer" and never as either.

Either way, I'd never hire one person to do everything, and no company I've ever worked at, including non-tech companies have ever been ignorant enough to suggest that one person should do everything. A designer designs and a developer develops. I wouldn't expect a plasterer to fit my windows on my house.
I wouldn't call it a job, but I'm the webmaster of my personal sites. I haven't heard of a different title for the same thing either... ?

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

"A little bit of everything but not a lot of any thing".

I don't think wearing many hats has to mean you're subpar with a specific hat; just like having hobbies doesn't make you less of a front end developer, neither does having an eye for design or people skills or knowing backend stuff. It's not like everybody who wears just one hat always and automatically masters that subject, that's just a fallacy. To the contrary, we all know that having expertise in wildly varying fields can inform and enhance the creative and analytical processes a great deal. Too little focus is bad, but so is too much focus (or, "specialization is for insects").
I wonder that to, but only time will tell.
The title would be more accurate if he included something like - YC excluded. I bet a lot of people on HN are going to be irritated by this until they read the link.
Note the first paragraph of exposition starts with:

"Now before I continue, I should note that I don’t believe YCombinator falls into this category."
Maybe they want to design instead of run a business.
A general attitude that I've seen as a new user on HN (and a new developer): "If you don't learn something you enjoy (messing with computers) in exactly the same way that I did, you're wrong!"

For some, there's no joy in complexity or inspiration in learning. Just wrong or right--generally with "my way" being right. What a shame!
What if the client is not from a nation that is causing the server to refuse to serve the content? It's very much a server error.
Well, I don't drink in the sort of pubs where a sentence beginning "Never attribute to malice" will be allowed to finish, but a sentence with cock and up in it will happily run its course.
actually, they just received $12M in training on how to not make that type of mistake ever again. Sounds like a great hire to me, especially if they will be undervalued in the market by others
Even if the entire book is embellishment and lies, at the very least, the book should reveal a sociopath as they wish to be viewed, which in itself is interesting.
>That being said I'm pretty confident my body was designed to run and not to inhale burning plant matter or drink excessive amounts of fermented grain. So far I feel much better and I don't have any of those problems.

Intriguing. Designed by what?
Edit: "I am sure you appreciate that you loathe it because it's effective."