Better HN
topnewbestaskshowjobs
Log inSign up

chimeracoder

21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions

Inveterate builder.

Personal site: http://www.adityamukerjee.net/

My email is pretty easy to guess from my username.

Submissions

comment 14y ago · link · parent

OT here. Didn't know that this had been posted - here's my discussion post: http://news.ycombinator.com/item?id=3649114

Neglecting the 100- and 400-year problems with leap years, that seems to be a good frequentist estimate.

But if you look at it from a Bayesian perspective the question is how much you're interested in incorporating into the model. And there's quite a lot of

(Also, the problem as originally stated in 140 chars isn't really well-defined - though if you want to get cheeky with an answer of 100%, let's think about the probability for an unspecified NYC startup, rather than foursquare!)

5882.

The Leap-Day Birthday Problem: A Bayesian Twist

1 points · by chimeracoder · 14y ago · 2 comments

comment 14y ago · link · parent

The local delivery is a killer.

I can order by 9AM and, for just $3.99, have it delivered that same day.

The first time I did this, I forgot I even had Prime, so I was ready to pay for that for 3-5 day shipping. What a pleasant surprise that was!

comment 14y ago · link · parent

Thank you for bringing up the Rat Park experiment.

The Rat Park experiment is often conveniently ignored because it essentially debunks a lot of common 'wisdom' regarding drugs. It's hard to villainize certain drugs as 'bad' and evil' while endorsing others in light of the Rat Park experiment, which shows that 'bad' drugs aren't chemically 'bad' - they're just taken in a 'bad' setting.

Fortunately, the theory is now becoming harder to ignore, because that's the basis of a lot of effective modern drug treatment, which tries to identify the underlying cause of drug addiction (the environmental/behavioral problems that cause an individual to abuse drugs), rather than focusing on the drug use itself. That's not saying that drugs don't have a physical impact - they do - but if drugs are being used as an outlet to compensate for environmental factors, then removing access to those substances will just cause the underying problems to manifest in other (potentially worse) ways.

It's the difference between treating the symptom of a disease and treating the disease itself. Yes, you might want to take cough medicine if you have lung cancer, since it'll help with your symptoms, but you'd be a fool to think that that's going to cure the tumor that causes you to cough.

This theory is very powerful, because it means that you can use the same techniques to treat drug addiction and other psychological ailments like PTSD, anorexia and self-mutilation, which are themselves often best thought of as psychophysiological responses to environmental factors.

Interestingly, if you really want to use physiological symptoms as the basis for determining whether a drug is addictive or not, then alcohol is probably the most addictive substance known to man. If you ever want to give yourself a scare, look up some of the symptoms of acute alcohol withdrawal (which can actually kill you, after a long and painful bout of delirium tremens and worse).

TL;DR: Addiction is best thought of as a mental response to environmental factors. So, in a sense, it really is 'all in the mind'. Or alternatively, not at all in the mind, and all in the environment. Whichever way you prefer to think of it.

comment 14y ago · link · parent

This is pretty awesome - I only now wish Gmail would have native support for GPG signatures (I know they will never support GPG encryption). As it is, when people read emails I send in Gmail, the signature appears as a 'noname' 0B attachment, which is irritating.

comment 14y ago · link · parent

> Saying that the command line is easy is like saying that English is easy.

Well, right now it's as if we didn't teach English (or, rather, any foreign language) in schools and then somehow 'magically' expected people to pick up the single most important foreign language for communicating in modern life.

No, it's not easy, but the basics are really not hard to learn if started early and kept up consistently. Just like any other skill that we teach in schools.

comment 14y ago · link · parent

