The Aberdeenshire farmers' son took solace in researching history when an ear operation went wrong.