Stop electric waste-disposal units from becoming smelly by grinding citrus peels in them. Clear food debris by pouring a bucket of hot water with a handful of washing soda down them from time to time.
Window boxes won't splatter windows if you put a shallow layer of gravel over the dirt.