Need help programming a photocell/relay shield

Ans also, what exactly is a dip switch

DIP = Dual Inline Package