I am writing a paper at the moment and for one proof I use an idea which I got from a MathOverflow answer (at the time I was asking idle questions but later of course found a way to use it). I of course feel uncomfortable just giving the idea without credit but I'm not really sure how to do it. What's the convention here? You ask if it's ok to just thank them informally in the paper or....???