How do I prevent dogs from crapping in my yard?

It seems like a lot of my neighbors don't pick up after their dogs, and I can't shoo them away because I work all day long.
I don't want this to be some daily maintenance job for me.
I don't care about how to do it, but I am tired of this and would like it to stop. What is the best solution?
40 answers 40