The guy that listened to someone else before accepting the OP's opinion might have done so because he knew the other person better or respected him more for a non-gender based reason. Or maybe the idea didn't sink in until he heard it twice.
Getting attention in a meeting where several loud confident people are pontificating can be difficult if you are not a loud, self-confident person, or if they don't already respect you.
But I don't think the OP needed to escalate to crack pipes right away, although it's a great line. A "Guys, we don't use type-two data!" loud enough to be heard over everybody else's voices and repeated until it worked probably would have done the trick without affecting perf scores. It depends on the culture of the group. There is usually some accepted way in a group to interrupt conversations that are going nowhere. My guess is that anyone would have been dinged by that boss for the crack comment, just because that's his way of dealing with things.
Also, filling unappreciated and oppressed can become a self-fulfilling prophesy in men as well as women. If you go in there unsure they will pay attention to you, they probably won't. If you go in there thinking, "I'm not going to say much, but when I do, they had better pay attention, because I know what I'm talking about," they will sense it and listen, no matter who you are.
One thing I think isn't understood by the women who post things like this is that men are always in competition. It's like a wolf pack where a pecking order must be established.
In any meeting some guys who are trying to be alpha are going talk over or ignore other people they perceive as beneath them, or who they want to put beneath them, men as well as women. It's not a gender thing as much as it's a power thing. The way to overcome it is stand up for yourself and to establish your competence in whatever the group respects whether it be fisticuffs in the Army or technical skill in a company.
I suspect that the crack pipes remark, coupled with her obviously correct understanding of the problem at hand, won her respect points with her co-workers that will make them more likely to listen to her later on, no matter what the boss thought.
In the same way, having her opinion confirmed by another respected person probably made the coworker in the second example more likely to accept her opinion without confirmation the next time.
Basically, nobody gets respect right away. It doesn't come with a title, or even because you are a man. If you don't have the type of personality that immediately commands respect, you'll have to earn it step-by-step. Even if you do immediately command it, you can lose it very quickly if you don't show yourself worthy of it.
Also men test each other and especially newcomers by teasing or pointed jokes. The ability to "take a joke" is highly respected. It's not an attractive trait, but it happens. You can just ignore it (recommended), or you can do it better than they do. Depends on your personality. It usually stops after a while. Complaining about it usually makes it worse. In one sense, if men are doing this to a woman among them, it means they have accepted her to some extent. Now all she has to do is start working her way up the pecking order. A sardonic smile and a comeback (even a dumb one) can work wonders in this situation.
None of this, however should be taken as a reason to accept actual sexual harassment by word or deed. If that happens, a clear, sharp "I'm sorry, what did you just say???" or "Get your hands off me!" is called for, followed by a trip to that person's supervisor or higher until the matter is resolved.