The carbocation 1a does not satisfy the octet rule because the +ve carbon has only 6 valence electrons (it has an empty p orbital). In 1b, the oxygen shares one of its lone pairs with the carbon to form a pi bond. This pair therefore counts for both O and C, and both satisfy the octet rule. The formal positive charge sits on O.