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

The problem is that wasn't practiced under either the Bush or Obama administrations (despite the latter's campaign promises) with respect to medical marijuana.

Because of the way the laws are structured, it's almost guaranteed that any state law that allows people to grow/sell/use marijuana will violate some portion of some law other than the Controlled Substances Act, which means that the federal government always has an excuse to crack down hard.

Which they have no qualms about doing, apparently.

(That said, this will be interesting because it is a much bolder contradiction of federal law, and it will force the federal government to address it directly, instead of using the tax laws for controlled substances as an excuse for cracking down).

comment 14y ago · link · parent

There are questions of whether a link exists between cannabis use and adult-onset schizophrenia (ie, a "psychotic break" in the early 20s).

The problem is that these variables are highly confounded - not only is it reasonable, but it is almost expected that a person who is experiencing early signs of schizophrenia (even if they don't realize it) might have their life impacted enough that they turn to alcohol or marijuana (or other drugs) to address those secondary problems, even though schizophrenia would be the underlying root "cause".

The question is not whether that second effect (schizophrenia causing drug use) exists, but the magnitude of that relationship. Which is difficult to measure on a theoretical level, and perhaps impossible to measure on an ethical level.

comment 14y ago · link · parent

If alcohol testing were like marijuana testing, almost every accident would be counted as a DUI.

Because of the underlying chemistry involved, most statistics involving marijuana-related incidents vastly overstate instances of drugged driving, use, etc. This includes not just DUIs, but also numbers like the DAWN reports.

Unlike almost any other drug, marijuana stays detectable in the system for 2 weeks on a test (for urine tests, which are the most common - in general, anywhere from 2 days to 3 months, depending on the type of test + usage habits).

Since the effects of the drug only last for ~2-4 hours, that means that "testing positive" for marijuana is useless at indicating whether the person is actually under the influence, or just happened to use the drug at some point within the last two weeks.

Contrast to most drugs - alcohol, for example, can only be detected for about as long as the person is impaired.

comment 14y ago · link · parent

Maine is one of the few states where that's viable - as Nate Silver notes[1], it's probably the most independent-leaning state in the nation, as evidenced by its support for Ross Perot in the 90s. Rhode Island would be another, and I'd peg Colorado as a distant third.

Minnesota is an outlier in my mind - it's more attributable to the fact that the Republican candidate (Norm Coleman) was a terrible candidate (he only won his Senate seat because his opponent died right before the election[2]), and the race was irregular in other ways too. It happened once, but I wouldn't bet on it happening again there anytime soon, unless things change.

[1] http://fivethirtyeight.blogs.nytimes.com/2012/10/15/in-maine...

[2] To Coleman's credit, John Ashcroft ran against a dead man and lost, so I guess Coleman had something going for him.

comment 14y ago · link · parent

> Keeping the barrier low for committed code is one of git's best features.

When I first learned git, I was told, 'You'll never have to comment out code again'. Keeping the barrier for commits low (along with git -p and git rebase -i) makes this a reality.

comment 14y ago · link · parent

> Callbacks are different than gotos in that they are aren't even remotely close to gotos.

Well, continuations are the functional equivalent of GOTOs, and callbacks and continuations are closely related, so I don't know how you can make that statement.

Even if you want to argue that they avoid some of the pitfalls of GOTOs (which I'd still contest), you still can't say that they're "not even remotely close to gotos".

comment 14y ago · link · parent

> Can they mention decisions in other jurisdictions

No, because those jurisdictions aren't relevant once the court has already made a ruling for its own jurisdiction.

> the fact that they don't agree with the court?

There's nothing to 'disagree' about. As far as the court is concerned, once it's made a ruling, it's determined the facts, and you can't disagree with their facts. There's nothing to appeal in an acquittal (because of double-jeopardy), so the courts have had their final word on the matter.

This is a civil case, but to use the analogy in a criminal case: once the defendant in a murder trail has been acquitted, the prosecutor can't continue to say, "The court has determined the facts, but I have a different opinion."

comment 14y ago · link · parent

> But you cant force me to apologise or admit something that i do not believe in.

This is not an apology. It's a publication of the facts, as determined by a court of law.

In the US, slander and libel are both illegal, as is defamation, etc. Part of the judicial process is to determine the facts of the case. After the facts are determined and the defendant is acquitted, the plaintiff can't keep publicly affirming the defendant's guilt without risking consequences. This is completely precedented.

Once the courts have determined that Samsung didn't copy Apple, Apple can't keep advertising publicly that Samsung copied them. In this case, Apple acted as if they had already won by prematurely advertising a victory ('Samsung copied us!'), so they're being required to retract that.

(Typical disclaimers of UK vs US law and IANAL apply, though my point is that this would not be unusual or unreasonable if it had happened in the US).

comment 14y ago · link · parent

That's not a debt - that's a point-of-sale. They're allowed to accept or refuse any form of payment there (at least under US law - UK is probably similar).

The reason for the laws surrounding debt is to prevent creditors from purposefully holding debtors in debt by refusing to accept their payments ('Oh, sorry, you HAVE to pay me in this form, so I'll refuse your payment and instead charge you an extra day of interest, etc.)

comment 14y ago · link · parent

To answer your first question: It's certainly possible from a technical level, but I'm not aware of any end-user application that enables this functionality out-of-the-box.

One hacky-but-straightforward way to do this would be to take advantage of an email<->filesystem translation like NMH or MBox, and then write some script that would automatically purge the attachments before archiving.

You'd still have to download the attachments, I believe; I could be wrong, but I don't think IMAP will let you get around that easily.

(To be fair, Gmail's implementation doesn't adhere to IMAP very well in my experience - labels/folders/tags are a major problem - so YMMV).

comment 14y ago · link · parent

How is Visa a monopoly?

comment 14y ago · link · parent

> Israeli Arabs

Nitpick: 'Israeli Arabs' aren't necessary non-Jewish; there are a number of Arab Jews throughout the middle east, and some of them are in Israel.

(Your point still stands, but people are unaware of the above often enough that I feel it's worth pointing out, because it emphasizes that the region is not as black-and-white as poltiics sometimes seem.)

comment 14y ago · link · parent

I don't care what the liner notes say, I'm still convinced that Ian Curtis sings, 'I've been waiting for a guy to come and take me by the hand / Could these sensations make me feel the pleasures of a normal man?'[1]

[1] https://www.youtube.com/watch?v=PldpBJEn4vQ

comment 14y ago · link · parent

Haha, thanks for that - now I know what I probably sound like whenever I sing along to 'Dragostea Din Tei'!

comment 14y ago · link · parent

I'm not surprised. The English lyrics are, frankly, a little awkward. Nena's accent could be seen as endearing, but at the same time, it sounds a tad stilted, and nowhere near as fluid as the original German. It's a dance tune, and once you know what the song is about, it's just much more fun to hear it in the language that sounds more polished and lets you tune out the words so you can, well, dance.

At the end of the day, lyrics are a much smaller part of the musical experience than people give them credit for.

Then again, I have a very easy time dissociating lyrics (and their meaning) from the rest of the music, so maybe that's just me. This doesn't always happen, but it's not unusual for me to listen to a song enough times to internalize the syllables and sing along, and still not stop and think about what the words actually mean (even in English). It may sound odd at first, but when you think about it, you probably have the same experience when you go to the opera - try and make out the words of Handel's "The Messiah", an English opera, and you'll see what I mean[1]!

(And now that I think about it, how many people know what the verses of 'Born in the USA' are really about?)

Also, I did already know that the German version was more popular, so it's hard to be sure I'm not just rationalizing that knowledge after-the-fact! :-)

[1] http://www.youtube.com/watch?v=x5jeelU1Vb4

comment 14y ago · link · parent

IANAL, I don't think that's true for the Apache license, because it includes a clause that explicitly reassigns patents (or at least licenses any relevant patents).

comment 14y ago · link · parent

> Not to make this comment all whiny, do you guys think Eran stands a chance in making Oz become as popular as OAuth?

Do I think anybody else stands a chance of making something as popular as OAuth? No - as jklio pointed out, there are already alternatives that are likelier to catch on, not to mention OAuth 2.0 itself.

However, if anybody has a chance at adding a new contender to the mix, it's Eran.

Whether or not he will is another question - it'd be hard to judge either way until the project is further along.

comment 14y ago · link · parent

There aren't any GitHub tickets on the repo at the moment, so if you hurry, you may be able to get this renamed to Issue 1.....[1]

[1] For those who don't get the (admittedly poor) joke: http://code.google.com/p/go/issues/detail?id=9

comment 14y ago · link · parent

Unless I'm gravely mistaken, the cost is dramatically understated. $25/month will only buy you 5 'requests'.

Related: $1/day is a really bad way to present a pricing plan of $25/5 requests. Yes, that's technically correct, but I don't want to amortize the cost over the number of days in the month; I want to amortize it over the number of days I actually use the product (or, better yet, the number of times I use it - so $5/task).

comment 14y ago · link · parent

> Don't think for a second that certain government agencies can't brute force a BCrypt-based password hash, especially given they will know the cost factor and salt.

I have no doubt that government agencies have much more powerful intelligence than people realize. But knowing the salt has no connection to their ability to brute-force; it only affects their ability to use rainbow tables.

(All it does is prevent them from matching up passwords by their hashed values, so for example, if one password is cracked, it protects everyone else who is using the same password.)

But it doesn't provide any protection against brute forcing. Nothing can, short of making the hash function slower (or the password domain larger).

comment 14y ago · link · parent

> Or do the people being stopped never actually fight any charges being brought against them (understandable, given whom the PD targets)?

For those who aren't found to be in possession of drugs (the main excuse here), that's exactly the problem. For the rest:

> If that is the case, how can anything found in those frisks be admitted as evidence in court?

They're only legal if the police have reasonable suspicion[1] of illegal weapons. Not drugs. Not prostitution[2]. Just weapons.

Of course, given the neighborhoods they target, it's easy for them to fabricate an excuse after-the-fact. So most people don't bother to challenge it, because they know it's, at best, a case of one person's word against the other.

[1] It may be probable cause instead; I'm fuzzy on the details, but I know the general idea is correct.

[2] In New York, having many condoms in your possession is evidence enough to charge you with prostitution.

comment 14y ago · link · parent

> but it's real and it's in your backyard.

Unless you're white and live in a predominantly white, upper-class neighborhood in NYC, in which case it's in someone else's backyard.

Which is the entire problem. If NYPD tried that around Carnegie Hill, you bet the practice would stop instantly. But it's in East New York, etc., so the right people don't care.

New York has a ridiculous number of stop-and-frisks, but they're so unevenly distributed that some neighborhoods have more stop and frisks annually as they have people - ie, on average, each person is stopped and frisked more than once per year.

(Sidenote: It's not a matter of changing the law: stop and frisks, as they are practiced, are already illegal by law. The problem is that the victims rarely take the issue to court, for obvious reasons, and so NYPD has no reason to stop.)

comment 14y ago · link · parent

Semi-related, but what's the fastest vi way to get to the space right after the first word? For example, I might type

> ls /etc/foo/bar

and have my cursor at the end when I realize I want to type ls -l instead. I know there's got to be a faster way than what I'm currently doing, but I'm blanking.

(Yes, I know sometimes tacking on the command line switch at the end will work, but that's not true for all commands).

comment 14y ago · link · parent

> I've re-done the assignment twice this evening (the questions change enough that you have to think a lot, even when re-doing the same assignment), only to get 500 errors both times.

It's been about 8 years, so my memory may wrong, but I believe WebAssign used do have some sort of adaptive homework, where the questions would be selected based on your answers to previous questions (the same way the GMAT or GRE works).

I'm surprised that Coursera doesn't do something of the sort, both to avoid the problem that you're having (the 'state' of your homework would be updated each time you submit an answer to a question), and also to capitalize on some of the flexibility of digital learning that isn't possible on paper.

comment 14y ago · link · parent

How well does this work - in other words, how identifying is the absence of such information?

(The third alternative would be to spoof the information on each request, but I don't know how well that would work, and it could cause other problems.)

comment 14y ago · link · parent

This looks incredibly useful! However, its existence raises an important question.

Doesn't the necessity of this product inherently suggest underlying flaws in the 0Auth 2.0 framework (not protocol)? In my mind (and Eran Hammer apparently agrees), one major shortcoming of OAuth 2.0 is that the specification all but ensures that a universal, drop-in library for an arbitrary implementation of OAuth 2.0 cannot exist.

We saw this problem with OpenID - we even had a service designed around 'solving' the problem of integrating multiple OpenID providers. If the framework itself is so complicated that it needs extra abstraction layers to simplify it for basic, general use, to me, that suggests design flaws.

EDIT: On re-reading Hammer's post[1], I've realized that it's even worse than I'd thought: the OAuth 2.0, Draft 30 specification even admits plainly that it is 'likely to produce a wide range of non-interoperable implementations.'

If that is considered an acceptable candidate for the goal of OAuth 2.0, then I would question the goal itself.

[1] http://hueniverse.com/2012/07/oauth-2-0-and-the-road-to-hell...

[2] http://tools.ietf.org/html/draft-ietf-oauth-v2-30#section-1....

comment 14y ago · link · parent

Helmets were optional in the NHL before they became mandatory. Supposedly, almost nobody wore them beforehand (because it impacted performance), but virtually all players supported making them mandatory.

comment 14y ago · link · parent

> i wonder if this would becomes some sort of internet nuclear arms race which can only end poorly.

Thinking back to Napster... you mean it hasn't already?

comment 14y ago · link · parent

Savvy users in parts of Europe (Denmark, I believe) are already just adding an /etc/hosts entry to do exactly this.

That doesn't solve the problem of the IP address itself changing, but then you need some system of distributing the updated IP addresses whenever they change. Which would require inventing a distributed lookup system....hmm... this is starting to sound familiar....!

comment 14y ago · link · parent

> You don't have to be hyperactive, even though your mind might be - in that case I suppose it's just ADD, right?

Not really. That's a common misunderstanding, but it's taking the name a little too literally. ADHD is actually the diagnosis (314), but one of the forms can be 'ADHD without hyperactivity'. However, 'hyperactivity' doesn't actually imply what most people thing it does, just from hearing the name, which is why the entire term is a bit of a misnomer.

> as someone who has extreme trouble concentrating, I can definitely relate.

ADHD is very, very different from simply 'having difficulty concentrating'. You can potentially have moderate or even severe ADHD without noticing any difficulties concentrating.

> In my case it seems to work, but then again - I was never diagnosed with anything.

I'd be really careful about generalizing your case to people with ADHD, then. To use a blunt comparison, it'd be as if someone claimed that watching funny movies made them feel happier and therefore it is a 'cure' for depression (a psychological condition much more complicated than mere 'unhappiness').

1
182183184
202