Everything I've learned, I've learned from Star Trek. If no one has written that book, perhaps someone should. And this should be one of the chapters: io9 blog described 7 types of bad bosses, according to Star Trek (and how to survive them without setting phasers to kill). Take, for instance, this guy:
The bully. He alternates between jolly and grouchy — but even his jolly side is a little scary sometimes. He enjoys "teasing" his subordinates, especially anyone who's different in some way, like having funny-shaped ears. "Notices" his female underlings a little too closely. He does give an inspiring speech about risk-taking, but that's usually just to drag you into some weird body-switching scheme that will leave you with a weird rash for a month. He's also the original "I want it done yesterday" boss, who's "sick of hearing the word 'can't.'"
How to handle him: If he yells, yell back. Say "Dammit" a lot. If he asks how long something will take, exaggerate by at least 200 percent. If he starts cracking jokes at you, just ignore it, and he'll probably go away. But never, ever make fun of him back. (I've totally had this boss, like twice, and thinking of him as Captain Kirk really helped.)