How Do I Stop My Dog From Barking At People Through The Fence?

One way which isn't always practical, is to temporarily keep your dog in the house while you're not at home and in a room that doesn't allow him to bark at passersby through the window...