These are a great side, but I also love to just scoop some up in a warm tortilla as a meal. Found in the Chicago Tribune, with some modifications. I usually make this without the chili powder. Cooking time does not include soaking beans.
Soak the beans overnight in lots of cold water. (Most recently, I have been using the Cook's Illustrated recommended method, soaking the beans in 4 qts water mixed with 3 tbl. table salt). Drain off the soaking water and rinse.
Put beans in a very large pot. Pour in the beer and enough fresh water to come up 2 inches over the beans. Add remaining ingredients except salt. Cover, heat to a boil, reduce heat to very low - just enough to bubble the liquid a little. Simmer until beans are tender, 2 to 3 hours.
If using ham hocks, remove, discard bones, chop and return to pot. Add salt to taste.
Note1: I've noted the comment regarding the time - I made this again, and it took me just under two hours to get to tender beans. It is important to soak the beans well, and older beans may take longer. The beans should be tender but whole - they should not start breaking down.