If in doubt, go the the internet!
A link for hard-boiled eggs:
http://www.goodegg.com/boiledegg.html
I find that it works best if the eggs have been thoroughly cooled (I just let them sit in cold water after they have cooked long enough) and that the shell has been tapped an all sides, so that you are not trying to remove large chunks of shell.