If the menses lasted for over than 9 to 10 days, considered menstruation?
If the duration of the bleeding does not exceed fifteen days, it is all considered menstruation, even if the usual pattern changes.
Does bleeding from the body, such as from wounds, invalidate ablution?
Bleeding doesn't invalidate person's ablution. And Allah Knows Best.
What is the ruling if hemorrhoid blood exits after completing ablution?
If this blood is exiting from outside the anus (due to the hemorrhoid protruding), it does not invalidate ablution, because blood exiting from the body from other than the two orifices does not invalidate ablution. If it exits from the anus (meaning from inside it), it invalidates ablution, and one must perform istinja' from it, wash the area of impurity, and repeat the ablution.
However, if this blood exits continuously such that no time remains sufficient for purification and prayer without it flowing, then it takes the ruling of urinary incontinence (sals al-bawl). One then cleanses from it after the time for each prayer enters, performs ablution immediately thereafter, and performs the obligatory prayer immediately. There is no liability upon him after that if something of it flows, and he may pray as many voluntary prayers as he wishes. If he wants to pray another obligatory prayer, he must cleanse himself and perform ablution. And Allah the Almighty 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.