I usually wear a heavier denim pant so that he gets a mouthful of fabric when he goes to nip at my ankles.
Can't do anything about the yipping except earplugs, though.
Nice try, Sparky.