I know how it can be when you've been smoking every day for a long period of time and then you find yourself out of weed with no way to get more. Turning to other drugs or alcohol isn't always the best idea, but I've found good ways of coping.
1. If you get bored, write. Doesn't matter if you're a good writer, just do it anyway. Write poems or stories or write about how bored you are.
2. Play video games! If you don't have a good system, or if money is an issue, I recommend a computer emulator for a classic console (like the Sega Genesis or SNES). You can get those for free and there are tens of thousands of games out there that are also free.
3. Exercise. I'm fat as hell so I can't do heavy-duty stuff, but go for a nice walk every day, even if it's just around the block. For exercise that doesn't seem like exercise, check out a museum or wander around the mall.
4. Take up drawing or painting. Like writing, you don't have to be "good", you just have to do it for yourself and no-one else.
5. Remember that weed isn't the end-all-be-all, and that you went many years without it before you smoked for the first time.
These have helped me out during my long weed-less periods, maybe they'll give you a lift too!