Stellar populations in the Carina dSph galaxy and in the globular cluster Omega Centauri