Keep those critters away!

Buy small quantities of flour, nuts and sugar, and store them in sealed plastic boxes. That way, you have more chance of staying free of weevils and flour moths.