Stocks rally as technology companies bounce back