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

Are we sure this website is current? I don't see 2012 anywhere, and professors oftentimes forget to take down old course websites.

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

Given how easy it would be to bypass the proposed DNS block in SOPA in this exact way, this is just too perfect.

comment 14y ago · link · parent

I was afraid of that, but now that I think about it, it's less of an issue when the big names (Wikipedia/Google) are joining in. It makes it harder for a politician to single those websites out and spin the protests in a negative light.

(Then again, anything's possible in politics and PR, so it's hard but not impossible).

comment 14y ago · link · parent

I actually would be similarly curious how many people oppose SOPA because it 'crosses the line' (whatever that line is), versus how many oppose SOPA because they take issue with copyright/intellectual property in general (in whatever way).

comment 14y ago · link · parent

> The idea that a .NET or .COM domain name subjects you to US laws is asinine beyond belief. The only degree to which this is true is domain disputes or the management of that domain name. Nothing else.

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

I doubt it. The supermarkets in West Bengal, for example, have security because there were riots when they first came to the state (which is not that hard to believe if you compare them to Wal-Mart in the US). Ditto for the hotels (2008 terrorist attacks) and the temples and mosques (decades of Partition-related violence). India's focused on developing its economy, but not in the way that private institutions (or a budget-aware government) would actively spend money on security theater just for that purpose - especially not when there actually are real security threats afoot.

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

Welcome to HackerNews! Since you're a new user (green name), a friendly explanation of why you seem to be getting downvoted: At HN, we try and encourage respectful discourse, even when we dislike or disagree with what is being said. If you'll look at the other articles, other people seem to agree with you that the article is poorly written and that the title is sensational, but they aren't being downvoted because the way they phrase those complaints comes across as less insulting or ad hominem.

comment 14y ago · link · parent

Honestly, it does next to nothing. It's probably better than literally nothing, but if you can spare the 2 minutes to make a phone call, it's a much better use of your time.

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).

http://news.ycombinator.com/item?id=3264561

comment 14y ago · link · parent

This doesn't surprise me in the least. I've been in India for the last month, and I've been shocked by two new things since my last visit (several years ago).

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

Why? What would the point of the .torrent files be if the magnet links are still there?

comment 14y ago · link · parent

> Perhaps even better, without the torrent files everyone can soon host a full copy of The Pirate Bay on a USB thumb drive, which may come in handy in the future.

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

The other two comments are (correctly) describing what a magnet link is in the sense of its implementation. On the off chance that you wanted a more abstract/basic description, a magnet link is defined by what you're linking to, as opposed to where it is.

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

First, China never was truly communist. It was 'communist' in the twisted definition that the state owned the resources and means of production, but that's not Marxism by any stretch - that's state capitalism, which is not the same thing as a planned economy (and neither of which is the the same thing as Marxism).

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

My point exactly. A well-designed OS shouldn't require you to keep multiple versions installed on a machine like that. I have exactly two versions of Python on my box (a 2.7.x and a 3.x), and since I don't need to do development testing of libraries against multiple versions, that's all I should need. (And we're just talking about development tools and installation here - what about all of the other aspects of package management, which OS X completely neglects?)

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

(I avoid reposting/relinking, but it seems that this theme has been coming up a lot on HN recently.)

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:

http://news.ycombinator.com/item?id=3432356

comment 14y ago · link · parent

Moreover, homebrew doesn't provide complete package management for the entire system. Sure, it can keep track (sort of) of the packages that it installs, but it's not by any stretch a one-stop destination for anything installed on your system.

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

> I never understand why economists think that a rational actor would consider them equivalent

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

I'm not sure how this is implemented, but I can imagine a case in which this would work out.

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

> Do you feel the moderation over there is enough though, even on the "nicely moderated places" that you mention?

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

This is why the first two federal laws targeted at prohibiting drugs didn't actually do it directly - they did it by way of taxes. The Marihuana Stamp Tax Act (1937) is the most famous, but it was preceded by another act that targeted proper narcotics (morphine, etc.). I believe it was the Harisson act, but I'm not certain.

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

I should have been clearer - I was just trying to be concise to prove a point. And I'm making the assumption that we're comparing drugs of high quality in either category (because obviously drugs that are mixed with adulterants are going to have other problems). You seem to understand what's going on, but for anybody else who's curious:

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

More or less. There are other variations on how to exploit the same clause in the law, but basically, marijuana that is 'open to public view or burning' can be prosecuted as if it is 28+ grams, regardless of the actual amount.

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

> Drug use is a health-related issue, whether it is a doctor prescribing medications, a patient taking meds off-label, a person self-medicating, an addict, or some kind experimentation

> 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

> California, Colorado, New York and Oregon off the top of my head

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

> Nevertheless, in good hands, Java can be quite elegant and succinct.

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

> and supports too many things, too not in have in some way contributed money to just about everything

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 second CLRS - I just finished an algorithms course taught from that book, and I can't imagine a single textbook being more comprehensive.

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

> I propose we don't talk about languages with "significant whitespace", but instead about "languages with proper indentation enforced".

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.

http://www.secnetix.de/olli/Python/block_indentation.hawk

comment 14y ago · link · parent

> [T]here’s simply no way that SOPA could be properly enforced. And, ironically, that’s the most dangerous thing about it.

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

> In my experience dark backgrounds with light text are more tiring on the eyes in long coding sessions.

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...)

1
198199200201202