Remember the article on Tv-B-Gone kit ? Yes it was a nice project that you can play with, but here come big-brother with its learning function. It means you can now teach the kit to turn off every TV imaginable. The current hardware  includes an Atmega 168, a USB port, a 2MB Atmel dataflash (for storing all sorts of codes), a learning mechanism (which can detect the correct carrier frequency), four buttons (selecting transmitter and learning mode, enable USB, …) and of course four powerful infrared LEDs.

New TV high range remote control the TV-B-Gone with learning function

You can find info, full source code and schematics on the authors page [Link]