City man charged with violently attacking roommate