First chapter of PAIP has this gem that always stuck with me..
You think you know when you learn, are more sure when you can write, even more when you can teach, but certain when you can program. -Alan Perlis
Whenever I want to learn something, after reading the textbooks and doing the problems I always try to implement something that uses that knowledge. For Math/Physics I can vouch for its effectiveness.