Is it a condition that one should offer two sacrifices for a male newborn?
It is desirable to offer two sheep for a male newborn, and one for a female newborn. Offering one sheep for the male newborn is also permissible as it observes the Prophet`s Sunnah in this regard.
Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
What is the ruling on the cessation of blood after (40) days from delivery, but later continued sporadically during two days of Ramadan?
Once postpartum bleeding (Nifas) ceases, and the woman is certain that it won`t reoccur, then she becomes ritually pure and so she is free to make Ghusl (purificatory bath), pray, and fast. If the bleeding reoccurs before fifteen days from its cessation, and before the end of (60) days after delivery, then the ruling on postpartum bleeding is effective, and her fasting and prayer are null and void, thus she must make up the fasting that she missed and not the prayer during those particular days.
Who should pay the Zakah (obligatory charity) from the orphan`s money?
His/her guardian, and if the latter fails to do so, then the orphan himself/herself is obliged to pay the Zakah once he/she reaches puberty, and is capable of handling his/her own affairs. And Allah Knows Best.