skysight-inc/HackerNews huggingface dataset:
The biggest cause of bugs before we used React is the fact that the "state" of the app is leaking all over the place. Symptoms were things like looking for dom nodes that didn't exist, events that triggered on code that was no longer active, bugs due to the app being in a state extremely complex to reproduce with crazy conditions all over the place, race conditions...

React does many things to mitigate those problems and those classes of bugs nearly dropped to 0.

- The code you write is declarative: you say how you want the dom to look like. This means that you no longer have two pieces: creation and retrieval that need to be kept in sync.

- React manages the life cycle of the components. When the component is no longer being rendered, it is properly destroyed, all the listeners are destroyed ...

- The render function is pure. This means that it is easier to write and unit test.

- The code is organized into small, composable and unit testable modules. By having a lot of small components it makes writing complex bug-free code easier.

- Each component has a very well defined interface. It cannot use anything else without it being obvious. This prevents the creation of big chunks of interdependent modules that are impossible to separate.

- There is a single point for state update. This makes the high risk pieces of code stand out.

In the end, we found that React actually helped us write more reliable app compared to framework-less Javascript code.
App store review times? It's generally 5 business days.
Agree , I really believe they are commited to security and openness. They should be a model for a lot of security focused companies out there. Security is a process.
The state of California has a $850 (or so) minimum annual franchise tax. Let's lower that to $150. Or $15.
Social Processes and the Design of Programming Languages
OSX app for tailing Heroku logs
Anyone have experience with T-Mobile coverage around Tulsa, OK?
That actually made a big difference for me as well. When I had heard about self-published ebooks making money it was 37signals making $400,000+. That didn't inspire me at all since they had a massive audience.

But when I read Sacha Greif and Jarrod Drysdale share their numbers from small audiences (an audience size I knew I could achieve) I was inspired. They made $6500 and $8000 from their ebook launches.

Since I didn't have any kind of an audience at the time I thought if I did half that I would consider it a success. Turns out I did 2x!

I still share numbers, since I always have, but I agree that it is the smaller numbers that are truly inspiring.
Compare them to underground dentists -

Bob has no medical training, but has a dremel and practiced on a pig head. He offers to do a filling for his pal. He makes a bit of a botch of it, but he larns from his mistake and carries on. Dentistry is important so it's admirable that Bob ignores the criticism. Bob's first pal is currently fighting off a severe infection, but Bob uses that as a learning experience.

Bob will get there one day!
Ah, so basically, as a for-profit company aiming at a B2B enterprise product, we are screwed in this regard until we have the capital to absorb the audit cost through either revenue or investment. Oh well.
Donate the difference.
Shampoo and conditioner helps prevent itchiness, at any stage of growth. If it's really just stubble, soap & lotion will work.
There are a few of those progressive "pay what you want" styled restaurants in Toronto, Canada.

But when it comes down to it... they're actually $12/meal minimum throughout the week, and on wednesdays (most B&M business' slowest day in north america at least) they offer something like 50 meals which are "pay what you want" and once they're out of food, they're out.

In other words, "pay what you want" restaurants don't technically exist. Not in the long run. They're more of a marketing gimmick if you ask me.

The free rider problem is a very real thing: http://en.wikipedia.org/wiki/Free_rider_problem
FWIW, I routinely use https://www.readability.com/ - very few websites are actually readable.
Computational mathematics? That was the required course.

I work in sets and relations for the most part.
"Historically this has lead to wars, either internal or external."

War is always a safe prediction, but do you have a specific historical precedent for large-scale, long-term, structural unemployment? I cannot think of one.

