Stocks rise for second day