Here's a good link from Epicurious on how to temper chocolate. More than anything, it just requires practice. And patience. Lots and lots of patience. And more practice.