Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
What is the ruling on staring at the Holy Ka'abah?
All perfecy praise be to Allah, The Lord of The Worlds and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions.
Staring/looking at the Holy Ka'abah is an act of worship even if this took place while performing a prayer, since Al-Baihaqee stated that the Prophet (PBUH) said: " Staring at the Holy Ka'abah is an act of devotion." [Sho'aab Al-Imaan]. And Allah Knows Best.
Does touching women temporarily forbidden in marriage nullify ablution?
It is prohibited to touch, or to shake hands with such women as they are considered strangers, and doing so nullifies ablution.
What is the ruling o associations (Whereas a person who have money buys a commodity for a person and and gets a profit on it)?
It is permissible for a person to buy a commodity for someone's else and have a profit/loss on it