(Subsistence agriculture is not unemployment.)
I'm using it to scrape a popular gaming API endpoint to get info on hundreds of matches per day. I chose Go because it's fast, easily deployable and I enjoy it. :)
The Rise And Fall of Languages in 2013
Seems to be a technique used in negative political campaign ads.
Tech Demo for Pillow Castle's First Person Puzzler [video]
As someone who has been living in NYC and is currently considering what state in which to register an LLC, I feel like the sub-$1000 difference filing in NYC would make to my registration is barely a factor. If you're trying to do business in NYC, this is not a significant amount of money.
Very interesting link. Thanks.

Based on the conclusion of this link, it would be interesting to combine MOOC courses for the lecture part, with a technology like knewton, which by monitoring exercises you do , learn about what areas you have problems(and perhaps about misconceptions) , and can guide you to relevant content.
The Hindu article mentions 4 injured, but not 8 dead. Is there another source on the 8 dead figure?
Really? That's surprising to me—it's the same font that's used on Medium (FF Tisa) and it's one that, after seeing it on Medium, I fell in love with, so much so that I signed up for Typekit just so I could use it on my personal site. Do other people here feel that way about this font?
Getting the indentation right should be the least of your worries if you have a good editor (and don't do something like mix spaces and tabs, which I think everyone is in general agreement with across all languages).

When was the last time that you manually typed out 4 (or 2, or 8, etc) spaces to indent a line of code vs. just hitting tab and letting the editor handle inserting those spaces (or the editor automatically indenting when you hit enter on the previous line)?

As an aside, all of the people that I've met in person that get red in the face over the idea of white space being semantic are the sort of people that write code like this:

sub function1 { return map { $_[2]->do_something($_) } @{shift->(@_)[0]} }

I'm sorry, but I can't get worked up about not being able to write code like that.

Note: the above code is a reasonable approximation of actual code I encountered by an actual person that would get visibly upset about Python's semantic white space.

P.S. The two '$_'s in the map block actually refer to two different variables, and this is one of the reasons I remember that bit of code. It makes no sense to mix usage like that because it becomes confusing.
Not only that, but he's been consistently pro globalization for his entire public career - even his work that lead to a nobel prize was along this issue.
Internet Archaeology
On the downloadable software front I've finally just realized that Nintendo doesn't even want my money, especially when it comes to Virtual Console titles.

Can't figure out any other good explanation behind why they still won't let me buy Minish Cap. Sure it made sense a couple years ago when they wanted to make people who bought a 3DS before the price drop feel special. But that's far enough in the past that they're not earning any additional goodwill from it, so it's morphed into something more like, "Making sure these people still feel whatever shred of special-ness they might still feel from being 3DS Ambassadors is more important to them than earning more of my money."

Got similar suspicions about why they refuse to make SNES and N64 games available on 3DS Virtual Console.
Engineer-to-Engineer Recruiting
Uh... well...

Consider Google's propensity for certain dark patterns that feel like a kissing cousin to click-jacking.

The plausible deniability applicable to this situation goes something like this.

Guy has a Google e-mail address, but not a Google+ profile. Then he pops on over to YouTube, and wants to comment on some HILARIOUS kitten video...

BUT WAIT! In order to do that...

1. Set up your channel and begin commenting on YouTube
What you'll get: [
"A YouTube channel",
"A Google+ profile"
]

2. > Continue to comment >

3. Join Google+ by creating your public profile

Enter Profile Data > Upgrade >

4. Add People > Add All

Using this "Add All" option, absent-mindedly, will of course snarf you're entire address book. Everyone you've ever chatted with, or e-mailed. That list can be quite huge.

So there's a window of reasonable doubt that this COULD have been an innocent mistake. But now, that innocent mistake might mean the difference between an arrest, a night in jail, bail, a misdemeanor conviction, community service, and the difference between being able to truthfully answer "No" to the question "Have you ever been convicted of a 'crime'" on an employment application.

How believable is it that a jilted ex-boyfriend might coincidentally make such a mistake, just as a restraining order was invoked upon him? Well, consider the very recent change that requires a Google+ account to comment on YouTube [0]. A requirement that wasn't necessary in the past? Anyway, too late to hypothesize about that now.

