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
Actually, I use Python for mathematical computing, and I've never used Python's built-in arrays. NumPy arrays are much more convenient, and NumPy is written in C, so it's way faster than using a list.
It's a win-win: the speed of C, combined with the flexibility and syntax of Python.
The only reason array really exists in Python (this implementation, that is), is to support some other libraries that need O(1) indexing but don't want to depend on NumPy. For everything else, you should really just use NumPy.
comment 14y ago · link · parent
Essentially, you want to measure the 'quality' of each outcome (utility), and the likelihood of each outcome. Then, you calculate the expected utility (which is different from the utility of the expected value - you apply the function before taking the dot product, not afterwards).
I'm blanking on the TeX at the moment, but you basically take the sum of p(i)*U(I), where p(i) is the probability of the i-th outcome occuring, and U(I) is the utility ('benefit') associated with the i-th outcome. Utility is unique to a monotonically increasing function, so that means the individual values are arbitrary, as long as the relative order is preserved.
Then, see if that expected utility is better than the status quo. (Of course, this assumes that you already have a well-defined utility function, which is easy in theory but hard in practice).
comment 14y ago · link · parent
You mean using marijuana to treat insomnia (or sleep disorders in general)? Quite a lot, actually - marijuana is one of the most studied drugs in existence, and its effects on sleep disorders have been documented thoroughly. It depends on the state, but some of the states with medical marijuana laws accept sleep disorders as a valid use.
comment 14y ago · link · parent
To be honest, most of the classes I've taken in my life (not just in college but in grade school as well) taught me very little that I couldn't learn by myself from a textbook. And in many cases, I did indeed end up teaching myself the material from the book (usually beforehand). This means that class time would essentially be a review session, or a time to highlight the topics that the professor wanted to focus on (useful for the exams). So the classes were definitely beneficial, but arguably unnecessary. This is partly a function of my own study habits and workflow, but I imagine that many other motivated students are in this category. And in the age of the Internet, the ability to teach yourself will become even more valuable.
That said, I wouldn't say my time in school was wasted, even if I could teach myself most (though not quite all!) of the things I learned in my classes. At least in college, my favorite classes were the ones which challenged my previous beliefs or forced me to consider things in another light (yes, this can happen in CS, too!). When you're learning things on your own, following your own interests, there's a natural tendency to avoid this kind of dissonance, which provides a sort of selection bias in what you end up learning.
Furthermore, college is a great time to meet other people and engage with them on an academic level. This can be your professors, who are oftentimes domain experts, or other students who share your interests. (Or even other students who don't). Yes, you meet smart people in the workforce and other aspects of life too, but it's rare to engage with them on the same type of academic level as you do when you're in an academic setting. (And even if you could simulate this through online classes... call me old-fashioned, but I still put a premium on in-person, face-to-face interaction).
My formal education has been incredibly valuable - just not for the reasons one typically considers a formal education to be valuable. If that's all you're considering, then yes, online classes can simulate most of that. But for me, they would have missed the most rewarding parts of my academic experience.
comment 14y ago · link · parent
I've always wanted to get into the kernel a bit more, but it can be difficult if you're not already familiar with the codebase and architecture, so it can be difficult to get started. This seems like a great way to get some initial familiarity - too bad it's (apparently) defunct.
comment 14y ago · link · parent
Columbia's always been a top-tier research institution - in fact, it has more Nobel laureates than any other university in the world. As far as computer science is concerned, let's not forget that a number of great achievements in tech & computer science (past and present) are the work of people who are or were in some way affiliated with Columbia. I can't find a comprehensive list at the moment - unfortunately the Columbia CS department website doesn't brag about itself enough for that - but it's not too hard to think of examples.
Columbia already has an engineering school (the Fu Foundation School of Engineering and Applied Sciences). The school is known for the strength of its graduate and undergraduate programs - its selectivity rate for undergraduate admissions, for what it's worth, is lower than any other school in the country except MIT.
Is there room for improvement? Absolutely - I can think of a number of ways. But the tech scene in New York is young and looking to grow quickly. It makes more sense to me to take advantage of the tremendous resources already here and amp them up, rather than start from scratch.
Unfortunately, for reasons that are more political than they are logical, I'd be surprised if Columbia actually won this contest. But it would be a pleasant surprise, knowing that they made the right decision.
comment 14y ago · link · parent
The potential appeal of the Chrome notebook is its security-by-simplicity. If the only thing you can do is use Chromium, then your notebook is basically as secure as Chromium itself is (in theory, at least).
The irony is that we're essentially moving back to the way computers were a few decades ago - people used terminals to access a central computer. We moved to personal desktop computers for a while, then laptops (and mobile phones). It'll be interesting to see if the rise of interest in 'cloud computing' means that, in five years, our primary computers will just be portable terminals to access some main computer remotely.
Personally, I might be fine with that. Network speeds/reliability aside, everything I do could be accomplished easily over SSH, with X forwarding for a few applications. It's possible that these simple tools that we've had for decades could be packaged in a way that appeals to a more general use case.
comment 14y ago · link · parent
I'm not sure what to make of these reviews either. No external volume control/power switch is something I can live with, but it seems the rest is something that would be irrelevant with a custom ROM. I'm toying with the idea of getting one and flashing it once Cyanogen (inevitably) releases ICS for the Fire.
comment 14y ago · link · parent
I've been using Vim for a while, and this is one of the best-organized overviews of Vim I've seen, partly because he doesn't try to enumerate every single key combination (which is the wrong way to learn Vim - the right way is to synthesize the way that the individual operations are logically combined, though that admittedly takes some time). The best two pieces of advice he gives are (1) not to put anything in .vimrc without knowing exactly what it does, and (2) don't use too many plugins.
At this point, I actually don't think I really use any plugins regularly. I have nothing against Vim plugins in general. It might be a bit faster to install a choice few, sure, and someday I might try and figure out which ones work best for me. But for the time being, I'd much rather know how to navigate my file or project with just the standard set of operations and minimal configuration. That way, I can launch Vim on any machine and start using it, without needing to waste time setting it up just so I can use it properly.
(Disclaimer: I have mapped Caps Lock to Esc, which is indeed a major problem if I use another person's computer. I've gotten used to seeing "E492: Not an editor command: W" practically every time I type on a friend's laptop. But it saves me so much time when working on my own machine that it's worth it!)
In short: stick with Vim long enough, and you'll find that you don't really need many plugins or much configuration for it to be incredibly useful. They help, but not as much as you might think, especially once Vim's standard keybindings become part of your keyboard reflexes.
comment 14y ago · link · parent
Submitting code upstream to Redis is completely independent of their patent decisions regarding Android. I'm not a fan of their overall stance with respect to FOSS/Linux/Android, and they may be earning the snark there, but not in this case.
These discussions become a lot more valuable when we stop characterizing any organization, especially one as complex as a large corporation, as universally 'good' or 'bad'.
comment 14y ago · link · parent
Google wants to create a platform that will dominate all mobile devices for years to come. Cell phones (and, more recently, tablets) are just one aspect of that. They want a standard OS for any small-scale device. In their vision of the future, your coffee maker, refrigerator, and laundry machine may all use an Android-based platform.
This is one of the reasons why they are perfectly happy with Android being used for cheap smartphones which are really just amped-up feature phones. They don't want to be seen as elitist, the way that Apple tries to market itself as high-end. They want to have high-end products, sure, but it's equally important to them that they cover the range of that spectrum.
I don't know if they had exactly this in mind when acquiring Android, but by now, it seems clear to me that this is their goal.
comment 14y ago · link · parent
I saw an incredibly great collection of creative 404 pages a few months back. I can't find the one I saw, though Fab404 (http://fab404.com/) has a bunch.
comment 14y ago · link · parent
I have a few bank accounts for my company (checking/investments/etc.) which each require different logins. That's fine.
However, the security questions for a business account are inextricably tied to an individual. Favorite animal? High school mascot? Where were you born?
These are all questions that are pretty easy to crack for an individual account, so they provide next to no added security. Furthermore, for a business account, they're just an added layer of frustration. When I took over the accounts, I had no idea how the previous president answered the questions, since they're all personal to him, not our company. Furthermore, when someone else at our company needs to access our accounts, they need to know the answer to my security questions... which are the same ones I have to use on my personal bank accounts!
In the end, it's so much of a pain to remember the answer to these questions that when I'm randomly asked to verify, I'm just as likely to call customer support and ask them to reset them. So what does this mean? I call customer support and give them
1. My name 2. My company's name 3. Our username 4. Our bank account name 5. Our tax ID number or the last 4 digits of the social-security number on the account.
...most of which would be pretty simple for a would-be attacker to obtain. And let's face it, corporate accounts at banks are much more likely to be the targets of individualized attacks, rather than random attacks over an array of accounts.
tl;dr: For business accounts, security questions actually decrease security.
comment 14y ago · link · parent
Something like a work of art might be better. Let's say you sculpt a statue, and you allow anybody to view it for free, including the right to take pictures of it for free. You have an optional donation box next to the statue, but nothing mandatory.
Now, someone takes a picture of it, retouches it photo-editing software, and then sells that photo to millions of people and makes billions of dollars off of it.
Is it a 'cost of doing business'? No, because the cost had already been assumed by the time you'd decided to license the statue the way you did. Is it illegal? Of course not, because that's how you licensed it. Are you worse off for it? No, because you lost nothing - viewing the statue is not a rival good.
When viewed in this light, it certainly seems like a rather rude thing to do, but the artist knew that this was a risk when licensing his/her statue in that way.
comment 14y ago · link · parent
Beyond being somewhat homophobic, this policy is actually counterproductive. The explanation is long, but I've written it all up here: http://bit.ly/q6624N . (The second and last points, in bold, are the most relevant).
Being Indian myself, it's incredibly painful to see posts like this and know that I can't do anything to help Amit out. Because I was never allowed to take the test, we'll never know if I would have matched Amit. But just think - what if I had?
comment 14y ago · link · parent
I won't copy-paste it, but if anyone's interested, it's here: http://bit.ly/q6624N
comment 14y ago · link · parent
I'm not sure if that's still a problem, or if that's a problem on other platforms, but now I use Chromium on Linux and I've never had any major issues. (Except sometimes when Flash is involved, but this is Hacker News).
comment 15y ago · link · parent
Think about it this way - a few hundred years ago, it was commonplace to pay dues to the government using precious metals (like gold). In some parts of the world, this is still the case, but in the majority of the developed world, public and private debts are paid with money that gets its value by fiat.
This change can't happen overnight, even if you force it to; if people continue to accept gold (for example) has having liquid value, then it will continue to be used as a currency.
I wouldn't even use the beginning or end of Bretton Woods as the turning point (though it was certainly a turning point), because the point is less whether people can convert currency to gold than it is a question of whether they do.
comment 15y ago · link · parent
The decoupling of currencies from governments sounds like a radical shift, but it's actually only fairly recent in history that we use fiat money. That, of course, allows us to do a lot of things that we've gotten used to in the last century particularly, such as taking advantage of monetary policy to address short-term economic concerns.
If alternative currencies catch on, that's something that governments will have less power to do - or at least, less power to do directly and predictably. Certainly, governments are going to push back on that, and probably try to discredit or disable alternative currencies.
At the end of the day, though, while money can be determined by fiat, value is determined subjectively, so if alternative currencies catch on (which I think they well), it will necessitate a shift in the way that people think about money. (Not unlike the way that the Internet has shifted the way people think about tradable goods and IP law - just take a look at SOPA.)
comment 15y ago · link · parent
The people working in the congressman's office are the ones who actually have the working relationships with the elected officials (to the point where they can sometimes pressure them if they think that constituents are feeling a certain way, based on calls/letters).
comment 15y ago · link · parent
Agreed. The case method would arguably address many of the problems raised in this article. The problem is not the case method itself, but what is being taught by the case method.