skysight-inc/HackerNews huggingface dataset:
I have no idea if that is correct, but my initial intuition was that it would be a high percentage like you found. However, now that I'm thinking about it, I believe the answer is closer to 50%.

When passenger 100 begins to board, there are only two possible configurations he can find the seats in: seat 1 available or seat 100 available. If Passenger 1 sits in seat 100, then passengers 2-99 will sit in their correct seats, leaving only seat 1. If passenger 1 sits in seat 1, passengers 2-99 will sit correctly and leave only seat 100 for passenger 100. If passenger 1 sits anywhere else (say, seat 50), passengers 2 - 49 will fill correctly, passenger 50 will have to sit in seat 1 or 51-100. The moment a passenger randomly selects seat 1 or 100, the remaining passengers will sit correctly (except for passenger 100). It is impossible for any seats other than 1 or 100 to be left for passenger 100 to select.

From looking at it, I don't believe there is any bias for the end configuration to leave seat 100 open more than seat 1, and I believe that in an interview situation, you would be expected to intuit this by "talking it out". If I'm right (and I could still be very wrong), this is more of a probabilistic brainteaser than a programming interview question.
From my recollection of randomly curling sites to look at their headers, many sites don't respond to HEAD with a valid content length for web pages (presumably because their CMS doesn't bother to generate the page for HEAD requests).

Quickly checking with curl -LI www.google.com www.apple.com, I see neither of them do. And weirdly, it looks like Cloudflare chops it off all the time.
I actually worked on the project on which the graphic in the Atlantic is based (and which, in turn, this piece is based on). We came up with different percentages because we are looking at a wider swath of spending than this piece is. But here are our numbers for food spending (in billions of 2009 dollars):

1947: 468.7

1967: 637.1

2007: 1,230.2

You might conclude that we are spending dramatically more on food all around, but keep in mind the population of the US in 1947 was less than half what it is now, so those numbers aren't quite as dramatic as they appear. All indications are that on the whole we have much better access to high quality food now (we have more access to things like fresh fruit, and wine), though this is not necessarily true if you are poor.
Perspectives on Failure
I do something similar with Alpha Centrauri. Especially if you play University or the Cybernetics, the idea of advancing tech to restart civilization on a barren planet, the writing and the speculative technologies motivate me to want to go make something.
How do you wind up with a 1.5gb binary? That's incredible -- especially considering all their static assets are on their CDN, so this is basically their code and all the libraries they're pulling in.
Goldman Sachs 20 Best Stocks
>Apple apps (like Safari) can obviously do JIT compilation.

I hadn't considered this before, but that means that you could potentially use JS as an intermediate representation for other languages in order to leverage Safari's JIT under iOS. Probably too inefficient to be worthwhile for any language that isn't a dialect of JS, but an intriguing concept nonetheless.
I have to admit, I can't really get so worked up about this. It is just a video, for all I know they made it over the weekend for fun.

Maybe I can see it calmly because I am not much of an early adopter. We are surrounded by bullshit claims 99% of the time in this day and age. So I tend to just wait what materializes.

A video like that merely provides some amusement to lighten the day. I am not holding back my order for iGlasses now, because I am fixated on Google glasses being better and I believe because of the video that they are just around the corner. I just lean back and muse about the possibilities.
Restrictive is primarily the case because they don't allowed DRM binaries to be used. The LGPL doesn't have that flaw.

You can't use GPLed code on Apple, Nintendo, Sony or Microsoft gaming platforms due to the binary copy restriction.
Odd it's all around the Oil and Natural Resource Industries, you think they would look at more Tech.
Sheryl Sandberg Leaves Work at 5:30 Every Day — And You Should Too
If you want a more nuanced discussion of the topic, check out the recent talk by Dennis Meadows, the originator of this chart. This is from an event by the Smithsonian commemorating his book, "Limits to Growth":

http://youtu.be/f2oyU0RusiA?t=5m45s
I believe having classes available on systems theory, data structures and programming can enrich a lot the experience of some students, it enpowers them to use computers effectivelly. I have a similar feelings towards statistics.
How the prestige game costs students more money for a lower-quality education
US students need new way of learning science
Glassdoor doesn't seem to give me any salary results for "data scientist" in NYC.
Very much looking forward to the rest of the posts, and the release of these projects :)
>Is the life of a "mature" individual necessarily more worth

