What is the ruling on someone who eats or drinks thinking that the night is still present, then realizes that dawn has broken?
Whoever eats or drinks thinking that the night is still present, then later discovers that dawn has broken, must refrain from eating and drinking for the rest of the day out of respect for the sacred month. However, they must make up that day after Ramadan, and there is no sin upon them.
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.
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.
Should a prayer performer who forgets to offer the middle Tashahod (saying ash-hadu anala ilaha ila-alah) offer Sujood As-Sahw (prostration of forgetfulness)?
He/she should offer two prostrations of forgetfulness at the end of the prayer. And Allah Knows Best.