Islamic advice would be to fast.
Fasting reduces these urges.
My advice would be to excercise.
Jog or lift wieghts or play football.
Mind you this doesnt work all the time.
I remeber i was once playing football during ramadan
for several hours, and when i got home i could barely walk,
but for some reason i had a erection when i got home.