Put 12 random strangers in a room, call it a jury, and find out.

[0] https://news.ycombinator.com/item?id=6695935
I think the question was about costs of providing the service, not the tuition charged to students. How much does it cost to produce and operate a MOOC, in terms of total resources put into it? It's a bit difficult to account for, because in this early stage there is quite a bit of unaccounted-for labor. For example, there is some cross-subsidy from existing universities, because much of the Coursera/Udacity curriculum-dev and teaching work is done by professors who're drawing a full-time salary from a university (not from Coursera or Udacity). Nonetheless it'd be interesting to see some kind of ballpark estimate of how many total resources it takes to put together and teach a Coursera course, if hypothetically they were actually all billed.
Definitely it is not. You'd have to prepare the docker instance a little bit differently than you would for VM.

For example: Docker does not run upstart by default.

re: issues with installing via apt => Docker public registry provided a stock Ubuntu 12.04 with a lot of things stripped out including the /etc/apt/sources.list (it contains only 1 entry). You'd have to populate that sources.list with a Ubuntu/Debian that you already have.
I find Lua more interesting than Python. It has all the simplicity, all of the power, none of the indentation, and is quite a nice portable tool.

That said, I do wonder at times what it is about Lua that makes so many people not-interested in it, when .. from my naive point of view .. its an almost perfect language for rapid development. I don't have that feeling about Python, quite so much ..
French revolution within Paris and other large cities at the time. We also see riots (small war-like-things) throughout Europe during the mid-financial crisis. Riots around the US that were largely race based during the 60s and 70s. Race == poor at this time. Eventually the nanny state woke up and tried to take care of them better as a result.

As far as outward wars: WWII. Massive economic for German. War helped create jobs.

Edited to add German example.
What's interesting to note, for all those disparaging this approach, is that this is how all those other JS frameworks came into being in the first place...developer isn't satisfied with what's out there, rolls their own stuff, and lo and behold it can be generalized to other applications.

I wouldn't be surprised to see a Moot framework in the next year or so!
How using Google Images can cost you $8,000
Ah, the old "when I no longer have to suffer the indignity of taxation I will donate half my money to the poor" argument. I wonder why I find it so hard to believe that the bottomless greed of capital will suddenly evaporate when we give them the entirely greed-based anarcho-capitalist society they want?

But I agree with you that "factory owners" and "government" are basically the same people. That's what I was referring to by the political machine I mentioned above, although it extends far beyond government.
In order to minimize the cost people generally initially file with an agent somewhere upstate with cheap publication costs and then if desired move the LLC once it's formed.

I agree that it's a rather silly rule as no one ever reads those notices. On the other hand if there were to be a major reform I'd just as soon see them abolish the LLC and instead make the ordinary corporate form a little more flexible and streamlined.
How entrepreneurs can save for retirement
This is not about code golf, this is about the widespread automatic use of frameworks in lieu of an analysis/design/build-one-to-throw-away phase.
Without clues such as facial expression, tone of voice and knowing who is it that you are talking to irony is indistinguishable from a normal statement. You could try to exaggerate to the point that it would be ridiculous for a sane person to assume you are serious, but it's not reliable.

Avoid Irony/Sarcasm on the internet.
In 2012 at Carnegie Mellon, Luis von Ahn (reCAPTCHA, Duolingo) headed a similar type of startup class where students spend time creating their own startup. One of these startups, PayTango, made it into Y Combinator (W13).
This varies by extreme amounts depending on county. I started an LLC in NY, including publishing for about $700.
It's fine that you have faith in your product but I will believe what you say when other people outside the project confirm it, otherwise is just marketing.

I do not use gnupg because the creators say it's nice, I use it because everybody including their competitors says it's OK.
Are microbes melting the Greenland ice sheet?
Code Debugging Topics on MSDN
Type-System Criteria
How likely is this? Everyone says "highly likely", but it's unclear what that actually means. 20% chance? 80% chance?

