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 best charity to offer on behalf of the deceased? Is it giving food, reciting Quran, giving money or supplicating? What is the best charity to offer on behalf of dead father and dead husband? What is the best continuous charity to offer on behalf of the deceased?
Praise be to Allah the Lord of the Worlds. The deceased benefits from every righteous deed offered on his/her behalf, be that continuous charity, reciting Quran or a pious son praying for him/her. However, the best righteous deed is performing Haj and Omrah on their behalf especially if he/she hadn`t performed that ritual for it remains a debt on them. The evidence on this is that Ibn 'Abbas (Allah be pleased with them) reported: A man came to the Messenger of Allah (PBUH) and said: "Messenger of Allah, my mother has died (in a state) that she had to observe fasts of a month (of Ramadan). Should I complete (them) on her behalf? Thereupon he (the Holy Prophet) said: Would you not pay the debt if your mother had died (without paying it)? He said: Yes. He (the Holy Prophet) said: The debt of Allah deserves more that it should be paid."{Related by Muslim}. And Allah the Almighty knows best.
Is a woman`s prayer considered invalid if non-Mahrams (marriageable men) saw her offering it?
A woman`s prayer isn`t invalidated if non-Mahrams saw her offering it, but she had better pray in isolation.
Is it permissible to offer mandatory prayer while sitting?
All perfect praise be to Allah, The Lord of The Worlds, and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions. Standing up is a pillar in the mandatory prayer and the prayer is not valid without it unless one cannot do it. As for Nafila (supererogatory prayer), one can perform it in the state of sitting even if he/she can stand, but his/her reward is half the reward of the person who prays while standing if he/sh has no legal excuse for such an act. And Allah Knows Best.