Making a Remote Control for My TV from Scratch
Creating a remote control with an IR led and a IC for registering/sending codes is actually pretty easy using a PIC micro-controller or the likes. And programs like PicBasic are very easy to learn and use for programming. 

The issue lies with a very important problem:

You need an actual remote that works with the TV to get the codes. 

There is absolutely no source online for IR codes. You need a functional remote for this, which makes it useless creating a new remote from scratch in the first place....

I guess I'm getting old or don't research often enough but if you really want to make a remote there is a few options:

You can make an arduino remote control. This uses very low cost parts and a bit of learning:
https://importgeek.wordpress.com/2013/02/19/send-tv-remote-signal-using-arduino/

A more compact way of doing this is using a PIC micro-controller. (ex. PIC12F675 from Microchip) There is very little parts needed and has a smaller footprint. Programming is a bit harder, but many programs are already done for you. Only editing the HEX codes is needed for the most part. 

As for the HEX codes needed for the TV to recognize, they can be found here:

remotecentral.com/cgi-bin/codes – Thanks to Mattman944 for pointing that out!

If you have a Samsung tablet, some have IR transmitters. If so, you can use this as an alternative remote using remote control apps. Or simply buy a new remote off ebay/amazon.