New York stocks rise on chip rally; Nasdaq strong as oil and gold fall