There is also the tutorial on the Sheldon Brown site. You can't miss with that. Pretty much what FB said, but with pictures.
Is this a front or a rear. When you say 10 spokes are too long (the last 10?) are you taking rim centering into account? Do you have the rim too far over to the side of the flange where the 10 long spokes are? That could be your problem.