<?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 Ernest Anyewe Adonu on Medium]]></title>
        <description><![CDATA[Stories by Ernest Anyewe Adonu on Medium]]></description>
        <link>https://medium.com/@ernestadonu?source=rss-a51db09eaf72------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IaRmm5w3u2AlFZ8uJ_Fwcg.jpeg</url>
            <title>Stories by Ernest Anyewe Adonu on Medium</title>
            <link>https://medium.com/@ernestadonu?source=rss-a51db09eaf72------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 22:49:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ernestadonu/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[YOUR ATTITUDE IS NOT A PROBLEM]]></title>
            <link>https://medium.com/@ernestadonu/your-attitude-is-not-a-problem-d4a86e5063cb?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4a86e5063cb</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[successful-living]]></category>
            <category><![CDATA[midset]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[human-behavior]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Thu, 27 Jul 2023 20:01:44 GMT</pubDate>
            <atom:updated>2023-07-28T06:54:29.162Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Have you been told to adjust your attitude or actions in relation to a problem in your life?</em></p><p><em>How many times have you vowed to stop a certain behaviour only to find yourself still engaging in it years or even months later?</em></p><p><em>How many times have you been encouraged to modify your attitude and, despite your efforts, the problem has persisted?</em></p><p><em>Why do our attitudes and personalities seem to be getting worse by the day despite the fact that we have access to more literature than previous generations, a ton of motivational quotes, and the internet?</em></p><p>And it seems that even for those who experience some degree of transformation, it doesn’t take long for them to find themselves back in the situation they were attempting to leave.</p><p><strong>So the question is</strong>:<strong> </strong>are we really sure that attitude is the problem?</p><p>Certainly not!</p><p>In this article, we will uncover the real problem and the solution to getting the kind of changes we want in our lives.</p><p><strong>Attitude </strong>in this article is likened to the leaves, fruits, and branches of a tree. As long as the tree remains, the leaves, fruits, and branches will grow back even if you cut them off. Well, in a short while, it might take on a different shape, but the tree does not change. If it were an orange tree, it would continue to be an orange tree no matter what.</p><p><strong>Why do we do the things we do?</strong></p><blockquote><strong><em>Paradigm: </em></strong><em>Yes, our paradigm is the reason why we do what we do. It is the core, or, if you prefer, source, from which our behaviour or attitude and ultimately our relationships stem.</em></blockquote><figure><img alt="Paradigm is the issue" src="https://cdn-images-1.medium.com/max/800/1*j3S1NZ70YUfZhzMG3T8oFg.jpeg" /><figcaption>Paradigm</figcaption></figure><p>A paradigm, according to the English dictionary, is <strong><em>a pattern</em></strong>, <strong><em>a though</em></strong>t, <strong><em>a system of beliefs</em></strong>, <strong><em>a model</em></strong>, or <strong><em>a conceptual framework</em></strong>.</p><p><em>Steven R. Covey</em>, in his book <a href="https://en.wikipedia.org/wiki/The_7_Habits_of_Highly_Effective_People"><em>The 7 Habits of Highly Effective People</em></a>, called it a <strong><em>“Map”</em></strong>. We all know that a map gives you directions to a location. So if you have the wrong map, it doesn’t matter how good, fast, or diligent you are; you will never come to the expected location unless there is a change.</p><p><em>Dr. Myles Munroe</em> of Blessed Memories called the paradigm an “I<strong><em>deology”</em></strong>.</p><p><em>Dr. Mensah Otabil</em> likened a paradigm to a <strong><em>“Spectacle”. </em></strong>And of course, you can agree with me that the shades of spectacles you wear will determine how you see things. If your spectacles are tinted, your view will be tinted as well. <strong><em>Think about it. </em></strong>I am sure those who use photochromic or blue-light spectacles can attest to this fact.</p><p>It is from this map, pattern, ideology, belief system, and model that we judge all things, knowingly or unknowingly. Paradigm even affirms the point that we are products of influence and goes a long way in dealing with objectivity, which we will expound in the upcoming articles.</p><p><strong>How do we get to see improvement in our lives then?</strong></p><p>It is simple: <strong>change your spectacle, or, in other words, change your map, get a paradigm shift, or better yet, change your ideology or belief system.</strong></p><blockquote>Remember, understanding the process in changing our paradigm in a good way is the golden key to a successful living.</blockquote><p>Subscribe to or follow my blog and get notification of the release of Part II: <em>Processes you will go through to get a completed change of your belief system (paradigm)</em>.</p><p>Thank you for reading. Leave a comment or a clap if you liked it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4a86e5063cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Upgrade Ruby to it’s latest versions (e.g. 3.2.0, 3.3.0)]]></title>
            <link>https://medium.com/@ernestadonu/upgrade-ruby-to-its-latest-version-e-g-3-2-0-3-2-1-66fe8272948e?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/66fe8272948e</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[upgrade-ruby]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Wed, 15 Feb 2023 17:30:26 GMT</pubDate>
            <atom:updated>2024-03-26T22:20:06.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/542/0*M-fdcd13oVbF6GGj.jpg" /><figcaption>Ruby and Rails update</figcaption></figure><p>Are you having trouble upgrading your Ruby version, especially to the versions in the headline, because “<strong>BUILD FAILED</strong>”?</p><p>Are you getting the error <strong>&quot;It seems your Ruby installation is missing psych (for YAML output)? To eliminate this warning, please install libyaml and reinstall your ruby… ”</strong></p><p>Do not worry; I have got you covered in this article if you are using Linux. The information required to resolve the aforementioned issue is extensive, with the majority of it failing. So I decided to put together a tried-and-true solution in this article. The installation of Ruby 3.2.0 and above necessitates the use of <strong>libyaml</strong>.</p><p>To begin with, run;</p><pre>sudo apt-get install libtool</pre><p>After that you run;</p><pre>sudo apt-get install libyaml-dev</pre><p>Finally, checkout out for the version you would like to update your system with</p><p><a href="https://www.ruby-lang.org/en/downloads/releases/">Ruby Releases</a></p><p><strong>Much attention is needed here; </strong>if you are using the <strong>rbenv </strong>package manager for Ruby, run the code below with the <strong>version number</strong> replaced.</p><pre>rbenv install #&lt; ruby version &gt;</pre><p>Example: “<strong><em>rbenv install 3.3.0&quot; </em></strong>otherwise, if you are using <strong>rvm</strong> package manager, you run</p><pre>rvm install #&lt; ruby version &gt;</pre><p>Run “<strong><em>ruby -v</em></strong>” to confirm the version installed. Also run</p><pre>rbenv global #&lt; ruby version &gt; OR<br><br>rvm global #&lt; rbuy version &gt; <br><br>#Based on your package manager to set the path to the latest installed version</pre><p>If you haven&#39;t already, update Rails after the installation is complete. So you run;</p><pre>gem update --system</pre><p>If you get an output such as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*0rQAS3dTNtGYTn_jOAEg1g.png" /></figure><p>Do not fret, all you do is to run;</p><pre>gem install rails #&lt;version of rails&gt;<br><br>#Example;<br><br>gem install rails 7.0.8.1</pre><blockquote>Confirm the version of rails using “<strong><em>rails -v.&quot; </em></strong>Now you are ready to work. Congratulations!!!</blockquote><p>Thank you for reading. Kindly share, clap, and follow for more. You can read other articles I have written on growth mindset below</p><ul><li><a href="https://medium.com/@ernestadonu/the-strength-in-being-vulnerable-70833ea4e3ea">The Strength in Being Vulnerable</a></li><li><a href="https://medium.com/@ernestadonu/progress-in-failure-75458e598108">Progress In Failure</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66fe8272948e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to fix “Peer authentication failed for user ‘postgres’ Error”]]></title>
            <link>https://medium.com/@ernestadonu/how-to-fix-peer-authentication-failed-for-user-postgres-error-b04ad8755f37?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/b04ad8755f37</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Tue, 22 Nov 2022 21:29:46 GMT</pubDate>
            <atom:updated>2022-11-22T21:33:21.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*Nz6sYUl_Wguci7pU.png" /><figcaption><a href="https://cdn0.iconfinder.com/data/icons/network-and-security-3-1/512/793-05-512.png">https://cdn0.iconfinder.com/data/icons/network-and-security-3-1/512/793-05-512.png</a></figcaption></figure><p>Peer authentication happens because the database administrative login by the Unix domain socket is set to “peer” instead of authenticating it. Anytime you login to PostgreSQL without authentication, it means the Unix domain is not set to authenticate. This will eventually lead to a bug when you try to connect a backend framework, such as Rails, to your PostgreSQL database.</p><p>There are two ways to people go about fixing this bug;</p><p>i) Uninstall PostgreSQL and properly set it up when re-installing it or</p><p>ii) You edit the “<em>pg_hba.conf</em>” file of your PostgreSQL application.</p><p>I prefer the second option, which is fast and gives you a level of understanding of the application you are using. <strong>The solution is for Linux users.</strong></p><p>To confirm if you have the issue stated above, run any of the codes below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*U-u9nOypSJxu-DILp6qnEQ.png" /><figcaption>PostgreSQL access command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*aTw_bSqaltSNEWt17UMnwg.png" /><figcaption>PostgreSQL access command</figcaption></figure><p>Once the feedback below is true</p><pre>Peer authentication failed for user &#39;postgres&#39;</pre><p>You will resolve it by following the instruction below</p><p>Run</p><pre>$ cd /etc/postgresql/14/main</pre><p>Kindly note that the <strong>14 </strong>in the line of code above is the version of PostgreSQL on your system. If you are not sure, you can verify with the code below. Remember to<strong> use only the integer before the floating point.</strong></p><pre>$ psql -V # OR<br>$ psql --version</pre><p>The next step is to run the code below to get a list of PostgreSQL files. The last file named “<em>pg_hba.conf</em>” is what we will be editing using the <strong><em>vi</em></strong> file editor. However, you can use <strong><em>nano</em></strong> if you like</p><pre>$ ls -ltrh</pre><p>Now go ahead and access the PostgreSQL database with</p><pre>$ sudo su postgres</pre><p>Run</p><pre>$ vi pg_hba.conf</pre><p>Scroll down till you see the writings in the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*cdxY-EO1kHh288pfO-Dcbg.png" /></figure><p>Where the “<strong><em>trust”</em></strong> is, you will see &quot;<strong><em>peer</em></strong>,&quot; and so you will change it to “<strong><em>trust</em></strong>” by moving your cursor there.<br>Press<em> </em>the<em> </em><strong><em>delete</em></strong> key to clear, then press <strong><em>i</em></strong> on our keyboard to enable you to write. Once you are done, press the “<strong><em>Esc</em></strong>” key on your keyboard and type the command below, then press enter to save and exit.</p><pre>:wq!</pre><p>Now run “exit” command then restart the PostgreSQL server with either</p><pre>$ service postgresql restart # OR <br>$ sudo systemctl restart postgresql # This works on both old and new operating systems.</pre><p>Enter your password, then voilà! Confirm using the first code you entered, i.e. <strong><em>$ psql -U postgres </em></strong><br>If you don’t get any errors, then you have successfully fixed the permission issue in your PostgreSQL database.</p><p>Kindly <strong><em>like,</em></strong> <strong><em>share,</em></strong> and <strong><em>subscribe</em></strong> for more content like this. All suggestions and feedback are welcome.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b04ad8755f37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[REVERSE ARRAY WITHOUT MUTATING THE ORIGINAL]]></title>
            <link>https://medium.com/@ernestadonu/reverse-array-without-mutating-the-original-58bf72dde3ac?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/58bf72dde3ac</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[array-methods]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Sat, 22 Oct 2022 03:42:08 GMT</pubDate>
            <atom:updated>2022-10-22T03:42:08.654Z</atom:updated>
            <content:encoded><![CDATA[<p>For sure, this article is worth your time because it will save you a lot of debugging time. Logical errors are so frustrating, and if you are new to programming, logical errors will make you find a new profession if care is not taken. It is advisable to equip yourself with knowledge that minimizes software bugs. Of course, you cannot do away with errors, but you can reduce them with good practices.</p><p><em>This article is to draw your attention to a method that has the potential to mess up your day if attention is not given to it early.</em></p><blockquote><strong>reverse() method</strong></blockquote><p>According to the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse#:~:text=The%20reverse()%20method%20reverses,array%20element%20becoming%20the%20first"><strong>MDN Plus</strong></a>, this method orders elements in the array to turn in the opposite direction to their previous state. That is to say, the first array element now becomes the last, and the last array element becomes the first.</p><p>Below is a code snippet of the <em>reverse() </em>with the output on line 10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*wpbBpOdvkj_HCmGdNmaJJQ.png" /><figcaption>Reverse array output</figcaption></figure><p>Now let&#39;s print out the original “animals<strong><em>”</em></strong> array on <strong><em>line 11 </em></strong>with the answer on <strong><em>line 12 </em></strong>in the snapshot below. You realize that the output on <strong><em>lines 12</em></strong><em> </em>and<em> </em><strong><em>9</em> </strong>is the same even though <strong><em>line 11 </em></strong>is just an output of <strong><em>line 6</em></strong> without modification.</p><figure><img alt="ReverseElement function with with output" src="https://cdn-images-1.medium.com/max/545/1*0AS7Q7-VJvRWlEE7z4fQfg.png" /><figcaption>Reversed and original array output</figcaption></figure><p>So the logic error will occur when the variable &quot;animals&quot; is used elsewhere. The code will run alright, but the output will not be the expected output. You would have to spend a lot of time debugging since logic errors are not easily detected.</p><p><strong>Solution</strong></p><p>In order to solve the mutation issue in the above snippet, should one decide to use the variable “animals” again, one has to create a shallow copy of the original array, in our case, &quot;animals,&quot; to work on. The code that create the shallow copy of the variable “animals” is written on <strong><em>line 2</em></strong> in the snapshots below;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dfkCli_ZP7SIH9c513siNQ.png" /><figcaption>Solution with spreed operator</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gFjkwPX7yIugL8TBmVtKOg.png" /><figcaption>Solution with slice method</figcaption></figure><p>The spread operator (<strong><em>...)</em></strong> and <strong><em>slice method slice() </em></strong>were used to create the shallow copy, so the reverse method does not mutate the original.</p><p>I hope this will help save time in the future when you use the <em>reverse()</em> method. I&#39;m looking forward to reading your comments on suggestions and alternative ways.</p><p>Kindly subscribe and share if you find it helpful.</p><p>Further reading on <a href="https://www.learnacademy.org/blog/what-considered-common-programming-errors"><strong>most common errors in programming</strong></a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax"><strong>spread operator</strong></a> and <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice"><strong>slice method</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58bf72dde3ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Progress In Failure]]></title>
            <link>https://medium.com/@ernestadonu/progress-in-failure-75458e598108?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/75458e598108</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Sat, 06 Aug 2022 13:18:20 GMT</pubDate>
            <atom:updated>2022-08-06T13:18:20.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*wRvWze4gNQkC7sOTHn5OGA.png" /><figcaption>From failure to success -Martin Meadows</figcaption></figure><blockquote>Failure is simply the opportunity to begin again, this time more intelligently. Henry Ford.</blockquote><p>I don’t know who else needs to read or listen to this, but the truth is that I have written this article to remind myself. I don’t want to go searching when I want to remind myself of the progress I have made when I failed.</p><p>Rather than being so hard on yourself because you failed and deciding to quit because you think you are not good enough, think about the progress and the discoveries you wouldn’t have made if you did nothing. Imagine how many times children fall before they get to walk. A good friend said you failed means you started, and that is very good.</p><blockquote>Albert Einstein said that “Failure is success in progress”.</blockquote><p>From where I come from, failure is an abomination. If you fail, for instance, in class as a student, your teachers will give you less attention and your colleagues will give you space because no one likes to be associated with failure. So, it is either you get it right or you don’t try once you perceive failure. There are lots of ideas that have not been implemented because of the fear of failure, songs that have not been written for this same reason, and many more. I believe you get a new perspective on failure and encourage anyone who tries because of all the inventions and technologies we have tried many times before succeeding. Just to mention a few</p><p>According to <a href="https://www.theguardian.com/science/2016/mar/05/elon-musk-spacex-failed-landing">this article</a>, Elon Musk’s idea of a reusable rocket failed with all the brilliant brains behind it before finally succeeding. I am sure you might have heard of the invention of the light bulb or seen one. The person behind it, Thomas Edison, <a href="https://www.naphill.org/tftd/thought_for_the_day_monday_march_20_2017/">failed 10,000 times before the invention of the light bulb</a>.</p><p>Every learning process starts with failure. Failure is a gate that we all must go through, whether once or multiple times, in order to enter the tower of knowledge and talent. It is impossible to gain knowledge or acquire new skills without failing. I hope this reminds us of what we have achieved and to press on when we find ourselves failing. Thank you for reading.</p><p>If you like this article and more of these, kindly follow and click the bell to get a notification anytime I post a new article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75458e598108" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Strength in Being Vulnerable]]></title>
            <link>https://medium.com/@ernestadonu/the-strength-in-being-vulnerable-70833ea4e3ea?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/70833ea4e3ea</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 20:33:41 GMT</pubDate>
            <atom:updated>2022-07-22T20:33:41.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*No3WTXigO0FHp2_43CkHBw.png" /><figcaption>The time to be vulnerable is now! <a href="https://heatherhundhausen.com/wp-content/uploads/2019/07/stop-hiding-start-being-vulnerable.png"><strong>picture</strong></a></figcaption></figure><p>Let me start with this Ghanaian proverb, <em>“Anyone who sells their sickness gets the cure”</em>. Also, there cannot be growth without a weakness. Which is to say, you only acknowledge growth when you move from a lower level to a higher level which can only be achieved by being vulnerable in other to get assistance.</p><p>We have been taught over the years to appear prim and proper before people regardless of what is happening to us. We have been made to only see the weakness of being vulnerable which has led to the demise of people who shouldn’t or wouldn’t have died if they had spoken to someone about what they were going through. Some people have habits they cannot stop because they have not shared their problems. Still, others have not been able to finish certain assignments entrusted to them because they cannot appear to need help.</p><p>I understand it is not easy to appear you are struggling with something. It gets worse when you have made a name for yourself in your circle and people look up to you. What you may not have recognised or noticed is that you need a lot of strength to keep the things you are battling with away from everyone else (i.e. it is costly not to be vulnerable). This is something you cannot do forever because at a point you would have to let go and who knows, that time may be too late or a time when help is beyond your reach. <strong><em>Vulnerability is a strength.</em></strong></p><p>Before I point out some of the strengths of being vulnerable, note that “<strong> there is no certainty in being vulnerable</strong>.” That is, if you are worried so much about how people are going to use your “<em>weakness</em>” then you cannot grow and might not experience happiness in life as you should and probably end up in a way you never anticipated for yourself. I am sure Dr Brené Brown’s definition of vulnerability will help you look at vulnerability in a way you’ve not done before, which is that,</p><blockquote>“Vulnerability is our greatest measure of courage”</blockquote><p>The core reasons for advocating that you talk to someone are;</p><p><strong>For intimacy</strong>, as humans, we desire intimacy and intimacy cannot happen without being vulnerable. It helps to make people appreciate and love you for who you are and not how you want them to see you. So that they are not disappointed and leave you when they mistakenly or consciously discover you.</p><p><strong>For growth,</strong> As I said from the beginning, <em>“you get the cure to your sickness if you sell it or make someone know about it”. </em>Even those you think will point hands and use the weakness against you will be disappointed because you would have grown from that situation when they return to point fingers at you. Remember, one can’t grow without being vulnerable. We need to talk about the challenges to find solutions. We need to stop hiding because <strong><em>“vulnerability is a strength”</em></strong>.</p><p>Thank you for reading I hope it helps. Kindly <strong><em>like</em></strong>, <strong>follow </strong>and <strong><em>share</em></strong>.</p><p>An additional <a href="https://medium.com/the-mission/how-to-embrace-vulnerability-as-your-greatest-strength-d2ac2b80ba52">article </a>by Tony Fahkry and a <a href="https://www.youtube.com/watch?v=ZkDaKKkFi6Y">video </a>by Dr Brené Brown will help free your mind so you can free yourself to live without stress.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70833ea4e3ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Deploy JavaScript Webpack Projects Using Gh-Pages!]]></title>
            <link>https://medium.com/@ernestadonu/how-to-fix-readme-md-file-display-in-github-pages-b48c450f1cc8?source=rss-a51db09eaf72------2</link>
            <guid isPermaLink="false">https://medium.com/p/b48c450f1cc8</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[webpack]]></category>
            <dc:creator><![CDATA[Ernest Anyewe Adonu]]></dc:creator>
            <pubDate>Mon, 11 Jul 2022 22:21:13 GMT</pubDate>
            <atom:updated>2022-07-22T09:08:54.746Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Are you wondering how to deploy JavaScript webpack projects or rather, are you seeing only the README.md file display after deploying your website on the Github pages?</blockquote><p>If the answer to the above question is <strong>“yes”</strong> and you are working with packages in JavaScript like<strong>webpack</strong>then count your problem solved.</p><p>I decided to write this article because I know time is precious and I wouldn’t want anyone to spend 3 hours looking for a solution like I did. Most of the solutions you will see out there for the issue mentioned above are for solving similar issues with deploying React website/app which does not work for those deploying a website having JavaScript<strong> </strong><strong>(webpack)</strong> installed.</p><p>I know you are in a hurry and just want the procedure to fix your issue. However, it is imperative to know why it didn’t work first. Here is the reason, by default GitHub Pages host the entire repository that contains index.htmlin the root folder and because you are working with webpackyour index.htmlis in the srcfolder and not the root folder, only the README.mdfile will run since it is in the root folder.</p><p><strong>Now the solution: </strong>navigate to the repository and checkout to the main branch and run the code in the order as displayed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*E4vCs_Cb7VyeklgoDzgVUw.png" /><figcaption>npm install</figcaption></figure><p>Now go to the package.json file and in the script add &quot;deploy”: “gh-pages -d dist” as shown in the image below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*TliTC5OvxTI3vvHJ1Yf9hQ.png" /><figcaption>Add deploy</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/1*DNWYWGmPMwzI8PaaqljqNg.png" /><figcaption>run deploy</figcaption></figure><p>The code will immediately be published and a new branch will be created in the repository on GitHub called the gh-pages. On the gh-pages branch go to Setting → Page and select the gh-pages branch, save and wait for about 5 minutes to click on the displayed link to see your deployed website.</p><p>If you liked the solution, kindly share and follow me <a href="https://medium.com/@ernestadonu">here </a>and on <a href="https://www.linkedin.com/in/ernest-adonu-7b61951b0/">LinkedIn </a>for more updates like this. Thank you</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b48c450f1cc8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>