The problem is that our education systems, by and large, include effectively no education about computers whatsoever. (Classes with touch-typing lessons/word-processing skills/etc. don't count in my mind.)

As a result, most people have no concept of how a computer really works. With just the tiniest bit of this knowledge, the command-line would seem much less arcane, and the 'I'm too dumb, this is for you computer people' argument wouldn't really apply.

It's shocking how computing is quite literally the technological advance of the millennium, both for industry and for individuals, and yet we somehow think it's acceptable to leave it up to people to learn about it all on their own, and even then only if they care to.

comment 14y ago · link · parent

Confirmed (for Chromium 7.0.963.56 on Arch, w/ up-to-date Flash)

comment 14y ago · link · parent

Didn't Google actually allow you to watch Youtube videos with HTML5 instead of flash?

comment 14y ago · link · parent

Not in my experience...

comment 14y ago · link · parent

Restricting access to the Internet? I agree with the defense - in this day and age, that's absolutely ludicrous.

comment 14y ago · link · parent

You should do that - though I doubt it'd be an exponential decay. You're going to get a series of bumps every time a post about it pops up on HN (or similar site), and those bumps will probably be positively correlated with one another (note how top posts on HN are oftentimes top posts on related subreddits on Reddit, for example).

Would be interesting to see, though - let me know if you do it.

comment 14y ago · link · parent

Unfortunately, the most infamous example of that (Bumblebee's 'rm -rf /usr/' mistake) seems to have been removed:

> https://github.com/MrMEEE/bumblebee/commit/a047be85247755cdb...

comment 14y ago · link · parent

Linux users just type <C-shift>uxxx, where xxx is the hex code point. (That actually works for anyone running X11).

Unfortunately, you apparently can't do it on OS X without bringing up a menu and/or changing your keyboard layout: http://en.wikipedia.org/wiki/Unicode_input#Hexadecimal_code_...

comment 14y ago · link · parent

Yes and no. First of all, at least until recently, a hashtag wasn't actually distinguishable from the word itself. So 'ycombinator' and '#ycombinator' would both show up in a search for 'ycombinator' (and that was intentional. If anything, they were making it easier for people to ignore them (if they wanted to).

Second, the hashtags (as well as the @replies) both grew organically out of the userbase. They adopted them because the users had already adopted the hashtags. In fact, if I remember correctly, they were initially resistant to the idea until they saw how much people took to them and used them even without any official support.

The new tab seems like a glorified search - they use a hashtag for an icon, but it seems like the system itself would work pretty well for any single-word search. And with a data firehose as fast as Twitter's, you don't really want to have to do search over multiple words if you can avoid it.

comment 14y ago · link · parent

> Not sure why you'd mock this use of Emacs, after all mails are text and as such very well suited to being composed with a text editor...

Vim user here. I use mutt for email (which opens vim for editing emails), Vimium for Chromium, and I've set vim to be my default editor, my shell accepts vim commands, and my tiling window manager uses vim-style keybindings.

So, I almost never have to do anything in an environment where I don't have access to all of the power of Vim... and yet my text editor remains simply that - a text editor.

No problems with multitasking, because I've never needed to do more than one thing at a time in Vim, and I can't imagine ever needing to. All of those things that you're thinking of as separate processes in Emacs are things that I delegate to dedicated programs that specialize in doing those things. But I can get all of that modularity without sacrificing any of the vim key integration.

Not trying to sell you on using Vim, but just trying to explain the different reasoning.

comment 14y ago · link · parent

> The difference between a div class and a div id ... [is] the kind of brutal lessons that first timers slog through and few master (and that’s the simple stuff).

Really? Just think of the class as a surname and the id as a social security number - many people can have the same surname, and those that have the same one have something in common. Only one person can have a given SSN.

What's hard about it? Okay, one is denoted by '.' and the other by '#', but I'm not sure how something like that gets more complicated.

CSS and Javascript can be a pain overall, but in the end, if you need to know much more than the above, you should really just be learning to use the entire toolbox, not picking and choosing the tools that you think you want (which are oftentimes not the ones you really need).

comment 14y ago · link · parent

MIT did away with SICP in its intro class a few ago. Quite a shame, but that's the subject of another post.

comment 14y ago · link · parent

Hm, guile doesn't seem to like it either Anyway, the original article mentioned Common Lisp, so I assumed that's what you were working with in the examples.

comment 14y ago · link · parent

Am I missing something, or should that be read-from-string, not read? My understanding is that read only operates on streams.

comment 14y ago · link · parent

The more efficient it is, but as an economist, I'd say those are two different things.

Your efficiency per unit resource may increase, but your total resources are still finite. Therefore, unless your efficiency increases asymptotically fast enough that the integral diverges (ie, infinite area), your total end product will still be finite. And I have a hard time believing that efficiency would increase that quickly.

Okay, I'll stop being pedantic now.

comment 14y ago · link · parent

I don't really think his qualifications have much of a bearing on that - you could easily think of knowledge as a function of time and effort, which are certainly limited and finite resources for everyone, so the analogy still holds.

comment 14y ago · link · parent

Its amusing how quickly people seem to have forgotten about Beacon - seems like we've set ourselves up for another privacy disaster of similar scale - or perhaps worse.

comment 14y ago · link · parent

I never really thought to do that, so thanks for pointing it out. It may come in handy one day if I absolutely must use one of those services.

But in general, that's still awkward, and enough of a (mental) hassle that I probably won't bother if it's just someone who wants me to check their site out. So my advice to any web designers would be to make sure your site is functional even without the flashy add-ons, the same way you would make sure your site is functional on all browsers/operating systems.

comment 14y ago · link · parent

I find it annoying as well, because I use a tiling window manager, which makes opening a file manager just to drag & drop annoying - not a whole lot more, but just enough that it's not really worth it.

I don't mind having that as the default, but at least give people an option to select files the old-fashioned way, and make it easy to find within ~5 or ~10 seconds of looking at the page...

Imgur does this well, if you ask me - support for drag & drop, menu, and copy/pasting URL.

comment 14y ago · link · parent

Sorry, read that backwards (grass vs. grain). My mistake.

comment 14y ago · link · parent

> If we gave this test to random people 75% of the people who test positive are healthy. So this clearly isn't a useful test as a first screening

Unless I'm misreading what you're saying, I think you have Bayes's rule confused in that statement. If 75% of positive results are false, that's actually right in line with what you might want for a first screening.

Of course, you want to know not just P(X|Y), but also P(Y|X) -- you really need the joint distribution to determine how useful the test is.

For a rapid screening, you generally want a low false negative, and you're willing to compromise by having a high false positive rate as a result. The real thing you care about is P(test positive | have MDD), not P(have MDD | test positive). You don't care about the latter (within reason - obviously you could just have everyone test positive, but you're also trying to maximize the former probability subject to some constraint - usually time/money).

Psychiatric conditions are notoriously difficult to test/evaluate/treat because they are oftentimes heterogeneous, so I don't know what kind of numbers we should be looking for in this case, but I just wanted to clarify that having a majority of people who test positive ending up being healthy actually doesn't necessarily rule a test out as being a useful rapid-response screening, in the general case.

comment 14y ago · link · parent

I was born in Waltham and grew up in the area; I'm in New York right now.

It's unclear what stage you're at right now from your question, but being in a tech hub isn't always as important as you think. If you grow beyond a certain size (hard to quantify; there's no hard-and-fast rule here), you'd be foolish not to have at least an office in/near one of the large hubs, but that's not necessarily the biggest consideration at the beginning.

By the way, this is one area in which tech isn't really any different than any other industry - you'd be surprised how many companies in the financial sector have headquarters elsewhere and simply have a (rather large) office in New York (though not usually on Wall St. - that's more of a metonymy than the actual center of business these days).

comment 14y ago · link · parent

I'm surprised it's not corn-fed beef - corn's a lot cheaper.
1
196197198
202