Jerry Seinfeld had a unique calendar system to motivate himself to write jokes every day, even when he didn't feel like it. He would take a calendar, and mark off every day he wrote a joke. The goal was to "not break the chain". Read more about it here, here or here.
It is well known that if you want to create a routine or create a new habit, you have to be consistent and persistent. That is, you have to do it regularly, and you have to keep at it, usually for several weeks.
QuickHabit.com uses Seinfeld's technique to help you track something regularly, like exercise, pushups, learning a programming language, etc.
See an example here example
So how can I create a habit you ask? Easy ...