That's precisely why this post resonated with me. Even short of literally switching mind sets, I find it tricky to get motivated to code after spending ~8 hours at work (coding). As it stands, I even find myself stressing out over weekends due to not being "productive" enough on side projects.
Of slightly more relevance to the author, having done the 2-hour commute in SV (granted, from SF to Menlo because socially I couldn't stand the latter), I strongly recommend against it. Housing accommodations can be found in SF for a developer's wage, and I would strongly urge anyone and everyone to avoid spending 4 hours of their life each day in transit. It makes a difference.