skysight-inc/HackerNews huggingface dataset:
It's also important to remember that the Django ORM's select_related call only goes one way. Consider the case:

class Clan(models.Model):
...

class Player(models.Model):
clan = models.ForeignKey(Clan)

Doing Clan.objects.all().select_related() will preload all the Player objects associated with the Clans. Doing Player.objects.all().select_related() will _not_ select the Clan objects, and should you refer to them in any way, will result in a query per clan you access.

In my case, where I ordered a list of players by their clans, in pages with ~200 players, I was doing ~200 queries. Django provides a workaround for this (the {% regroup x by y %} template tag), and now supports doing joins in Python in 1.4 (I forget the call, however) so that the ORM can cope with this case... but this behaviour caught me off guard, and is something to keep in mind.

You're absolutely correct in that hand-writing the SQL would fix this issue too, but then, as you say, you lose database portability.
How Much is Facebook Really Worth?
How we use Trello & Google Docs to make UserVoice better every day
How? Your continuous integration system won't have this flag on, so their non-typechecked code will never reach production. What they do while developing is not much of a concern; this is simply a faster way to put "--" in front of a lot of lines of code.

This is not about making Haskell dynamically typed. It's about not type-checking code that never runs.
Probably the "start at six figures" part, which for most (non-CS) graduates is, at best, impossible.
I'm wondering how soon someone will push some code into production without writing unit tests because they can't be bothered to write unit tests.

People will write bad code regardless of language features. Ignore those people and worry about how people writing good code will use your new feature. If it saves them time, makes their life happier, or lets them write safer code, then it's a win. Similarly, if a feature helps bad programmers avoid today's bad-pattern-du-jour but prevents good programmers from writing good code, you should think twice before adding it. In summary: ignore bad programmers, they can't be saved by language features.
Doom tends to be fast and concentratedd. Goodness tends to be slow, steady, and diffuse.
Redundant Array of Independent Networked Storage (RAINS) © 2012 dhughes
I disagree. If you want your programs to be robust like that, you now have to check for every case where someone might pass in something stupid (dict instead of int, maybe?). Much better to catch errors further up the chain and keep your low level code simple (ie. pass me something other than an iterable and I blow up).

In the expensive case, I'd just calculate it once and store it somewhere (possibly as a lookup dictionary if there are multiple inputs) and access that from within the function.
Would this get him some form of immunity from civil/criminal prosecution? Would it apply internationally? (diplomatic or consular immunity)
Facebook CEO Mark Zuckerberg marries longtime girlfriend
Zuck gets married
What kind of Americans? Say they are a Sioux-Polish American from Chicago and an Irish-Mexican-Mongolian American from Houston, then yeah, why not call the kid Chinese. My mate was born on holiday in Australia and only lived there for a week, yet had to go through naturalisation over 20 years later to become the same nationality as his parents, as they had forgot to fill out the forms at the time.

So presumably Tesla was a Croatian-Serb, or possibly a Serb-Croatian, and whether or not those two groups get along doesn't really affect that definition. I mean, I fully understand that it is a touchy subject, but I don't really think that it affects long dead physicists very much.
Go Pavlov Yourself (conditioning yourself to code)
There is no single fault that can cause short between primary side of transformer and the output connector casing, so it's OK. Also, isolation distances on orders of millimeters are relevant for open air or PCB breakdown (with PCB-air interface having lower breakdown voltage than air or PCB alone due to possible water condensation) and not for isolated wiring inside transformer. It's pretty hard to imagine any failure mode that would cause short between connector casing without also causing breakdown between transformer windings. The whole thing looks slightly over-engineered (L6565 seems to me as a bit of overkill for this application), but safe.

It's interesting to note that most cheap replacement chargers don't have significant safety issues but produce harmful EMI, on the other hand it's not too hard to find name brand power supply which have significant safety issues (eg. low impedance connection between otherwise unconnected ground of EMI filter on primary side and output ground), often caused by combination of safety, EMC and design/size requirements and weird interactions between them and between requirements of different jurisdictions (EMC, ESD and safety requirements of EU sometimes tend to be contradictory).
I feel your pain. Getting a browser to play audio properly in iOS is pretty much impossible, and it seems like apple has done this intentionally.

