Anthropic Approach to the Cosmological Constant Problems