Problem: Brain fog and fatigue
In addition to sitting too long in one spot, we as developers are prone to thinking about one thing for too long. This can cause us to become mentally tired, and make it hard to think. Usually sleep and relaxation will resolve it, but brain fog and fatigue can often linger for a few days.
SOLUTION
Cardio - I've recommended it here before, but cardio is incredibly beneficial to mental health in a myriad of ways. Whenever brain fog creeps up, a quick 30-45 minute run will get me in the zone again.
Green tea - There's a cacophony of benefits to green tea, but the mix of both stimulating and relaxing chemicals seems to put me in a good place and help me focus.