For a deeper understanding of how to move past lapses in progress toward a better self, I recommend these excellent books.
On forgiveness: Radical Acceptance: Embracing Your Life with the Heart of a Buddha (Bantam, 2004), by clinical psychologist and mindfulness meditation teacher Tara Brach, Ph.D, includes guided meditations and exercises to cultivate forgiveness for self and others.