A great collection of advice and links on the subject is here. For the (prospective) graduate students in mathematics, Terence Tao provides excellent advice here, and there is a whole new blog on the subject. As for the physics students, go here and here. See also my earlier posts, especially here and here. Some interesting material can be also found here and here.
Advice for the (Would-Be) Graduate Students