Original: As an expert on military fortifications, Cui eventually attained the academic status of professor in 1880 and the military rank of general in 1906.
Simplified: His main job was as an expert on military fortifications.