Here's a clever tip from Fine Homebuilding for making sure a power tool doesn't come loose from an extension cord. It's particularly useful when you're in a place or situation such as on a roof, where you absolutely don't want to have to stop work to plug the tool back in. 



The video doesn't mention this, but be sure to use only insulated wire.