What is the ruling of Sharia on woman shaking hands with non-Mahram man?
All perfect praise be to Allah the Lord of the Worlds. May His peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
The Messenger of Allah (PBUH) said: "It is better to be stabbed in the head than touch a woman to whom one isn`t related." [Transmitted by Al-Tabarani /Al-Mo`jam Al-Kabir, Hadith No.16880]. Accordingly, it is forbidden for men to shake hands with non-Mahram* woman. And Allah The Almighty Knows Best.
* The women/men that you are allowed to marry. It includes all women/men other than mahram (including cousins).
Is wearing a cap permissible for boys, or girls?
All Perfect Praise is due to Allah, The Lord of The Worlds.
In principle, anything is permissible sol long as there is no Sharia evidence prohibiting it, thus wearing the cap by boys is permissible as long as it isn`t done in imitation of the disbelievers. Moreover, a Muslim woman should avoid all that which attracts the attention of men because whatever leads to the forbidden is forbidden. And Allah Knows Best.
If husband doesn`t pray, but wife does, is their marriage contract considered valid or not?
All perfect praise be to Allah the Lord of the Worlds. May Allah`s peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Not observing daily prayers is a grave sin, but doesn`t invalidate a person`s marriage contract. However, we advise you to save your husband from hellfire by convincing him to observe the prescribed prayers. And Allah The Almighty Knows Best.
Is it permissible for a woman who is in her confinement to fast upon seeing blood signs that are neither black, nor red ?
Brownish, reddish, and yellowish discharges are all considered confinement until there is no colored discharge which marks the end of confinement. Moreover, the aforesaid woman is prohibited from fasting until she attains ritual purity. And Allah Knows Best.