Is it permissible for one who sacrifices on behalf of another, with the latter's permission, to eat from the sacrifice?
It is permissible for someone who sacrificed on behalf of another with their permission to eat from it with their permission, and they stand in their place (act as their representative) in distributing it.
It is stated in Nihayat al-Muhtaj ila Sharh al-Minhaj (Vol.8/P.141): "And he—meaning the one sacrificing on his own behalf, provided he has not apostatized—has the right to eat from a voluntary sacrifice and his sacrificial gift; rather, it is recommended. As for an obligatory sacrifice, it is forbidden for him to eat from it, whether it was designated as such initially or as a liability in his dhimmah. And excluded by what has preceded is if he sacrifices on behalf of another, or if he apostatized, then it is not permissible for him to eat from it, just as it is absolutely impermissible to feed a disbeliever from it."(The text I found indicates the impermissibility of eating) ???
And it is stated in Hashiyat al-Jamal ‘ala Sharh al-Manhaj (Vol.5/P.262): "If a person offers a sacrifice on behalf of a living person with their permission, does he act as their representative in distributing it—on the grounds that permission to sacrifice is permission to distribute it—or does it depend on their explicit permission? This requires consideration, but the first view is not far-fetched." And Allah the Almighty knows best.
I can`t afford to get married, what should I do to curb my sexual drives?
You should offer a lot of voluntary fasting, keep busy with useful and permissible acts and make supplication to Allah, The Exalted.
What is the ruling on waiving a debt owed by a debtor and counting it toward zakāh?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
Waiving a debt owed by a debtor, with the intention of counting it toward zakāh, does not fulfill the zakāh obligation. Rather, it constitutes an ordinary act of charity, for which Allah rewards the giver generously — since one of the conditions for the validity of zakāh is that the person paying it must form the intention of zakāh at the actual moment the wealth is paid out. In this case, the debt has already been established as a standing obligation upon the borrower, so it is not valid to simply redirect the intention toward zakāh after the fact.
It is preferable, instead, for the creditor to first collect the debt from the debtor, and then return to him the amount of money he is required to pay as zakāh — or a portion of it — if the debtor happens to fall under one of the eight categories that Allah, the Exalted, has commanded be given from zakāh.
It is stated in ‘Umdat as-Sālik, from the books of the Shāfi‘ī school: "If someone gives [money] to a poor person, stipulating that the recipient return it to him in payment of a debt owed to him, or says, 'I am making what you owe me into zakāh, so take it [as such]' — this is not valid. But if he gives it to him with the [unstated] intention that the recipient will use it to repay him, or says, 'Repay what you owe me, so that I may [then separately] give it to you as zakāh,' or the debtor himself says, 'Give it to me, so that I may [then] repay you with it' — this is valid, and there is no binding obligation for the recipient to actually fulfill this [informal understanding]." And Allah, the Exalted, knows best.
What is required of one who doubts the number of rakʿāt during prayer?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If a person doubts the number of rakʿāt he has prayed, he should build upon the lesser number, as that is what he is certain of. He should then perform the prostration of forgetfulness (sujūd al-sahw) before the final salām at the end of the prayer. ʿAṭāʾ ibn Yasār narrated that the Messenger of Allah ﷺ said: "When any one of you is in doubt during his prayer and does not know whether he has prayed three rakʿāt or four, let him pray one more rakʿah and then perform two prostrations while seated before the salām. If the rakʿah he prayed was a fifth, these two prostrations will make it even; and if it was the fourth, then the two prostrations serve as a humiliation for the devil." (Reported by Abū Dāwūd.)
It is stated in al-Muqaddimah al-Ḥaḍramiyyah — one of the foundational texts of the Shāfiʿī school: "If one doubts whether he has prayed three rakʿāt or four, he is obliged to build upon the lesser number."
However, if such doubt recurs repeatedly and reaches the level of obsessive whispering (waswasah), he should not build upon the lesser number in that case — rather, he should build upon the greater number. And Allah the Almighty knows best.