Hi twob
It seems a very complicated subject to me... even taking note of what I eat I can suddenly bloat up like a pregnant man, with no explanation or idea of what's caused it.
However, I've got one observation... I've had dental problems for the last three weeks (that's all in another another thread), but the resulting soreness in my mouth has caused me to eat everything very slowly. In all that time I've not been troubled by gas AT ALL. Hoping to keep up the practice when my mouth gets better. I've also read that it's not a good idea to drink while you're eating. Have a drink afterwards.
I used to be into "food combining" once, and I still stick to some of the principles. For example, don't eat fruit before you eat a heavy protein - such as, don't have a piece of melon followed by a burger. the protein just traps the fruit in your stomach too long and it starts to ferment. Should be plenty of information on food combining available on the internet and in books. You don't have to go really extreme, just keep it in mind.