Galaxies and gas in a cold dark matter universe | Synapse