I know a number of socially inept people. Some of them are perfectly pleasant, just hopelessly awkward. Others are jerks to everyone. But some are sexist jerks. And there are some people who are perfectly well socialized who are also sexist jerks.
Women were oppressed for millennia. Women in the US haven't had the vote for even 100 years. Men and women didn't have equal college enrollment rates until circa 1990. I just don't buy the thesis that sexism is now suddenly extinct, especially in a male-dominated field.
I'm sorry you've received crap. Due to your gender or anything else. But understand that jumping into a discussion of sexism with "but that happens to me too!" is such a common problem that it's listed in the "Derailing for Dummies" guide: http://www.derailingfordummies.com/menu.html