Back in the pioneer days, settlers traveling west would bring green coffee beans that they roasted in a frying pan before grinding. Here's the high-tech modern equivalent: a $180 home roasting machine from Amazon.
Coffee tastes best a day or so after roasting, so this is not something for my morning latte ritual, but it sounds like something I'll have to try eventually. Of course, I'd have to find a source for green coffee beans. There's one in the Bay Area, but I don't see anything in Seattle.
Tons of details on this site, including how to do it using a $10 popcorn popper.