Born in Penang to a Chinese father and a European mother, he studied in Edinburgh and Germany, then served for some twenty years on the staff of the Qing official
张之洞. His English book The Spirit of the Chinese People (1915) defends Confucian values.