Making the Most of Online Learning