Ten cycles of solar and geomagnetic activity