Staples led and optimism around commodities helped mining stocks gain late in the day, offsetting weakness in tech and health ...