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.
Is it permissible for a woman in her waiting period (Iddah) after her husband's death to leave her house and mix with non-Mahrams?
It is not permissible for a woman in her waiting period (Iddah) after the death of her husband to leave her house except for a necessity, such as for medical treatment, nor is she allowed to mix with non-Mahrams. A woman is not permitted to mix with anyone other than her husband or Mahrams, whether she is in her waiting period or not. However, there is no harm in accepting condolences from those who visit and responding to their inquiries about her well-being. And Allah Knows Best.
Is it permissible for a woman to shake hands with her brother-in-law?
It is forbidden for the woman to shake hands with her brother-in-law because he isn`t a Mahram (unmarriageable) of hers.
Is it permissible to move a grave from its current location to another place, for example, from a garden in a home to a cemetery, knowing that the grave has been there for a long time, about fifty years?
It is not permissible to move the deceased from his grave, as this may result in breaking his bones and violating his sanctity. Such actions are not allowed. And Allah Knows Best.