Unfortunately, the only way I have found to deal with writer's block is to write through it.
More often than not, for me, personally, writer's block comes up when I am feeling inadequate or confused regarding my own work. I tend to read a new author, or go through some materials sent to me by friends, and see if I can apply new ideas from there into a piece I am currently working on. Sometimes, it's simply that the idea - though good - has not fully hatched yet, and I have nothing beyond a sentence or a feeling, but no grounding to base a story on.
So I tend to set it aside and write something new, or pick up a book I love and remember what it was I loved about it in the first place. Sometimes that brings me back to a good mental place where I can start working on my projects again. Sometimes I just need to wait it out.