I usually just toss and turn until I can fall asleep too. Studies supposedly show that the light from your computer or the tv makes it harder for you to fall asleep, so that might be counterproductive (unless you do it until you're too tired I suppose). My absolute last resort if I need to sleep for an important meeting or interview would probably be to take ambien (or benadryl which contains the same ingredient as OTC sleeping pills, except that it makes me groggy the next day).

Some interesting articles regarding the topic:
Your Computer Is Giving You Insomnia, But I’ve Got the Medicine: F.lux | Techerator (I might want to try this program for insomnia)
NY Times Article: As Different as Day and Night

“Nowadays there are lots of environmental issues that play a role in altering people’s sleep patterns, and the most obvious would be the computer,” said Dr. Nancy Collop, medical director of the Johns Hopkins Sleep Disorders Center. “It emits a blue light, which is one of the most stimulating lights to the little receptors we all have in the back of our eyeballs, which send messages to the brain to say whether it’s day or night and whether we should be awake or go to sleep.”
In other words, your receptors become confused if you stare into a computer screen late at night.