All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
It is forbidden to eat the food which contains pork fat. You should be very careful when eating food especially in the country where you reside. Therefore, you should not eat any food until you make sure that it is lawful and that it does not contain any forbidden ingredient.
With regard to eating a cake, if no forbidden fat is added to it, like pork fat, then it is permissible to eat it, but if alcohol is added to any kind of food, it is forbidden for you to eat it.
Dear brother! Seeing pornographic pictures is prohibited; it does not matter how they are, whether you see naked women face to face, or in magazines or in any kind of mass media. Allaah Says (what means): {Tell the believing men to reduce [some] of their vision.} [Quran 24:30]. Allaah Says (what means): {He knows that which deceives the eyes and what the breasts conceal.} [Quran 40:19].
Therefore, you should fear Allaah and you should know that gazing at marriageable women and pornographic pictures is a means which leads to Zina (adultery or fornication).
As regards the ruling on masturbation, please refer to Fatwa 81150 .
Allaah Knows best.