How to find the category IDs in WordPress

If you setup BranfordMagazine for the first time you need the category IDs to define which categories are displayed e.g on the homepage. This is not very obvious since WordPress version 2.5 anymore. This tutorial shows two simple ways how th figure out the IDs.