skysight-inc/HackerNews huggingface dataset:
Brain teaser: what does this switch statement print?
A nefarious programming bug awaiting all C programmers...especially when coding on low sleep!
Building up Github's Hubot on GTalk
you would of course authorize what you share. it would solve a huge problem of the fact that the internet is the only identity-less technology we have - everything else from nations, tv & news, schools, et al have identities. the internet is like this hive mind. we need a permanent id as secure as a social security card
I sadly agree with this. I love Google and their open web attitude, however you cannot look at Apple's success over the past 5 years and not go green with envy. I fear that Google is going to want to try to copy Apple's business model. Of course it's the obvious thing to do but it's sad from a consumer's standpoint.
Ask HN: Anyone want free market research?
I'm a lurker and huge fan of Hacker News. My background is in business and have spent the last few years doing market research for a corporation and a small startup. Wanted to get more practice doing market research and market sizing for tech startups.

My offer: I will do market research/sizing for your startup in exchange for a testimonial. For those in the Bay area, it would be nice to be able to meet up and discuss over coffee/tea. Mostly doing this to gain startup experience over the next few weeks.

If you're interested and want to know more, shoot me an email: goldennirvana[at]hotmail[dot]com
I had some friends arriving at SFO from Dubai a few weeks later, but had no way of telling if Now would show the right flight on the right day since there is no card about future flights. Similar story for the cross country flight they took a few days later.

In order for me to depend on Now, I need to know I can trust it and it only got one of the flights right. There is no way to know if it will do the right thing in the future unless you keep checking and having a backup plan.
yes I am one of the many, check out owncloud if you want to download your data and setup your own cloud. Its pretty easy to setup. As for search, If you are not anti MSFT bing does a decent job on most topics, if you are, in that case duckduckgo, and many other engines out there are not too shabby either. I really want an alternative to youtube. Tired of being raped with 30 second ads for every vid I watch.
100 Mistakes as a startup founder
>The plane isn’t going to run out of juice, unless it meets some clouds or some serious tailwind.

Why would a tailwind matter? That would cause it to go faster relative to the ground, but it shouldn't matter in terms of lift, right?
Otherwise, we could all just start posting random wikipedia articles or other things we happen to have just discovered ourselves, regardless of whether they already made the rounds months or years ago.

This happens often. It's generally a good thing.

See also: https://xkcd.com/1053/
Um... no, he also says that he didn't do it.
You're being more philosophical about it than I am.

I just wanted to be able to refer to users with names like "the" without putting scare quotes around the names. What I wanted, in effect, was to prevent evaluation of the names in the sentence.

Not somehow quoting HN names feels even weirder; writing sentences like "anonymous says we should use the smoked paprika" or "nooonespecial stole our bucket of mashed potatoes" just feels wrong.

I'm happy for it to be an idiosyncrasy of mine, though.
It's only because our eyes are not as evolved to see more of the color spectrum. Hurry up evolution!
These VCs clearly invest in entrepreneurs who are trying to change the world.
what's the idea behind no feature branches?
"The end goal of normalize.css should be to not exist (or realistically, to be extremely small)."

I'm fairly certain this is the first project I've ever seen where the end goal is obsolescence (while not being driven by profit). And that we're actually cheering for it.
Be careful though, rebase doesn't preserve merge commits. If you want to rebase after a merge you need

git fetch && git rebase -p

I recommend using git-up[1] which solves everything in a single command.

[1] https://github.com/aanand/git-up
If your money doesn't buy you happiness, you are spending it wrong.

It's a well known fact that GDP per capita is well correlated with other indicators made by organisations with a liberal agenda, such as the HDI - so much that it is problematic both for these organisation, and for a usual neoliberal opinion (with diminishing marginal returns).

Maybe they are diminishing marginal returns with money - just like with human life, after the 1000th year we might get bored, but we don't see them because we look at a too small scale (a mere 75 years of life, with many disabilities in the end)

