Heating versus Cooling in Galaxies and Clusters of Galaxies: