Great advice on conditioning oneself to have a positive attitude. It's hard for some of us to have the positive attitude override the negativity in our lives, and self-change can be difficult in those situations for anyone.
Your being grateful for your 2 1/2 year old daughter, and doing things for her, says a lot about your dedication to being the best father you can be, and nothing is better for her than that.