What is the ruling on entering the toilet with something containing the remembrance of Allah?
It is disliked to bring into the toilet anything containing a reminder of Allah, such as the Quran or a sacred name (like the name of Allah, Muhammad, etc.). If one does that, etiquette dictates that he conceal it so it is not visible while entering the toilet, either by cupping his hands over it, putting it in his pocket, or inside his shirt if it is a necklace or ring. And Allah the 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.
What is the ruling on bypassing a nearby mosque for a distant one?
Praise be to Allah, and peace and blessings be upon our Master, the Messenger of Allah.
If a distant mosque has a larger congregation (Jama‘ah) while the congregation in the nearby mosque is smaller, and the congregation in the nearby mosque is not adversely affected by the worshiper's absence, then it is better for him to pray in the distant mosque with the larger congregation. However, if the congregation in the nearby mosque would be affected by his absence—such as if he is its Imam, or if his presence encourages others to attend—then praying in the nearby mosque is better. This ensures that the congregation is established in two different locations within the community. This is based on the saying of the Prophet ﷺ: 'A man's prayer offered with another man is purer than his prayer which he offers alone, and his prayer with two men is purer than his prayer with one and if they are more (in number), it is more beloved to Allah, the Mighty the Majestic' (Narrated by Ahmad, Abu Dawood, and An-Nasa'i). And Allah the Exalted knows best.
What is the ruling on eating and drinking at night after making the intention? Is it necessary to renew the intention?
Eating and drinking at night, even after making the intention (for the next day), does not affect the fast, and it is not necessary to renew the intention after eating and drinking.