I've had two parking tickets. The first I knew exactly what I was doing - I had to nip into town to pick some stuff up (that I couldn't carry on the bike before anyone chirps up!) and parking spaces were like gold dust - so on Thistle Street there are a couple of short single-yellow sections between parking bays, which I parked in. Got a ticket in the 20 minutes I was away - paid up with no complaining.
Second one I was moving out of a flat in Comely Bank. 11pm one night I popped back for a couple of things and with nowhere to park I stopped on a double-yellow. I was away 5 minutes max and came back to a ticket. I paid up, cos I was in the wrong, but asked in the letter why I'd got a ticket for having half the car on a double-yellow, when down the street were about a dozen cars double-parked (as was common on Comely Bank Avenue at the time). I got a reply (which suggested, incorrectly, I was trying to get out of the fine, since I'd included a cheque for it in the envelope) that double-parking was a police enforcement matter over which the meanies had no authority. So next time I made sure I double-parked...
Interestingly, the same flat the Christmas before I'd been heading up north on Christmas Eve. It was again after 11pm, on Christmas Eve, and I'd brought presents down to the car which I had double parked for even less time. I'm sat in the car and get my phone out to call my folks to say I was leaving, and a police car slowly rolls alongside, winds the window down, and asks me to move on as I'm causing an obstruction. Must have been in the middle of a particularly boring shift!