Me, I usually write a small game to teach me a new language.
Learn how to use a library that interests you and do something with it, anything.
Like, learn SDL and make a little arcade game. Or a crappy music player using GTK. You get the point.
And keep some open source programs for reference (or use google's code search) when you get stuck at something.