A question from my textbook

If every real valued continuous function on $X$ is uniformly continuous is $X$ is compact? 
Moreover if $X$ has a finite number of isolated points, is $X$ compact now?

The answer to the first question is false on considering $X=\mathbb N$. But I don't know how to go with the second one? Any help.