No more crash though. Cool.
Yeah, a lot of us have had similar thoughts of using various forms of free storage like our own hard drives and RAID setups.

This should just go toward reinforcing our understanding that ideas are the easy part. Follow-through is the hard part.
And Forbes isn't the Bible, even if they think they are.
What is the best way to solve an Objective-C namespace collision?
When I code, I have a bar down the window that shows the 80-character mark. If I didn't use a monospace font, that bar would be impossible to draw.

In fact, my editor of choice (Vim) assumes in many places that all displayed characters have the same width; it makes it a more consistent experience and allows you to do things on a simple console that you'd normally have to draw a complex (non-portable) GUI for.
> Default arguments in Ruby are not mutable in any kind of function object

Maybe I misunderstood you, but they are perfectly mutable:

class A
attr_accessor :a
def initialize
@a = []
end

def b x = a
x << 1
end
end

obj = A.new
# => #<A:0x007fd92b2e9850 @a=[]>
obj.b
# => [1]
obj.b
# => [1, 1]
obj.a
# => [1, 1]

If you mean "inline default arguments are not mutable", that's not true either. What is true is that the default argument is evaluated when the function is called, not when it is defined:

a = 0
# => 0
x = lambda {|y = (a + 1)| y }
# => #<Proc:0x007fd92b1dae50@(irb):33 (lambda)>
x[]
# => 1
a = 5
# => 5
x[]
# => 6
China okays Google-Motorola acquisition; deal set to close next week
When I was a lazy, precocious child, I had my mother and experimental scientist father each repeat Thomas Edison's "My genius is one percent inspiration and ninety-nine percent perspiration", over and over again. If other geeks are like me, they probably grew up hating Edison's guts. It might not be true but I can understand the impulse to come to the conclusion that Edison was evil and the inspired Tesla was good.

Some math geeok have enjoyed calling Évariste Galois a "hero of the revolution", bringing mathematics to the people. It's a nice myth but like the myth of Tesla, probably not quite the full story.

http://en.wikipedia.org/wiki/%C3%89variste_Galois
185+ Strength Training Videos With Expert Instruction, Downloads, More
Mark Zuckerberg Marries Prischilla Chan day after Facebook IPO
Cheap Mike Wallace Jersey
Day After IPO, Mark Zuckerberg Marries Longtime Girlfriend Priscilla Chan
Mark ZuckerBerg Married Priscilla Chan
Even many of us CS grads (though CIS in my case). Not all of us are the top talent able to command a 6 figure income right out of college. :(

Edit: Also, cost of living differences
Mark married Priscilla one day after the IPO. That means they were waiting for IPO to get married.
Facebook founder Mark Zuckerberg marries Priscilla Chan, longtime girlfriend
Actually, a surprising amount of JS code was already built around event-driven IO. It took a remarkably small amount of work to get YUI3 running on node, for example.
I think it's a cool idea.
Indeed. It almost seems like Node.js is somehow involved with this project.

(It isn't.)
Eh? Two options:
1) you leave your wifi unsecured intentionally, and are hence willing to have bandwidth 'stolen' OR
2) you use WEP (I know, I know) etc or MAC address limiting to restrict access

Also, my modem's admin mode lists active connections, and can log activity.

So what was the point of this article again? Detection of use != prevention (as claimed by the writer)
I've used this thread as an example of who the members of the HN community are, and what startups they make:

http://news.ycombinator.com/item?id=1772224
It would be very hard to tell. The earliest and biggest public health improvements are driven by simple but powerful measures: increased calorie counts, clean water, improved sanitation. Only once these are satisficed do things like health care and immunizations begin to matter at the margin.

Something like malaria nets sounds cheap and simple enough to be a plausible driver. But even then, to a malnourished kid the nutrition probably matters first.

