<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hasan Hameed on Medium]]></title>
        <description><![CDATA[Stories by Hasan Hameed on Medium]]></description>
        <link>https://medium.com/@hasan.hameed?source=rss-fd6db0228ab3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VC9bEh5ruDHqmmci.</url>
            <title>Stories by Hasan Hameed on Medium</title>
            <link>https://medium.com/@hasan.hameed?source=rss-fd6db0228ab3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:51:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hasan.hameed/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why You Must Leave Your Comfort Zone in Order to Achieve Your Dreams]]></title>
            <link>https://medium.com/@hasan.hameed/why-you-must-leave-your-comfort-zone-in-order-to-achieve-your-dreams-ee2472f07bb5?source=rss-fd6db0228ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee2472f07bb5</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[comfort-zone]]></category>
            <dc:creator><![CDATA[Hasan Hameed]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 17:37:43 GMT</pubDate>
            <atom:updated>2020-02-28T17:40:29.583Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you wondered why its too hard to leave your comfort zone? or what is the thing which stops you from achieving your goals? Is it worth leaving your comfort zone based on fear? Let’s have look at the science behind:</p><p>Considering leaving your current circumstances or predicting your future based on your previous undesirable events can cause fear but the truth is,<strong> your future is based on your current intentions and actions</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGXwO2HmUm-GN4-80uDVjg.jpeg" /></figure><p>If you decide not to leave your comfort zone, this can eventually destroy it! Let’s look at how: Suppose Nasir is doing a 9–6 job as a factory worker. He is quite unhappy with his boss but gets enough payroll to keep his family happy. He has a goal to start his own ice-cream shop but fears the change. So, he kept himself to his current job for years. After a while, living with the day-to-day office anxiety he gets diagnosed with <a href="https://www.health.harvard.edu/press_releases/the-link-between-stress-and-heart-disease">heart disease</a>. Causing that, he finally loses his job due to poor performance and lives in misery. So, ultimately this resulted in leaving your comfort zone eventually at the end even if you decide not to. Imagine, what if he had stepped out of his job at the time he could have achieved his goal of starting an ice-cream shop.</p><p>So, the anxiety doesn&#39;t remain the same but once you start <a href="http://www.nytimes.com/2011/02/12/your-money/12shortcuts.html?_r=0&amp;pagewanted=all">stepping out of your comfort zone</a>, it gets easier over time.</p><h4>Use anxiety to bring up your peak performance</h4><p>With fear we get anxiety. Actually, anxiety is not always a bad thing! It’s our normal response to life experiences, a protective mechanism that prevents us from entering fatal situations. As anxiety increases our performance under pressure also increases but to a certain degree called “<a href="https://www.psychologytoday.com/us/blog/hide-and-seek/201207/can-anxiety-be-good-us">Optimal Anxiety</a>”, it&#39;s a zone where stress levels are slightly higher than the normal. It&#39;s the peak of productivity and performance, but after that point, it raises a concern. There are <a href="https://www.wsj.com/articles/SB10001424052702303836404577474451463041994">several studies </a>that support this phenomenon of bringing out your best with this type of anxiety. But too much of it is a bad thing, don’t push too hard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*GUJI-PG8ACSvW9fLZxoCLg.png" /><figcaption>The Yerkes-Dodson curve, source: Wikicommons</figcaption></figure><h4>Staying in control is the key</h4><p>Follow these tips to make things in your control:</p><ul><li>Try to take little steps instead of taking a big change, making it easy to manage.</li><li>Note your emotions; is the situation really stressful or is it just your own perception of reality.</li><li>Find support from your friends and family to help you tackle the challenges, tell them prior to taking any action.</li><li>Do not fear, but face reality! You will be going to be much tougher than before. Remember your life will never be the same once you step out of your comfort zone.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee2472f07bb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is it necessory to follow an islamic scholar?]]></title>
            <link>https://medium.com/@hasan.hameed/who-and-why-to-follow-an-islamic-scholar-67688e9699b4?source=rss-fd6db0228ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/67688e9699b4</guid>
            <category><![CDATA[spiritual-growth]]></category>
            <category><![CDATA[religion]]></category>
            <category><![CDATA[spirituality]]></category>
            <category><![CDATA[ummah]]></category>
            <category><![CDATA[islam]]></category>
            <dc:creator><![CDATA[Hasan Hameed]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 17:29:29 GMT</pubDate>
            <atom:updated>2020-02-28T17:45:42.324Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvXhj4qFt31g51Z9FMYjZg.jpeg" /></figure><p>Today, we are living in a World of the information age where Islamic lectures from all around the world are online and random videos are being forwarded towards us. The truth is if anybody makes an Islamic lecture it doesn’t prove he is an authentic scholar and needs to be followed. But its really hard to judge the authentic and the fake ones, many want to promote their own sect, while some are simply being funded by some groups who want spread chaos or want to misguide the ummah from the right path. This is not something new but started back in the 11th century in the Era of great Muslim leader Sultan Salah Uddin Ayubi r.a. So the question arises, who to follow and listen to? Before you find an answer to that one, another question worth answering… <strong>is it even necessary to follow a scholar? or Why there is taqleed?</strong></p><p>Yes, it is necessary to follow a mo’min, a pious knowledgeable Muslim for your own guidance because this is what Allah s.w.t. has told us in the Quran to follow the way of the believers and believers means Prophets a.s, companions of prophets r.a and the most knowledgeable imams r.a:</p><blockquote>“And whoever opposes the Messenger after guidance has become clear to him and follows other than the way of the believers — We will give him what he has taken and drive him into Hell, and evil it is as a destination.” (Surah Nisa verse no. 115)</blockquote><p>Even though reading the holy book could be enough for our guidance but Allah has sent a hundred of thousands of prophets so they could teach. As it is our belief that no messenger after Muhammad S.A.W is going to come after him hence to interpret the meaning of ahadith and verses of the Quran which are <em>Mutashabihat</em> (doesn’t have a clear meaning while others are <em>Muhkamaat</em> having clear meaning), a normal person must seek guidance through religious scholars, instead of finding or interpreting Holy scriptures by himself with the lack of background knowledge. This is why four schools of thoughts have come into existence following the laws of four imams… Imam Abu Hanifa r.a., Imam Malik r.a., Imam Ahmed r.a., Imam Shafi r.a.</p><h4>But why we needed laws, if the Quran and hadith are there for us?</h4><p>The answer is; firstly there are certain things which weren’t there at the time of our last Prophet S.a.w. and thus being invented or discovered in later times therefore, we couldn’t find directly in the Quran and hadith about the permissibility or ruling of such things. Secondly, there are certain hadith and ayah in the Quran which are Mutashabih, if every individual starts to interpret those ayahs according to his own Ijtehaad then there is a great chance he may get mislead and many conflicts will occur. Because not everyone is as knowledgeable as those of the four imams, the ones who had spent their whole lives learning the religion, even directly from the taba’een (the 3rd blessed generation right after our Prophet S.a.w) like Abdullah bin Mubarak r.a. was one of the students of Imam Abu Hanifa r.a. Those four imams and their successors wrote the laws of fiqh as per their interpretation which later comes to know as <em>fiqh</em> (also called <em>mazhabs</em>).</p><p>Note that none of the true followers of an Imam, denounce the other Imam but know them the righteous on their own by heart.</p><p>Therefore we could call a <strong>Fiqh</strong>; laws or rules (masai’l) governing the aspects of everyday living as per the understanding of the Holy scriptures by any of the four schools of thought (imams). It’s like the laws of physics or mathematics which lay the foundation then later as per new inventions or discoveries are being made they must be on top of them. Similarly, as the World is being progressed and new inventions are being made there must be some set of basic rules upon which one can judge whether something is permissible, makrooh or mubah. If again, something is not easy to be determined upon the laws of fiqh then renowned scholars of one fiqh sit together and come to a unanimous decision; called <em>Ijmah</em>. Hence it is very sensible that instead of deriving new rules every time, it is better to follow any one of the four fiqh always and stick to it throughout your life. This is called <strong>Taqleed</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CgCTiNieAWV72ikUs0BBzg.jpeg" /></figure><p>So, in this regard, always try to follow the one who is from the same fiqh as yours. You must research out his eligibility first that if he has a certain degree in Islamic studies from an authentic Islamic university. Also if in his lectures, he tried preaching a new sect, found denouncing other famous scholars, then its time to stop following him.</p><p>Apart from the taqleed, there is no harm in listening to a scholar who is helping, uniting the Ummah and benefiting it. For example, Dr. Allama Iqbal r.a. who was a great poet and philosopher, revolutionized the Muslims in India through his poetry having strong Islamic Ideology. Remember that just like we have separate doctors specialists for every part of our body similarly every scholar has an area of expertise and study. For example, Shiekh Imran Hosein has sound research on Islamic eschatology, Dr. Israr Ahmed r.a. had an excellent eye on the Quranic studies. Mufti Ismael Menk talks very well about the everyday marital and upbringing issues in a fun way. Noman Ali Khan might not have a Darul ul Uloom degree but preaches to understand the Quran in an easy way, and so on.</p><p>Keep mind that even most pious ones are human like us, mistakes can be happened by them. Sometimes, you may find some controversies as well, even against the most authentic scholars, because people today rush to mock and highlight negativity against anyone.</p><p>To summarize, always follow one school of thought throughout your life, research the scholar first, use your brain and seek guidance from them in every aspect of your life after putting your trust in Allah!</p><p>JazakAllahu Khair!</p><p>Like and share if you found it beneficial!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67688e9699b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You are the best creation in the whole universe!]]></title>
            <link>https://medium.com/@hasan.hameed/you-are-the-best-creation-in-the-whole-universe-74c89d5a8ebc?source=rss-fd6db0228ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/74c89d5a8ebc</guid>
            <category><![CDATA[thankful]]></category>
            <category><![CDATA[spirituality]]></category>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Hasan Hameed]]></dc:creator>
            <pubDate>Fri, 28 Feb 2020 17:12:57 GMT</pubDate>
            <atom:updated>2020-12-19T18:10:43.852Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wpc528rM_jSANtTBnUh0Aw.jpeg" /></figure><p><strong>Human-being is the best of all creation in the whole universe!</strong> Yes, it is you! God has given superiority to humans over all other living beings. Our ability to reason, plan and imagine sets us apart from the animals. Just look at the human brain, it is such a complex structure that scientists still haven’t been able to understand the miracle. The wheels in your brain are constantly turning, even when you’re asleep or not paying attention. Most of your brain’s activities are ones you’d never be aware of unless they suddenly stopped. In short, you have no total control over your self no matter how powerful or rich you are.</p><p>Then just look around nature; the mountains, valleys, oceans, flowers, the universe. Apart from the ugly man-made structures and materials, nature is the most peaceful and perfect thing. It is we the humans, who are providing a threat to it by trying yo manipulate it.</p><p>Have you ever noticed that why nature seems so perfect, works in a harmony and not has any flaw? While on the other hand some human beings born with various physical or mental imperfections! Although both are the creations of God, only humans have the ability to being thankful to his creator or live with the sorrow of being imperfect. The perfect nature and the World around us is a sign from your Lord so that you submit yourself to him. The whole world is merely a test for you and nothing else! God has also sent evil beings whose only aim is to mislead the mankind and turn them away from what is natural. Doing good deeds can never be equal to doing bad. Bad will always hurt or bring sorrow to a soul, while the good will always bring peace in one.</p><p>So, think about it all and count the blessings you have when you lay down in your bed next time!</p><p>Happy reading! ☺</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74c89d5a8ebc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[22 Hadith on the virtues of acquiring knowledge]]></title>
            <link>https://medium.com/@hasan.hameed/virtues-of-acquiring-knowledge-in-the-light-of-hadeeth-f319b106f1e3?source=rss-fd6db0228ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f319b106f1e3</guid>
            <category><![CDATA[religion]]></category>
            <category><![CDATA[knowledge]]></category>
            <category><![CDATA[islam]]></category>
            <category><![CDATA[quran]]></category>
            <category><![CDATA[ummah]]></category>
            <dc:creator><![CDATA[Hasan Hameed]]></dc:creator>
            <pubDate>Wed, 06 Jun 2018 12:26:55 GMT</pubDate>
            <atom:updated>2024-04-02T13:14:55.191Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many evidence and virtues of seeking, acquiring and spreading the knowledge of the deen, that can be found in the hadith of Allah’s last messenger Mohammad (ﷺ). Here are some of them:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RG6PugYTit7utFsltwR_yw.jpeg" /></figure><blockquote><em>اللهم إني أسألك علماً نافعاً، ورزقاً طيباً، وعملاً متقبلاً</em></blockquote><blockquote><strong><em>‘O Allah indeed I ask You for beneficial knowledge, and a good Halal provision, and actions which are accepted.’</em></strong></blockquote><ol><li><strong>Abu Huraira reported Allah’s Messenger (ﷺ) as saying:</strong></li></ol><p>(When) the time would draw close to the Last Hour, knowledge would be snatched away, turmoil would be rampant, miserliness would be put (in the hearts of the people) and therewould be much blotshed. They said: What is al-harj? Thereupon he said: It is bloodshed.</p><p>— Sahih Muslim 157 d</p><p><strong>2. Abu Mas’ud al-Ansari reported Allah’s Messenger (ﷺ) as saying:</strong></p><p>The one who is most versed in Allah’s Book should act as Imam for the people, but if they are equally versed in reciting it, then the one who has most knowledge regarding Sunnah if they are equal regarding the Sunnah, then the earliest one to emigrate ; it they emigrated at the same time, then the earliest one to embrace Islam. No man must lead another in prayer where (the latter) has authority, or sit in his place of honor in his house, without his permission. Ashajj in his narration used the word, “age” in place of “Islam”.</p><p>— Sahih Muslim 673 a</p><p><strong>3. Narrated `Abdullah bin `Umar:</strong></p><p>I heard Allah’s Messenger (ﷺ) saying, “While I was sleeping, I saw that a cup full of milk was brought to me and I drank of it and gave the remaining of it to `Umar bin Al-Khattab.” They asked. What have you interpreted (about the dream)? O Allah’s Messenger (ﷺ)?” The Prophet (ﷺ) said. “(It is Religious) knowledge.”</p><p>— Sahih al-Bukhari 7032</p><p><strong>4. Narrated Ibn `Abbas:</strong></p><p>The Prophet (ﷺ) embraced me and said, “O Allah! Teach him (the knowledge of) the Book (Qur’an).”</p><p>— Sahih al-Bukhari 7270</p><p><strong>5. Narrated Ibn Mas`ud:</strong></p><p>“I heard the Prophet (ﷺ) saying, “There is no envy except in two: a person who God has given wealth and he spends it in the right way, and a person whom Allah has given wisdom (ie religious knowledge) and he gives His decisions accordingly and teaches it to the others. &quot;</p><p>— Sahih al-Bukhari 1409</p><p><strong>6. Abu Hurairah reported the Prophet (ﷺ) as saying:</strong></p><p>If anyone pursues a path in search of knowledge, Allah will thenby make easy for him a path to paradise; and he who is made slow by his actions will not be speeded by his genealogy.</p><p>— Sunan Abi Dawud 3643</p><p><strong>7. Narrated Habib ibn Maslamah al-Fihri:</strong></p><p>Makhul said: I was the slave of a woman of Banu Hudhayl; afterwards she emancipated me. I did not leave Egypt until I had acquired all the knowledge that seemed to me to exist there.</p><p>I then came to al-Hijaz and I did not leave it until I had acquired all the knowledge that seemed to be available.</p><p>Then I came to al-Iraq, and I did not leave it until I had acquired all the knowledge that seemed to be available.</p><p>I then came to Syria, and besieged it. I asked everyone about giving rewards from the booty. I did not find anyone who could tell me anything about it.</p><p>I then met an old man called Ziyad ibn Jariyah at-Tamimi. I asked him: Have you heard anything about giving rewards from the booty? He replied: Yes. I heard Maslamah al-Fihri say: I was present with the Prophet (ﷺ).</p><p>He gave a quarter of the spoils on the outward journey and a third on the return journey.</p><p>— Sunan Abi Dawud 2750</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNXslQsg8CYCyD5-1MkK5A.jpeg" /></figure><p><strong>8. Abu Mas’ud narrated that:</strong></p><p>Allah’s Messenger said: “The one who recites most of the Book of Allah is to lead the people (in prayers.) If they are equal in recitation, then the most knowledgeable in the Sunnah among them. If they are equal regarding the Sunnah, then the earliest of them to emigrate. If they are equal in their emigration then the eldest among them. And a man is not to be led in prayer in the place of his authority, and his spot of esteem in his home is not to be sat on without his permission. “</p><p>— Jami` at-Tirmidhi 235</p><p><strong>9. Abu Hurairah (May Allah be pleased with him) reported:</strong></p><p>The Messenger of Allah (ﷺ) said, “The world, with all that it contains, is accursed except for the remembrance of Allah that which pleases Allah; and the religious schools and seekers of knowledge.”</p><p>— At- Tirmidhi, <a href="https://sunnah.com/riyadussaliheen">Riyad as-Salihin</a> Book 13, Hadith 9</p><p><strong>10. Abu Hurairah narrated that the Messenger of Allah (saw) said:</strong></p><p>“Lo! Indeed the world is cursed. What is in it is cursed, except for remembrance of Allah, what is conducive to that, the knowledgeable person and the learning person.”</p><p>— Jami` at-Tirmidhi 2322</p><p><strong>11. Hisham bin Hassan narrated from Al-Hasan:</strong></p><p>concerning the saying of Allah: O our Lord, give us good in this world, and good in the Hereafter. He said: “Knowledge and worship in this world, and Paradise in the Hereafter.”</p><p>— Jami` at-Tirmidhi 3488</p><p><strong>12. Narrated Yazid bin ‘Umairah:</strong></p><p>“When death was upon Mu’adh bin Jabal, it was said to him: ‘O Abu’ Abdur-Rahman, advise us. ‘ He said: ‘Sit me up.’ So he said: ‘Indeed, knowledge and faith are at their place, which desires them shall find them.’ He said that three times. ‘And seek knowledge from four men:’ Uwaimir Abu Ad-Darda, with Salman Al-Farisi, with ‘Abdullah bin Mas’ud, and with’ Abdullah bin Salam who used to be a Jew and then accepted For indeed, I heard the Messenger of Allah (ﷺ) saying, “Indeed he is the tenth of ten in Paradise.”</p><p>— Jami` at-Tirmidhi, Vol. 1, Book 46, Hadith 3804</p><p><strong>13. Narrated Qais bin Kathir:</strong></p><p>“A man from Al-Madinah came to Abu Ad-Darda when he was in Dimashq. He replied: ‘A Hadith reached me which you have narrated from the Messenger of Allah (ﷺ).’ He said: ‘You did not come for some need?’ He said: ‘No.’ He said: ‘Did you come for trade?’ He said: ‘No, I did not come except seeking this Hadith.’ So he said: ‘Indeed, I heard the Messenger of Allah (ﷺ) saying: “Who takes a path upon which he seeks knowledge, then Allah makes a path to Paradise easy for him. And indeed the angels lower their wings in approval to the one seeking knowledge. Indeed forgiveness isought for the knowledgeable one by whomever is in the heavens and whomever is in the earth, even the fish in the waters. And the superiority of the scholar over the worshiper is like the superiority of the moon over the rest of the celestial bodies. Indeed the scholars are the heirs of the Prophets, and the Prophets do not leave behind Dinar or Dirham. The only legacy of the scholars is knowledge, so whoever takes from it, then he has indeed taken the most able share.</p><p>— Jami` at-Tirmidhi 2682</p><p><strong>14. Narrated Abu Hurairah:</strong></p><p>that the Messenger of Allah (ﷺ) said: “Whoever takes a path upon which to obtain knowledge, Allah makes the path to Paradise easy for him.”</p><p>— Jami` at-Tirmidhi 2646</p><p><strong>15. Narrated Anas bin Malik:</strong></p><p>that the Messenger of Allah (ﷺ) said: “Who goes goes seeking knowledge, then he is in Allah’s cause until he returns.”</p><p>— Jami` at-Tirmidhi 2647</p><p><strong>16. Abu Hurairah, may Allah be pleased with him, narrated that the Messenger of Allah (ﷺ) said:</strong></p><p>“When a person dies, his deeds are cut off except for three: Continuing charity, knowledge that others benefited from, and a righteous son who supplicates for him.</p><p>— Jami` at-Tirmidhi 1376</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QHxR9AQQle2sO6iC" /><figcaption>Photo by <a href="https://unsplash.com/@mcsheffrey?utm_source=medium&amp;utm_medium=referral">Connor McSheffrey</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>17. It was narrated that Ibn ‘Abbas said:</strong></p><p>“The messenger of Allah said: ‘One Faqih (knowledgeable man) is more formidable against the Shaitan than one thousand devoted worshipers.’”</p><p>— Sunan Ibn Majah, Vol. 1, Book 1, Hadith 222</p><p><strong>18. It was narrated from Abu Hurairah that:</strong></p><p>The Prophet said: “The best of charity is when a Muslim man gains knowledge, then he teaches it to his Muslim brother.”</p><p>— Sunan Ibn Majah, Vol. 1, Book 1, Hadith 243</p><p><strong>19. It was narrated that Abu Umamah said:</strong></p><p>“The Messenger of Allah said: ‘You must acquire this knowledge before it is taken away, and its taking away means that it will be lifted up.’ He joined his middle finger and the one that next to the thumb like this, and said: ‘The scholar and the seeker of knowledge will share the reward, and there is no good in the rest of the people.’ “</p><p>— Sunan Ibn Majah, Vol. 1, Book 1, Hadith 228</p><p><strong>20. Sahl bin Mu’adh bin Anas narrated from his father that:</strong></p><p>The Prophet said: “Whoever teaches some knowledge will have the reward of the one who acts upon it, without that detracting from his reward in the slightest.”</p><p>— Sunan Ibn Majah, Vol. 1, Book 1, Hadith 240</p><p><strong>21. It was narrated from Umm Salamah that when the Prophet (ﷺ) performed the Subh (morning prayer), while he said the Salam, he would say:</strong></p><p>‘Allahumma inni as’aluka’ ilman nafi’an, wa rizqan tayyiban, wa ‘amalan mutaqabbalan (O Allah, I ask You for beneficial knowledge, good provision and acceptable deeds).’ “</p><p>— Sunan of Ibn Majah, Vol. 1, Book 5, Hadith 925</p><p><strong>22. It was narrated from Anas bin Malik that the Messenger of Allah (ﷺ) said:</strong></p><p>“Seeking knowledge is a duty upon every Muslim, and he who passes knowledge to those who do not deserve it, is like one who puts a necklace of jewels, pearls and gold around the neck of swines.”</p><p>— Sunan of Ibn Majah, Vol. 1, Book 1, Hadith 224</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ZU9SSUanp0nWjAoY" /></figure><p><a href="https://chromewebstore.google.com/detail/ayattoday/nmebafllopknoonpbddekobjcmhpnejf?pli=1">Get Google Chrome+Brave Browser Extension</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f319b106f1e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here are the only two ways to become successful]]></title>
            <link>https://medium.com/@hasan.hameed/recipe-to-become-the-next-millionaire-502f8772ccb2?source=rss-fd6db0228ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/502f8772ccb2</guid>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[success]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <dc:creator><![CDATA[Hasan Hameed]]></dc:creator>
            <pubDate>Wed, 25 Apr 2018 15:18:39 GMT</pubDate>
            <atom:updated>2018-06-06T12:50:24.471Z</atom:updated>
            <content:encoded><![CDATA[<p>Its time to leave your past behind and create a new successful version of yourself. When you look at the life of majority successful people around the World you will notice two ways by which they become such.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dd23dK_RoiKtPdgVpQSlDQ.jpeg" /></figure><p>How much successful an ordinary person can become? Look at:</p><p>Elon Musk’s net worth is $13.3 Billion from PayPal, Tesla, Falcon X,</p><p>Larry Ellison’s self-made $47.5 Billion of wealth is Oracle,</p><p>Jeff Bezos’s $47 Billion source of wealth is Amazon.com,</p><p>Mark Zuckerberg’s net worth is $40.3 Billion made with Facebook.com,</p><p>Travis Kalanick made $6 Billion from Uber,</p><p>and the <a href="https://www.forbes.com/sites/chasewithorn/2015/09/29/2015-forbes-400-full-list-of-americas-richest-people/#156ecb873c64">list</a> goes on……</p><p>Behind every successful self-made millionaire there lies passion, motivation, hard-work and commitment. So, if you have such capabilities then there is a chance that your name comes next in that list.</p><blockquote>Your past does not equal your future. — Tony Robbins</blockquote><p>In this posts, I am not going to teach you how you can become more passionate, committed or another self-help lesson. I am telling you the recipe to become the next millionaire! So, what do they guys have in common that made them succeed?</p><p>The answer is; <strong>they all created a Brand that sells</strong>!</p><h3>Tell me the recipe</h3><p>There are only two rules; create <strong>your own-self</strong> a brand or <strong>a product</strong> that makes people to die for!</p><ol><li><strong>How do YOU become a brand?</strong></li></ol><ul><li>Become a leader; find out what skills you already possess or you are able to acquire to mentor individuals/organizations around the World who are craving for it.</li><li>Lay-out a program, a short course, podcast, videos or write a book to teach such individuals, share your knowledge, change people’s life, help them achieve their ambitions meanwhile you make the money.</li><li>Examples: Tony Robbins, Tim Ferriss, Grant Cardone, John Assaraf</li></ul><blockquote><strong>A little imagination combined with massive action goes a long way. — Grant Cardone</strong></blockquote><p><strong>2. How can you create a product that make millions dollars?</strong></p><ul><li>Come up with a million dollar <strong>Idea, </strong>which has a reasonable demand in your local community. An Idea that people can’t live without in 5 years ahead. The idea doesn’t need to unique or innovative always, it can be copied from other societies or can be altered in a way to fit your desired community. The thing which matter is that it must fulfill the needs of a group of people. Either it solves a problem, relief from annoyingness or provide entertainment. Keep in-mind that the Idea must have a <strong>strong business-model </strong>to generate enough money to save you million dollar a year. If not, think of another one. So, just brain-storm and research!</li></ul><blockquote>All your ideas may be solid or even good .. But you have to Actually EXECUTE on them for them to matter. — Gary Vaynerchuk</blockquote><ul><li><strong>Execute</strong> the Idea, as most people do not execute it fearing the failure they never jump to the ocean of money. Find the right guys and resources, work-out hard 80+ hours a week (as Elon Musk &amp; David Patrick suggests) to improves the odd of success and build your own business empire. If you don’t do it nothing’s possible. Die hard for it.</li></ul><p>After doing any one of the above, you will surely come to a point with million dollars in your saving account then all you have to do is to <strong>INVEST </strong>in a right opportunity!<strong> </strong>Invest in real-states, start-ups, ventures, stocks this will gonna multiple you income instead of increment it linearly; 5+5+5 &lt; 5*5*5.</p><blockquote>The most life destroying word of all is the word tomorrow.— <strong>Robert Kiyosaki</strong></blockquote><p><strong>Choose your way and just go for it!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=502f8772ccb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reading configuration files in Angular 2]]></title>
            <link>https://medium.com/@hasan.hameed/reading-configuration-files-in-angular-2-9d18b7a6aa4?source=rss-fd6db0228ab3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d18b7a6aa4</guid>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angularjs]]></category>
            <dc:creator><![CDATA[Hasan Hameed]]></dc:creator>
            <pubDate>Mon, 21 Mar 2016 08:00:47 GMT</pubDate>
            <atom:updated>2016-11-09T08:08:23.939Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DU07-0q0OYfE8U2EL8Q7Wg.jpeg" /></figure><blockquote><strong>Update</strong>: Since Angular 2 final release, one can utilize <a href="https://github.com/angular/angular/issues/9047#issuecomment-224075188">APP_INITIALIZER</a>. In a comment on this post, <a href="https://medium.com/@fernandoservico?source=post_header_lockup">Fernando</a>’s <a href="https://gist.github.com/fernandohu/122e88c3bcd210bbe41c608c36306db9">dist</a> shows its usage to load the environmental configuration files.</blockquote><p>Note: This article was written at the time of angular-2-beta version. There are now some major changes in the RC version &amp; the below code will stuck, so I will try to write a new post for the latest version. Thanks!</p><p>Recently, I started to make a <a href="https://github.com/hasanhameed07/angular2-dashboard-starter">dashboard starter project</a> in Angular 2. It was no surprise to find lack of community and contribution on this alpha release framework. Setting up the configuration is a part of nearly every project. Recent frameworks allow you to manage configuration which is shared across all environments and which is separate for each environment, like for “production”, “development” and so on. Node.js already provides a neat mechanism to read JSON files, you can simply require the <a href="http://dailyjs.com/2014/01/02/recipe-for-express-configuration/">JSON configuration files</a>. Thinking in the similar pattern, I’ve tried to make my own way in which the configuration is managed and loaded in your Angular 2 app.</p><p>I am distributing this tutorial into 3 parts:</p><ol><li>Setting up: JSON Files and Config class to load these files.</li><li>Pre-loading: by making a custom RouterOutlet.</li><li>Usage: of the Config service in your app.</li></ol><p>Here it goes;</p><h3>1. Setting Up</h3><h4>Setting up JSON Files</h4><p>Let’s start by making a config folder in your app directory. In my case, its /src/app/config/. Inside it, make a file called ‘env.json’ which will hold the current environment and shareable configuration like this:</p><pre>{<br> “env”: “development”<br>}</pre><p>Make another file ‘development.json’ in the same folder:</p><pre>{<br> “apiUrl”: “/src/”,<br> “debugging”: true<br>}</pre><h4>Config Class</h4><p>Make a file called ‘config.ts’ in the same folder. I am using typescript in this project that is why it’s extension is ‘.ts’. The Config class will serve 2 purpose; to load the required files and to retrieve the config variables.</p><pre>import { Injectable } from ‘angular2/core’;</pre><pre><a href="http://twitter.com/Injectable">@Injectable</a>()<br> export class Config {</pre><pre> private _config: Object<br> private _env: Object</pre><pre> constructor(private http: Http) {<br> }</pre><pre> load() {<br>   // json files will be loaded here<br> }</pre><pre> getEnv(key: any) {<br>   return this._env[key];<br> }</pre><pre> get(key: any) {<br>   return this._config[key];<br> }</pre><pre>};</pre><p>You must be asking why there are 2 private properties _config and _env. And two public methods getEnv() and get(). The reason is, all shareable configuration i.e. ‘env.json’ data will be held in _env object and environment specific data will be in _config property, which then will be called by their correspondent methods.</p><p>Now we will write the code to load the required files, we are using angular 2&#39;s bult-in ‘http’ module to load our json files:</p><pre>import { Observable } from ‘rxjs/Observable’;<br>import { Http } from ‘angular2/http’;</pre><p>Since in Angular 2 http calls return an <a href="http://chariotsolutions.com/blog/post/angular2-observables-http-separating-services-components/">Observable object</a> rather than a promise, we will be using Observable module to throw an error. Let’s define our load() method:</p><pre>load() {</pre><pre> return new Promise((resolve, reject) =&gt; {</pre><pre>   this.http.get(‘src/app/config/env.json’)<br>   .map(res =&gt; res.json())<br>   .subscribe((env_data) =&gt; {</pre><pre>     this._env = env_data;</pre><pre>     this.http.get(‘src/app/config/’ + env_data.env + ‘.json’)</pre><pre>     .map(res =&gt; res.json())</pre><pre>     .catch((error: any) =&gt; {<br>       console.error(error);<br>       return Observable.throw(error.json().error || ‘Server error’);<br>     })</pre><pre>     .subscribe((data) =&gt; {<br>       this._config = data;<br>       resolve(true);<br>     });</pre><pre>   });</pre><pre> });<br>}</pre><p>In the above code we are making 2 requests one after another; one to load env.json and second to load the required environment .json file. The wrapping of Promise and the the use of ‘resolve(true)’ above is important, we will that discuss later.</p><h3>2. Pre-loading</h3><h4>Possible Solutions</h4><p>Actually, what we want, is to load the required config files before any of your component is initialized (including you main AppComponent which is used for bootstrap) and to make sure all the config is available as a service across the app. I’ve tried several different ways to make this achieve in Angular 2 and found only one convenient solution among these:</p><ol><li>Load files inside bootstrap().then() function.</li><li>Load files in a component’s @CanActivate annotation.</li><li>Use custom RouterOutlet which will load the files prior to route activation.</li></ol><p>Let’s dig into the working of each:</p><p>The problem in the 1st solution is that the bootstrap is resolved after the AppComponent’s <a href="https://angular.io/docs/js/latest/api/core/OnInit-interface.html">ngOnInit()</a> and constructor() functions get executed, thus not making config being available in your AppComponent. You might be thinking that why don’t we call the load() method in either ngOnInit or construction methods of AppComponent? Because when we do that, as the files are being loaded asynchronously your other component’s constructor method also gets called, which is what we actually want to restrict.</p><p>For the 2nd case, loading files inside @CanActivate can make your app flow a bit complex, because it gets called <a href="http://stackoverflow.com/questions/34711962/angular-2-inject-a-dependency-into-canactivate">without any Dependency Injection</a> in it and you also have to implicitly annotate every component other than AppComponent (<a href="https://angular.io/docs/ts/latest/api/router/CanActivate-decorator.html">@CanActivate</a> is a route lifecycle hook which gets called upon navigation and since no router is usually attached to AppComponent we cannot use it for AppComponent).</p><h4>Custom RouterOutlet</h4><p>Hence by using a custom RouterOutlet, you are making sure that all the files are loaded and available prior to any kind of initialization of a component. Create a new file inside a similar folder /src/app/shared/directives/ and name it ‘custom-router-outlet.ts’:</p><pre>import {Directive, Attribute, ElementRef, DynamicComponentLoader} from ‘angular2/core’;<br>import {Router, RouterOutlet, ComponentInstruction} from ‘angular2/router’;<br>import { Config } from “../../config/config”;</pre><pre>@Directive({<br>  selector: ‘custom-router-outlet’<br>})<br>export class CustomRouterOutlet extends RouterOutlet {<br>  publicRoutes: any;<br>  private parentRouter: Router;</pre><pre>  constructor(_elementRef: ElementRef, _loader: DynamicComponentLoader,<br> _parentRouter: Router, <a href="http://twitter.com/Attribute">@Attribute</a>(‘name’) nameAttr: string, private _config: Config) {<br>    super(_elementRef, _loader, _parentRouter, nameAttr);<br>    this.parentRouter = _parentRouter;<br>  }</pre><pre>  activate(instruction: ComponentInstruction) {<br>    return this._config.load().then(() =&gt; { return super.activate(instruction) })<br> }<br>  }</pre><p>As you can see in the “activate()” method we are calling our ‘Config.load()’ method which we built previously which returns a Promise, then on ‘resolve’ it tells router parent to activate the current route.</p><p>Now update your AppComponent with this:</p><pre>import { CustomRouterOutlet } from ‘./shared/directives/custom-router-outlet’;</pre><pre><a href="http://twitter.com/Component">@Component</a>({<br> selector: ‘app-container’,<br> template: ‘&lt;custom-router-outlet&gt;&lt;/custom-router-outlet&gt;’,<br> directives: [CustomRouterOutlet],<br>})</pre><pre>export class AppComponent {}</pre><h3>3. Usage</h3><p>Usage is pretty simple and easy, let’s build a sample component ‘/src/app/sample/sample.component.ts’:</p><pre>import {Config} from ‘../config/config’;</pre><pre>@Component({<br> selector: ‘sample’<br>})</pre><pre>export class SampleComponent {</pre><pre>  constructor(private _config: Config) {<br>    var url = _config.get(&#39;apiUrl&#39;)<br>    console.log(url)<br>    var env = _config.getEnv(&#39;env&#39;)<br>    console.log(env)<br>  }<br>}</pre><p>More ideas:</p><ul><li>You can use cache to store and read config, although http requests in angular have built-in cache by default (inspect in your browser’s developer console).</li><li>Config class can also be used as a registry, simply create a getter ‘getCustom(key)’ and a setter ‘setCustom(key, val)’. This will come handy when you have something to store as a config or constant then later use this across the app.</li></ul><p>You can see the above working code at <a href="https://github.com/hasanhameed07/angular2-dashboard-starter">angular2-dashboard-starter</a> project. Thank you, have a happy coding day!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d18b7a6aa4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>