Also:
1. No kids
2. I only watch 4-6 hours of TV per week
3. I walk to work, there's an extra hour right there at the expense of a higher rent (totally worth it). Previously, I worked from home
4. Most of my social life revolves around exercise rather than tech
5. Don't work for self-destructive managers
TLDR: Find your way to a results-oriented rather than a process-oriented position.
I've charted out a diet and a fitness routine and have surprisingly kept up with the rehabilitation process fairly well. I guess this is one of my last opportunities to lead a healthy life.
Also, not having a social group to aid in activities could've been an issue I guess. I'd like to learn the social aspects of sticking to a routine (Gym buddies, mates who take part in a physical activity, learning some new tech with a similar group of friends, etc).
These days, I work out during lunch usually. I used to hit the gym on the way home in the evening. I take public transit and it was right at my stop.
It's not different than any other industry, honestly.
That being said, I am the kind of person who generally has to try to actively maintain weight. I exercise for health benefits other than weight loss. Most casual or semi-casual rec sports are very friendly to people who are trying to lose weight though. Gyms and rec sports are probably two of the most welcoming places I've ever been. It can be almost cult-like at times.
Buy a crock-pot and precook your meals. They will be ready when you get back home.