How do you split expenses with friends?

Going on vacation or to a restaurant with friends can turn into an awkward experience when it comes around to splitting the bill.