No, but a mature individual is more likely to make rational decisions leading to achievement of their goals.
مسلسل وجع الانتصار 
مسلسل وجع الانتصار

مسلسل ,وجع ,الانتصار

http://video.qlbak.com/category188
Or who code for the Xbox, Sony, Apple or Nintendo platforms, where you can't turn off the DRM on your binary, so can't use GPLed code in your project even if you release the entire project as source/art/whatever.
My insurance (healthy young family of four, $1K deductible per person) costs me 12.6% of my pretax earnings, not including what my employer kicks in. It was over 14% before my last raise, and it would be even higher if my company hadn't aggressively shopped around among several insurers. That's for me as an engineer making almost 100K. What about the guy making $70K with a family of four? It is a huge drain.
Having read HR3606, so many existing requirements to comply with Sarbanes-Oxley and SEC regulations are eliminated for "emerging growth organizations" that there will be huge amounts of fraud. Not all "emerging growth organizations" will be fraudulent, but this makes it far easier to get away with.
Building a bookmarking service with python and phantomjs
The Startup Fog
How Twitter Makes the Internet More Local
It's sad to me only one person here seems to "get" his point. When I search for something, I still tend to have to open four or five pages to get the answer I'm looking for.

"javascript remove part of an array"

Why when I "search" for that, do I have to parse, in my brain, titles, descriptions (and so on) just to get my answer? I've searched for this a few times before,I know, because I'm terrible at remembering particular functions across languages.

Why can't my browser know when I've found the answer before? Hell, why can't my browser even offer me an option to remember that answer. I'll be happy to highlight it for it, but it's clunky and clumsy with a dumb bookmark. No nuance. Nothing was solved. And god forbid I bookmark every answer I look for; try searching through that.
Formalized Denotation of Sarcasm and Rhetorical Questions
Maybe they ment to say 'NoDatabase' database instead? ;)
It would be interesting to see how total income is allocated. That would include income taxes, debt payments, and other things that aren't purchases.

Also, I think it's interesting that recreational spending has increased very little. Are we already saturated with all the recreation we want?
And it's other people's prerogative if they choose to not use that code due to the license.
Still no Verilog or VHDL yet? If there aren't any when PAX is over and I have spare time again, I might have to fix this.
Show HN: Tiny.Cat - URL shortener that makes it obvious who created it.
I know a lot of people who would have benefited from being exposed to the logical kind of thinking neccesary to programming. I don't think learning to program neccesitates that you will also become a critical thinker, but I really think it would help. I feel America is becoming a superstitious backwater and anything that combats that has my vote.
Here's a good article to read on the subject http://www.washingtonpost.com/opinions/a-welcome-rise-in-man...

In summary US manufacturing output is increasing and US manufacturing output exceeds that of China by about $100B, but only employs about a tenth as many workers as China.
>> Using a method that is called on self in a class, don’t use self.method_name when just plain method_name will do. (loc. 1500)

I don't have the book in front of me so I don't know what the context is, but this strikes me as something as barely worth highlighting, other than to show that you grok Ruby's method chain.

Some programmers would argue that using self.method_name helps clear up ambiguity to humans who read the code, even if it is equivalent to method_name
I wouldn't dismiss it that easily. Legislation like this helped to fuel speculation on real estate. The average person became an investor in a specific asset class. The JOBS act could do the same thing with start-ups.

The potential benefits you mention will probably materialize. But seeing as this is an economic issue, we have to look for what the tradeoff is.
Do we even have the affordable housing & mass transportation required for something like this anymore? The 'FoxConn cities' in China look a lot like the old factory towns in the United States that have mostly disappeared. Even with the huge number of home foreclosures most cities simply do not have affordable housing for an influx of even 100,000 people. Most cities don't have the mass transit capacity to carry them to work. They don't have room in their schools for tens of thousands of new students. They could be built of course but it's not a turn-key solution the way it is in China. If Apple started the process today I bet it would take 5-7 years at minimum.
Large Hadron Collider turned back on
I've done this twice with GPL code, when I was writing a library and/or library bindings that I specifically wanted to be available for use by all developers, including those working on proprietary products. Both times I've been turned down. One of them was a abandonware. Great C code that the author explicitly disowned. Now it will bitrot.

