Possible Duplicate:
Should I not answer my own questions?
If I solve a tricky problem, should I ask a question about it on Stack Overflow and answer it myself?
Possible Duplicate:
Should I not answer my own questions?
If I solve a tricky problem, should I ask a question about it on Stack Overflow and answer it myself?
As I mentioned in my answer the best approach is to post your question, wait a day or so and then post your answer.
You might get a better answer than you already have and also it's not that obvious that you already knew the answer ;)
Yes, it's even encouraged.
As noted, it's covered by the FAQ. The only thing that I would add is that the answer ought to be self-contained or, at a minimum if it links somewhere else, it should contain enough material to be useful on its own. If it looks like you are just trying to hype your blog, I think you will be rightly downvoted and/or closed as SPAM.
Also, I think it's a good idea to mention that you will be posting your own solution as one alternative in your question. Giving people a heads up may avoid some unthinking downvotes. A subtle reference to the relevant FAQ is may help, too.
Ex:
In keeping with the FAQ [link], I'll be providing my solution as an answer.
If you do this, be very, very sure that your answer is technically correct. As others have suggested, a good way to do this is to wait 24 hours between posting the question and posting the answer, so you can compare your answer to those provided by other users.
I think this is covered by one of the site FAQs, but...
Absolutely! You'll get the added benefit of having the community review your answer and offer suggestions for improvement. If nothing else, you'll have added another useful bit of information to the site.