Homeless man expected to recover after weeks on streets