There had been a time -- 1829 , to be precise -- when Josiah Quincy had been able to shift seamlessly between being the mayor of Boston and the president of Harvard , and Everett had been governor before taking office in Harvard Yard .