Dirichlet's box principles