Let us also remember the importance of taking a break and “walking away” from hard problems. Sometimes the best thing to do is to simply stop working.
I personally find this is one of the most effective ways of cracking a difficult problem. It's amazing what your subconscious is capable of.