He spent 31 years at Microsoft. Then he was laid off — and had to relearn how to job hunt.