EBay, BlackBerry rise as tech stocks advance