Homeless man arrested for Valentine's Day machete attack