Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
I want to buy a house by having a loan from a bank?
If taking a loan from usrious banks it is impermissible; on the other hand, if this took place through Islamic ones then it is permissible to get the loan, since Allah the Most Exalted Said (What means): "And Allah has made buying lawful and forbidden usury (riba)." And Allah Knows Best.
Is it allowed to shave my beard to join the army taking into consideration that I can`t find a job?
All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad, sallallahu ‘alayhi wa sallam, is His slave and Messenger.
The army should be joined in preparation for Jihad (Fighting in the cause of Allah), so if Jihad contradicts with growing a beard then it is allowed to shave it. And Allah The Almighty Knows Best.
Is it permissible for me to eat from the animal that I slaughtered for Allah to protect my family?
It is permissible to eat from the non-vowed animal sacrifice, and the person is rewarded based on the amount of meat that he had given to the poor. However, there is no evidence in Islamic Sharia indicating that slaughtering an animal protects one`s family, but it is a way for thanking Allah, The Almighty, for his grace.