Yesterday I posted this questionthis question, but after a few minutes I figured out the solution and answered it myself.
The question is being downvoted, even though it doesn't seem so bad to me, but maybe I'm missing something obvious. The weird thing, however, is that my answermy answer is being downvoted as well, even if it apparently works. I edited the answer to ask for an explanation for the downvotes, but my edit has been eliminated.
Now, I really don't care about the downvotes, I was just asking for explanations because I was afraid my solution - which seems ok to me - is actually not the proper way to solve my problem. Is this the case? Or is it being downvoted for some other reason? I don't know, maybe it is considered...rude to answer your own question after a short time? :/