On the other hand, I have asked several developers who released code without a license if they would mind licensing their code under a permissive license, and each time they have been glad to do so.

Just some anecdotal data...
Don’t Be Evil: How Google Screwed a Startup
They're extensively used in particle physics as a method of performing multi-variate selections of data. It's a common case that we have a large data set which contains the signal we're looking for. Each entry in the data set will have a large number of variables, some of which will provide some discriminating power between our signal and background. By training a neural network to use those variables to tell the difference between signal and background we can extract the maximum efficiency from our data.

Of course we could use any other multi-variate method (boosted-decision trees are popular) but neural networks are becoming more and more common.
"As more startups are created and salaries rise, more people will choose programming as a career and balance out the wage inflation."

I beg to differ. Have you met a high school student or college student recently? ;)
In the interest of completeness (not in the submitted list yet):

https://github.com/severb/0x10c-asm

https://github.com/tscho/dcpu16-js

https://github.com/M4v3R/dcpu16.go

https://github.com/fbulens/dcpu16-js

https://github.com/AlexNisnevich/dcpu16-assembler

https://github.com/itsbth/DCPU.coffee

https://github.com/isamgray/DCPU-16-CPP

https://github.com/judofyr/rcpu

Not projects on GitHub:

https://gist.github.com/2308725

https://bitbucket.org/1player/godcpu16

I may have missed some projects/gists, but I'm sure they'll find their way here.
The need for this came about because I've started to distrust bit.ly links on Twitter. What if you could see one and instantly know the original owner, so you wouldn't be afraid of hitting malware? Tiny.cat still lets you shorten anonymously, however the real benefit is after you register your tiny.cat/username.

Anonymous links: http://tiny.cat/to/anonymous_link

Registered links: http://tiny.cat/ayumi/link_text_here
I expect you end up with that when you decide that you never, ever want to have to resolve a problem with an executable and a dynamic library having incompatible versions.
Regardless, thank you very much. Generally there is no 100% perfect solution but a copy&pasteable solution to this issue is the kind of thing I love to come across on HN.
There's a fix for one of those.
Preferences -> General -> Don't load tabs until selected
> both parties do not see each other, but what the other is looking at.

That sounds like a fun way to induce vertigo in your conversation partner. I get nauseous watching people play first-person-shooters on large televisions, I could not deal with following alone with someone's bobbing viewpoint.
The CEO, bradfordcross, is amazing at distilling good engineering to principles. Software engineering for hackers.
Any chance of getting back contents of Bradford's old blog http://measuringmeasures.com/ ? There were a few brilliant articles on becoming data scientist, learning statistics etc. It would be much appreciated.
A Positive Customer Experience Can Increase Your Revenue
That's what they tried to do indirectly via college students. Due to labor agreements with the union, everyone had to join, but most college students didn't stay on and pay the full union dues when they knew they'd be heading back to school. Every hire had a 3 month probation period, but they couldn't just hire a ton of people every summer and systematically terminate their employment after the 3 months when the summer was over.
Some good points here. There are a lot of variables however, Boeing has run into the problem of the bullwhip effect too with the Dreamliner: http://articles.latimes.com/2011/feb/15/business/la-fi-hiltz...
Yeah, sorry, these hits were some other scientists.
So what is the pay like in NYC?
There's another, perhaps overlooked, place that does exactly what the author proclaims as China's manufacturing advantage (proximity, flexibility, etc). And it shouldn't be surprising: It's Toyota's auto manufacturing empire in Aichi Prefecture, Japan.

Aichi is only 2000 square miles in area[1], and Toyota's supply chain is concentrated on its Eastern half. It takes less than 1 hour by car (or more relevantly, by truck) to travel between all of the major players in the supply chain (Aisin, Toyota Industries, Denso, etc). Of course, all of Japan's manufacturing is in Jeopardy with increased manufacturing costs and the strong yen (which are analogous to what HN posters here have discussed as distinct Chinese advantages over US manufacturing).

