How to manage the slow pace of publishing

Having a book published, from writing that first word to seeing it on a bookshelf, takes literally years. Years and years. So what can you do to keep busy during this time?