I wonder if someone has looked at the number of websites using the same CDN and calculated this probability. I'd be very interested in the results.
Literally every single C programmer in the world is writing x86 or arm machine code. C programmers have this bizarre blind spot where they don't realize that though. Isn't that weird?
YELP critics must be identified, court rules
I'm driving from Chicago to Tampa, FL this weekend. I'll have to use the OpenSignal app to see how the T-Mobile coverage is.
Quite a lot! However, quite a lot of them aren't exactly writing for consumers, but for the business market.
Dotabuff? Awesome work if its you.
Show HN: SkillHelper — A List of Business, Development, and Design Infoproducts
Costing
A guy in US wants to sell our software along with his hardware for $50/month/device. The cost price of hardware is approximately $200. What do you guys think should we ask him to pay us for the software part on monthly basis.
I have seen a lot of articles like this pop up recently.

I'm curious; do people think that any given software guy or other specialist can just decide to launch a book based on their domain knowledge, and have a shot at success like this? Or are these all the self-selected outliers, the minority of self-publishers that actually make a buck and so decide to blog about it instead of quietly abandoning the project?

I've gone so far as to draft an outline table of contents for a possible book myself, but I never know if it would have a shot at taking off, or just be likely to flounder in obscurity.
I couldn't imagine the costs of running an online class being more than a brick and mortar.
I agree. This public notification requirement is a small nuisance, not a true impediment to building a business.

Of course, I'd rather it not exist but there are many, many more important things to focus on than this when building a business.
I could see paying for a quality educational service. I already pay for Netflix and only spend a fraction of the time watching it compared to what I spend on watching MOOC-style videos. Udacity isn't really there though. The videos are top notch, but the user experience is not very good.
Thank you very much for that comment.

I believe that we've been truly open source, transparent and accountable for our code since day one. There are other projects who are currently similarly open and transparent (I respect TextSecure for this,) but I can't say this is the standard in this field.

We've always solicited and compensated feedback from security enthusiasts, hobbyists and world-famous cryptographers alike. Over the past year, we've had the opportunity to grow into a product that examined what is fundamentally responsibly possible in the browser, and we've even landed ourselves as a primary use-case for the W3C's Web Cryptography working group. We've produced a true, responsible alternative for people who just don't know how to use anything more complicated than Facebook Chat, and we've made it clear that we are not trying to replace PGP or other iron-clad 30-year old solutions. We're trying to help mom and pop users.

Regarding our past vulnerabilities, I can't think of a fuller disclosure than dedicating an entire talk to detailing every single one of them: https://blog.crypto.cat/2013/11/documenting-and-presenting-v...

We also carried out a study to verify whether users were indeed clicking on the security warnings on our website: https://blog.crypto.cat/2013/11/yes-cryptocat-users-are-read...

We want to do things right. We are truly open source, truly honest, transparent and we take immediate steps for mitigation every time. We will continue to solicit audits and feedback for our more experimental browser client, but also hope to have a more grounded product in our upcoming Objective-C (iPhone) and Java (Android) apps.

Overcoming a bad reputation is extremely more difficult than keeping a good one. We have been less lucky than other projects. The fact that we used experimental platforms and coupled that with overly loud disclosure of all the failures those platforms lended us meant that we couldn't keep face as easily as other projects.

But that said, I can't but resent the continued accusation that after three years at this, myself and all other volunteers (a wide range) working on this haven't matured enough to know what we're doing, and haven't proven that we care very much to do it right. It's very relieving to hear that the community at HN can understand this and see that we have been proceeding responsibly for quite some time now.
To clarify, this law also applies to LLCs formed in Delaware or elsewhere if they are operating within New York. It does not apply to corporations, regardless of the state of incorporation or the tax status (C or S).
Also, I don't believe that any specific habits can you make you successful.

