Scott Meyers, the author of several technical titles such as "Effective C++" has posted an article in which he describes his experiences about writing books and what new authors should be aware of. I love his insight and wish this would have been out there before getting my first book published :)

Link: Advice to prospective book author.