Being a professor is not at all as influential on my views as you may think.
I would say the big influences on my life as far as sexism is from my mother. She got her PhD when my brother and I were 3 years old, a year after she had divorced my father. She raised us while teaching computer science and then took a job for Boeing. Coming from a family where the smartest person in the house was always my mother, it is hard for me to take seriously the idea that women aren't fully equal members of society. Also, my mother got me into fantasy and gaming, was far more of a nerd than I was growing up and we have a ritual where I promise to always take her to see superhero movies when they come out since my stepfather refuses to and she doesn't want to go alone. As far as my schooling, I dated many girls majoring in mathematics, physics and computer science. They shared my views and pleasures in many ways, so this idea that women can't be friends is quite silly.
On racism, it would probably be my experience in the Navy. I had not said a single word to a black man before I went into the navy. However, I did maintenance on cranes in deck department and probably 90% of my division was black. My best friend on that ship ended up being a black guy who taught me spades and we made so much bank off other people (who often assumed I would suck at spades because I was white). I went out drinking with members of my division, often as the only white guy, on many nights. So the casual racism that many people have bothers me.