Adaptive Algorithms for Online Convex Optimization with Long-term Constraints