For your MP3 riders, the technique is slightly different. Pull back the recovery hose (if your state has them), position the nozzle at a 90 degree angle to the bike, push the nozzle as far into the tank as it will go, let loose of the recovery hose and pump slowly until the gas clicks off.
Note that this solution isn't 100% guaranteed to prevent overflows, but it will greatly reduce them.
Photo courtesy of MV User DougAndMichelle
Other solution is the Q-Maneuver, which can be done simply by propping up the back end of the underseat bucket with the gas cap, as pictured.