I posted this question. Then because nobody answered I continued debugging and eventually found the answer. For future purposes for other people I put the solution in the answer box. Then someone quickly came and just copied my answer and put it there as well. I notified him that he just copied my answer. Then he just replied back that it's not right that I answered my own question because I need to give chance to other users to build up reputation. So according to him I should just remove my answer, accept the answer he stole from me. I think this is not only wrong but rude and arrogant as well. I spend a long time finding out the solution and he just claims it for himself. I think it's just stealing.
You can see this conversation if you have the ability to view deleted comments at the question since his comments got deleted.
So point #3 (3. Educate the OP) didn't work. Then I proceeded to point #2 (2. Edit or flag) So I flagged the answer, this didn't work as well. It even got upvoted by someone. So what should I do now? His answer is still there (8 hours later).