You can vent to a friend in private or in public. Just don’t be openly negative.

Be nice to everyone. If you’re going to be popular, then that means that you’re going to be nice to everyone, even those that you don’t much like. If someone’s giving you a hard time, Just say “Hi. How was your day?” It works every time. Just a little compliment will lighten up someone’s day.