HNHacker News
TopNewBestAskShowJobs

grot

167 karma · joined September 20, 2011

submissionscomments
grot··on The Western Elite from a Chinese Perspective
I am a non-native english speaker too; I guess I bristle at the the reading that this man isn't in control of his english when he writes with obvious proficiency, a reading I suspect, would not at all be in question were his name John Foster Edwards, or Henry Wickham or whatever Anglo-Saxon name you wish to replace his name with.

I see your point though. I think he does use words in ways that native speakers do not use, but in his anecdotes -- I think he's actually playing up his Chineseness for the comic effect, and he's very much aware of what's happening.

grot··on The Western Elite from a Chinese Perspective
I also come from a similar background, and his points also seem poignant to me -- the first, in my reading, is about the lottery of birth; would he or I or you have been successful (with presumably our predisposition to succeed in academia) in China merely 70 years ago? Perhaps not. The second, related, is that we should be grateful for the achievements which might naturally appear as the product of our own labor, and (I think) also to forgive others for the achievements that appear to be the product of their labor.

Though implicit, I think this article actually makes an interesting implication about jealousy. What exactly is there to be jealous of in another person if luck, and randomness plays so much in our fortunes?

This article is also a warning against self-help. So much determines our fortunes besides the advice we can take or the effort we make. The best is what -- rolling with the punches --

grot··on The Western Elite from a Chinese Perspective
I think he meant it. His English is very fluent throughout the article.
grot··on How should I deal with an employee who has slept with my wife?
all's fair in love and war right?
grot··on How to Train Your Brain to Remember Everything
The argument I find most compelling for learning the memory palace technique is that building a memory palace is a creative act (Yes, like Picasso). One must be creative to construct a memorable palace for something as mundane as a grocery list, and what's vivid works. (Joshua Foer argues just this, persuasively too, in his book "Moonwalking with Einstein").

(begin sort of random tangent) I've tried using the memory palace technique to memorize poetry, and I found the clashing images somewhat disconcerting. On the one hand, there was the imagery of the poem, and on the other, there was the image I had created. Often times, I had to create completely new images, totally unrelated to the substance of the poem, in order to remember it. And well, somehow the images I created always involved a lot of...boob.

grot··on Why a career in computer programming sucks [2007]
I don't think the author means to justify age discrimination so much as to use it to underscore a point, which is that programming knowledge is something that takes (on the order of) 5 years to acquire rather than 40 years to acquire. Whether this is true, I am not sure. I don't really have enough experience to justify making any claims like that.

I think what he's really saying, to make an analogy, is that a programmer is more like a black smith than like an alchemist. A blacksmith is concerned with his tools and his technique, an alchemist is on a search for truth (or permanence or glory). Now he's also saying that being a blacksmith sort of sucks: your tools get old, you are smelly, it probably hurts more to pound your anvil when you're 50 than when you're 22, etc. Whether you believe that depends on your taste, whether you care about creating a good product or embarking on a potentially (very likely) fruitless search for truth.

It's pretty obvious what hackernews prefers.

grot··on Harvard, Princeton Targeted in Asian Discrimination Probe
Maybe not in his particular case...but as an alumni interviewer, I can tell you that personality and extracurriculars matter a lot.
grot··on Harvard, Princeton Targeted in Asian Discrimination Probe
The thing is, admissions to elite universities is almost never about test scores. Immigrant parents from countries like China and India are used to test scores mattering a lot. In those countries, your absolute score on the National Exam determines not only your placement into a university, but also what fields are available to you for study.

The SAT is nothing like that. If you walk into Harvard or Princeton, you'll find that most of the kids got above 2300 on the SAT, and a ton had perfect scores. If you tried using the SAT to distinguish between members of the student body at either place, you would have little success. The admissions committee has the same problem, so, kids are not selected based on SATs. You get in because you're good, or at least, you show a lot of promise, not because you can study for a test.

So yeah, maybe asians have higher test scores as a cohort, but maybe they also have less other things that are equally important -- sports, focus, passion, alumni connections, etc. These things count just as much in admissions decisions.

It's possibly to argue that selecting for these things is inherently racist, but I mean, what isn't? The SAT itself privileges a white collar suburban education. Who's to say it's more valuable to be able to memorize vocab, or do arithmetic than to run or paint?

