Homeless TX vet ticketed for digging through trash