Bit of a challenge indeed. One technique I heard about and really like can be used when passing people in the street, or in crowded places, or with anyone you may feel is projecting (knowingly or not) negative energy. It's to silently offer them a bit of positivity (love, kindness, or dignity, or courage, etc...)
Got that one from Stuart Wilde's stuff...it seems to help.