Hedge fund manager Dan Niles said Monday that he dumped a number of internet and megacap tech stocks going into earnings this week. “What you saw on Friday was really much worse results coming out of that market than anybody anticipated,” Niles said in a CNBC ” Closing Bell ” interview. “This is going to be an ugly week for fundamentals and potentially stock prices as well.” The investor revealed he sold many of his internet holdings —…