Managing clueless software managers
Ideally it would be great if those in management had at least some background in software development.  On a number of occasions though, as a software developer, I have found myself dealing with what some might deem (unfairly?) "clueless" management individuals.

Rather then turn this into a anti-management ranting session, can you provide any effective and sensible techniques/approaches to dealing with such a manager?  

These days I try very hard to put myself in the managers shoes and see things from their perspective.  In some cases this can help, but often I can feel my sanity starting to slip if I go there for too long.

If you find yourself on a project where you have concerns about the quality of management, how do you manage the situation yourself so that things don't completely fall apart?
Managing clueless software managers
===

Ideally it would be great if those in management had at least some background in software development.  On a number of occasions though, as a software developer, I have found myself dealing with what some might deem (unfairly?) "clueless" management individuals.

Rather then turn this into a anti-management ranting session, can you provide any effective and sensible techniques/approaches to dealing with such a manager?  

These days I try very hard to put myself in the managers shoes and see things from their perspective.  In some cases this can help, but often I can feel my sanity starting to slip if I go there for too long.

If you find yourself on a project where you have concerns about the quality of management, how do you manage the situation yourself so that things don't completely fall apart?