read all anti-barking suggestions...
...and the winner is...ANNOY THE OWNER IN RETURN. I am a nice nurse who politely requested dog owners in my apartment community to please be aware of neighbors like me who need to get up early in the morning by not letting their dogs stay on the patio all night to bark every single time someone walks by on the main thoroughfare (not to mention constantly for a good 2 minutes afterwards!). When that stopped working a week later, I would yell "QUIET!" and the barking would cease until the next person walked by or if the guilty neighbor brought their dog in. Sick of losing my voice (and not receiving any complaints from them nor other neighbors, who probably got a kick out of it), I filed a complaint in the leasing office, who looked up their apartment # & discovered they didn't report any dogs on their lease (to avoid the $50 extra rent per month and $1,000 deposit...AND to get away with having the illegal pit bull breed). Office said to give it a week after the notice was sent out with their fine to pay up & get rid of their illegal breed; if not then, they would make a second, more severe warning, like an eviction notice. 3 days later nothing changed & I felt like taking matters into my own hands, so I looked up "high frequency speaker test" on an internet video site & played it on my optimal speaker system at the freq I WAS ABLE TO HEAR & GET HEADACHE BY IF I DID'NT PLUG MY EARS. It only took 3 times for the dogs to stop and I finally got the neighbors to pull their dogs in, all on the first night! Let's see how long this will last...if they complain about me, I WAS FIRST to complain about them, and on top of that, if they can let their dogs be against "community compatible" code in our rental contract, then I can return the insult (because mine is only in response and I quit when they do!).