<?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 Sneha Herle on Medium]]></title>
        <description><![CDATA[Stories by Sneha Herle on Medium]]></description>
        <link>https://medium.com/@sneha-herle?source=rss-bf494ed84364------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*FQSJDXSF32nDCzWJX3jVKw.jpeg</url>
            <title>Stories by Sneha Herle on Medium</title>
            <link>https://medium.com/@sneha-herle?source=rss-bf494ed84364------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 17:55:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sneha-herle/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[Git Bash Error on Windows 10: /c/Python39/Scripts/aws: c:\python39\python.exe^M:]]></title>
            <link>https://sneha-herle.medium.com/git-bash-error-on-windows-10-c-python39-scripts-aws-c-python39-python-exe-m-892204212f69?source=rss-bf494ed84364------2</link>
            <guid isPermaLink="false">https://medium.com/p/892204212f69</guid>
            <dc:creator><![CDATA[Sneha Herle]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 13:31:44 GMT</pubDate>
            <atom:updated>2021-06-25T13:31:44.403Z</atom:updated>
            <content:encoded><![CDATA[<h3>Git Bash Error on Windows 10: /c/Python39/Scripts/aws: c:\python39\python.exe^M: bad interpreter: No such file or directory</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ovaKToimvbIrWPdjP3trwg.png" /></figure><p>Does the title seem familiar? If so, then you have landed at the right place. I have struggled with this error for many days and no article helped me in particular. Finally, after multiple trial and errors, I could <strong>fix it</strong> and would love to share it with you in case you’re stuck too.</p><p><strong>Here’s the scenario:</strong></p><p>I was working on an AWS SAM project and wanted to deploy my code to the S3 bucket through a bash script which had the deployment commands. Let’s name this script as <strong>script.sh.fixed</strong>.</p><p>Next, I opened <strong>Git Bash</strong> on my <strong>Windows</strong> machine and executed the below command in my project directory:</p><pre>$bash script.sh.fixed</pre><p>And this weird error came up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*2j1Ms8mPJoOZLP1SJo4xmA.png" /><figcaption>Error message</figcaption></figure><p><strong>Solution:</strong></p><p>Step1) Open the aws Python file at the path mentioned in the error: C:\Python39\Scripts\aws</p><p>It will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*-ADxmFoLulARktUWkUY9-Q.png" /><figcaption>C:\Python39\Scripts\aws</figcaption></figure><p>Notice the shebang #!c:\python39\python.exe. This is not being correctly read by Git.</p><p>Step2) So, let’s make sure first that Python is working in our Git window:</p><pre>$python</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*RGDA9yeIWovbNOaXHMO7YQ.png" /><figcaption>$python</figcaption></figure><p>Now, we are sure that Python is installed correctly but Git is unable to use it for execution through the shebang.</p><p>Step3) Next, check whether the PATH environment variable is set correctly for Python:</p><pre>$which Python</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*pRAP1LTa-iKhDfvkOF7sqw.png" /><figcaption>$which Python</figcaption></figure><p>Check if the above path is added in the PATH environment variable. If not, then add it there.</p><p>Step4) Last step, go back to the aws Python file and change the shebang to #!/usr/bin/env python.</p><p>The file should now look as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/756/1*9jMSGbVXjGMlBQ94yLCDDg.png" /><figcaption>C:\Python39\Scripts\aws</figcaption></figure><p>Save it and reopen Git Bash and try to execute the shell script, and it will now successfully execute, the reason being we have redirected the shebang to take the path of Python from the environment variable which we had set.</p><p><em>Please note that this error can be due to a lot of reasons and there are many solutions for the same.</em></p><p>Hope this solution helps you!</p><p>Happy Coding! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=892204212f69" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Scraping using Node.js with Axios and Cheerio]]></title>
            <link>https://sneha-herle.medium.com/web-scraping-using-node-js-with-axios-and-cheerio-37948b914a74?source=rss-bf494ed84364------2</link>
            <guid isPermaLink="false">https://medium.com/p/37948b914a74</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[asyncawait]]></category>
            <dc:creator><![CDATA[Sneha Herle]]></dc:creator>
            <pubDate>Sat, 02 Jan 2021 07:51:25 GMT</pubDate>
            <atom:updated>2021-01-02T08:41:33.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*fxDB91PEVqNIOIoZ" /><figcaption><a href="https://unsplash.com/@markusspiske">@markusspiske</a></figcaption></figure><p>In this post, we’ll learn how to use Node.js and it’s packages: <strong>Axios </strong>and<strong> Cheerio</strong> to perform a quick and effective <strong>web-scraping</strong> for single-page applications.</p><p>Web-Scraping is generally performed in the cases when the desirable websites don’t expose the API for fetching the data.</p><p>We will use <strong>Axios</strong> which is a promise-based HTTP client for the browser and Node.js, and also C<strong>heerio</strong> which is jQuery for Node.js. Cheerio makes it easy to select, edit, and view DOM elements.</p><p>Let’s get started.</p><p>Step 1: We create a new folder and run this command inside that folder to create a <strong>package.json</strong> file.</p><pre>npm init -y</pre><p>Step 2: Add <strong>Axios</strong> and <strong>Cheerio </strong>from npm as our dependencies.</p><pre>npm install axios cheerio</pre><p>Step 3: Now, require them in our `index.js` file</p><pre>const axios = require(&#39;axios&#39;);<br>const cheerio = require(&#39;cheerio&#39;);</pre><p>Step 4: We are scraping data from the <a href="https://news.ycombinator.com/"><strong>HackerNews</strong></a> website for which we need to make an HTTP request to get the website’s content. That’s where Axios come into the picture.</p><p>Now we need some help of <strong>Chrome Developer Tools</strong> to search through the HTML of a web page and select the required data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VY1iv6j5J0ECycw_Tw8uRw.png" /><figcaption>Chrome’s Developer Tool</figcaption></figure><p>We want to scrape the News heading and its associated links.</p><p><strong>Cheerio</strong> is the jQuery for Node.js, we use selectors to select tags of an HTML document. The selector syntax was borrowed from jQuery.</p><p>Continued index.js:</p><pre>const axios = require(&#39;axios&#39;);<br>const cheerio = require(&#39;cheerio&#39;);</pre><pre>const webScraper = async () =&gt; {<br> const html = await axios.get(&#39;https://news.ycombinator.com&#39;);<br> const $ = await cheerio.load(html.data);<br> let data = [];</pre><pre> $(&#39;table.itemlist tr td:nth-child(3)&#39;).each((i, elem) =&gt; {<br>   if (i &lt;= 3) {<br>     data.push({<br>       title: $(elem).text(),<br>       link: $(elem).find(&#39;a.storylink&#39;).attr(&#39;href&#39;)<br>       })<br>     }<br>});</pre><pre>console.log(data);<br>}</pre><pre>webScraper();</pre><p>We have created an async-await function using which we have made an HTTP request using Axios and then loading the HTML using Cheerio. Then we iterate all the occurrences of the table row &lt;tr&gt;and scrape the first 4 rows.</p><p>Step 5: Execute the index.js.</p><pre>node index.js</pre><p>The output will look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mq5Fbvo21HWEU9XMLQqg1Q.png" /><figcaption>Scraped Data</figcaption></figure><p>Now we have an array of JavaScript objects containing the title and links of the news from the HackerNews website. In this way, we can scrape the data from the various large number of websites.</p><p>Hope this helps someone trying out web-scraping in Node.js.</p><p>There is still lots to explore and I hope this got you started.</p><p>Happy Coding! :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37948b914a74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Favicon working on localhost but not on GitHub Pages]]></title>
            <link>https://sneha-herle.medium.com/favicon-working-on-localhost-but-not-on-github-pages-6c7b9e947504?source=rss-bf494ed84364------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c7b9e947504</guid>
            <category><![CDATA[error]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[favicon]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[Sneha Herle]]></dc:creator>
            <pubDate>Fri, 23 Oct 2020 18:20:35 GMT</pubDate>
            <atom:updated>2020-10-23T18:20:35.396Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*toEzCrMsX6A9-KlE" /><figcaption><a href="https://unsplash.com/@christnerfurt">@christnerfurt</a></figcaption></figure><p>Does the title sound similar? I might be able to help you if you are facing the same issue.</p><p>In the React app, I built using create-react-app, I could see the default react favicon on localhost.</p><p>I had added the below line of code in my index.html and the favicon.ico file was also present in the same folder (static/public):</p><pre>&lt;link rel=&quot;shortcut icon&quot; href=&quot;%PUBLIC_URL%/favicon.ico&quot; /&gt;</pre><p>After doing all my changes to the web app, I used GitHub pages to host it.</p><p>But I was really disappointed to see that the favicon was not working at all. I personally don’t like an application without a favicon, I am kinda weird about it.</p><p>So I searched and wasted so much time to get it to work. But nothing seemed to work for me.</p><p>After trying multiple changes, it finally worked for me when I replaced my previous line of code (see above) with the one below:</p><pre>&lt;link rel=&quot;shortcut icon&quot; type=&quot;image/x-icon&quot; href=&quot;favicon.ico&quot;&gt;</pre><p>After changing this line of code and committing to git, and then executing:</p><pre>npm run deploy</pre><p>It finally worked for me! IT DID WORK!</p><p>Phewwwwww.</p><p>Hope this helps someone getting frustrated with the same issue.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c7b9e947504" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Interpretation of Coldplay’s Clocks]]></title>
            <link>https://sneha-herle.medium.com/an-interpretation-of-coldplays-clocks-c4467e30f5c?source=rss-bf494ed84364------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4467e30f5c</guid>
            <category><![CDATA[coldplay]]></category>
            <category><![CDATA[song-lyrics]]></category>
            <category><![CDATA[music]]></category>
            <category><![CDATA[rock]]></category>
            <category><![CDATA[clock]]></category>
            <dc:creator><![CDATA[Sneha Herle]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 16:54:51 GMT</pubDate>
            <atom:updated>2020-10-22T16:54:51.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*8CqZoFb1TiULpf0v" /><figcaption><a href="https://unsplash.com/@neyn">@neyn</a></figcaption></figure><p>A beautiful song, and below is an interpretation which I liked the most. There may be others too, as Coldplay’s songs mostly have a lot of interpretations.</p><p><strong><em>The lights go out and I can’t be saved</em></strong><br><strong><em>Tides that I tried to swim against</em></strong><br><strong><em>Have brought me down upon my knees</em></strong><br><strong>Oh I beg, I beg and plead singing</strong></p><p>The protagonist in the song is in despair, he has lost all hope, he is doubtful, and is pleading for salvation. Tides which are the doubts that have brought him down to his knees.</p><p><strong><em>Come out of things unsaid</em></strong><br><strong><em>Shoot an apple off my head</em></strong><br><strong><em>And a trouble that can’t be named</em></strong><br><strong><em>A tiger’s waiting to be tamed singing</em></strong></p><p><strong><em>You are</em></strong><br><strong><em>You are</em></strong></p><p>The protagonist is reminiscing about a relationship, in which things were left unsaid, and now he has an unknown enemy, unknown despair, which can’t be named. A tiger, strongly referring to the protagonist, is waiting to be tamed, implying that the world is waiting for him to take action, to do something. ‘You are’ refers to the protagonist here.</p><p><strong><em>Confusion never stops</em></strong><br><strong><em>Closing walls and ticking clocks</em></strong><br><strong><em>Gonna come back and take you home</em></strong><br><strong><em>I could not stop the tune i know singing</em></strong></p><p>Confusion is all around him, time is passing by, the walls are closing about him, the clock is swiftly ticking by, and he doesn’t know what is going on. The protagonist is accepting that he is in a struggle to find his place in the world, and he is taking this struggle with him home.</p><p><strong><em>Come out upon my seas</em></strong><br><strong><em>Cursed missed opportunities</em></strong><br><strong><em>Am I a part of the cure?</em></strong><br><strong><em>Or am I part of the disease? Singing</em></strong></p><p><strong><em>You are</em></strong><br><strong><em>You are</em></strong><br><strong><em>You are</em></strong><br><strong><em>You are</em></strong></p><p>The protagonist is regretting the missed opportunities, is he part of the cure, or is he the disease, these tell us that he doesn’t know whether he is making things better or worse.</p><p><strong><em>And nothing else compares</em></strong><br><strong><em>And nothing else compares</em></strong><br><strong><em>And nothing else compares</em></strong></p><p><strong><em>You are</em></strong><br><strong><em>You are</em></strong></p><p><strong><em>Home, home where I wanted to go, home ( you are)</em></strong><br><strong><em>Home, home where I wanted to go, home (you are)</em></strong><br><strong><em>Home, home where I wanted to go, home (you are)</em></strong><br><strong><em>Home, home where I wanted to go, home (you are)</em></strong></p><p>Nothing else compares to his newfound challenge in life, which is giving him the zest for life and a purpose at hand. Home is where he wanted to go. He has resolved his doubt as he says “You are….home”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4467e30f5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Interpretation of Oasis’ Wonderwall]]></title>
            <link>https://sneha-herle.medium.com/an-interpretation-of-oasis-wonderwall-6c2be20d09fe?source=rss-bf494ed84364------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c2be20d09fe</guid>
            <category><![CDATA[oasis]]></category>
            <category><![CDATA[rock]]></category>
            <category><![CDATA[song-lyrics]]></category>
            <category><![CDATA[music]]></category>
            <category><![CDATA[wonderwall]]></category>
            <dc:creator><![CDATA[Sneha Herle]]></dc:creator>
            <pubDate>Thu, 22 Oct 2020 16:45:46 GMT</pubDate>
            <atom:updated>2020-10-22T16:45:46.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*DooSJ6FQfDPAqBot" /><figcaption><a href="https://unsplash.com/@max_thehuman">@max_thehuman</a></figcaption></figure><p>I have always wondered about the meaning of the song “<strong>Wonderwall</strong>”. This is the best I found on the internet describing this beautiful song.</p><p>Read on and I am sure you’d be left amazed!</p><p>Courtesy: <a href="http://songmeanings.com/songs/view/38/">Oasis — Wonderwall Lyrics | SongMeanings</a></p><p>Here it goes……</p><p>The word “<strong><em>wonderwall</em></strong>” means “<strong><em>the person you constantly find yourself thinking about</em></strong>”. This song is simply about the feelings, human beings get when they experience the initial stages of love and infatuation (limerence). It describes the volleying between euphoria and agony that a <strong>crush</strong> can make you feel.</p><p>In other words, the song “Wonderwall” is basically about the <em>butterflies you get in your stomach when your crush walks into the room</em> and the thoughts that stem from those feelings.</p><p><strong><em>“Today is gonna be the day</em></strong><br><strong><em>That they’re gonna throw it back to you”</em></strong></p><p>&gt; He’s saying today is your opportunity to express your love. You’re going to be in the presence of your secret crush, and you better make your move.</p><p><strong><em>“By now you should’ve somehow</em></strong><br><strong><em>Realized what you gotta do”</em></strong></p><p>&gt;He’s saying that it’s obvious you need to approach your crush and tell them how you feel. There’s no other way. Silence leads to nothing. This, of course, is much easier said than done, due to fear of rejection.</p><p><strong><em>“I don’t believe that anybody</em></strong><br><strong><em>Feels the way I do, about you now”</em></strong></p><p>&gt;He’s saying that nobody else in the world could possibly have stronger feelings toward this person at this exact moment in time. His crush is the only thing that’s on his mind. From the moment he wakes up until he goes to sleep. He’s infatuated with his crush.</p><p><strong><em>“Back beat, the word was on the street</em></strong><br><strong><em>That the fire in your heart is out”</em></strong></p><p>&gt;His crush has been hurt so badly by relationships in the past, that he fears cynicism will ruin his odds at casting the spell that will capture his crush’s heart.</p><p><strong><em>“I’m sure you’ve heard it all before</em></strong><br><strong><em>But you never really had a doubt”</em></strong></p><p>&gt;He’s certain his crush has been through it all in the past. She’s entered relationships without second guessing and has been hurt because of it. He’s afraid that this will scare her away from him.</p><p><strong><em>“I don’t believe that anybody</em></strong><br><strong><em>Feels the way I do about you now”</em></strong></p><p>&gt;He’s saying that nobody else in the world could possibly have stronger feelings toward this person at this exact moment in time. His crush is the only thing that’s on his mind. From the moment he wakes up until he goes to sleep. He’s infatuated with his crush.</p><p><strong><em>“And all the roads we have to walk are winding</em></strong><br><strong><em>And all the lights that lead us there are blinding”</em></strong></p><p>&gt;Relationships are so complicated and hard to obtain and maintain.</p><p><strong><em>“There are many things that I</em></strong><br><strong><em>Would like to say to you but I don’t know how”</em></strong></p><p>&gt;He means exactly what is stated. He has so many things to say to his crush but is afraid to open his mouth and express his feelings because he fears rejection.</p><p><strong><em>“Because maybe, you’re gonna be the one that saves me</em></strong><br><strong><em>And after all, you’re my wonderwall”</em></strong></p><p>&gt;It is possible that getting into a relationship with his crush will cure his loneliness and sadness and make him truly happy.</p><p><strong><em>“Today was gonna be the day</em></strong><br><strong><em>But they’ll never throw it back to you”</em></strong></p><p>&gt;In retrospect, he missed his opportunity to express his love. He remained silent and the opportunity to show his love is now gone. It’s too late.</p><p><strong><em>“By now you should’ve somehow</em></strong><br><strong><em>Realized what you’re not to do’’</em></strong></p><p>&gt;In retrospect, he realizes remaining silent and holding his feelings inside was the wrong thing to do, because now he is left wondering what could have been and it kills him inside.</p><p><strong><em>“I don’t believe that anybody</em></strong><br><strong><em>Feels the way I do, about you now”</em></strong></p><p>&gt;Still, he does not believe it is possible for anyone else on the planet to love her as much as he does, even though he was to scared of rejection to express his feelings.</p><p><strong><em>“And all the roads that lead you there are winding</em></strong><br><strong><em>And all the lights that light the way are blinding</em></strong>”</p><p>&gt;Relationships are so complicated and hard to obtain and maintain.</p><p><strong><em>“There are many things that I</em></strong><br><strong><em>Would like to say to you but I don’t know how”</em></strong></p><p>&gt;He means exactly what is stated. He has so many things to say to his crush but is afraid to open his mouth because he fears rejection.</p><p><strong><em>“I said maybe, you’re gonna be the one that saves me</em></strong><br><strong><em>And after all, you’re my wonderwall”</em></strong></p><p>&gt;It is still possible that getting into a relationship with his crush will cure his loneliness and sadness and make him truly happy.</p><p><strong><em>“I said maybe, you’re gonna be the one that saves me</em></strong><br><strong><em>And after all, you’re my wonderwall”</em></strong></p><p>&gt;It is still possible that getting into a relationship with his crush will cure his loneliness and sadness and make him truly happy.</p><p><strong><em>“I said maybe, you’re gonna be the one that saves me</em></strong><br><strong><em>You’re gonna be the one that saves me</em></strong><br><strong><em>You’re gonna be the one that saves me”</em></strong></p><p>&gt;He’s now simply holding on to the fantasy that him and his crush will one day be together.</p><p>After I thought about the song, according to this meaning, I started liking it even more! Hope everyone feels the same! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c2be20d09fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>