How can I get good posture?

I have a habit of slouching, looks bad in photos, makes me look less confident in general... help!
8 answers