Projects and Quizzes
When out of ideas of what to code, or when getting familiar with a new programming language, a really nice escape route is to get your hands on some quizzes and projects, that will get you going.
Here are some really interesting ones:

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.
The motivation for starting Project Euler, and its continuation, is to provide a platform for the inquiring mind to delve into unfamiliar areas and learn new concepts in a fun and recreational context.

A free, community driven Q&A for programming puzzle enthusiasts and code golfers. It is a part of the Stack Exchange network of Q&A websites

Virtual source, is a series of programming contests. Participants register teams and winners win a prize.
If you have more in mind, let me know and I’ll add them to the list.
Comments
Possibly Related Posts
 09 Feb 2012 » Ενα Παραμυθι με Νοημα
 06 Jan 2012 » Naked in the Rain
 01 Nov 2011 » Whole Sort of General Mish Mash