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.
Is it permissible for a woman who broke fasting due to a delivery to pay a ransom?
She should make up for the missed fasting days once she becomes ritually pure, but it is impermissible for her to pay a ransom while being able to fast.
Does wiping over one's socks during ablution permissible?
If the socks were thick, then wiping over them during ablution is permissible so long as wiping conditions are observed. And Allah Knows Best.
After a month and a half from the end of postpartum bleeding, my wife occasionally finds a small amount of blood, and she is breastfeeding. What is this blood, and should she fast and pray when she experiences it?
This is postpartum bleeding, so she should not fast or pray until she sees the signs of purity, unless it exceeds sixty days, as the maximum duration for postpartum bleeding is sixty days, and the majority of women experience forty days. If it exceeds sixty days, it is considered irregular bleeding (Istihada). It would be advisable to consult a doctor after the sixty days. And Allah Knows Best.