Ding Ding Ding.... I ring the bell from a ways back. If they are walking a dog, the dog will hear it long before their owner.
If they are stupid, I have to give them the "Passing on your left".
If they have headphones and are taking up more than thier fair share, buzz them because they cant hear you coming.