EDIT : As usual, I don't care for the downvotes down to -1, but instead of a lazy click, could you please take 10 seconds to expose facts if you want to refute my points?

Downvoting means "does not bring anything to the discussion", it does not means "I hate what you think". Facts please. Please bring me shame for how wrong I am, (with references if possible).

Until then, here are my references:

First hits on google : correlation between GDP per capita and HDI : "Human Development Index HDI is advanced as being a better indicator than GDP per capita... BUT look at a plot of the correlation between HDI and GDP/capita or all countries... There is today a very strong correlation"

http://www.gapminder.org/news/hdi-surprisingly-similar-to-gd...

"The concepts of diminishing marginal returns on money" in simpler terms on a blog:
http://www.getrichslowly.org/blog/2010/06/16/the-marginal-ut...
Make sure you benchmark the VM's if you intend to use them - performance was horrible during the preview.
http://openbenchmarking.org/result/1206086-BY-1103157IV31
One of my projects at the moment is to make a hand cranked USB power source. I stumbled across this while Googling for "stepper motor power generator" or something like that. It looked interesting, so I submitted it.
This really annoys me too - I always think of the Leggos brand of pasta sauce whenever I see that mistake.
Trust: The first obstacle for tech industries developing in emerging economies
The only git-related tool I like is tig - it's an interactive git log, where you can scroll through commits and view diffs (and lots of other things) without having to copy+paste or use awk or whatnot. This tool (git-smart) seems like... I don't know. For me, I'd rather have my team suffer the learning pains of git than rely on a tool that, in some cases, will fail and leave them even more helpless than they were when they struggled to learn git.

I do recommend checking out tig though; that's the one that I have kept. It's also not a gem, it is available through yum or apt (and probably pacman, brew, etc).
Tokbox is a great sponsor. Always add value to a hackathon!
Do you mind providing better instructions to get it going on openshift? I know nothing about this java maven thingy and the build process.
"in a vacuum".

If gaining more money brings stress/fatigue/conflicts/loss-of-time that isn't perceived by the person to be more worthwhile than the input needed to gain the money, then this isn't going to hold.

If he could say "give me $XYZ" and our bank accounts magically increased by that amount, no cost, no questions asked, no nothing, then of course we can't have enough money. It's all about the "cost" we pay to trade for that money.
The disadvantage of using pre-compiler commands is that some IDEs (Xcode specifically, perhaps they all do this) don't color disabled code any differently, so at a glance you can't tell that the code block won't run.

Before a commit I'll sweep through and delete the intermediate code blocks that I've commented out. If I use pre-compiler flags to comment out the code, it's easy to miss it in the sweep. Because of this I never use the pre-compiler flags for something I don't want to get committed.
All about building something that you think is cool!
autosetuprebase is annoying because it doesn't apply to any already existing branches, and because it's configuring a per-branch setting going forward, if you ever want to change the setting later after you have a lot of branches, you're going to be making a lot of config changes in a lot of places. Instead you can just do:
git config --global pull.rebase true
Blackstart (bird)
I already have an internet identity. If I need another, I am capable of creating it myself.
if you want to do a merge commit sometimes, but pull --rebase most of the time, why not make pull --rebase the default, and do a fetch && merge when that's what you want?
See my response to a similar statement in another thread: https://news.ycombinator.com/item?id=5630031

Hacker News isn't just about news, it's about learning and community. I, for one, would like to see more random Wikipedia articles on HN.
I would lean more towards the number of laws repealed than the number of laws passed as a measure of the quality of the legislature.
The instructions on the readme detail everything pretty well. You don't need to know anything about Java or Maven. See the section "Deployment on OpenShift."
If I understand GP, it's the idea that when your work on a feature branch is complete, you use rebase to base that branch on the current tip of the branch you are integrating to, e.g., "master", so the result does not reveal the presence of a branch.
That is not true. I bought an Android phone and every photo I click gets uploaded to G+ (thought with closed visibility) I am unable to see how to disable it.
It depends what subreddit you go onto, HN is pretty small compared to the reddit hivemind.
Little White Book tries to vanquish business cards
Your explanation is the opposite of the classic Lisp usage of symbols. In Lisp, 'foo is not supposed to represent the 3-character string "foo". It can be coerced to that string, but that's not the default or expected representation. Instead, it's supposed to represent an opaque entity, referred to with the arbitrary symbol 'foo. Usernames are much like that.
This research says nothing of the sort.

It identifies a correlation between income levels and life satisfaction. It is by no means trivial to assume the causal direction. People with high incomes are far more likely to be in satisfying careers, far more likely to have had a stable childhood and a good education. With the exception of the oil-rich Arab states, high income tends to be a result of a long period of good governance.

