One, we used vaccination to eradicate in the wild, and the other we changed our behavior in order to minimize its impact on us (PLUS developed treatments to survive it).
See also anthrax, SARS, MERS, ebola, Marburg, Lhasa, and Hantavirus.
Yep. Humans can, if they have their heads screwed on straight, adapt behavior and/or technology much more quickly than viruses change. That's kind of the point of having the big brain.