<?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 Khushal Sharma on Medium]]></title>
        <description><![CDATA[Stories by Khushal Sharma on Medium]]></description>
        <link>https://medium.com/@Logan1x?source=rss-76b83b7816bd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3OonCQC0SXEn4LV7iU6-2Q.jpeg</url>
            <title>Stories by Khushal Sharma on Medium</title>
            <link>https://medium.com/@Logan1x?source=rss-76b83b7816bd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:02:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Logan1x/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[PIP — an untold story]]></title>
            <link>https://medium.com/@Logan1x/pip-an-untold-story-d15a1cd22113?source=rss-76b83b7816bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d15a1cd22113</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[docker-image]]></category>
            <category><![CDATA[dockerfiles]]></category>
            <category><![CDATA[pip]]></category>
            <dc:creator><![CDATA[Khushal Sharma]]></dc:creator>
            <pubDate>Tue, 15 Sep 2020 14:11:52 GMT</pubDate>
            <atom:updated>2020-09-15T14:29:19.549Z</atom:updated>
            <content:encoded><![CDATA[<h3>PIP — an untold story</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*r9GIUs92iy_QJd4OqVmjfg.png" /></figure><p>Yesterday I tried to make my first docker image for my recent project, nucleotide seq generator. As I just learned what docker is and how it is useful to get out of dependency loop, I wanted to try my hand at this. I tried to learn docker before in my life too, but I never went successful.<br>But yesterday, I was suggesting docker to my cousin for his new project and stumbled upon freecodecamp docker tutorial. It is free tutorial without ad, so I always prefer this. This particular lecture was taught by katacoda creator, a platform where you can learn a lot of dev-oops related things. What better way to learn, so I started lectures and came up till docker images, from where I left of because I wanted to deploy my own app.<br>I searched on YouTube and figured the way to deploy flask apps in docker by building dockerfile. So now my journey for dockerfile began.<br>Dockerfile Is a way to create docker images for your software. In youdockerfile give instruction to execute when that particular docker image will run.</p><p>So I created the Dockerfile in my project repo.</p><figure><img alt="Dockerfile in root directory of my project" src="https://cdn-images-1.medium.com/max/483/1*CGavnUvZhnBhDjFwMYV4oQ.png" /></figure><p>After then, it&#39;s time to edit the dockerfile, after my first addition the content inside dockerfile was like this…</p><pre>from alpine:latest<br><br>RUN apk add --no-cache python3-dev \<br>    &amp;&amp; pip3 --update pip3<br>    <br>WORKDIR /app<br><br>COPY . /app<br><br>RUN pip3 --no-cache-dir install -r requirements.txt<br><br>EXPOSE 5000<br><br>ENTRYPOINT  [&quot;python3&quot;]<br><br>CMD [&quot;hello.py&quot;]</pre><p>Now I tried to build the docker image but this gave me error</p><pre>`ERROR: unsatisfiable constraints:<br>  pip3 (missing):</pre><p>So I had to search though lot of question on Stack overflow and finally found a solution by changing code to…</p><pre>from alpine:latest</pre><pre>RUN apk add --no-cache python3-dev<br>RUN apk add --update py-pip<br>    <br>WORKDIR /app</pre><pre>COPY . /app</pre><pre>RUN pip3 --no-cache-dir install -r requirements.txt</pre><pre>EXPOSE 5000</pre><pre>ENTRYPOINT  [&quot;python3&quot;]</pre><pre>CMD [&quot;hello.py&quot;]</pre><p>That was the story, I did learn something I didn’t know and had a problem trying it, overcame it and finally completed it. If I can do that, you can too. Good Luck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d15a1cd22113" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scholarship : a never ending experience]]></title>
            <link>https://medium.com/@Logan1x/scholarship-a-never-ending-experience-c640a4a533fd?source=rss-76b83b7816bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c640a4a533fd</guid>
            <category><![CDATA[google-india]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[udacity]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Khushal Sharma]]></dc:creator>
            <pubDate>Sat, 05 May 2018 07:45:21 GMT</pubDate>
            <atom:updated>2018-05-05T07:45:21.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7saH0LOpbbnf65Qe-kM3g.jpeg" /></figure><p>Rewinding back to Feb 2018, when i was checking my mails and came to know that i landed an nanodegree opportunity by Google and Udacity’s collaboration.</p><p>I ignored the mail when i saw it first time hoping it is another promotional offers by udacity which i can’t afford (or maybe i can get them free on Internet 😬). My twitter timeline was flooded with posts of people getting scholarship and i was so happy because of receiving congratulations by everyone. 🙈🙈Before starting this course i didn’t knew about html &amp; css or any other web technologies.</p><p>Previously I did contributed with open source so i knew that web was easiest way to get into open source because of Mozilla and free code camp’s open source efforts.To accelerate my contribution towards open source I started the course and started learning.Alongside with course I’ve met great people with the community.</p><p>Community play’s big role in udacity nanodegree’s. There are two formal ways to communicate with other participants</p><ul><li>Udacity Community Forum</li><li>Slack</li></ul><p>Both are equally great for learning,when i started i preferred slack more because of android application for same. We also requested lot of other channels like gsoc,git-github, external_resources,collab_projects to learn more from community by solving each others doubt. We did virtual meet up with our local area community members.</p><p>As soon as my exams finished, I started contributing to collab projects to improve my skills and gaining some knowledge.Now i am completing my project to complete my course with in its deadline.</p><p>Overall it was 5/4 experience for me. I’ve learned so much with investing so less.<strong>I encourage everyone else to fill the form when Google India challenge scholarship announces again</strong> and hope all my fellow participants to complete the first phase with in time and get selected for next phase.</p><p>Next part will be written if i get selected in phase 2.😅</p><p>At the end i want to quote these lines by Henry David Thoreau</p><blockquote>&#39;What you get by achieving your goals is not as important as what you become by achieving your goals.&#39;</blockquote><p>Thank you for reading my story.😊 If you are on Twitter Say HI! <a href="https://twitter.com/Logan1x_">Here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c640a4a533fd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Result : Failed]]></title>
            <link>https://medium.com/@Logan1x/result-failed-5023235769e1?source=rss-76b83b7816bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5023235769e1</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[results]]></category>
            <category><![CDATA[failure-stories]]></category>
            <category><![CDATA[failure]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Khushal Sharma]]></dc:creator>
            <pubDate>Thu, 26 Apr 2018 10:53:33 GMT</pubDate>
            <atom:updated>2018-04-26T10:57:07.026Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gv60FTAwkv4_1NLXzgHeXw.jpeg" /></figure><p>This journey started back in February when i texted one of the member from kubernetes community to help me get started with gsoc.</p><p>To all those who don’t know what is gsoc, <a href="http://g.co/gsoc">gsoc</a> is a summer internship program by Google to promote open source to university students.</p><p>I was introduced to gsoc when i was in third year of my engineering by my college friend. Because of the other ongoing issue i was not able to apply in gsoc that year. My last chance (not if i ever consider to do masters) to apply for gsoc was this year, so i tried my luck and unfortunately failed (Yes this sucks).</p><p>The results announced around 9:30 pm IST, that time i was walking on my roof suddenly saw time and checked for results. It was disappointing at first but then I tried to listen music to calm myself down. My mind was not stop thinking about what i am gonna do next, i didn’t take any plan as a backup so this results were hard for me.</p><p>I am not here to tell you that i am upset or not feeling good but i am here to grab plans for what should i do next, how can i get over it.</p><p>Here is bit of motivation if you failed at something..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQwjWVTWJ0A--AwLoO6uGQ.jpeg" /></figure><p>Thanks for reading this failure story, I’ll update the story when my life gives me next option😄.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5023235769e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Sementic Versioning (aka semver)?]]></title>
            <link>https://medium.com/@Logan1x/what-is-sementic-versioning-aka-semver-d5da9d7bbb34?source=rss-76b83b7816bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5da9d7bbb34</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[breaking-changes]]></category>
            <category><![CDATA[semver]]></category>
            <dc:creator><![CDATA[Khushal Sharma]]></dc:creator>
            <pubDate>Tue, 10 Apr 2018 16:22:26 GMT</pubDate>
            <atom:updated>2018-04-21T17:38:42.258Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*konhX9Dju-7jeeMO2zDXog.png" /></figure><p>Have you ever came across version number as 4.3.2 ? Yes that’s sementic versioning.</p><blockquote>What exactly this is?</blockquote><p>Well, it’s a approach/technique to differentiate between previous version and new version of any software.</p><p>Version number 4.3.2 can be splits into <em>Major(4).Minor(3).Patch(2)</em>, increment in</p><ul><li>Major - changes in major functionality like API</li><li>Minor - changes in functionality<br>And</li><li>Patch - some bug fixes.</li></ul><p>Here is live example</p><pre>v0.0.0 // New project</pre><pre>v0.1.0 // Add some functionality</pre><pre>v0.2.0 // Add other new functionality</pre><pre>v0.2.1 // Fix bug</pre><pre>v0.3.0 // Add some functionality</pre><pre>v0.3.1 // Fix bug</pre><pre>v0.3.2 // Fix bug</pre><pre>v0.3.3 // Fix bug</pre><pre>v0.3.4 // Fix bug</pre><pre>v0.4.0 // Add some functionality</pre><pre>v0.4.1 // Fix bug</pre><pre>v0.4.2 // Fix bug</pre><pre>v1.0.0 // Code is being used in production</pre><pre>v1.1.0 // Add some functionality</pre><pre>v1.2.0 // Add other new functionality</pre><pre>v1.2.1 // Fix bug</pre><pre>v2.0.0 // Implement changes that causes</pre><p>Semantic Versioning mostly useful in API development when you need to add <strong>breaking changes to release notes.</strong></p><p>When you add a new version of api and you have breaking changes and you need to develop release notes you can prepare that version 4.8.9 bug fix will remove this breaking change and this will solve your problems, you can even prepare release notes based on version numberings.</p><p>I came to know about semantic versioning when i was working on my gsoc proposal in <a href="http://kubernetes.io/">kubernetes community</a> they have semantic versioning from much time but they want to automate the process of making semantic versioning automatically add when a new feature is added and based on that they can generate release notes.The approach was manually adding the version number and update ReadMe.md every time they add/fix any feature or bug.</p><p>So when you are developing something useful next time don’t forget to add semver to your project 😉.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5da9d7bbb34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Facebook Posting Bot]]></title>
            <link>https://medium.com/@Logan1x/facebook-posting-bot-98f20ff5da44?source=rss-76b83b7816bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/98f20ff5da44</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Khushal Sharma]]></dc:creator>
            <pubDate>Mon, 18 Sep 2017 16:14:08 GMT</pubDate>
            <atom:updated>2018-02-22T15:48:27.939Z</atom:updated>
            <content:encoded><![CDATA[<p>I am very lazy person so i tried to automate the process of go to facebook , log in and write post and then click on submit.for that I made an python bot that login to facebook and post your status and close the browser instance ( selenium makes browser instance for every browser.get request and by closing everything get deleted) or can say log you out.</p><p>One fine day i was posting an thread (post) on facebook and this thought came to my mind, on the same day i read about selenium automation module in python.selenium is a automation module used to automate browsing.</p><p>Link : — <a href="http://docs.seleniumhq.org/">Browser Automation</a></p><p>then i read about it on it’s documentation and came to know this can work so i started write an script.</p><p>You can install it via</p><pre>pip install selenium</pre><p>when it runs it asks you to enter your email id,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*-Rwve0k4WY4_3eMh8pGoSg.png" /></figure><p>and then your password, but password isn’t visible, Thanks to these two lines…</p><pre>import getpass<br>password=getpass.getpass(&quot;Enter your Facebook password: &quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*3t82cnpgn1jJbx7nk4yUhA.png" /></figure><p>and then it moves to your account and type your message there,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*RkV5sjiVL_0cu0kHkvtXYA.png" /></figure><p>and then it submit the post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*uCxcQF3wrI7S4cy4Q5A69Q.png" /></figure><p>You can see live experiment <a href="https://www.youtube.com/watch?v=YES16mVB0lQ">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FYES16mVB0lQ%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DYES16mVB0lQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FYES16mVB0lQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/51a953efd9f413694f011c1dda5f1e33/href">https://medium.com/media/51a953efd9f413694f011c1dda5f1e33/href</a></iframe><p>The code is open sourced and can be found here — <a href="https://github.com/Logan1x/Python-Scripts/blob/master/bin/facebook-auto-post.py">Logan1x/Python-Scripts</a></p><p>Thanks for reading this ;)</p><p>If you felt this post helped you, give it a ❤. Follow me on <a href="https://twitter.com/herkuch">twitter</a> for more.</p><p>You can see more post like these on my <a href="https://logan1x.github.io/blag">blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98f20ff5da44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How did I made my first Pull Request : an guide to open source]]></title>
            <link>https://medium.com/@Logan1x/how-did-i-made-my-first-pull-request-an-guide-to-open-source-f4e8aa40c28e?source=rss-76b83b7816bd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4e8aa40c28e</guid>
            <category><![CDATA[contribution]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[gsoc]]></category>
            <dc:creator><![CDATA[Khushal Sharma]]></dc:creator>
            <pubDate>Sat, 15 Jul 2017 12:59:23 GMT</pubDate>
            <atom:updated>2017-07-15T12:59:23.866Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tgxi2L7OytVX1N_eD50BGQ.jpeg" /></figure><p>Did you land on this story looking for advice on how to start contributing to open source? There are tons of other like these on the inter-webs, aren’t there?</p><p>You must have read a lot of them by now, because you’ve been trying to start contributing for quite sometime. And you still feel like you’ve not progressed at all.</p><p>I get that feeling. I was in the exact same position until a few weeks ago. Let me tell you my story.</p><p>Then this comes out…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*esUsWITYes4FZ1Omq6Otkg.png" /></figure><p>I know it’s tough to get started. You have to learn how to work within a large code base. You have to learn to a project’s coding style guides.</p><p>How did i did that….?</p><p>I am active on tech blogs and was following open source tags that time and one fine day i came to know about <a href="https://twitter.com/first_tmrs_only">first_timers_only</a>.</p><p>It a bot which tweets about Github issues with the label first-timers-only.</p><p>One day i saw this tweet by first timers only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*nYzT8c7Zf-qdt0N8hJd1PA.png" /></figure><p>It was tweeted on 4 july. Yes i started my journey on 4 july.</p><p>i checked this repo on github and post a comment “Yes , I am intrested” on their issue page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pgBnr-P_WrvuAvJ7el4wPQ.png" /><figcaption><a href="https://github.com/gautamkrishnar/nothing-private/issues/12"><strong>Issue</strong></a><strong> page</strong></figcaption></figure><p>That’s It and then another person “Daniel Davis” post a commented with a link that contains HTML code for social sharing buttons.</p><blockquote>The problem was to add social sharing button on the web page.</blockquote><p>So i just added that code in index.html and made <a href="https://github.com/gautamkrishnar/nothing-private/pull/14"><strong>My first pull request</strong></a><strong>.</strong></p><p>That’s It It just got merged and i was like “<em>Is it that easy?”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/85/1*hzUAvzEwiq6ACnzKGwZB8w.png" /></figure><p>This icon gives you happiness in open source world.</p><p><strong>Moral:</strong> Ask as much you can, Worse thing that can be happen is they do not reply That’s It.</p><p>If you felt this post helped you, give it a ❤. Follow me on <a href="https://twitter.com/herkuch">twitter</a> for more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4e8aa40c28e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>