iPod Remote Control
O'Reilly Digital Media explains how to turn an iPod into a universal remote control. The hack combines an infrared (IR) device that plugs into the headphone port with software running on a PC. Essentially, you record the IR pulses from your remote controls and play them back from your iPod.
Visit this site for more info: How ipod hack works