So I've read a number of times that you can't see an individual star in another galaxy. Yet Hubble and Leavitt used Cepheid variables to create a standard candle. How did they measure the period of a star in, say, M31?