I had a hard time programming my new LCD TV (Sony KDL-40S4100) that comes with remote type RM-YD025. The Sony esupport website was of no use.
After trying tonnes of codes out there on the internet, I finally found one that works!
The code that works with a COX universal remote is : 1100
(Instructions here: http://www.urcsupport.com/html.php?page_id=334)
The code that works with a Panasonic program director MB universal remote is : 0861
(Just hold the TV button.. while holding it down, press 0-8-6-1.. release TV button.. try power on/off 🙂