I'd be shocked if anyone got a 4 figure advance. I got a few hundred dollars for an XML book in the height of the XML times. Ultimately the book never got finished but everyone I know who has written a tech book (unless it's a huge seller) says expect nothing more than lunch money from it, plus the employment opportunities.