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.
How are gaps filled during congregational prayer?
A praying person is allowed to take two steps in order to fill the gap in the row ahead. If the distance was long and requires much movement, then it is impermissible for one to move to fill it because much consecutive movement (three movements) during prayer invalidates it.
What is teh ruling on thoughtless oath?
One who swears by Allah unintentionally and isn`t determined to fulfill his oath, nothing is due on him. Allah, The Almighty, Says (What means): "God will not call you to account for thoughtlessness in your oaths, but for the intention in your hearts; and He is Oft-forgiving, Most Forbearing." [Al-Baqarah/225]. However, it is dispraised for a Muslim to swear frequently.
Is it permissible for a person who is in a state of Janabah (Ritual impurity) to clip his nails, or to cut his hair?
It is permissible for those in a state of Janabah and menstruation to clip their nails and to shave whatever hair that is permissible to be shaved. And Allah Knows Best.