Strong tech earnings pushed the Nasdaq to a two-day gain of 3.8%. The S&P 500 finishes flat in July.