I've dealt with similar issues and Aldo's advice above is definitely a good start. Part of it is a process of learning to stop focusing on these feelings and to shift that focus to positive things (if you really look, you will find many positive things about your life). Another thing I would suggest doing is accepting that all of these things you tell yourself - beating yourself up, thinking others are better than you, thinking there is anything wrong with you - are all lies. You want to stop telling yourself these things because they are made up and, by focusing on them, you perpetuate them and start to believe them. All of this is a daily practice and it might not happen overnight but I can say pursuing these ideas has greatly improved my own life over a relatively short period of time.