When I feel that desperate craving to smoke (weed) I usually try to find something to take my mind off of it. For example I turn on video games and kill things, clean the house, call my sponsor or a friend. whatever works. Like everyone else said distraction is a great technique. Find something you love and do that thing when you feel the urge taking hold on you.