Is the prayer of someone who didn`t face Quibla (Ka`ba direction) valid?
All perfect praise be to Allah,The Lord of The Worlds. Facing the Quibla is a condition for the validity of prayer, and the prayer of the person who hadn`t faced the direction of the Quibla is invalid, and he is obliged to repeat it. And Allah Knows Best.
What is the ruling on one who wiped over his leather socks (*khuff*) while resident and then traveled, or wiped while traveling and then became resident? And likewise, what is the ruling on one who incurred a minor ritual impurity (*ḥadath aṣghar*) while resident, then traveled and wiped while traveling?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
Whoever wipes over his leather socks (khuffayn) while resident and then travels, or wipes while traveling and then becomes resident, before a day and a night have passed in both cases, completes the wiping period of a resident. If he wipes while resident and then travels after a day and a night have passed, he must remove the socks, because the period has ended. Likewise, if he wipes while traveling and then becomes resident after a day and a night have passed, he must remove them as well.
Whoever breaks his wuḍūʾ while resident and then wipes while traveling takes the ruling of a traveler as regards the duration of wiping, so long as he does not become resident. It is stated in ʿUmdat al-Sālik wa ʿUddat al-Nāsik (Vol.1/p.15): “If he wipes over both [socks] or one of them while resident and then travels, or wipes while traveling and then becomes resident, or doubts whether he began the wiping while traveling or while resident, he completes only the wiping period of a resident. But if he broke his wuḍūʾ while resident and wiped while traveling, he completes the period of a traveler, whether or not the full time of a prayer had passed over him while resident.” And Allah Almighty knows best.
Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
Is it permissible to combine and shorten prayers at home before traveling?
It is impermissible to combine and shorten prayers at home before traveling because a person is called a traveler once he/she departs the borders of his/her country, and offering prayer that way was originally intended to exempt a traveler. And Allah Knows Best.