Embarrassing Story. Moral: Take Care of Your Health 18 years ago
The same thing happened to me. I had a nice Aeron and desk, but had moved to the couch with the laptop for several day hacking sessions. I wasn't as afflicted as you, but it was extremely unpleasant. My diet wasn't bad, but my posture was.
Invest in (and take advantage of) a proper work environment!