Another solution is to make commuting from a "long distance" (e.g. 60-120 miles) more bearable. In NYC, for instance, subways could be built to NJ.
Faster trains (low-speed maglevs) could be built like what's being done in China (http://en.wikipedia.org/wiki/Line_S1,_BCR).
Mountain View to San Francisco is 40 miles. Is there some reason that isn't a 40 minute commute?