Mike Judge has cast the leads for his single-camera HBO comedy pilot about “the high tech gold rush of modern Silicon Valley, where the people most qualified to succeed are the least capable of handling success.†T.J. Miller will play Erlich, the intelligent and self-satisfied owner of the Hacker House. Thomas Middleditch will play the brilliant yet socially awkward software engineer Thomas. For Middleditch, this comes after The Farm — The Office spinoff of which he was one of the stars — got killed. While Miller is still technically attached to The Goodwin Games, Fox has allowed its stars to look for other projects, as the show is basically dead. So it goes — network TV’s loss is yet again pay cable’s gain.