Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
A woman went for Hajj while pregnant, gave birth after leaving Arafat, and was unable to perform the Tawaf Al-Ifadah. If she cannot stay until she becomes pure from postpartum bleeding (Nifas) and she is from a distant country, what is she liable for?
This woman is advised to leave Mecca in a state of Ihram if the caravan departs. Once she reaches a distance where returning to Mecca is not feasible, she should consider herself in a state of being prevented (Muhsar). She may then exit Ihram, and she is required to offer a sacrificial animal (Blood) at that location. Additionally, she must perform a compensatory Hajj at the earliest possible opportunity. And Allah Almighty Knows Best.
Is it permissible for the doctor to uncover the hair of a female patient out of necessity?
It is only permissible for him to do so when there is no female doctor, and he should examine the patient in the presence of one of her Mahrams (unmarriageable kin).
What is the ruling on someone who vowed to fast for two consecutive months, but failed to do so?
He is obliged to fulfill his vow by fasting for two consecutive months, but if he fails to do so then, it remains a debt on him until he either fulfills his vow, or dies. In case of his death, his guardian is supposed to fast on his behalf, or donate food from his estate in return for fasting, but if the guardian fails to do so then, it is all in the Hands of Allah.