It's a vicious cycle; any town that has a permissive and non-discriminatory attitude towards the homeless attracts the bottom of the barrel, and the resulting reactionary policies mean that the few towns that remain permissive become swamped even further by the undesirables. There really is no solution besides commitment to mental institutions for those incapable of coping with society, and draconian enforcement of "quality of life" ordinances. This sounds very cruel and uncaring, but there is no doubt that it works. For example, the small town that I am currently camping outside of (Wickenburg, AZ) is perfectly cool with vandwellers who blend in with the local population, support themselves, and follow the basic rules of civilized society. However, there is zero tolerance for panhandling, drug use, lack of hygiene, loitering around in packs, public drunkenness, yelling at your inner demons, parking on town streets overnight, and similar such behaviors.