Approximately a couple of years ago I was working in a Computer Science project abroad. The task was to implement a software analysis tool with the collaboration of a professor, and if all went well then I could get a PhD position at one of their departments.
Well after expending like half of the year on the project, due to some personal problems that did not allow me to focus entirely on the programming task, ie. taking care of my old parents, it was that the project suffered a delay.
When I was about to end the project and got some finishing results, the research was published in another country by other university. It seems here that the phrase "publish or perish" was more real than ever. Because of that reason the professor in charge did not offer me the PhD position, so I was some sort sad about it.
I have the inner feeling that I could have done better to get that position, so I don't know if I should ask to the professor in charge if he could give me another chance. Maybe if I do that I will bury myself academically, but I don't know what to do.
Any advice?