I got the picture from this site here:
Cat Fence Project
The story they posted on their website is very long, but worth reading as the guy explains step by step how they made that fence.
I was interested in that fence and in this fence-in here:
CAT FENCE-IN™ | Cat Containment System because I was worried that our cat might try to escape our backyard when we moved in to our new place last year.
(luckily though our cat, just like in our previous home, never tries to escape).
So when I saw this thread, I figured if it works for cats, it should work for dogs too. Being that these fences appear to be quite sturdy.
I have no experience with hot wires, but I've heard that in some places it's not allowed to have a hot wire within city limits.
So I guess it all depends on where you live. If I were you, I'd check with my city/municipality and also ask if any warning signs are required.