grot··on Don't write on the whiteboard
Freud?
grot··on If Modern Humans Are So Smart, Why Are Our Brains Shrinking?
That's one of the first hypothesis discussed in the article: our brains aren't getting smaller because we are getting dumber, but because the wiring is becoming more efficient.

I think the most interesting part of the article comes at the end, where the author points out that while brain volume has decreased since prehistoric times, it's recently been on the rise. That trend corresponds well with the availablity of protein in human history. Since farming began, protein has been a privilege of the rich. Only recently has it been widely available, and in such quantities. Hence, modern Americans are something like 3 inches taller than their ancestors 150 years ago.

grot··on What's your time worth? “Can you keep the change and I can leave?”
What about the disutility from alienating everyone else in the coffee line?

Yet another example of how private incentives (to the cashier) trump public good...

grot··on Can't solve a quintic? Galois Theory in 1500 words
When I was learning Galois Theory, I found Keith Conrad's notes really helpful for understanding the details -- http://www.math.uconn.edu/~kconrad/blurbs/. The subject of this post is mostly covered by the paper titled "Galois correspondence" (For anyone whose interests were piqued by this post.)
grot··on Metaclasses in Python
Yes, or alternatively I believe

    In [27]: class Foo(object):
    ....:     pass
    ....: 
 
    In [28]: def hello(self):
    ....:     print self
    ....: 

    In [29]: blah = Foo()

    In [30]: blah.hello = hello.__get__(blah, Foo) 

    In [31]: blah.hello()
    <__main__.Foo object at 0x10397f650>
grot··on Metaclasses in Python
Also, i forgot to add, your code snippet doesn't work. Some magic goes into the self binding.

    In [21]: def hello(self):
    ....:    print self.name
    ....: 
    In [22]: class Foo(object):
    ....:     name = 'blah'
    ....: 
    In [23]: goo = Foo()
    go
    In [24]: goo.hi = hello
    In [25]: goo.hi
    Out[25]: <function hello at 0x103985aa0>
    In [26]: goo.hi()
    TypeError                                 Traceback (most     recent call last)

    TypeError: hello() takes exactly 1 argument (0 given)
grot··on Metaclasses in Python
you may not have seen it, but it does work:

n [8]: class Foo(object): ...: pass ...:

In [9]: blah = Foo()

In [10]: blah.asdf = lambda x: x

In [11]: blah.asdf(3) Out[11]: 3

In [12]: blah.asdf(5) Out[12]: 5

grot··on Metaclasses in Python
In javascript you can modify an object

    var foo = Object();
    foo.blah = function(x,y) { ... };
But in python, that doesn't quite work. You can only do

    foo = object()
    foo.blah = lambda x,y: ...
 
lambdas are a bit more limited as they are restricted to one line, and you can't have print statements, which makes complicated expressions rather ugly.

edit: ah, as someone noted, the second code snippet should be something like foo = Foo() where

    class Foo(object):
        pass
grot··on Man with multiple degrees fails standardized test for children
tl;dr

Successful man fails 10th grade standardized test, concludes that success is not correlated with being able to do math.

Aside from the obvious logical/statistical falacy of making an overreaching conclusion from a sample size of one, and various other illogical claims("if this guy doesn't need math, why does anyone??") this article assumes that the purpose of education is developing vocational skills.

Why should that be? Kids should learn to appreciate the world, get exposure to different things. There's no reason to make them hunker down at age 5 and start preparing for their future careers. If they don't like math, that's fine. Likewise for history, science, whatever. But it's a shame for anyone to miss out on the beauty inherent in all of these subjects.

grot··on Abstract algebra for developers and people who hate math
An admirable attempt, but -- the formatting and the grammar are distracting detractors from the content.

For anyone who is serious about learning abstract algebra but lacking mathematical background (i.e. an analysis course under the belt), consider the book "Abstract Algebra" by Dummit and Foote. It's at the undergraduate level (so it goes through the motions of rigor that research math texts often omit), and well presented. A more advanced, terse and elegant, text would be Hershtein's Topics in Algebra.

grot··on How I survived one week without an adblocker
So ads are less annoying now than they were a couple of years ago...

Is it perhaps because they've adapted to the increasingly common practice of adblocker(and browsers which prohibit unprompted javascript popups)? Let's not forget that adblocker is a great thing, if only because it incentivized a move towards less obtrusive ads.

Another thing: ads may be less visibily intrusive but things like tracking cookies are still widely (100%?) used. So if privacy is any sort of a concern, an adblocker is probably still a good thing to have.

