Is it permissible for a Muslim physician to specialize in gynecology obstetrics, and what is the ruling on working as such?
Some fields of knowledge are an individual duty while others are a collective one, and specializing in gynecology obstetrics is a collective duty. However, if there were female physicians to treat women, then there is no need for a male gynecology obstetrics specialist to look at women`s Awrahs (private parts) except in necessary situations since the jurisprudential maxim says:” Necessity must only be assessed and answered proportionately.” And Allah Knows Best.
What is the ruling on determining the sex of the baby whether through killing the female spermatozoa, or any other way in order to have a male?
If it is done through having a certain type of food, taking a certain type of medication, or organizing the time of the marital relation, then it is permissible.
What is the ruling o associations (Whereas a person who have money buys a commodity for a person and and gets a profit on it)?
It is permissible for a person to buy a commodity for someone's else and have a profit/loss on it
What should a praying person who doubts having offered one, or two prostrations in the third Rakah (unit of prayer) do?
Whoever has doubts about their prayer should consider what is less i.e. the above person should offer another Sajda (prostration) and complete his/her prayer, then offer Sujood As-Sahw (prostration of forgetfulness). And Allah Knows Best.