Stocks shook off early losses and managed to end mostly higher on Wall Street, even as weakness in technology companies weighed on major US indexes, the AP reports. The S&P 500 edged up 0.2% Wednesday after trading lower for much of the day. The Nasdaq fell slightly and the…