Even extensive efforts, occurring amid improvements on the fundamentals, would probably be lost in the noise.
Flat Out Broke: Money Survival Basics After Divorce
Apparently the valve in question was a turbopump valve. I don't know how the turbopumps work in the Falcon 9, but they are a fairly interesting topic in general. For example, in the German V-2 rockets the turbopumps were steam driven. The steam for this was created with hydrogen peroxide and a catalyst; almost like a little miniature rocket engine inside of a larger one. I think this highlights just how much complexity we can forget liquid fuel rockets have.
As a demonstration of the non-intuitiveness of measures in high dimensions, I think this is still a decent example, no? I agree that n=5 [sic on my part above] isn't special, but seeing the Gamma function should be cause enough for worrying your intuition. It might be misleading, but I'd hope that it wouldn't beg the question of what's special about n=5, but instead what's wrong with your views about high dimensional space.

I agree with the comments on MathOverflow though.
I did not say, nor did I mean to imply, that they're somehow equivalent. I'm just pointing out that both types of people behave like, well, people, and both want to bend the rules to best suit them. I'm not saying that both are equally bad for it.
For serious business news hungry people...
It's burned by creating an atmosphere in which people get to thinking they need to start a company instead of having children. (Or thinking they'll have children "later" which typically amounts to the same thing - "life is what happens when you're busy making other plans".)
Mark Zuckerberg Married -- Facebook Founder Weds | TMZ.com
Not me, I drive it like any other car. I turn off the crash screen while driving.
Fear is a stronger motivator than hope. People are more motivated to inform themselves about threats than about positive things.
Your moment of Apple zen: Remember the things that Steve told us
I talked to somebody from the Ashima group[1] about their gloc prsoject which they just released a version of. Having thought about it, I suspect there are some other companies working on it as well, like maybe Typesafe.

[1]: http://blog.ashimagroup.net/category/ashimaarts/
The spheres are spikey, too, in the sense he means. Fix a small radius and consider balls of that radius centered on the surface of the sphere as you increase dimension. The volume of such neighborhoods that intersects the original sphere drops drastically. Just consider the cone that has its apex at your point on the sphere and that extends to the one lower dimensional sphere at the intersection of the sphere and your local ball. Even if your ball is so small that the cone has an apex angle of 89 degrees, that means that there is some fraction (less than one) of the cone base radius that you're losing. And that reduces your volume in each dimension. So there is exponential loss of cone volume as the number of dimensions increases.
Good catch, I hadn't thought of the case where the default argument is expressed in terms of another variable.
I, too, wish him luck.
Agreed - the only iPhone I've ever seen DOA-for-real was one immersed in dirty water for most of an afternoon, and I have a feeling that that was reparable if somebody really wanted.
You use a series of members under tension or compression to support a load-bearing surface spanning a gap. Then you see if it falls down under a static or dynamic load. It's a common exercise for engineering students.

I hear there's a nice one in San Francisco.
This tear down is the < 1" cube. You sure HP's is 1/4 the size?

And when I add a generic 2 prong Euro adapter, Apple's is still the smallest brand name charger I've seen.

Finally, the iPhone 4 charger torn down here is labeled 1A, not 0.5A, and certainly charges iPhone 4 in a fraction of the time of lesser chargers.

I'm amazed how much less time it takes to fully recharge from 10% - 100% the iPhone 4s versus the Samsung (Google) Galaxy Nexus. Granted, thats not just the charger.
Look, what you say is roughly my point of view, and I'm playing the devil's advocate here, but you didn't actually respond to the article, but rather to some straw-man representation of "the Chomsky nonsense", to use your words. I'll try to elaborate the claims in the article a bit (and I'm probably overly simplifying it):

when you have a sentence like "I’ll play with this red ball and you can play with that one", one can ask whether "one" refers to "ball" or "red ball". The sentence doesn't give you information as to which option is true. But, say there are two kids, Chris, playing with a red ball and Max, playing with a blue ball, and someone says "Chris has a red ball but Max doesn’t have one." In that case, they can learn that 'one' refers to 'red ball' and not 'ball'. Their argument is that for a language learner (read: baby) to learn correct grammar, he has to encounter such situations, and yet, such situations are rarer than the rate of grammatical errors in similar uses of the word 'one' is higher than the rate of occurrence of scenarios where you could learn the distinction (this is not an assertion, it's backed by analysis of corpora of parents talking to their babies). And yet, their experiments show in a somewhat roundabout manner that the babies treat 'one' as referring the 'red ball' and not 'ball'. Their conclusion is that this means that out of the space of possible grammars, babies didn't consider the ones where 'one' refers to 'ball' and not 'red ball' - there's an innate preference towards those.

