John Resig of the jQuery world has a really interesting post on his blog about programming book sales and profits from the standpoint of a technical author. The comment stream is worth a read too, with inputs from both writers and publishers.