Although they are not, in themselves, male/female or "alive," machines have personality because they are inhabited by spirits, gremlins, whatever you want to call them and you have to either placate them or work around them when you do mechanical work. When they are being difficult I often use the "sneak up on them" method. This is used when you are having great trouble with some specific bit of maintenence/repair. Either you can't quite get to a bolt, something won't loosen, etc, etc.
Anyway, first I try to talk them into conceeding. If this fails I try to intimidate them by cursing a LOT. This works much of the time BUt there are some cases that are just too difficult and this is where the "sneak up on them" method works. After all the cursing and associated drama has failed I then loudly announce, "F%*K IT, I JUST CAN'T DO THIS! THE H#LL WITH IT!" and walk away (not too far - they really can't sense your presence if you are more than a few feet away)
The spirits/gremlins then chuckle to themselves and relax to celebrate their defeat of the pitiful human. About a minute later I then re-attack the recalcitrant part. The gremlins are surprised, disorganized, and not in the proper defense position and have no time to adequately respond and VOILA..success. This method has never failed but it takes time and a lot of energy so it's not something I can perform repeatedly in succession on a single project.