While I can poke some holes in the argument (mostly because of the implied assumption that the mental representation of grammar is in a generative grammar), your response read too much like http://xkcd.com/793/
drchrono needs amazing designers
> I don't see any compelling reason why the choices of an entrepreneur are a variable that the VC should ignore.

Many people agree that e.g. the entrepreneur's religion and sexual preferences are variables the VC should ignore, even if they were statistically correlated to success. Do you disagree with that position?

> I also see no reason why shareholders of corporations should have any special obligation to subsidize parents.

I do: the parents are subsidizing the future. The shareholders' money is going to be pretty worthless to them in the long run if there is no next generation of workforce from whom to purchase goods and services.
Great stuff, one suggestion: clicking the label for an item should check/uncheck it, like in a properly marked up form (using the "for" attribute of the label tag).
I was thrilled when Ubuntu released a font. The Ubuntu Mono font is my new programming font everywhere. Make it the default in Sublime Text and you'll be a very, very happy camper.
Seems like a good domain for a single-serving site, at least. Maybe a random selection of major accomplishment paired with someone who rejected it, like the N VCs who have passed on virtually every successful startup.

I've never really been into the "abuse of ccTLDs", especially not weirdly unstable countries like Libya. Although I do have a 3-letter Albanian domain.

At the very least, I'd only do something if I owned xxxx.ly and xxxxly.com like this pair.

(I accumulate a lot of domains -- it was totally worth becoming an OpenSRS reseller so I could manage all that stuff from one place. By pre-funding the account, it's less painful to make impulse buys (I have a commandline tool in my shell to do it, and grab the .com/.net/.org, and hyphenated variants.)
Make mainframes, not war
Disrespect is generally tolerated. Memes are pretty no-go, however.
thanks, dyslexic and cellphone prediction. Not a good combination
What's that lambda thingo in the middle then? Pretty sure that's another function, redefined every time your function is called.
7% of the market in China? I wish that were true!
Mark Zuckerberg Gets Married
It's interested when you task reddit with finding something. It's like crowdsourced searching, with a few really resourceful people.
There is a builtin function called `reversed`. You'd better remember that than the "useful" [::-1] idiom.

The recommendation on `iteritems` had better be generalized to include `iterkeys`, `itervalues`, and other opportunities for using iterators rather than building lists. A note that the 'iter...' versions are removed in Python 3 (because iterator behaviour becomes the default) would be appropriate here.

In relation to collections, itertools is a great module to get familiarized with. I import * from this module. I consider functions there as if they were builtins.

"Conditional assignment" is a weak and misleading name. "Conditional expressions" is more descriptive. There is no assignment in

print "yes" if some_condition else "no"

as the article acknowledges later.

Using Ellipsis for getting all items is a violation of the Only One Way To Do It principle. The standard notation is [:].

I commend the good intentions of the writer, but I'm surprised that this article got 144 upvotes in HN.
I don't know what it is company-wide. Among the immediate teams I work with - I am, my boss is, and four of the tech leads for teams I work closely with are. (I'm defining "work closely with" as "would not feel terribly awkward inviting over for a barbecue or board games.")

If you add people who've founded successful open-source projects or done interesting projects as part of a larger organization, that number grows significantly. The founder of Gallery is the manager of a large team I work closely with, and on that team are the authors of Rhino, Parrot, Pychecker, "Linux Kernel Development" and "Linux in a Nutshell", and probably a few that I don't know of because I don't know everyone's pre-Google background.
Are you allowed to sell the market (S&P say, using a 6 months futures contract) so that your only exposure is to the Homeway-S&P differential, not to the market in general?
It's like a band.
Lots of good bands split up.
Some bands explain why, others just give a cryptic message.
I have received more thank yous and mentions for that post than it got upvotes. It got 19 upvotes, but people still mention it.

