skysight-inc/HackerNews huggingface dataset:
Chelsea vs Bayern Munich live streaming
Match schedule:
Uefa Champions League
Final
Date: Saturday, May 19, 2012
TIME : 18:45 GMT
LOCATION: Allianz Arena
Watch Chelsea vs Bayern Munich live streaming online.
"There is nothing wrong with that actually."
Well, they include these adaptors with iPhones and iPads. Only iPod touch users have to buy them, or those iPhone/iPad users who broke theirs! I had iPod touches for 2.5 years and never needed to charge them using an AC power adaptor, and now that I have and iPad & an iPhone, I still rarely use them. So your calculation of a $3B margin is off by (almost) two orders of magnitude.
"and the impact on the product it's possible to have as an intern at a company where the only difference between you and a fulltime engineer is age"

I think, and I speak as someone who hires the technical interns for my employer, that an internship where the only difference between you and the fulltime engineer is age isn't a good internship.

A good internship program is something that goes beyond just 'doing the day job'. There are far too many companies that treat internships as 'cheap labor' - this is particularly true in the UK (my office is in London, although my interns come from the US due to alma matter connections) where internships are not as established.

It's more nuanced than 'don't take the highest offer' - really, the advice should be 'take the internship that will offer you the most valuable experience'. Acting as a cheap source of labor can certainly form part of an internship...but I really don't think it should be the overarching goal. Perhaps this is why Google's internship programs are so successful and sought after.
The problem with roundabouts in the US is that they're often added to intersections that were originally not sized to be large enough to accommodate them properly. They're also more expense to install than four signs.

I agree I prefer a roundabout to a four way stop.
Can you provide further reading where OP fell short?
To me it all seems like part of the same problem: some banker pulls a number out of his ass as "the price". There should be an auction or market of some other kind to determine the price, because... well, markets are a pretty good mechanism for determining prices, usually much better than any one individual or small group.
So, going from zero programming knowledge or experience to this in 3 weeks? If that is the case, it's pretty amazing. I would never have pegged this as a 'first app'. Great job.
Pagoda Box having problems creating empty PHP repos. This will help.
> A professional user who got a degree in this subject can simply do literally six and a half times as many things on an Android or on a Linux desktop than with an iPhone or Mac OS X.

They offer degrees in using a smartphone? Amazing that I've been able to get along with one for so long.
Facebook now have a lot of very difficult technical problems to solve and are doing a great job solving them. But what got them here wasn't a great algorithm, it was good execution on a fairly simple concept.
Marketing in today's changing world
"If Edison had a needle to find in a haystack, he would proceed at once with the diligence of the bee to examine straw after straw until he found the object of his search. ... I was a sorry witness of such doings, knowing that a little theory and calculation would have saved him ninety per cent of his labor." -Tesla
I disagree strongly; there's a lot of gold in HN's archives. Some things don't change, or don't change that quickly, and there are some topics (even in the young field of CS) that are classic, and some great discussion has already taken place on HN about them. Why do you think that doesn't matter? HN isn't even that old.
You could also use the ,= operator, of course:

varname ,= [...]
Let me know when you've deployed next round! @rolandal
"P problems are in fact contained within the set of NP problems i.e. non-polynomial time solutions exist for P problems. However, all problems in NP may or may not be in P."

Yes, P is in contained in NP. However, the reason is wrong. It is contained in NP because any problem in P is verifiable in polytime (i.e. by actually solving it).
Hey thanks for the comment! I don't think I ever said that NP was an abbreviation for "non-polynomial" although I guess that could be inferred by a reader since I never explicitly said what it stood for.

I did kind of address the deterministic vs non-deterministic aspect of P v NP in the P.S section without explicitly naming the terms I was talking about. I can understand what you're saying and you're right I chose to leave some things out to make it more digestible and because I felt like a rough knowledge of the concepts was enough to understand the larger point.
The class action over the mag-safe connector shows that the strain relief was inadequate.
Smartphones Reignite the OS Wars
Plugin Directory Refreshed
This is one of my favorite comments of all time, from mahmud. I've had it bookmarked for a while. The context isn't really important, because I think it was slightly OT comment. It's basically a suggested curriculum for studying Lisp implementation:

