I broke my oath and am now obligated to pay the expiation for a broken oath (kaffārat al-yamīn). Would it be valid to fulfill this by inviting the poor and needy to a meal for them to eat from?
Praise be to Allah, and peace and blessings upon our master, the Messenger of Allah.
The expiation for a broken oath (kaffārat al-yamīn) is given to the poor (fuqarā') and needy (masākīn), and it must be given in the form of ownership (tamlīk) transferred to them of the required amount — namely, one mudd of the staple food of the locality, or its equivalent monetary value. It isn`t valid to invite the poor or needy to a meal prepared for them to eat from, as this does not constitute "ownership" (tamlīk) but merely "permission to partake" (ibāḥah).
Imam al-Shirbīnī (may Allah have mercy on him) said: "What is intended is that ownership be transferred to them; therefore, providing them with lunch or dinner [as a meal to eat from] isn`t valid." [Summarized from Mughnī al-Muhtāj,Vol. 5/P.50]. And Allah the Almighty knows best.
What is the ruling on preparing food for someone who is not fasting in Ramadan?
It is forbidden to prepare food for someone who is breaking their fast without a valid excuse in Ramadan.
Doing so would be assisting in sin, and assisting in sin is itself a sin.
Allah says {what means}: "but help ye not one another in sin and rancour" [Al-Mai`dah/2]
What is the ruling on attending relatives` parties held in public halls, or hotels since if we don`t, we will be subjected to their admonition?
If such parties involve mixing between men and women, or forbidden acts such as listening to songs with sinful lyrics, then attending them is forbidden from the view point of Sharia since people`s admonition is nothing compared to Allah`s, The Almighty`s, wrath.
Is it permissible to offer prayer at home, or should it be offered in the mosque?
All perfect praise be to Allah, The Lord of The Worlds. It isn`t preferable for the man to pray at home as praying in the mosque is twenty seven times more rewarding. Therefore, this should motivate him to offer prayers in the mosque. And Allah Knows Best.