César Cui
Like most Russian composers in the 19th century he was an amateur composer. His main job was as an expert on military fortifications. He became a professor in this subject and wrote important textbooks about military defences. He became a general.