If they're not getting in and drinking your beer, life's grand! :-P
But to eliminate them, ever since I read this ( http://lifehacker.com/5635971/lifehacker-labs-capture-fruit-flies-with-a-cup-and-apple-cider-vinegar) post on Lifehacker, I've been doing it with outstanding results...