http://news.ycombinator.com/item?id=835020
This is great! I hope you're planning on at least charging for the "Team" feature.

Project management / todos / time tracking / and so on are often chided as being oversaturated markets. The fact is: lots and lots of people need these things, they can help increase people's income and happiness, and there's no "right" way to do it. Todo list apps are one of those arena's that can do very well financially if you target the right kind of user.

(Even if this really never makes you any money, and considering this is what you've been able to do without much real world experience, you will have no issue finding work.)
I edited that part out to be safe. But I'm curious. I was trying to explain why P problems were in NP and my off the top of my head reasoning was that deterministic non-polynomial time solutions exist for P problems as well as deterministic polynomial time ones.

If that's not why P is contained in NP, what's the real reason?
What is the best way to find the gold? Looking for an efficient way to find the good content from days of yore.

EDIT: Other than Ask HN Archive, mentioned above.
The brain not 'using' all of it all the time is a measure of power conservation, not of what could be if you lit it up all at once.
Wether this is the fastest way to make games or not, the demand for HTML5 game engineering is gaining traction in several ways. HTML5 framework makers are promising one time develop and multiple platform deploy, which in theory sounds very nice. And 'optimist' game developers are really having fun using their already mastered web standards skills to create one page games. Why is there so much interest?, you have to wonder. I have these assumptions.
Nestlé + Greenpeace: A Model for Sustainable Sourcing of Palm Oil?
> In Chicago I've almost never seen a cyclist stop at a red light or stop sign.

Then you're not paying enough attention to cyclists. Stop and take a deep breath before you kill someone.
This is definitely an interesting post. I'm curious how non-technical positions measure up in terms of summer pay per month.
i think the point factorial is making is: this doesn't account the hours, and input one puts in, but it's just straight out how much for same position (not same job).

but i paraphrase
Till now I had never seen Ellipsis. It seems very similar to slice notation [:]. Found an StackOverflow comment [1] that has more details about usage of Ellipsis in slicing higher dimensional array numpy.

[1] http://stackoverflow.com/questions/118370/how-do-you-use-the...
I don't have a silver bullet, but if you have a topic you're interested in, the search provided by Octopart is very good (bottom of the page), and it's not that time consuming to dig through the results. That's how I found mahmud's comment on Lisp compilers, because I was looking for discussion on HN about it.

Obviously some topics are harder to search for (for instance if you wanted to read about what HNers have said about Techcrunch over the years) but for the good and classic stuff (programming, math, etc) I think this works reasonably well.

It would actually be really cool to see what HN threads are linked to the most from HN. I bet that would be a decent way to find gold, especially on stuff you weren't specifically looking for.
halve_evens_only = lambda nums: map(lambda i: i/2, filter(lambda i: not i%2, nums))

I still find it rather silly that python doesn't supper a nice list map/filter; it could be so much nicer

nums.filter(lambda i: i%2 == 0).map(lambda i: i/2)

If they did, even including the annoyingly long-to-type "lambda". List comprehensions are cool and all, but do not really scale visually (i.e. get rather messy) when you have more than one map and filter step.

These arbitrary break-away from OO method style into module+data style (len(L) is another!) are one of the things I hate most about Python. There are some reasons for doing so, but a pure-OO (like Scala) or pure-method+data (like F#) would have saved me many a runtime error.
I've been known to do this when there aren't any cars on either side of the stop light, and the light is known to ignore cycles. Other than waiting a random amount of time for a car to come along and trip the sensors, my only other alternative is to go up to the sidewalk and trigger the crosswalk signal - which may be more correct behavior from a legal standpoint; but is not as efficient as me making a U-Turn which I can do much more safely and efficiently than a car can.
Dvorak flagged on principle.
A good article, thanks for writing it.

I'm not convinced that a majority of cyclists understand that they have to follow the same rules as motorized vehicles. It's unusual to see the driver of a car blast through a stop sign without slowing down at all. It happens, but not that often. On the other hand, it's unusual for me to see a cyclist who doesn't run stop signs.

I can see why: because you're going slower and have a full view around you. But that's still not an excuse if you're going to play the "cars and bikes are both vehicles" card.
Startups vary. Just because the majority of startups on HN are making web apps at medium scales does not mean everybody is.

I've looked around at a bunch of internship and the most technically interesting ones have all been at startups. Now, I have to admit that the majority of startup internships I've seen have been in the bland web-based software category. And, perhaps, larger companies have more technically challenging internships on average.

However, average is not what you should be interested in. And the exceptional startups I've seen are more exceptional than what you would do at a bigger company. This makes sense--there are more startups, they are more varied and less conservative than bigger companies and they cover more niches, so the variance in technical difficulty is going to be greater. Bigger companies also have more friction: existing processes, gigantic code bases, very specific requirements, large investments in existing tools...

Also, it's much easier to find startups in your particular field of interest. I've talked to companies doing interesting work in machine learning, bioinformatics, robotics and even type systems (I haven't seen any interesting work with type systems at big companies at all). And these are just things that happen to interest me in particular: there are probably interesting startups in whatever field happens to interest you as well.

So I think startups are actually rather good for doing something cool and novel, especially if it's something off the beaten path. You just have to find the particular awesome startup that interests you rather than joining another web/mobile-based company.

Now, there are some advantages to seeing how a bigger company operates as well. Understanding how to organize hundreds of programmers, maintain gigantic code-bases, use significant resources efficiently and survive in a larger corporate setting are all very important.

Spending at least one summer at a bigger company would be is useful if only for these, just like spending time at even a technically boring startup is great for the non-technical reasons you listed. But for learning technical skills, especially more specialized and advanced ones, I think a startup (but not just any startup) is a great choice.
Police work and retail work are not the same thing, not even close.

Nor is a highly dynamic and dangerous street environment, and a highly controlled and procedural court environment.
Wow, man. Did a Lisp eat your cat or something?

Maybe you didn't, but a lot of people saw the Light Table demo and thought, "If that thing works right it looks like it might cut my workload in half." This would be the reason (you may have heard) they've raised a few hundred thousand in pre-orders in addition to funding from the most prominent startup accelerator in tech.

Okay, so you don't buy the hype. Bully for you. But "a really lame conspiracy theory"? Presumably, not only would Viaweb have been as dominant were it written in C, but 37signals would have been more successful sticking with PHP instead of wasting time writing Rails, and if all your Emacs users switched to using Notepad, it wouldn't cost the company any money.

That sounds pretty realistic.
I read the abbreviation from both the footnote ("... NP problems i.e. non-polynomial time...") and the text (" Problems in NP are not known to
be solvable in polynomial time. " ... actually they're non-deterministic polynomial).

Anyway, you're very close. If you find a way to weave in that missing aspect you'll nail the subject.
Korean and Russian scientists plan to clone woolly mammoth
I think those glasses will be able to decipher text directly.
Yeah. In Europe, cars treat bikes like vehicles, and bikes treat cars like vehicles.

In America, bikers simply do not follow the laws they are supposed to - and neither do cars. It's not really a "bike is victim" paradigm - it's more like nobody pays any attention to the god damn laws, at all. Because the fucking cops don't enforce the rules!

They give tickets to speeders and red light runners but NOT - NEVER, in fact, to people who don't signal when turning or changing lanes, people who drive too slowly in the fast lane, people who pass on the right, people who stop in the middle of the street to wait for a parking spot, people who do not use turn lanes appropriately, people who stop at yellow lights, people who drive too slowly, people who do not yield to pedestrians, people who block driveways, people who turn left or U-turn illegally, people who ... the list goes on for miles.

Bicycle riders make all these same mistakes as well.
Since a problem in P is can be solved in polynomial time, then a solution to it can be verified in polynomial time. If it can be verified in polynomial time, then it is in NP. It's this simple.

However, it has nothing to do with "non-polynomial" time solutions, as you originally stated. NP and non-polynomial doesn't have a correspondence by their definitions.
Try "TeamDoIt"
Clojure Tip: defstruct, deftype, defrecord
But that's not what this Node.PHP is targetting for. It's PHP rearing it's head again, at the tip of the wave. And when that happens, shouldn't we all just come out and say 'burn it to the ground?'

But why? What harm does it give you to have another incarnation of PHP? Does a kitten die if someone writes any loc with php?

If so why don't you go after Facebook and damn their hard work on HipHop? Why do so many engineers still work on PHP at Zend? please let it go.

You may not like it. If so *you can just stop using it".

This is some kind of saying:

"I don't like latin, so why on earth people still writing books on it? Why even they teach it at schools? Why do doctors still practice and learn it somehow? Just let it go die?"
This is the best HN comeback of all time: http://news.ycombinator.com/item?id=35079
I really like Anonymous Pro, 11pt font, 0.9 linespacing on my 1440x900 mac. Looks good with light AA

http://www.ms-studio.com/FontSales/anonymouspro.html

edit: it sort of has serifs. kind of. well more than most sans fonts
How to Hack on Google Hangouts With a Local Workflow
You did a fantastic job! Two questions:

1. What resources did you use to learn PHP/MySQL/jQuery in three weeks?

2. How are you handling passwords in the database?
Generally, most use this:
freqs = {}
for c in "abracadabra":
try:
freqs[c] += 1
except:
freqs[c] = 1

Who does this?!
Trailing commas are a bit subtle and readers of the code may think it was a mistake. (We spend more time reading code later than writing it in the first place.)

Even Python removed one of its most prominent cases of this, the print command. In Python 2.x you could have a trailing comma after a print to omit the new-line but Python 3's print() function requires print('something', end=' ') to be more explicit about it.
I've done C++, Java (servlets and JSP), some Ruby, Perl. I keep using PHP, it's really not a bad language if you use it properly.

I really wanted to try Python, I've heard many good things about it, but it's another one of those slow interpretive languages.

I'm thinking Go will be the next one I learn, it looks like a sane alternative to server-side C++.

http://shootout.alioth.debian.org/u64q/which-programming-lan...
90% of me thinks that maybe 70% of the figures you quoted are 40% pointless.
Thanks! I removed the part from the footnote, and added " solvable in polynomial time by a deterministic machine."

Still thinking about how best to explain determinism vs. non-determinism but perhaps that's best left for another post. Thanks for pointing those things out :)
It's our nature to accumulate junk. I mean, we are at least better than blind evolution, 98% of DNA is noncoding junk.
Amusingly, I used to be :).

Also, Perl's philosophy is actually not that far from Haskell's in some ways: Haskell embraces TMTOWTDI and tends to favor more concise code.
I mentioned earlier that I found the GHCI use-case extremely useful (see my root comment after EDIT). But I have an issue with the uses like turning off the typesystem and have the project compile just so that you could feel good about yourself. I don't believe that would help your bottom-line. But, as long as I don't have to work with you or your software, I don't care.
And, large refactoring efforts are necessary in every complex and evolving system, irrespective of your language of choice -- but turning off your type checker or any other static guarantees isn't the way to go. Programming is hard enough even in the presence of type-checking and automated analyses -- why make it even harder? Anyway, I feel like I've made my point enough -- take it or leave it.
I wish I could up vote twice. No thrice, no 4 times..
Generally most use this:

freqs = {}
for c in "abracadabra":
try:
freqs[c] += 1
except:
freqs[c] = 1

If this is really the common idiom, I'd say this is a sign that professional programming has yet to fully mature as a field.

Some may say a better solution would be:

freqs = {}
for c in "abracadabra":
freqs[c] = freqs.get(c, 0) + 1

Okay, so I understood immediately what was going on with the 2nd bit of code.

Rather go for the collection type defaultdict

from collections import defaultdict
freqs = defaultdict(int)
for c in "abracadabra":
freqs[c] += 1

As a non-pythonista, the 3rd bit of code, I had to Google "defaultdict" to figure out. It's only a couple of seconds to Google, and a professional should know this tidbit, but it seems like premature optimization to me. This brings to mind this post:

http://news.ycombinator.com/item?id=3995185

As a programmer, one's most valuable resource is brainpower. Supposedly, a programmer's most important goal is writing clear code. Look around at what goes on in our industry. There's a lot of our most valuable resource spent on showing off our cleverness, not directed towards the clearest code. To me this is like spending money to show one can spend money or playing an instrument to show off dexterity instead of producing gorgeous sounds.

(I think this starts in school and other environments where one is motivated to show off one's coding chops.)

Most of the complexity in our field accrues like litter: a bit here and a bit there. I think it says something about the culture of the folks who live there.
To the cyclists among us, how do you overcome the fear of riding in the middle of heavy trafficked roads during rush hour? This is very common in the Seattle area and almost as common in Dallas.
Also, the article's description of the traveling salesman problem is a completely different problem of finding a http://en.wikipedia.org/wiki/Hamiltonian_path .

http://en.wikipedia.org/wiki/Travelling_salesman_problem
Here's a rare example of obfuscated python, deceptively called "Python's Ellipsis Explained": http://blog.brush.co.nz/2009/05/ellipsis/
I came across a very good text in 2008 from the time when there was a lot of confusion whether simulated annealing had cracked it. Someone had gone through a lot of trouble to explain p vs np and the position of sim. annealing with respect to complexity theory. Should be on my computer at work (currently on mobile) .
Probably best not to use iteritems, in python 3, it won't be there, "the dict.iterkeys(), dict.iteritems() and dict.itervalues() methods are no longer supported."
This reminds me of a trick for finding spelling errors I was taught in elementary school: read the text backwards. It's basically the same principle.
My favorite part is that he opens with two lines about what he hates about Facebook IPO stories. The rest of the article is, then, exactly one of those articles.
Awesome work. I just registered.

In the UI, it would be helpful if a user's email address is shown in the top right or somehow otherwise provide (obvious) confirmation that the registration worked.
"If, for instance, you are behind a cyclist and approaching a stop, passing the cyclist likely will gain you nothing. In fact, you may end up passing the cyclist twice: once before the intersection, a second time after. Which, let’s face it, is going to annoy you."

Speaking as a cyclist, I hope not -- that means the cyclist has advanced past a car in front of him in the lane, which is a stupid thing to do. Either own the lane and be a vehicle, or get off the bike and on the sidewalk.
Immature programmers. It's analogous to musicians who play everything as fast and ornately as possible.
> It's more nuanced than 'don't take the highest offer' - really, the advice should be 'take the internship that will offer you the most valuable experience'

I will start by saying that as I understand it, we agree. Yield, by my definition with regard to choosing an internship is perhaps 20% pay (more significant if in a location with high CoL), 80% what you'll learn.

> an internship where the only difference between you and the fulltime engineer is age isn't a good internship.

Perhaps I should have clarified - an internship in which you are treated as an equal to FTEs is immensely rewarding. Not once have I felt as though I was merely a 'cheap source of labour', and I would certainly qualify every internship I have had as excellent. Every position I've taken has produced a measurable impact on my ability as an engineer and entrepreneur. The exposure to a significant number of different languages, frameworks, system architectures, and development practices has given me a modicum of wisdom beyond my years and made me aware of previously unknown unknowns.

The knowledge garnered of marketing, sales, product development, and analytics has been invaluable, and the talented designers I have had the pleasure to work alongside have certainly inspired me to appreciate and strive for an incredible user experience. Had I been given wholly insignificant projects, excluded from meetings, and treated as half-as-productive (even when I was) I don't feel the effect would have been half as great.