when I run this I get a json_rpc_call failed, does anyone know why?
The miner is unable to connect to the URL you gave it, for some reason.
Hi jgarzik, as I promised somewhere on this forum, I'm sending you my first reward from cooperative mining, because your code helped me a lot to understand, how mining works inside. So 38 BTC is yours, enjoy :-).
Thanks!