Is wearing a cap permissible for boys, or girls?
All Perfect Praise is due to Allah, The Lord of The Worlds.
In principle, anything is permissible sol long as there is no Sharia evidence prohibiting it, thus wearing the cap by boys is permissible as long as it isn`t done in imitation of the disbelievers. Moreover, a Muslim woman should avoid all that which attracts the attention of men because whatever leads to the forbidden is forbidden. And Allah Knows Best.
Does passing wind, from the anus without a smell, invalidate prayer?
If a person is certain of having passed wind even if it was with no smell, then both his/her ablution and prayer are invalidated, thus he/she should remake ablution and re-perform prayer.
What is the ruling on not offering prayer in a nearby mosque, and going to a distant one?
All perfect praise be to Allah the Lord of the Worlds. May Allah`s peace and blessings be upon our Prophet Mohammad and upon all his family and companions.
Praying in the nearby mosque takes precedence unless there was a circle of knowledge, or a larger congregation in the distant mosque provided that the congregational prayer in the nearby mosque isn`t undermined. And Allah Knows Best.
A person owns sheep or goats and occasionally feeds them from the grass in other people's orchards without the owners’ permission. Is it permissible to eat the meat of these animals if invited to do so? Is it permissible to purchase from these sheep whose owner feed them from people's orchards without their permission, and can one accept gifts from them, such as meat or milk?
Yes, it is permissible because the one who is accountable is their owner, and the cost of the grass on his accountability. In addition, in order to be on the safe side you should abstain from eating his products, because his sheep case is as if they were fed on impurities. And Allah Knows Best.