What is the ruling on someone who eats or drinks thinking that the sun has set, then realizes that it has not yet set?
Whoever eats or drinks believing that the sun has set, then later discovers that it has not yet set, their fast is invalid, and they must make up that day after Ramadan. It is not permissible to break the fast before confirming sunset—either by seeing it, through personal reasoning, or by relying on the statement of someone trustworthy in their religious commitment.
What is the ruling on offering an Udhiyah on behalf of another with their permission?
Praise be to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible for a person to offer a sacrifice (Udhiyah) on behalf of someone else with their permission, even if the person performing it has not offered a sacrifice for themselves. It is stated in Sharh Manhaj al-Tullab (Vol.5/P.261) by Zakariya al-Ansari: "No one may offer a sacrifice on behalf of another without their permission... as opposed to when permission has been granted." And Allah the Almighty knows best.
How many Rak`ahs (unit of prayer) are offered in Witr prayer?
All perfect praise be to Allah, The Lord of The Worlds Witr (an odd number prayer performed between Isha`a and Fajr) is offered with a minimum of one Rak`ah, and a maximum of eleven, but offering three Rak`ahs is the minimum of its complete form. And Allah Knows Best.
Is it permissible to combine and shorten prayers at home before traveling?
It is impermissible to combine and shorten prayers at home before traveling because a person is called a traveler once he/she departs the borders of his/her country, and offering prayer that way was originally intended to exempt a traveler. And Allah Knows Best.