21,186 karma · joined Oct 12, 2010 (16y ago) · 6,050 submissions
Personal site: http://www.adityamukerjee.net/
My email is pretty easy to guess from my username.
comment 14y ago · link · parent
If this is true, though, that's great news. SICP is the perfect way to teach computer science from the ground up, assuming that you're dealing with a student dedicated enough to do things the 'hard way' (or at least, the way that's less immediately/obviously rewarding at first). This is harder to do at other schools where students are not yet certain that they want to study CS, and there is a need to 'sell' them very quickly on the merits of learning CS (which is why you end up with some intro classes designed around mobile app development, rather than fundamental CS theory).
comment 14y ago · link · parent
(Then again, anything's possible in politics and PR, so it's hard but not impossible).
comment 14y ago · link · parent
Especially since .com is supposed to be reserved for international use, whereas .us is intended for US-based (or US-targeted) companies.
Off the top of my head, I can only think of two companies that ever used .us: Delicious and Grouphug (and the former only because of the creative spelling).
comment 14y ago · link · parent
It's just like the US - the problem isn't that people don't care about security, or that they don't recognize it's a concern. The problem is that the existing measures (like the TSA) don't seem to be paying proper attention to the problem.
comment 14y ago · link · parent
comment 14y ago · link · parent
I posted this a while back:
>Congress uses multipliers to figure out how predictive each piece of communication is (ie, how likely it is that a certain piece of communication will result in a change in voting behavior).
> I don't remember the exact numbers, but the hierarchy goes (in descending order): in-person visit to DC office, in-person visit to local office, physical handwritten letter, physical typed letter, phone call, email. The multiplier attached to email is close to zero. (The exact method varies by congressman/senator, but the relative rankings are the same throughout).
comment 14y ago · link · parent
First, security here is everywhere.
Second, security here is pointless.
I have had to walk through security to get to supermarkets, discount stores (think Walmart), high-end shopping malls, temples, mosques, movie theaters, national monuments, airports, hotels, you name it. You can't walk into a large building and not walk through a metal detector. The ACLU would probably go ballistic if the US had even 1% of the number of pat-downs that I have had to go through daily here.
Unfortunately, it's entirely pointless. Generally, I don't take my belt/jewelry/phone off when going through the metal detector, and most of the time, it doesn't even detect that. Whether or not I set off the detector, the process is the same: they (occasionally) wave a wand over, and then send me to a second person who briefly pats me down (<5 seconds in all). Keep in mind, the exact same process is applied to those who do and do not set off the metal detector. A few times, I've set it off and they just wave me through without even checking me further. It's mind-boggling.
I can't say I'm a fan of ubiquitous security, but the only thing that's worse than ubiquitous ineffective security. Anybody who really wants to cause trouble can bypass it in their sleep - all you manage to do is disrupt the lives of everybody else, all the while accomplishing literally nothing.
comment 14y ago · link · parent
I've been saying this for years: governments playing an arms race with hackers is like playing Whack-a-mole or cutting of heads of hydras. Every time you block one means of communication (starting in this case with Napster), a new, more decentralized, harder-to-combat protocol is going to emerge. Even if you're the MPAA and don't like copyright violations, you have to face that fact. That doesn't mean you (necessarily) have to throw in the towel and abandon the idea of copyright infringement altogether, but it does mean you need to start being creative instead of engaging in a direct legal-technological battle - an arms race.
I wonder how long it will take before the big players realize this and try to figure out a way to use this new playing field (the Internet) to their advantage, instead of trying to squelch any technological development so that they can cling to old models of payment and distribution. It was nice while it happened, but let's face it - we're past the point of no return. Even if they everyone hosted their own copies of TPB on their thumb drives and then they found some way to shut that down, I'm certain there'd be some hacker smart enough (like gojomo above) to come up with something that just makes things even less centralized, more difficult to track, and more difficult to shut down.
comment 14y ago · link · parent
This is kind of cool, because a file can change locations (how many times have you seen a dead link/File Not Found?), and with a magnet link, if you have a file that matches the description, you can be reasonably certain that you've found the right file (unlike the URIs you're familiar with, which can change the content stored at each location). On the flip side, actually finding the file from the description is a bit more complicated, but as you can see, it's still pretty easy for the user when implemented correctly.
It's better for TPB, because they're no longer telling you 'where' the file is, just what it 'looks' like. Legally, I'm sure that makes some difference.
comment 14y ago · link · parent
Second, China has not been 'communist' (note the scare quotes) for many years now.
Third, there certainly are many people starving in China, just as there are people starving in some part of pretty much any society. I find it entirely believable that there are people who one day's worth of unemployment away from starving in China. For that matter, I would have no trouble believing the same about a capitalist country like the US, or the socialist countries in Europe/South America.
comment 14y ago · link · parent
In this case the problem is that libraries may not detect the alternative versions of Python if System Python is still installed. But the prepackaged versions of Python won't always install properly if you already have a Python on your system, so you're in a catch-22.
I mean take a look at the installation instructions for Matplotlib[1]. It takes about two lines to explain how to install it on Windows, and more than half the page to explain different things you have to try to get it to work on OS X. And that's not counting the copious other errors and hacks that you'll find if you try Googling the OS X installation issues.
Let's face it: if it's orders of magnitude easier to install a well-designed library on Windows than your OS, you have a problem with your OS.
[1] http://matplotlib.sourceforge.net/faq/installing_faq.html
comment 14y ago · link · parent
What you're getting at is the concept of risk-benefit analysis, which is a bit more subtle than just the expected (dollar) value of the result. I describe it in more (academic) detail here:
comment 14y ago · link · parent
By contrast, I know that I can use exactly one tool (pacman)[1] to handle any installation, upgrade, query, removal, dependency tracking, versioning, etc, even for things like Python libraries. I don't need to futz around and try and remember how I originally installed it.
Compare that with OS X, which gave me absolute hell when I tried to do something so utterly basic as upgrade the system version of Python from 2.6 to 2.6.1, just so that I could install matplotlib (or something along those lines). In the end, I had to do some manual rm-ing and symlinking in /usr/bin/System_Python (or whatever it was) just to get everything to line up properly while at the same time not borking everything else on my system. Manual deletion of root-access files? Just to upgrade a single library? Come on, this is 2012, not 1992.... and even if it were, we still had better tools back then!
[1] Okay, technically you'll need a wrapper for the AUR like packer if you want exactly one tool; but my point still stands.
comment 14y ago · link · parent
They don't: https://en.wikipedia.org/wiki/Expected_utility
In short, there are three types of people: risk-averse, risk-neutral, and risk-preferring. (In the general case, people can exhibit all three types of behavior at different income levels, but let's keep things simple).
Imagine a graph, with income on the x-axis and utility on the y-axis. A risk-averse person will have a concave utility function (like a square-root function), whereas a risk-netural and risk-preferring person would have a straight-line and a convex utility function, respectively.
You have two income levels: $0 and $1000. Now take the two points (0, U(0)) and (1000, U(1000)) and connect them with a straight line. Since we're dealing with a 90% chance = .9 probability, find the point on that line which is 90% of the way between the two points (closer to the second point). This point represents the utility received from the risky situation, or the expected utility. This is not the same thing as the utility of the expected value! Call this point A, with coordinates (Ax and Ay)
Compare U(Ax) this with the value U($900).
For a risk-neutral person, the two values will be exactly the same, as the utility function is a straight line. For a risk-averse person, the second value will be higher, as the utility function is concave with respect to the origin. For a risk-preferring person, the first value will be higher, as the utility function is convex with respect to the origin.
In practice, the utility function may not have a constant concavity, which explains why people buy insurance (which is only justified under risk-averse behavior) yet also buy lottery tickets or gamble at casinos (which is only justified under risk-preferring behavior).
> Who in their right mind would take the choice that could possibly leave them without a life-changing sum the next day?
As you can see, the answer to your question is, 'A person who is risk-preferring' (or operating under risk-preferring situations which are quite common in practice).
comment 14y ago · link · parent
First, let's assume the data is encrypted with some strong encryption algorithm and similarly strong encryption key. This provides some security, but a lot less than you might think. Because data is being stored locally for a potential attacker, it is very easy for them (hypothetically) to make a large number of copies of that data and then distribute it for brute-forcing. This dramatically decreases the amount of time it would take to crack the encryption, even by brute force. [1]
However, this assumes that they have the entire data at their disposal. In a torrent, you oftentimes only have chunks (say 1 MB each), and everyone doesn't download the entire torrent. So someone may only have a few megabytes worth of data. Still that's potentially enough data to contain sensitive information, even a few pictures.
However, now let's assume that the data is scrambled. This means that the data is divided into 1 MB chunks of data that are not necessarily contiguous. So a 1 GB torrent would have 1000 chunks of 1 MB each, but each chunk of size 1 MB would have data from various parts of the torrent. The scrambling mechanism could be randomized and sent (securely) to the second party so that they are the only ones able to fit the pieces of data together correctly.
The protocol could enforce that individuals cannot host more than _____ chunks/MB of the same file, or even that a file has to be distributed among IP addresses from different IP blocks (allocated geographically), thus reducing the chance that a single attacker has access to large parts of the same file. It does not rule out the possibility of a coordinated attack over a large geographic region, but it reduces the risk, and it would probably suffice for most use cases.
Heck, people send public Dropbox links over plaintext, so it's not like we're talking about people who place a high value on security anyway (or, at least, people who think that their data is valuable enough to be worth the effort to crack).
[1] There's a nice website that illustrates the advantage of having local copies of the encrypted data, but I can't find it now. It was basically a password strength-checking website that tells you how long it would take to crack your password by various methods.
comment 14y ago · link · parent
There's a huge range in how hands-on moderators are, and it varies dramatically by subreddit. Some subreddits are notoriously draconian; others permit pretty much anything. I don't think it's possible to make a statement about moderation on reddit overall, across subreddits.
comment 14y ago · link · parent
In any case, the 1937 bill created an impossible-to-satisfy tax structure, because they knew that a direct prohibition would have been deemed unconstitutional. Unfortunately, by 1970, everyone had forgotten and the Controlled Substances Act passed easily.
comment 14y ago · link · parent
Adderall isn't methamphetamine. However, the methyl group doesn't change the way that the drug affects the brain; it just makes the drug cross the blood-brain barrier more easily. The increased bioavailability means that less of the drug (by weight) is needed to achieve the same result, but the drug isn't activating any different receptors or having a substantially different neurological effect in any other way or for any other reason. Subjectively, there may appear to be a difference for that reason (more efficient access to the brain), but the same pathways are being accessed - just to a greater degree.
An analogous and more familiar (but not identical) example would be Vyvanse and Adderall. The actual metabolic process is different from the example above, but in essence, about 50% of Vyvanse is lost when converting from a form which has no effect on the brain to a form which does. Once it's converted, it's chemically equivalent to Adderall. That's part of why Adderall XR is prescribed in doses about half the weight of Vyvanse.
[Nitpick: Yes, this isn't a perfect analogy; pharmacology is complicated! Vyvanse contains a single enantiomer of a single amphetamine; Adderall contains two enantiomers each of two amphetamines, but if you know that, you probably already know everything else I'm clarifying here anyway. The reason Vyvanse has reportedly lower side-effects is because it lacks the less effective l-enantiomer, not because the amphetamine is otherwise radically different.]
Maybe I should have been a bit clearer, but my point was that Adderall (legally prescribed amphetamine), Desoxyn (legally prescribed methamphetamine), [street] methamphetamine, and [street] amphetamines ('speed') are pharmacokinetically different because of the way that they are taken, the mode of ingestion, and the set & setting, not because of the active ingredient itself. In general, people don't seem to understand that difference, and for that matter, neither do our laws.
[Disclaimer: Everything I've said above is 'false' in the sense that it is an oversimplification, but this is HN, not a discussion board on pharmacology, so I'm sacrificing some precision in favor of accessibility/simplicity and (attempted) conciseness.]
comment 14y ago · link · parent
The history behind how New York's marijuana decriminalization and this loophole came to pass, especially in contrast to the Rockefeller drug laws, is actually a rather fascinating example of the sheer racial/socioeconomic hypocrisy within US drug laws.
comment 14y ago · link · parent
> We have a caricatured view of the drug addict -- the unwashed, illiterate, toothless junkie hiding out in a crack house. Yes, addiction ends up that way for some, but by and large addicts are middle-class, educated, and live in houses with their friends or families
Excellent points. If there were just two things I wish everyone in the world (or at least in the US) would understand, it's this:
1. The drugs that you are prescribed and the drugs people consume recreationally are not fundamentally different. In fact, in many cases, they're essentially interchangeable from a chemical perspective (Adderall/Desoxyn/Methamphetamine/"Speed" are a great example; Marijuana/Marinol is a partial example too). The prescription vs. "everything else" divide is almost arbitrary. If someone told you that they were prescribed diacetylmorphine for chronic pain, what would you say? What would you say if they took heroin for pain?
2. The stereotypes of 'drug addicts' and 'drug users' are grossly inaccurate. Yes, some people who use heroin/meth/coke/etc. fall into the respective stereotypes. But many don't - you just don't know it, because they're the ones who manage to maintain normal lives. Look up diactylmorphine (heroin) maintenance programs in Switzerland and the UK, and you'll see that many people who used to fit the stereotypes of the homeless sex-working heroin addict are able to maintain steady 'normal' jobs if they are given regular access to heroin of a consistent quality/potency and with no adulterants (this requirement is key!)
In the UK, there was a 'Nice People Use Drugs' campaign, which was aimed at exactly that - demonstrating to people that the stereotypical drug users are just more visible; the invisible majority of people who use or have used drugs have no lasting/debiltating/noticeable problems (if any at all). Everybody knows people who use drugs of some sort; they just don't always know that those people use drugs. (And sometimes, they're not the ones you'd expect!)
comment 14y ago · link · parent
All decriminalization is not alike. In New York, for example, decriminalization is in in name only, because police can easily exploit a loophole that allows them to charge people with possession of more than an ounce (criminal) even if they only have a few grams (not criminal). Because of this, New York City arrests more people (per-capita and in total) than any other city in the entire world. Compare to the Netherlands, which also has 'only' decriminalized marijuana.
comment 14y ago · link · parent
Could you elaborate, perhaps with an example? Not trying to start a flamewar or anything - but I honestly can't imagine a case where Java is succinct relative to other languages. And as far as elegance goes, Java is so overly verbose and fixated on classes ('too many classes? there's a class for that!') that I have a hard time thinking of it as elegant.
But then again, maybe I'm just used to reading bad Java code everywhere, and you've been lucky enough to find the good stuff!
comment 14y ago · link · parent
It's not uncommon for large companies to contribute to candidates across the board - even (or especially) to the two presidential candidates (both Dem and GOP). In a world (or country) where corporations and money have a large impact on policy, it'd be foolish for them not to. (You can say that this reflects poorly on the US political system, but it's not Google's job to change that).
On a separate note, I know that some candidates set up 501(c) 3s and -4s before they officially start running, and Google matches charitable contributions from its employees. Does anybody know if those types of funds (or funds donated through another organization) are included in these totals? It may not be the case, but on the off-chance it is, then this would just be a byproduct of the employees' own contributions.
comment 14y ago · link · parent
I'm surprise nobody's mentioned Knuth, though maybe that goes without saying?
As for probability and statistics, I haven't really found anything (at an advanced) level that I've been happy with. Maybe it's because my background is in statistics, so it's a perception bias (I see the flaws more easily than with other subjects), but I think that most statistics textbooks are pretty rotten.
There are really only two that I'd recommend, and only one at a high level. Gelman & Hill is a great introduction to computational statistics at a high level, while still very readable (and enjoyable!)
http://www.amazon.com/Analysis-Regression-Multilevel-Hierarc...
Other than that, the only truly stellar statistics textbook I've ever seen was the one I used in my intro class in high school. It's sad, but it's a very true comment about the current state of most statistics textbooks (that I can find).
comment 14y ago · link · parent
Yes, 'significant whitespace' is too sweeping a term to be useful. I've heard people complain about Python's 'significant whitespace' until they realize that it uses basically the exact same whitespace rules as Java does, except with sensible indentation rules instead of braces.
comment 14y ago · link · parent
Spot on. People keep saying that 'only the worst offenders would be prosecuted'. However, anytime a law is enforced only partially, you have to stop and ask yourself what other biases (in the statistical sense) are being included by proxy (intentionally or not).
For example, in the case of drug laws, 'only the worst offenders' ends up meaning 'enforced disproportionately by race/socioeconomic status'. It wasn't the intention of the Controlled Substances Act in 1970, but it's undeniably been the outcome.
My hypothesis is that, in the case of SOPA, it would end up meaning'enforced disproportionately against individuals and small corporations to the benefit of the large corporations' - but in these cases, you can never be sure that there isn't some other hidden factor as well until it's too late.
comment 14y ago · link · parent
I completely disagree; my eyes tire looking at a light screen much more quickly. Sometimes I'll invert the colors late at night just to make things easier to read.
(Come to think of it, thanks for reminding me that I need to figure out how to get xcalib working with my external monitor, not just the laptop screen...)