It seems its your boss that has the issues here, given the fact he has to go out of his way to bully & hinder you like that. I think you must give him an inferiority complex as hes surely going out of his way to put you down. It's quite pathetic really. Can't you go to someone above his head, and explain how appalling his behaviour is getting, and the fact that it's making you feeling really uncomfortable and undermined. You shouldn't have to work in that kind of environment, he sounds a complete idiot. Couldn't you find it in yourself to explain to him how troubling his behaviour is, and maybe aim for a more " do I intimidate you so much, that you feel the need to try gain superiority over me all the time" approach. Or " please will you just let me get on with my job" or "what's your problem"? It would really p... me off, I hate people who think it's okay to behave like this. A good one I once learnt, is the " silent, standing and frowning, staring straight into his eyes for a while when they've behaved like a kid." He will look really awkward and won't know what to do or say, and don't reply if he says anything, just keep frowning as if he doesn't make any sense. It might deter his future escapades. Good luck. I hope you soon find your confidence, you don't deserve this, and keep telling yourself so.