Duality in Convex Programming and in Projective Space