Feedback Heating in Cluster and Galactic Cooling Flows