Another place that I suspect has a similar centralized, flexible manufacturing ecosystem: Germany's auto industry (with the granddaddy of all industrial suppliers, Bosch, situated right in the middle of it all).

[1] http://en.wikipedia.org/wiki/Aichi_Prefecture
I don't think 'giving back' is the only practical difference with the GPL even if you open source your own code and hand it out freely.

The FSF's position as of November 2010 is that you can't comply with the GPL's terms if you distribute that code as part of something else on the iOS app store.

http://mailman.videolan.org/pipermail/vlc-devel/2010-Novembe...

Perhaps that has changed, but I doubt it. Binaries are still encrypted, still tied to a specific account, and still can't be re-distributed as the GPL specifically requires, because they won't work.

I don't want to argue the commercial vs open, 'stealing code' vs giving back thing all over again, those are just the facts. According to the people who wrote the GPL, it can't be used on the App Store, so I avoid it when working on something for that platform.
Mahout at Twitter
Can ContactMonkey solve contact sharing with the mobile web?
Heh, this is why no one trusts Goldman Sachs. When America will probably be oil/coal/natgas free by 2040, why would you ever invest in a dying industry?
I wonder if (when?) it will become socially acceptable to wear masks in public. Or perhaps something like this: http://cvdazzle.com/

Or perhaps a combination - a semi-transparent mask that constantly displays shifting patterns, like Rorschach's mask.
That binary includes the static assets. They're the origin for the CDN.
Future Drama — a collection of videos about the 'future'
The original article is a little inconsistent, focusing on self-oscillation (bullwhip effect), but driving the point home with response time to changing requirements.

Adding bandwidth and damping lessens the bullwhip effect so it isn't the show stopper. It's the response time to changing requirements that's the hard part. If the specifications of a screw need to change and all similar screws are produced in China, having a distributor already stocking (productionUseRate * leadTime) quantities of previously-unneeded types of screws is going to cost a lot more when leadTime includes crossing an ocean. Pretending that the distributor can solve this problem is going to (at best) cost you up front or (worse) end with a large delay as it turns out the distributor doesn't really have that many unallocated screws of the newly needed type. (Actually, connectors are a much better example than screws)

And no, nothing I've said has anything to do with nationality, but everything to do with relative age of economies, their levels of ossification, and fundamentally failing to see through abstractions to underlying realities.
Its 50%.

For 3 passengers the seating possibilities are
{123,213,231,321}, so 3 gets to sit on seat 3 50% of the time.

For 4 passengers the seating possibilities are
{1234,2134,2314,2341,2431,3241,3214,4231}, so 4 gets to sit on seat 4 50% of the time.
From there you can do a proof by induction.

If you like code:
----

import util.{Random=>rng}
import collection.mutable.ArrayBuffer

object passengers {
def main(args:Array[String]) = {
val n = args(0).toInt
val simulations = args(1).toInt

val happyLast = (1 to simulations).map(_=> {

val seats = ArrayBuffer.fill[Int](n+1)(0)
val taken = new ArrayBuffer[Int]
val all = (1 to n).toSeq
val seat = rng.shuffle(all).head
seats(seat) = 1
taken += seat
(2 to n).foreach( p=> {
val seat = seats(p) match {
case 0=> p
case x=> rng.shuffle(all.diff(taken)).head
}
seats(seat) = p
taken += seat
})
seats(n) == n
})
println( happyLast.filter(x=>x).size*1.0d/simulations )
}
}

-----
>scala -cp classes passengers 100 100000
>0.4997
Good god. Bothered me so much I had to blog about it.

http://robertelwell.info/blog/search-haters-gonna-hate/
Cheap Discount Converse Sandals online sale
We provide Cheap Discount Converse Sandals Shoes online sale,You will have many chances to choose the new style converse shoes about Converse All Star shoes,Converse One Star and so on.We also provide many kinds of Adidas Jeremy sccot shoes,you are worth having,come on.
Search Haters Gonna Hate
Great idea to use Mixpanel events for implementation. Much easier and quicker to implement for the majority of sites.
That's the MIT license.
Not where I come from it isn't.

