Where are you supposed to look when walking past people, especially friends?

Some people you can glance at for a tenth of a second and now they're looking at you.

When am I supposed to "notice" someone and say hi?
Where are you supposed to look when walking past people, especially friends?
Post Opinion