A mantra really helps me. Find a really really corny phrase that involves the reason you're exercising (race, weight loss, health, ect) and repeat it. Something like (breathe in) strenght in (breath out) fat off.
And music! Anything with a groove! Mentally go ANYWHERE but wherever your trainier is. It's your chance to go beat lance!