grot··on So you're considering a liberal arts degree
A liberal arts education teaches you many useful things: grammar, for example.

Read his opening paragraph again.

"As usual I get a ton of mail on subjects that are controversial, and one of the more painful ones was the fact that the Dropping out is probably not for you post gave people the impression that I'm against studying the arts, literature or any other non hard science."

Awkward, no? That's because it's a run on sentence.

The things that a liberal arts education teaches you are not always obvious. Of course you can read Plato or Homer or Augustine by yourself, but unless you're in a collegiate environment, it's very very easy to be lazy.

How many times have you picked up a book, skimmed through it, and never opened it up again? How many times have you actually read a book, and then for some weird reason, forgotten all of its contents very soon after? Formal schooling forces you to reengage with texts again and again. Formal schooling forces you to be critical of yourself and your own work before someone else has a crack at it. All of these things can be accomplished by a very motivated and disciplined individual. But how many of us are actually that motivated and that disciplined?

grot··on Ask HN: Is brogrammer a sexist term?
To properly answer the question "is brogrammer a sexist term", I think it's important to distinguish -- for a moment -- what a sexist term might be.

1. Is a term sexist when the speaker intends to be sexist?

2. Or is the term sexist when others interpret to be?

3. Or is a term sexist in some other more subtle way?

Some answers:

1. No idea

2. This varies. I know people here are saying brogrammer is an internet meme, but I've met plenty of start-up people that seem to enjoy various components of the meme -- polo shirts, bad sunglasses, incoherent misogyny.

3. This one is hard, and there are several conflicting possibilities.

a) Usage of the word "brogrammer" (whether in jest, or not) could be good (for gender relations), if it is successfully used ironically, or if it somehow signifies the irrelevance of gender.

I don't think either of these are true. Popping your collar is not irony. It might be a good halloween gimmick, but it's not irony.

And as for brogramming signifying a post-gender binary world, uh, no, come on?

b) The alternative is what I believe to be true, posts like this, regardless of intent reveal a serious cultural insensitivity. Whoever wrote it doesn't care if they offend you. They don't care if it sounds sexist, and they probably don't care if they _are_ sexist.

This is very antisocial behavior, and it deserves disapprobation just for that.

grot··on How to turn a biased coin into a Fair Coin
This is a pretty well known problem. (First problem the professor in my undergrad algorithms class ever gave to us)

SPOILER

p = probability of heads

1 - p = probability of tails.

flip the coin twice:

head head = p^2

head tail/tail head = 2p(1-p)

tail tail = (1 - p)^2

Notice the two in the middle there. We can just say head tail = Heads and Tail Heads = Tails. If we get HH or PP, just do it again.

Ok, now call the above procedure, our "randomization algorithm"

we can calculate the expected running time -- our algorithm succeeds with probability 2p(1-p). The number of trials we need to run our algorithm for is a geometric random variable. Thus, the expected running time is 1/(2p(1-p)).

grot··on Did a reporter just solve the bitcoin mystery?
You should read the original article:

http://www.newyorker.com/reporting/2011/10/10/111010fa_fact_... (subscription required, unfortunately =/. use your uni account or something)

The tone there is much more neutral, because Michael Clear in fact qualifies his statement.

quote from the new yorker article -----------------------

Clear responded that his work for Allied Irish Banks was brief and of "no importance". He admitted that he was a good programmer, understood cryptography, and appreciated the bitcoin design. But, he said, economics had never been a particular interest of his. "I am not Satoshi," Clear said. "But even if I was I wouldn't tell you."

The point, Cler continued, is that Nakamoto's identity shouldn't matter. The system was built so we don't have to trust an individual, a company, or a government. Anybody can review the code, and the network isn't controlled by any one entity. That's what inspires confidence in the system. Bitcoin, in other words, survives because of what you can see and what you can't. Users are hidden, but transactions are exposed. The code is visible to all, but its origins are mysterious. The currency is both real and elusive -- just like its founder.

"You can't kill it," Clear said, with a touch of bravado. "Bitcoin would survive a nuclear attack."

grot··on Meet the New Super People
This is a gross misreading of Nietzsche's conception of the ubermensch. The ubermensch is someone who doesn't _need_ scruples. He operates beyond conventional morality because the sharpness of his judgement and the greatness of his philosophical insights far exceeds the value of the slave morality embodied by everyday law, and morals.