Keep a pad of sticky notes and a pencil on you at all times. When you get an idea, quickly write it down on a note and shove it in your pocket. At the end of the day, take out all the notes you accumulated and designate an area to stick them to. Once the area is full, trim it down by removing impossible ideas and stupid stuff.