Surrender completely, be kind, considerate and honest. Haven't gotten a ticket in nine years. More, if you're curious about the step-by-step:
http://blog.danilocampos.com/2010/10/23/how-to-get-away-with...
Having a notebook:
A notebook large enough to comfortably dump your thoughts into but small enough to be always near your keyboard is awesome. The notebook helps with procrastination, especially when avoiding some gnarly bit of code you don't know how to write. I just start describing the problem and how I might solve it.
After awhile, I have:
- An idea of what I need to look up
- A basic list of tasks
- A clearer understanding of what I need to do