Don't worry about remembering facts; instead, seek to understand how and why things are the way they are. By understanding deeper reasons behind things, the facts will make contextual sense, and will be much easier to recall, or if necessary, to deduce. This can apply essentially anywhere, from physics formulas to historical events to programming conventions to political actions.