This data could indicate that money does indeed buy happiness, or it could indicate that the factors that create life satisfaction also tend to increase earning power. It would be reasonable to assume that it's probably a bit of both.
Are we sure it's wealth that makes them happy or the ability (or willingness) to utilize said wealth? There's something to be said of old-money vs. new-money where often, new-money is self-made and tends to be spendthrift whereas old-money tends to be more cautious (probably the reason they're "old").

There's still a huge difference between "spending" and "buying". Did those economists make a distinction? I haven't seen many people "buy" (as in product or service) into happiness, but some folks seem to become happy by spending. I.E. Parties, charity or some combination of both.
So what's stopping someone from taking a picture of say a book, putting some instagram filters on it, and calling it a "photograph"? Is there anything in the law preventing such a slippery slope?
Hmm. All good points.

Wouldn't it be wonderful of kids were actually just responsible adults, only smaller?

Why did that sound so horrible all of a sudden?
I might be reading that graph wrong, but it looks to me like the chart stops at 128k. Bill Gates has talked about the 5-10 million dollar range of wealth, and saying that buys real lifelong security. Beyond that, "hamburgers taste the same when you're a billionaire"

That said, i bet all the toys are fun, but they're still just toys. We all have our xboxes or Ferraris.

So, i wonder if it's really exponential forever like that graph suggests or if it turns into a natural log at 5 million or so.
While I do kinda-sorta believe that wealth increases the odds of happiness I -really- don't get the question. For all we know richer people are conditioned to say they are content because of the social stigma of being a depressed-rich individual.

I always thought that the trick to getting to the truth of the matter was to ask a question that couldn't have a negative consequence. The more neutral a question feels the more likely you are going to get an honest answer. "Are you happy" isn't as good as "What's the funniest movie you saw this year".

The ladder question, as I read it, says more about where you think others would see you. It isn't a question I'd answer honestly. I'd think about my wife, kids, house, and all my privileges before even thinking "am I actually happy".

When I used to work for a company that did personality inventory testing the neutral sounding questions (True|False I enjoy dressing up to work) were always the ones that carried weight, and the over-the-top questions (True|False I've thrown a punch at my boss) were just a coarse filter.
If I want to use two windows to edit an email, I would use two windows to edit email. This is their desktop browser interface.

If I want to pop out my compose window from the browser, I can drag the tab out from the browser myself.

Doing that kind of thing automatically through haphazard invented interface schemes makes browsing the web on the desktop a worse experience.
Dude... you've entered Ugly Time Cube land. You need professional help.
For starters, Mozilla's lawyer has nothing to offer.
If I understand the poster you're replying to, he understood that, but doesn't understand why you would want that. I'm in the same boat - why are people willfully throwing away useful history?
>I use Opera on the desktop and on my mobile devices. So does my wife.

OK. We just need to find the other 10.

Why do people get out of their way to use some marginal browser when there better both proprietary and open source options available?

Just to add to the web another slightly incompatible rendering engine? Or do they really like the gimmicky extras that Opera offers that much?
You know what else "makes a difference?" Getting lucky.

As smart as I would like to think I am, there are a couple of million kids in China alone that are smarter. Easily. Same goes for the majority of the "celebrities" we have in our circles. Hell, there is probably a large portion of folks this side of the pond that would qualify.

Bringing it back to this, career questions are tough, because ultimately a small percentage of us can even do something about our careers. Changing careers is something that folks do rarely, in part because it so rarely works.

Or, do you really think every middle aged delivery man is passionate about their job because they like delivery? My bet? They like their job because of what it can afford them to do.
> and to send my mail I use STMP

I think the author means SMTP...
Isn't Mozilla corporation (not foundation) for-profit?

Edit: according to http://en.wikipedia.org/wiki/Mozilla_Corporation it is for-profit
Isn't Dommy basically testing plain JS vs. jQuery at this point? That's kind of my point.

I'm also curious how well Dommy would perform in the 'real world'; seeing as everything is compiled down to plain JS, then the divide between library and implementation is removed. jQuery is a larger download hit on the first visit, but if it's already in cache (perhaps before they even reach your site) then the only code required to be downloaded is your app's specific implementation.

In the Dommy example for the templates, the jQuery code is 10 lines -- when formatted like generated.js (the equivalent Dommy code) and removing 2 unnecessary variable declarations. By contrast, generated.js is around 60 lines (giving you a few on account that there's some empty else-statements...). I know minification can do wonders, but the jQuery implementation is clearly going to be much fewer bytes. At what point does it eclipse the size of the jQuery lib itself? I guess that's up to usage.

If your library is the implementation, then it'd seem like you'd have a lot more data being sent over the wire, and likely more often as well on account of any changes to the Dommy which alters the output will have an effect on the cached files for each of them where that functionality was used. On the other hand, updating jQuery means only the 1 file has to be re-downloaded -- and not every userland implementation which uses the API.
Thanks for your comment. Will fix the title.
I thought "Please find attached herewith my resume for your kind perusal" was a joke but apparently that's how this person really responded. Recruiters: how does this forced, over-formal tone affect your impression of a candidate?
Making a game on the C64
The article is not completely bogus:

Jan Rezab, CEO of Socialbakers, took to the company blog today to explain to readers that the statistics were “rough estimates” and “not primarily intended for journalists”.
This makes the discussion much more interesting to me.

Thanks for the context.
Is this supposed to reveal something insightful about switch statements in C?
[OT] Woah, takes me back to the bad old days of a.r.k
https://groups.google.com/group/alt.religion.kibology/search...
The nounal usage "Legos" just wasn't one I heard until I was exposed to this Internet. Correct en_AU usage is to deploy "Lego" as its own plural. Dialects!

Back on-topic, I'm kicking myself that I didn't think of using Lego when I was tutoring TCP/IP, but ... I was also kinda hoping this article would show some sort of robot-based assembly line with motors and (of course) a bit bucket for lost packets. To the Legotorium!
I like this philosophy for small, easily testable commits (e.g. minor bug-fixes). However, I never recommend others to use this workflow.

I feel like rebasing is the type of feature you really need to understand to use. If you understand the concept and how to apply it, you can do powerful things. If you don't, you'll munge your repo and end up begging the local git guru to bail you out of your mess.

While I don't enjoy looking at a commit history with a bunch of useless merges, it's better than encouraging users to perform an operation they don't understand.
I have 2 different ways to respond...

1. It is required the offer be made, there is reasonable probability that the offer will be accepted and Once accepted google is bound to meet this obligation.

Wouldn't that mean there is a reasonable probability that google would be required to release?

2. if not... ill append the original comment myself for clarity... cause me and that guy are tight...

What he meant to say was: "It's not as if they were making us a gift... As soon as they sold their first device it was required by the Linux kernel GPL2 license to release the kernel source code [if an offer they are required to make is accepted]"

Wouldn't that be require to release by proxy anyway...

It's like I always tell my mother in law that the door is open. In fact I am required to say that the door is always open...

I can prey that the soul sucking spawn of the nether realms never comes knocking but in effect I am obligated to provide.
The Web Design Business is Dead
Graphene: the nano-sized material with a massive future
Viral gymnast video that will blow your mind
> legitimate trade secrets

How long do trade secrets legitimately last in your view?

There is room for people to have different views on this.

> that is why judges exist

The law is not equal when the parties have very different levels of resources. The existence of judges does not change this.
That's actually log income that they're comparing to life satisfaction there, so they're clearly indicating that returns will diminish up to the point where their measures aren't sensitive enough to detect it.
I'm not saying this is a bad thing...but my gut instinct is that this is a business decision and not "doing the right thing" unless by "doing the right thing" you meant doing the thing that makes good business sense.
>And until this thing goes to court, everybody should abstain from passing judgment on either party.

Why? I won't abstain from passing judgement to the party I think is in the wrong even AFTER this goes to court.

I don't think court decisions are necessarily the truth, and that I should agree with them. I only care about facts to make my personal judgment. If what he says is true, then even if the guy is convinced, I will still believe he is in the right.

(Heck, I don't even find all laws to be ethical. Segregation was law too at some point, for example).
Don't you need to say "case" before every case statement?
I really like this, because he states my thoughts, and I didn't have to do the work of putting them into words eloquently.

I'm completely on board since a year and a half ago. This [1] is what I have so far. More to come.

[1] https://github.com/shurcooL/Conception#conception
Informly brings content marketing analytics to small business
Absolutely. That's kind of a grayer area than I was talking about, but also an important (and unfortunately common) problem for a lot of industries.
An airfoil (wing) creates lift when air flows from the leading edge to the trailing edge, and the speed of this airflow is one of the factors which determine how much lift is generated. A strong tailwind will interrupt the airflow, induce turbulence and decrease lift. Thus, an airfoil moving into a headwind will generate greater lift than one moving through a tailwind.
One Year Later, the Results of Tor Books UK Going DRM-Free
>What do you mean "allow him"? Lawyers do not make decisions (or at least, should not).

He means the obvious "strongly advise him not to do it", in effect stopping him saying anything.

You over-thought that response too much!
Totally agree. At best this rebase talk is navel-gazing, and at worst it's a technique that turns Git into a complicated, scary place for those just want to get work done.

I have introduced git and hg to many people, but I've always tried to tie it into what people do already. Without source control, practically everybody did the same thing: They'd work a little bit, they'd save, they'd work a little bit, they'd save... etc. Using branching for organizing work and a nice cheat-sheet of a few git commands, most non-technical people will be off-and-running.

It all works until the programmers make it complicated with the rebasing. The price of the tidy commit history is the loss of confidence of the rest of the team. I'd rather have the people.

Case in point: https://vimeo.com/60788996
Didn't realise the ISS was the size of a football field..
Not really a brain teaser: the only case being the default, and the rest simply being labels, makes for a very straightforward program.
Why galaxy disc width blows up between 217GHz to 353GHz? It look there is far more invisible matter(?) around galazy when you move to 857GHz.
> The guy hasn't worked there full time since 2006, but Opera has decided to seriously fuck up his life.

That's an interesting reading of the former employee's story. According to his post, he entered into a consulting agreement with Opera in 2009 and between 2009 and the time his agreement was terminated in late 2010, "some of my design proposals will naturally be based on some of my older GB concepts."

I don't think anyone has enough information at this point to pass judgement on the merits of the case, but at a minimum, this looks like a pretty good example of what can go wrong when you involve ideas you've developed on your own in a consulting relationship, particularly when there's a chance you may want to further explore those ideas after the relationship ends.
And how much effort is Microsoft willing to dedicate to fix your Ubuntu/MySQL/PHP stack?

It's only a single vendor solution until you introduce a second one.