A squirt bottle with just water works wonders. At times it just takes a millisecond to distract a dog from the task at hand (Barking at yours). You try the bending down trick on MY dogs, this will leave a nice opening to knock you over and get on your chest.... to lick your face that is.. (NOT).
Bottom line, Its all a matter of socialization. Every dog wants to TEST your dog when he walks the block. The Message you put to your dog as he is walking with you goes a looong way. YOU have to be the TOP dog walking the block, not him/her.
G Luck!