I'm working class, I come from a pit village in N. England, my father was a miner, my family were miners or steelworkers.

I now have a PhD in physics and work in aerospace, but I'm still working class! And for most of my life (certainly my academic career!) I was poorer than most working class people with union jobs on assembly lines.
Not only salaries, but also benefits. I think Health Care Insurance (that the company provides)is often overlooked. American Health Care cost for businesses has increased a ton over the last few decades.
Appliance of Science: There's a strong correlation between comedy and nerdiness
I've never heard of BugHouse until just now, but I love it.
The implication of your comment is you eat out 3 (or more/less) times a day, 7 days a week? Out of curiosity, what kinds of foods are you buying? How much would you say you spend a week on food?
Facebook's `download your information` has been down for days
pretty good. you see it when you want to see it. hard to explain that more clearly. The speedometer is white text, so when driving over very light colored ground, it's hard to see, like inside a concrete parking garage. But on asphalt or dirt, it's easy to see.
Convert font to a series of PNG images
Pushing updates is slow for a reason - it's because Apple wants to approve everything.

I don't mean to sound negative but I see two scenarios, non of which is great:

1. You become a huge success and Apple is unhappy about people avoiding their scrutiny.

2. Apple doesn't mind you because you have limited traction.

Having said that, I love the way you implemented it. Very clever!

Good luck!
5000+ Artists Line Up For a Pirate Bay Promotion
False analogy.

"weather forecasting" involves fine-resolution (in both space and time) predictions. This is known to be difficult to do reliably ("butterfly effect").

This is more akin to climate analysis: low-resolution in space (continent-scale instead of ZIP-scale) of and time (decades instead of 24 hours). Much more amenable to statistical modeling.

YMMV.
Great Programmers Don't Trust Their Own Code
Great Programmers Don't Trust Their Own Code
This actually bit someone I know in the ass this year, somehow. His employer was withholding federal and state, but not city taxes. (I have no idea how this didn't happen to him last year, but he was shocked that suddenly he owed quite a bit.)
> "I would guess they are not taking into account employer contributions, as that is not money I as a consumer ever see in my paycheck"

No, but it's money that has a direct impact on wages and given the inconsistency of rates of employer contributions, it would mean that "What Americans Spend Their Money On" is not equivalent to "What Things Cost, That Americans Buy". Similarly not counting government payments toward health-care breaks that equivalence.

I wasn't trying to dismiss a potential usefulness of seeing where net consumer spending is going, on average. I was just responding to what I saw as a casual conflation between "we're not spending much more out of pocket" with "the price of healthcare isn't that big a deal". I saw the GP post as suggesting that large year-over-year percent increases hadn't amounted to a large net impact when compared to earnings. I may have misread that, but that's the implication I was responding to.

And there's simply no way 7% of net consumer spending is the right picture from which we can deduce the impact of health cost increases.
Some programmers would argue that using self.method_name helps clear up ambiguity to humans who read the code, even if it is equivalent to method_name

This is the reason I highlighted it. I had heard both sides of the argument from peers and was a little conflicted myself. Russ is simply the highest authority I've encountered to have an opinion on it.
I don't understand how anybody can complain that "restrictive" is a bad adjective for a license that contains hundreds of restrictions. "Freedom preserving" sounds a bit like Orwellian double speak.
I wouldn't be surprised if the offline simulation curtails your abilities somewhat, enabling a much lower CPU-effort simulation. We'll see, I guess :)

(There's also the point that a monthly subscription fee of $15 buys you a nice VPS slice these days. If you're willing to cut into the - significant - profit margin of MMOs, you have a lot of performance available for offline simulation. I'll stand by my judgment that it's a hard, but solvable, problem)
Why you are doomed to write massive amounts of content
He could just leave them alone and do nothing. It's their service and if they don't want to respond then let them leave the vulnerability open. It doesn't affect user privacy so there is no duty to fellow users as there is in some other cases where a vulnerability being left open means people could be losing private information on an ongoing basis.