Person "A": spends 105% of his income

Person "B": spends 85% of his income

Which habit do you think will lead to greater success?
Even if you incorporate in say Delaware, if you are physically present running your business in New York you must register your LLC there (Authority to Transact Business) which comes with the same requirements.
it's hard to take the courses seriously when only 5% of the enrollment finishes the course.

Same comment as michaelo.

why does the completion rate matter? If 100,000 people sign up, and 5% complete the course, that's 5k people.

The US is graduating around 12k CS majors per year, so 5k seems like a material number of students to educate.
isnt this how the FBI was able "break" TOR? They exploited an older version of Firefox that came bundled with TOR.
The only page I have found in Catalan so far is the homepage, and it is translated 50% by Google and 50% by someone who probably did not even finish high school.

I'm happy that the app is translated into Catalan. I hope the translation is better than the one on the website.

Just wanted to make sure you know what this domain is actually used for.
I mine with slush, at mining.bitcoin.cz

I am not at all disputing that 51% attack is one of the known attacks and that 51% of hash power concentrated in the hands of any one actor is something to be prevented.

I also dabble in alt-chains, and the Terracoin chain has often had 51-60% of the hash power in the Coinotron pool.

It happened to GHash.io before, yes. I think they made it right. It's up to the rest of us to take our miners somewhere else to minimize the possibility of a rogue actor at GHash.io causing problems.

As Coinotron once told me, a pool operator just runs a pool, can't control the users. There is no fair way to turn away hash power or "self-police" as a pool operator. I think if I read the graph correctly, the CDF provides a logarithmic probabilistic dis-incentive to be >50% of the hash power and also act fairly (in other words, to work on any broadcasted solved blocks that don't contain rewards belonging to you), so it will be interesting to see what happens next.
I wonder why Google's Closure Compiler hasn't taken off more in the open-source world. At the cost of some mandatory comments to help the compiler, it's able to analyze and remove unused library code from your application.
Hands Down, One of The Most Engaging Talks About Content Marketing Online 
Some call it a revolutionary technique to grow your business, but Marcus Sheridan a.k.a. the Sales Lion says is just common sense! This now web marketing guru shares “the secret sauce” of his success in simple English.
+1

I'm a user of both, fan of both, but the lightness of Lua is a big plus.

The main downside, IMO, is that the Lua user base is smaller so there's more need to roll your own solutions for things that Python already has several libraries for.
I just watched the grapes of wrath last night for the first time. Amazing movie. It was released in 1940, just a year after the book.

I guess some things will never change, unfortunately.

I hope someone gives these poor workers the decent wages and decent lives they deserve, and soon.
I figured as much. I wish there was a unlimited tethering with the unlimited LTE plan, but with rate limiting. Like limit me to .5-1Mbps on my non-phone devices. I'm not downloading music or videos, or streaming, I just want to browse text websites and code on my MacBook, nothing bandwidth intensive.
ditto, I've been looking for a better way to analyze the block chain but half the things I find seem to be defunct projects.
Beyond human: How I became a cyborg
Forbes listed second best search platform
If a growing portion of the dentistry industry was discovered to have been weakening people's teeth at the government's request, I'd start to buy Bob a beer a little more often.
Bandwidth concerns cut both ways. I typically worry less about my server being able to serve it, than I do about the client having to receive it.

For desktop users it's less of an issue, but site size matters a great deal to mobile users.

At least that's where I tend to worry about it, not sure if this is the common reason.
mysql_escape_string [1]
mysql_real_escape_string [2]

Why is exposing a C library's functions and their names PHP's fault?

[1] http://dev.mysql.com/doc/refman/5.5/en/mysql-escape-string.h...
[2] http://dev.mysql.com/doc/refman/5.5/en/mysql-real-escape-str...
That's not correct, because the person I'm replying to is saying that Samsung is greedy for not taking a hit in order to benefit other people.