Great Idea, Einstein: Parshat Mikeitz

Joseph interprets Pharoah's dreams, and then offers some unsolicited advice. The advice provokes surprising praise from Pharoah. What's going on?