The post linked above is an excellent programming war story which may not mean much to you unless you work with computers for a living, the story has some lessons that can be applied with profit to life in general.
First: whenever you spend hours or days wrestling with a difficult problem, the answer is invariably some stupid little thing that you either forgot or didn't know about, so you may as well check for that first and save some time.
Second: as Mr. Tilton says in his post, "You can run, but you cannot hide." This is especially true when it comes to marriage, as most of the people I know who are divorced broke up as a result of issues that were readily apparent before they got married.
Finally, Tilton's law: "Solve the failure first." Failure provides an excellent opportunity for learning. Take it.