(interesting to note that 2.5 years later, my opinion would be exactly the same, though now I would probably mention a few type-theoretic works; more foundational stuff, less petty bit-fiddling)
This reminds me of this quote from [1]:

"In this mythical, not yet-existing, but clearly on-the-horizon "Haskell", you'll be able to choose how much safety you want. You'll have "knobs" for increasing or decreasing compile-time checks for any property and invariant you desire."

It might not be "Haskellish" or safe in the way that I or some others are used to, but it does seem to be a clear increase in the expressiveness of the language.

[1] http://axisofeval.blogspot.com/2011/01/why-lisp-is-big-hack-...
> Samsung charger compares favorably to Apple's at about 1/3 the price

From this article:

“When I opened the charger up, I expected to find a standard design, but I've compared the charger to the Samsung charger and several other high-quality industry designs,[17] and Apple goes beyond these designs in several ways.”
There is one slight mistake there - saying that [::-1] is a special case. An empty value in a slice implies the beginning or the end, and when the stride is negative, the beginning is the last index, while the end is 0 - making [::-2] for example start from the last element and go down in jumps of two.
The Nexus One (european) charger that I have here is by Phihong and at least has CE and PCT labels on it, so it is not downright awful.
I can't imagine being in the rocket and what's going through your head as your about to take off, the rush of it all, and then at the last second it's like nope. That feeling must have been incredibly interesting.
Mark Zuckerberg marries Priscilla Chan
Mark Zuckerberg marries Priscilla Chan
Grab a new iPad 3 Wi-Fi+4G 64GB  (3rd generation)  for only $61.09
Don't miss out!,, Grab a new iPad 3 Wi-Fi+4G 64GB (3rd generation) for only $61.09 from EZY-BID auctions http://ezy-bid.com ...Hooray!!!
2 days after IPO, Mark get married
anecdote (no facts):
I ran into some GS folks at the X.Commerce conference last year in SF and they said that engineers comprised their largest employee category. They said that they have built proprietary versions of a lot of really basic software (like email clients, office suites, etc...) purely out of security concerns and the fact that they have more money than god.
Sidekick: Why am I not surprised that he replaced inexpensive with independent in the original acronym...

Other than that, interesting project.
Putting NYC's Tech Jobs on the Map
I had to check that on the REPL. I'm surprised that even works and I can't think of a good reason why should list syntax be allowed as a lvalue, in addition to tuple syntax.
Why not? It's a large corporation with many branches and technical needs, some of which are harmless to open-source. Despite its reputation, I don't think they go through their day thinking "hmm... we could open-source this, or we could go kick a puppy instead! Muahahaha!"
Maybe you could elaborate on what you mean by "spikey". I associate spikes with some kind of discontinuity, having little to do with volume.
Neither am I!

If it makes you feel any better, I now use it as my own, personal "don't be an ass" moment. If I feel the urge to say something snarky, recalling this interchange pretty much quashes it.
Those rates are on the high side but not too crazy. About half of my loans were direct loans with a variable rate which was about 1.9% at the time although they could have changed. Without knowing his exact situation I can't really make a judgement.

With possible consolidation and accelerated payment plans there are even more options. Looking long term you want to get as much money as possible into retirement accounts and iras while you are young. I think the article even mentioned that he took a tax hit to deplete a retirement account and he also didn't contribute to a matching 401k. That's essentially just burning money...
Ask HN: Recruiters sending candidates that already reached out to me
I've been receiving emails from recruiters offering candidates for a job I posted on the whoishiring from many months ago. I already received his resume from a direct communication with the person. I am concerned that, if I do decide to go ahead with the candidate, the recruiting firm will try to claim that by din of having his resume I would owe the recruiter a finding fee. Is this something I should be concerned about? Is there anyway I can protect myself from this type of attack in the future?