This is directly copied from Problem 6 in Chapter 7 of Stein and Shakarchi's Real Analysis.
A compact subset $K$ of $\mathbb{R}^d$ is uniformly locally connected if given $\epsilon > 0$ there exists $\delta > 0$ so that whenever $x, y \in K$ and $| x − y | < \delta$, there is a continuous curve $\gamma$ in $K$ joining $x$ to $y$, such that $\gamma \subset B_\epsilon (x)$ and $\gamma \subset B_\epsilon (y)$.
Using the previous problem, one can show that a compact subset $K$ of $\mathbb{R}^d$ is the continuous image of the unit interval $[0, 1]$ if and only if $K$ is uniformly locally connected.
The previous problem is as follows. (It is quite easy to prove.)
Prove a theorem of Hausdorff: Any compact subset $K$ of $\mathbb{R}^d$ is a continuous image of the Cantor set $\mathcal{C}$.
I spent a few hours on this problem before realizing there is an error in it. I am sharing my solution to save others' time. I denote such a continuous mapping as $f$.
We can prove the only if part by contradiction. If the statement is not true, there exist an $\epsilon > 0$ and $x_n, y_n \in E$, such that $|x_n - y_n| < \frac{1}{2^n}$ and there isn't any $\gamma$ joining $x_n$ to $y_n$ such that $\gamma \subset B_\epsilon (x_n)$ and $\gamma \subset B_\epsilon (y_n)$.
Because $E$ is compact, we can find a subsequence $(x_i, y_i)$ such that $\lim_{i\rightarrow\infty} x_i = \lim_{i\rightarrow\infty} y_i = x \in E$.
Because $[0,1]$ is compact, we can find
Note that $a$ and $b$ might be different. Still, we can now define $\gamma_N = f([a_N, a]) \cup f([b, b_N])$. This curve will be within any $B_\epsilon(x)$ for sufficiently large $N$. By construction, it joins $f([a_N)$ and $f([b_N)$, leading to a contradiction.
The if part is simply not true. A trivial counter-example is $E = \{ 0, 1\}$. $E$ is locally connected, but not (globally) connected. We cannot find a continuous mapping from $[0,1]$ to $E$. If we change locally connected to connected in the original problem, we can find mapping $f$ by
Combining both halves of the problem, we have proved that A compact and connected subset $K$ of $\mathbb{R}^d$ is uniformly locally connected.