Runing fan with parallel port

Kinda tough to see what is going on there since there aren't any labels or schematics. Without knowing the circuit or having some idea of what you want it to do it's going to be hard to help out, especially with "code" for hardware you might not be using. Is this going to be connected to an Arduino at some point?

Also, this is the "Other Software Development" board; you might have better luck posting in "General Electronics" or (if you're going to use an Arduino) "Interfacing w/ Software".