<?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 Priyansi on Medium]]></title>
        <description><![CDATA[Stories by Priyansi on Medium]]></description>
        <link>https://medium.com/@priyansi?source=rss-6ceb29424da2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*xYiSCxmMuSJO2_VUilwTXA.jpeg</url>
            <title>Stories by Priyansi on Medium</title>
            <link>https://medium.com/@priyansi?source=rss-6ceb29424da2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:29:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@priyansi/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[How I accidentally became a Google SWE Intern]]></title>
            <link>https://interviewnoodle.com/how-i-accidentally-became-a-google-swe-intern-15b8bdeadb9c?source=rss-6ceb29424da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/15b8bdeadb9c</guid>
            <category><![CDATA[journey]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Priyansi]]></dc:creator>
            <pubDate>Mon, 01 Nov 2021 13:45:02 GMT</pubDate>
            <atom:updated>2021-11-08T18:29:08.061Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cJuyYivI95WCyQqS5ztIkA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@arty_nyc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Arthur Osipyan</a> on <a href="https://unsplash.com/s/photos/google-intern?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Well, clickbaity title aside, I’m just prepping for a slew of messages before more people find out (read LinkedIn) about this and ask me for a “How I Cracked Google” video. Here’s a complete breakdown of the months leading up to the call where my recruiter extended me a 2022 SWE Summer Internship offer from Google India.</p><h3>The Setup</h3><p>You know how some people spend their entire lives fangirling over a specific company like yes, bind me to the chains of capitalism, so sexy. I don’t relate with that. Well atleast not now. I wasn’t the JEE is in my blood kid. All I knew was that I wanted to code and JEE was in the way. I liked the holy trinity of Physics, Chemistry, and Maths (especially this) but not enough to leave writing code altogether. So I kinda gave up just like most of us who didn’t “make it” to the top IITs, NITs, etc, etc. Kudos to the ones who did. I am so happy they found their passion early on. For me, it was different. I was the confused kid. It started with making websites for the school science club to hustling in college for anything that seemed remotely interesting. I wouldn’t say I didn’t like it until I tried it atleast once.</p><p>Fast forward to <a href="https://buildyourfuture.withgoogle.com/programs/step/">STEP</a> season. After receiving the interview invite I snorted MIT 6006 videos, Leetcode, and Pramp (<a href="https://twitter.com/iiverveii/status/1335471262387167236?s=20">the journey</a>). I gave the STEP India interviews in January of 2021 and got rejected. I just couldn’t solve one question in one interview. And those 45 minutes decided that I was not good enough. Not going to lie, it hurt. It hurt because it was the only thing I was good at. Looking back at it, it’s foolish how many of my life decisions were based on that one interview where your interviewer and luck was a major factor but I wouldn’t change it for the world. Because that led me to rebel. Google was my new JEE.</p><h3>Rebellion</h3><p>The Leetcode grind wasn’t for me. So I focused on the part I did best, write code. I had spent the majority of the year before exploring ML, from research to deployment and I wanted to see how it worked in the real world. So I started applying to startups. Soon I found a Deep Learning Intern position at Fynd and after an excruciating but fair interview process where I wasn’t dismissed when I made a mistake but rather given the time, and chance to learn and grow from them, I joined their Applied ML team.</p><p>Work was good; work was great. I met some amazing people, made some amazing friends, and worked on production grade stuff. I was good at it but that was not enough. I wanted to be the best. I was constantly trying to keep myself busy, looking for places where I could be useful and that’s when I found PyTorch-Ignite.</p><p>As previously pointed out, I loved writing ML code so when I saw that the library built on top of my favorite framework was participating in Google Season of Docs, I had to apply. And surprisingly, I got in. I was added to the network of people whose livelihood depended on open source and here I met the most humble, nicest, and hardworking people I’ve ever known.</p><p>And now burnout crept in slowly. You know how you wish if you didn’t have to sleep, you’d be really productive. That’s bullshit. The same things I loved doing became such a dread that I was basically average at everything. This went on until August and I decided to leave Fynd. I figured I wasn’t being fair to them and I had learned a whole lot of stuff so it was time to dive deeper into open source. I was seriously considering doing it full time and everything became even more confusing. I didn’t have a plan.</p><figure><img alt="I don’t even have a pla.. Phoebe from friends." src="https://cdn-images-1.medium.com/max/498/1*YWTJtj-60oJJLwh_3PNRIg.gif" /></figure><h3>Google wasn’t a part of my plan</h3><p>I didn’t stop giving online assessments of “medium to large companies” because some part of me still wanted that stability for summer of next year. And this became the only DSA I practiced. This is also how I became part of Expedia’s Early Careers Program and had a chance to interview with them late September. It went well and I thought I had a chance to get in and finally achieve that long lost sense of stability.</p><p>While I was waiting for the results, a recruiter from Google reached out if I was interested in applying. I applied out of boredom and the surety it would lead to nowhere. Soon I had a telephonic screening round with viva type questions. After that, I had two interviews scheduled for 12th October.</p><p>It was also around this time that I was looking for junior Backend or MLOps roles, something out of my comfort zone and I found the perfect match. This startup was building their MVP in Golang targeting the observability space and were looking for junior software devs. After a quick call with the CEO and another lead engineer, I started working part time at a place I actually felt challenged in weeks. I loved it.</p><h3>The Interviews</h3><p>So yeah, the Google interviews rolled by and in the morning I just went through the codes I had from STEP. The first interview was pretty relaxed. Surprisingly when you have your expectations set low, you don’t make a lot of mistakes. The question was in the array and maths domain. I would rate it an easy-medium. I got lucky and had a super friendly interviewer. The second interview question was a modified DFS; a take on the standard map question. I did mess up a bit towards the end but corrected my mistake when prompted.</p><p>After that, I dived head first into my work and completely forgot about the outcome until my recruiter called me up on 19th October and informed me of a followup interview. Here’s where my expectation rose a teeny tiny bit. However, nihilism is a real thing friends and I continued to concentrate on my work and did the same revision morning of 25th October.</p><p>The interview again went surprisingly well. Two math problems again, easy and medium. I wasn’t able to immediately come up with a solution for the second one and was happy I had a conversation with the interviewer and could write the code for it just in the nick of time.</p><p>Meanwhile, my part-time period got over and I got an offer to join full-time at that startup. Finally, somewhat of a plan. And the very next day, the universe decided that good news comes in pairs and my recruiter called. The rest is history.</p><figure><img alt="offer letter" src="https://cdn-images-1.medium.com/max/1024/1*ZqCjj5biA4MTr9jCp5Us0g.png" /></figure><p>All you see right now is a small mail. What you don’t see is that I wouldn’t have received it if I wasn’t for my support system- my boyfriend, my friends, and my communities. They took care of anxiety attacks, attendance shortages, exam pressure, everything. They are the main characters in this story ❤</p><h3>Reflections</h3><p>Don’t take decisions or plan your life around that one thing that’s not under your control. I faced burnout when I toyed around with my maximum capacity. What was I trying to prove and to whom? I don’t know.</p><p>And now after this whole ordeal is over, I’ve reached a Master Oogway state of peace. The whole journey has been kinda funny because I don’t have a struggle story about finally “cracking” Google but I did enjoy whatever I learned in the process. Also, I can finally say no to Leetcode 😭 🔪</p><p>Well, thank you for sticking along. Wanna have a conversation about anything? Hit me up on <a href="https://twitter.com/iiverveii">Twitter</a>.</p><blockquote>Holy shit I wrote an article in a single stretch. — Priyansi on chai.</blockquote><p>EDIT: Got an offer from Expedia too :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15b8bdeadb9c" width="1" height="1" alt=""><hr><p><a href="https://interviewnoodle.com/how-i-accidentally-became-a-google-swe-intern-15b8bdeadb9c">How I accidentally became a Google SWE Intern</a> was originally published in <a href="https://interviewnoodle.com/">InterviewNoodle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy the next-gen of AI Apps using Streamlit]]></title>
            <link>https://medium.com/dsckiit/deploy-the-next-gen-of-ai-apps-using-streamlit-201415b74391?source=rss-6ceb29424da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/201415b74391</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[streamlit]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[deployment]]></category>
            <dc:creator><![CDATA[Priyansi]]></dc:creator>
            <pubDate>Mon, 09 Nov 2020 17:01:06 GMT</pubDate>
            <atom:updated>2020-11-09T17:01:06.300Z</atom:updated>
            <content:encoded><![CDATA[<p>What if you could create a web app to showcase how well your model performs without going through the holy trinity of HTML/CSS/JS? Want to build a minimalistic yet sleek UI for your data app that doesn’t require weeks of web dev knowledge?</p><p>Behold <a href="https://www.streamlit.io/">Streamlit</a>, an open-source library, build on Python scripts and customizable widgets that can get a web app up and running for your AI projects in mere hours. Below are the steps + the code to help you ease into Streamlit along with a few Easter eggs :)</p><p>First, we install Streamlit (Version 0.70.0 minimum) and check if it’s properly installed via -</p><pre>$ pip3 install streamlit<br>$ streamlit hello</pre><p>This will greet you with a web page as follows at <a href="http://localhost:8501/">http://localhost:8501/</a> -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvLLblCHN4YnvZ8R7MjWwA.png" /><figcaption>The default landing page</figcaption></figure><p>Simple yet beautiful, let’s see how we can convert this to create a handwritten letters classifier app with a drawable canvas and then deploy it on Heroku.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*dqu09RjV7rnFpC2eoDvsew.gif" /><figcaption>The final product</figcaption></figure><p>Before we begin, we need to install another component, a <a href="https://github.com/andfanilo/streamlit-drawable-canvas">Streamlit — Drawable Canvas</a> (Version 0.5.1 minimum) via-</p><pre>$ pip3 install streamlit-drawable-canvas</pre><p>Now, make a directory for our web app</p><pre>$ md letters-classifier-streamlit<br>$ cd letters-classifier-streamlit</pre><p>And create a file called app.py in which we’ll write our Streamlit code.</p><p>Run streamlit run app.py in a separate terminal to see our app in action while we make changes in the source code.</p><p>Let’s make a few imports in app.py</p><pre><strong>import</strong> streamlit <strong>as</strong> st<br><strong>from</strong> streamlit_drawable_canvas <strong>import</strong> st_canvas</pre><p>Hit Ctrl+S and you’ll notice that a change has been detected by Streamlit in your source code at the top right of your page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*Ks8Cl0kG2hVNs2Wu0JU64g.png" /></figure><p>To enable Hot Reload, click on Always rerun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*EAAiJ8QvUu0TRKP6EeSN3A.png" /><figcaption>From this</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*VjLDjKYzxgDTDkws4Au64Q.png" /><figcaption>To this</figcaption></figure><p>You’ll also notice that the name of your app is set to the name of your Python file. Let’s change that and add an icon to our page by setting the configuration of the page -</p><pre>st.set_page_config(<br><strong>page_title</strong> <strong>=</strong> &quot;Handwritten Letters Classifier&quot;,<br><strong>page_icon</strong> <strong>=</strong> &quot;:pencil:&quot;,<br>)</pre><p>There is also a hamburger menu at the top right with a few options like Streamlit docs and a text at the bottom left of your page that says <strong>Made with Streamlit</strong>. If you wish to hide that, just write -</p><pre>hide_streamlit_style = &quot;&quot;&quot;            <br>                       &lt;style&gt;            <br>                       #MainMenu {visibility: hidden;}            <br>                       footer {visibility: hidden;}            <br>                       &lt;/style&gt;            <br>                       &quot;&quot;&quot;</pre><pre>st.markdown(hide_streamlit_style, unsafe_allow_html=True)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8TFZ6nAYZOXPen09RpvVNQ.png" /></figure><p>With a clear web page, now, let’s begin to build our app. We need a title for the page and it’s as simple as -</p><pre>st.title(&quot;Handwritten Letters Classifier&quot;)</pre><p>By default, this title is left aligned. However, if you wish to customize this, you can always use st.markdown. And if you want to include some CSS, add the unsafe_allow_html=True tag in st.markdown() to become invincible, like this -</p><pre>st.markdown(&quot;&lt;h1 style=&#39;text-align: center;&#39;&gt;Handwritten Letters Classifier&lt;/h1&gt;&quot;, <strong>unsafe_allow_html=</strong>True)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zDAQGeVEFuXBnHIbHT9Yqw.png" /></figure><p>Now we want to let the user draw something on a canvas whose image will be fed into a model and the result will be predicted. Let’s start by drawing a canvas.</p><pre>canvas_result <strong>=</strong> st_canvas(<br><strong>stroke_width = </strong>25,<br><strong>stroke_color = </strong>&quot;#fff&quot;,<br><strong>background_color = </strong>&quot;#000&quot;,<br><strong>height = </strong>280,<br><strong>width = </strong>280,<br><strong>drawing_mode = </strong>&quot;freedraw&quot;,<br><strong>key = </strong>&quot;canvas&quot;,<br>)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7NvZfxV4q49efOo9EErH3A.png" /></figure><p>If you want to tweak the parameters, take a look at the documentation — <a href="https://github.com/andfanilo/streamlit-drawable-canvas">https://github.com/andfanilo/streamlit-drawable-canvas</a></p><p>You can even add a sidebar, so let’s do that and let the user vary the stroke width in that. Do the following change in st_canvas</p><pre>stroke_width = st.sidebar.slider(&quot;Stroke width: &quot;, 1, 100, 25)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiyqaYlRljQJEsu2ppWGHA.png" /></figure><p>Draw something on the canvas and test it out. Then add a Predict button.</p><pre>predict = st.button(&quot;Predict&quot;)</pre><p>We use canvas_result.image_data as follows to retrieve the image from the canvas only when it isn’t empty and the user has clicked the Predict button to feed the image into the model and obtain a prediction.</p><pre>def get_prediction(image):<br>    # get the prediction from your model and return it</pre><pre>if canvas_result.image_data is not None and predict:<br>    prediction = get_prediction(canvas_result.image_data)<br>    st.text(&quot;Prediction : {}&quot;.format(prediction))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N7BoZRu_5vLlecGU9K-7Lw.jpeg" /><figcaption>When your model predicts correctly :”)</figcaption></figure><p>Let’s put a progress bar just before predicting and some balloon animation after it to indicate your model’s done predicting.</p><pre>if canvas_result.image_data is not None and predict:</pre><pre>    progress_bar = st.progress(0)<br>    for i in range(100):<br>        progress_bar.progress(i + 1)<br>        time.sleep(0.01)</pre><pre>    prediction = get_prediction(canvas_result.image_data)<br>    st.text(&quot;Prediction : {}&quot;.format(prediction))</pre><pre>    st.balloons()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dlrdUPkekCJ7Qtkv-qi_aA.png" /><figcaption>Streamlit : Making data apps fun since 2018</figcaption></figure><p>You can even add a bar graph like this (refer <a href="https://github.com/Priyansi/handwritten-letters-classifier/blob/master/app/main.py">here</a> for code) to show the probability distribution of different predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tu1AGjdioIhTmw_S_36wcA.png" /><figcaption>The probability distribution of different letters from a-z</figcaption></figure><p>If you’re interested in what else can be achieved through these simple tools, along with their source code, visit <a href="https://awesome-streamlit.org/">https://awesome-streamlit.org/</a> and navigate to <strong>Gallery</strong>, then <strong>Select an App</strong>.</p><p>Now it’s time to deploy this model on Heroku. For this, you need their CLI. Follow the instructions in <a href="https://devcenter.heroku.com/articles/heroku-cli">https://devcenter.heroku.com/articles/heroku-cli</a>, to get started. If on Linux, simply use snap-</p><pre>$ sudo snap install --classic heroku<br>$ heroku --version</pre><p>You internal directory structure should now look like this -</p><pre>.<br>├── app<br>│   ├── app.py<br>│   ├── model.pth<br>│   └── utils.py<br>├── Procfile<br>├── requirements.txt<br>├── runtime.txt<br>└── setup.sh</pre><p>app.py contains our Streamlit code, utils.py and model.pth contains functions and model weights to predict the output. The Procfile specifying the commands required by the app during execution will look like this -</p><pre>web: sh setup.sh &amp;&amp; streamlit run app/app.py</pre><p>For requirements.txt, in your terminal, run pip freeze &gt; requirements.txt, and a text file will be generated. Try working on a virtual environment to manage your dependencies better. Look at this -</p><p>runtime.txt specifies the current version of Python that you’re using which can be found out by running python --version. Here’s what my runtime.txt looks like -</p><pre>python-3.7.2</pre><p>And finally, here’s what your setup.sh will look like -</p><pre>mkdir -p ~/.streamlit/</pre><pre>echo &quot;\<br>[general]\n\<br>email = \&quot;youremail@domain.com\&quot;\n\<br>&quot; &gt; ~/.streamlit/credentials.toml</pre><pre>echo &quot;\<br>[server]\n\<br>headless = true\n\<br>enableCORS=false\n\<br>port = $PORT\n\<br>&quot; &gt; ~/.streamlit/config.toml</pre><p>Just replace youremail@domain.com with your Heroku email address.</p><p>Then log in and enter your credentials-</p><pre>$ heroku login -i</pre><p>Before creating a new app, make sure you have initialized a local Git repository and committed your application code to it. Create a new app and replace your-app-name with it -</p><pre>$ heroku create your-app-name</pre><p>Confirm that an app has been created with git remote -v and you should get an output like -</p><pre>heroku  <a href="https://git.heroku.com/handwritten-letters-classifier.git">https://git.heroku.com/your-app-name.git</a> (fetch)       <br>heroku  <a href="https://git.heroku.com/handwritten-letters-classifier.git">https://git.heroku.com/your-app-name.git</a> (push)</pre><p>Then simply, push the app to Heroku remote -</p><pre>$ git push heroku master</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOVThTZCEi4sdMKMryqYCQ.jpeg" /><figcaption>Web app deployed yay!</figcaption></figure><p>And you’re done. The entire code can be found <a href="https://github.com/Priyansi/handwritten-letters-classifier/">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*pORv71dKE3FfyKKkbaPtLA.jpeg" /><figcaption>A meme. Enjoy. Courtesy of <a href="https://medium.com/@biswaroop08">https://medium.com/@biswaroop08</a>.</figcaption></figure><p>Refer to the <a href="https://docs.streamlit.io/en/stable/">docs</a> for more features or try out <a href="https://pypi.org/project/streamlit-nightly/">Streamlit Nightly</a> to keep up-to-date with the most recent Streamlit version as it is an ever-growing community and major features get added left and right.</p><p>Finally, if you want to stan over Streamlit, DM me on <a href="https://twitter.com/iiverveii">Twitter</a> :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=201415b74391" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dsckiit/deploy-the-next-gen-of-ai-apps-using-streamlit-201415b74391">Deploy the next-gen of AI Apps using Streamlit</a> was originally published in <a href="https://medium.com/dsckiit">GDG KIIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Write Better Python Code?]]></title>
            <link>https://medium.com/mozilla-club-bbsr/how-to-write-better-python-code-ab94cf93eea9?source=rss-6ceb29424da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab94cf93eea9</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[python3]]></category>
            <category><![CDATA[readable-code]]></category>
            <dc:creator><![CDATA[Priyansi]]></dc:creator>
            <pubDate>Tue, 19 May 2020 18:37:12 GMT</pubDate>
            <atom:updated>2020-05-24T15:02:26.190Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*UAPkRCdosRQaJ-RbdkUNug.jpeg" /><figcaption>Source: <a href="https://twitter.com/codedoesmeme/status/1098869612161179649">https://twitter.com/codedoesmeme/status/1098869612161179649</a></figcaption></figure><p>We all love Python. It’s easy to write and understand but that doesn’t give us the right to abuse a wonderful language by ignoring the rules and writing code in a non-Pythonic way. Consider this article as the Zen of Python: Extended. Here are 10 ways to write better code in Python:</p><h3>Are you writing C code?</h3><p>If you were asked to print all the elements in a list along with their indexes and the first thing that came to your mind was this -</p><pre>for i in range(len(arr)):<br>    print(i, arr[i])</pre><p>Then you, my friend, are still writing C code. Allow me to introduce you to enumerate. It indexes all the elements in your list/string and your code becomes -</p><pre>for i, j in enumerate(arr):<br>    print(i, j)</pre><p>Well, now it looks better and more Pythonic. What about converting a list into a string?</p><pre># The C way<br>string = &#39;&#39;<br>for i in arr:<br>    string += i</pre><pre># The Python way<br>string = &#39;&#39;.join(arr)</pre><p>Just like join, Python has a plethora of magical keywords, so don’t work for the language, make the language work for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*Tl22PsXNMjWqvvDWhNdY6g.png" /><figcaption>Source: <a href="http://www.lpycot.appspot.com/archive/2001">http://www.lpycot.appspot.com/archive/2001</a></figcaption></figure><h3>Remember PEP8?</h3><p>It’s like the rulebook you probably throw away because you are one of the cool kids. I’m not asking you to religiously follow it, all I’m asking for is to follow most of it because our founding father said that “Code is read much more often than it is written,” and he was dang right.</p><p>Do you ever look at your code and wonder? What the heck does that do? Why is it there? Why do I exist? Well, <a href="https://www.python.org/dev/peps/pep-0008/">PEP8</a> is the answer to most of these questions. While comments are a good way of explaining your code, you still need to change the code and if you can’t remember what i, j, count, etc stand for, you’re wasting your valuable time as well as of the poor human that’ll have to read and change your code.</p><blockquote>“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/1*o6Sx48kGJ_WicJAqTa2C9A.jpeg" /><figcaption>Source: <a href="https://luminousmen.com/post/the-ultimate-python-style-guidelines">https://luminousmen.com/post/the-ultimate-python-style-guidelines</a></figcaption></figure><p>Prefer <strong>CamelCase</strong> for classes, <strong>UPPER_WITH_UNDERSCORES </strong>for constants, and <strong>lower_with_underscores</strong> for variables, methods, and module names. Avoid single name functions, even when using lambda. In the spirit of that, let’s change our previous code to -</p><pre>for ind, val in enumerate(arr):<br>    print(ind, val)</pre><h3>Are list comprehensions your best friend?</h3><p>If you don’t know about it yet or aren&#39;t convinced why you should use it, let me give you an example-</p><pre># bad code<br>positives = []<br>for val in arr:<br>    if val &gt;= 0:<br>        positives.append(val)</pre><pre># good code<br>positives = [val for val in arr if val &gt;= 0]</pre><p>You can use this for dictionaries and sets. It’s even perfect for playing code golf while being readable.</p><h3>Still explicitly closing files?</h3><p>If you are a forgetful person like I am, Python has your back. Instead of explicitly opening your file and then typing filename.close() every time, simply use with -</p><pre>with open(&#39;filename.txt&#39;, &#39;w&#39;) as filename:<br>    filename.write(&#39;Hello&#39;)</pre><pre># when you come out of the &#39;with&#39; block, the file is closed</pre><h3>Iterators or generators?</h3><p>Both iterators and generators are powerful tools in Python that are worth mastering. An iterator returns an iterator object, one value at a time whereas generators yield a sequence of values while being memory efficient as they do not store the entire range of values, rather generate one only when you ask for it, unlike iterators that return the entire range of values. This makes generators extremely fast, compact, and simple.</p><h3>To yield or not to yield?</h3><p>When using generators, blindly use yield. It will freeze the state of the generator and resume again from where you left off, should you require another value. But don’t use it, just for the sake of not using return. Both have their place and it is neither fancy to use yield nor ordinary to use return.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vucn1_WwdfE39_TKtYwGPw.jpeg" /></figure><h3>Ever heard of itertools?</h3><p>A faster, more memory-efficient way to perform iterator algebra. From count and cycle to groupby and product, this <a href="https://docs.python.org/3/library/itertools.html">module</a> has some amazing tools to make your life easier. If you want all the combinations of characters in a string or of numbers in a list you can simply write-</p><pre>from itertools import combinations</pre><pre>names = &#39;ABC&#39;<br>for combination in combinations(names, 2):<br>    print(combination)</pre><pre>&#39;&#39;&#39; Output -<br>    (&#39;A&#39;, &#39;B&#39;)<br>    (&#39;A&#39;, &#39;C&#39;)<br>    (&#39;B&#39;, &#39;C&#39;)<br>&#39;&#39;&#39;</pre><h3>May I introduce you to Python’s collections?</h3><p>The collections module provides alternatives to built-in data types like dict, tuple, etc. They have various containers like defaultdict, OrderedDict, namedtuple, Counter, deque, etc that work really efficiently for some problems. Allow me to demonstrate -</p><pre># frequency of all characters in a string in sorted order</pre><pre>from collections import (OrderedDict, Counter)</pre><pre>string = &#39;abcbcaaba&#39;<br>freq = Counter(string)<br>freq_sorted = OrderedDict(freq.most_common())</pre><pre>for key, val in freq_sorted.items():<br>    print(key, val)</pre><pre>&#39;&#39;&#39; Output -<br>    (&#39;a&#39;, 4)<br>    (&#39;b&#39;, 3)<br>    (&#39;c&#39;, 2)<br>&#39;&#39;&#39;</pre><h3>Is OOP your religion?</h3><p>Don’t overuse classes. Hang on Java and C++ peeps who are out there to get me. You can keep all your fancy classes and functions that are slaves to objects (yes Java, I’m looking at you), but when using Python you can just re-use code with the help of functions and modules. You don’t have to create classes when there is absolutely zilch need for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*klm_kWkXxNPMQYv2pkpWyw.jpeg" /><figcaption>Source: <a href="https://me.me/i/you-public-class-helloworld-1-2-public-static-void-main-9282350">https://me.me/i/you-public-class-helloworld-1-2-public-static-void-main-9282350</a></figcaption></figure><h3>Docs or Tutorials?</h3><p>You have truly progressed as a programmer when you prefer docs over tutorials or StackOverflow. I absolutely do not mean that documentation is the better being and tutorials shouldn&#39;t exist, however, once you are comfortable with a language, read docs more often, especially for something so beautiful like <a href="https://docs.python.org/3/">Python</a> where everything is so perfectly explained that you could read it like a story-book. You will find interesting things to play around with and even if you don’t use them, it will be a fun ice-breaker at an all-coders party :p</p><p>Bonus code snippets for the lucky people who stayed till the end -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Om0SFyLbCCCTDliacxYu0Q.gif" /><figcaption>Source: <a href="https://imgur.com/t/home_alone/jXUUJK2">https://imgur.com/t/home_alone/jXUUJK2</a></figcaption></figure><pre># bad code<br>def is_positive(num):<br>    if num &gt;= 0:<br>        return True<br>    else:<br>        return False</pre><pre># good code<br>def is_positive(num):<br>    return num &gt;= 0</pre><pre># while comparing None<br># bad code <br>if value == None:<br>    # some task</pre><pre># good code<br>if value is None:<br>    # some task</pre><pre># unpacking a list into a variable and another list<br>roll, *marks = roll_and_marks</pre><p>There are numerous other ways in which we can write more Pythonic code but there were my two cents on the most basic ones. DM me on <a href="https://twitter.com/iiverveii">Twitter</a> if you agree with me, disagree, or just want to wish me a good day. Congratulations! You are now a Pythonista.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab94cf93eea9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mozilla-club-bbsr/how-to-write-better-python-code-ab94cf93eea9">How To Write Better Python Code?</a> was originally published in <a href="https://medium.com/mozilla-club-bbsr">Mozilla Club Bbsr</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Image Classification Model With 5 Lines Of Code]]></title>
            <link>https://medium.com/dsckiit/an-image-classification-model-with-5-lines-of-code-4d76e8fbf367?source=rss-6ceb29424da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d76e8fbf367</guid>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[image-classification]]></category>
            <category><![CDATA[fastai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Priyansi]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 22:33:45 GMT</pubDate>
            <atom:updated>2020-04-20T12:57:16.020Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*roVRPw9I7HT8OCSD4vcR7g.png" /></figure><p>First things first, the title isn’t clickbait. I’ll demonstrate step-by-step how you can build your own image classification model using a custom dataset and just 5 lines of logic. To make things interesting, my model is going to classify minions.</p><p>The basic layout of this tutorial is going to be -</p><ol><li>Create a dataset.</li><li>Upload it to our notebook.</li><li>Train our model.</li><li>Interpret the results.</li></ol><p>Before that let’s take a few steps back and know what we’re working with here. Image classification is the process of taking an input (picture) and outputting a class (like ‘dog’). This is done with the help of <strong>Convolutional Neural Networks</strong> (CNN’s) which comes under <strong>Deep Learning Neural Networks</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhFifratH9DjKqMBTeQG5A.gif" /><figcaption>From analyticsindiamag</figcaption></figure><p>Well, enough theory, let’s get to writing some code!</p><p>Open up Google Colab from <a href="https://colab.research.google.com/notebooks/intro.ipynb#recent=true">here</a>. Click on <strong>New Notebook</strong>. Change the <strong>Runtime</strong> from <strong>None</strong> to <strong>GPU </strong>(increases speed for computations). And voila! Lo and behold your free notebook, with free GPU and free memory. Could this <em>be</em> any better?</p><p>There are a few things in life that I swear by and <a href="https://www.fast.ai/">fastai</a> is one of them. fastai sits on top of PyTorch which is a popular Python library and generally faster when compared to TensorFlow.</p><p>Its <a href="https://course.fast.ai/">course-v3</a> (which currently I’m enrolled in) is one of the best courses you’ll come across for deep learning. It uses a <em>code-first</em>, <em>theory-later </em>approach and you’ll be able to build models, just like this, and enter competitions without having to do tons of maths homework.</p><p>First, we need a dataset, meaning some pictures that we can classify. You can either go with my idea of classifying minions (specifically Bob, Kevin, and Stuart) or get a little creative. Just pick a topic. Ready?</p><p>Let’s make a custom dataset so that we can make sure our pictures are just right. For this, we’ll have to go through 4 steps -</p><ol><li>Enable the Fatkun Batch Download Extension <a href="https://chrome.google.com/webstore/detail/fatkun-batch-download-ima/nnjjahlikiabnchcpehcpkdeckfgnohf?hl=en">here</a> (for Chrome) so that we don’t have to manually save the images.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*9-tPZl6jH1JLgoZ4NPzOvw.png" /></figure><p>2. Go to Google Images and type in the first topic. For example — I’ll type in ‘minion bob’. Once around 50 images are loaded, click on the Fatkun extension and select <strong>Download [Current Tab]</strong>. You can choose any number of images but for me, 50 images works just as good, plus it’s easier to handle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1Q94RsX2SOTo4Y7VKsDnw.png" /></figure><p>3. You’ll get a tab like the picture above. Now you can unselect the invalid pictures like the icons or the incorrect ones. It’s where your expertise in classifying minions comes handy :p Then click download. Repeat this process for all the topics you’ve chosen and at of this you’ll have all your topics in folders like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*OFPWwB_YCFUX3iglZdjGfg.png" /><figcaption>Hmm. ‘MINIANS’. Fight me.</figcaption></figure><p>4. Now, create a new folder, give it a boring name. Mine’s called Minions Dataset and then store all these image folders there. Change the name of the folders too. Something easy like — Bob, Kevin and Stuart.</p><p>5. We’re ready to upload this to GitHub so that you can access them in your Colab notebook. You can also upload this to Drive or directly to your notebook but that takes up a lot of data. If you want to get started with Git and GitHub, check <a href="https://medium.com/faun/the-hitchhikers-guide-to-git-and-github-f3861ca68a64">this</a> out. Otherwise, feel free to use my dataset :)</p><p>Enough talk. Now it’s time to get our hands dirty. We can set up fastai in our Colab notebook via writing this command in a cell at the top of our notebook, like this, then run -</p><pre>#setting up fastai<br>!curl -s <a href="https://course.fast.ai/setup/colab">https://course.fast.ai/setup/colab</a> | bash</pre><p>Remember, you need to press <strong>Shift+Enter</strong> to run a cell. And just as a preventive measure, don’t forget to constantly keep saving your notebook.</p><pre>%reload_ext autoreload<br>%autoreload 2<br>%matplotlib inline</pre><p>% is not Python code, rather called ‘magics’. It does two things — it reloads automatically if someone’s changing underlying library code while you’re running this and if you want to plot something, it plots it here using <a href="https://matplotlib.org/">matplotlib</a>.</p><pre>from fastai.vision import *<br>from fastai.metrics import accuracy</pre><p>These two lines load the fastai library. You can read the docs <a href="http://docs.fast.ai/">here</a> or just remember that fastai.vision imports all the tools necessary for image classification which comes under <strong>Computer Vision</strong>.</p><p>Now go to the repository where you’ve uploaded your dataset. Click on <strong>Clone </strong>then copy the link and paste it after<strong> </strong>! git clone</p><pre>! git clone https://github.com/Priyansi/minionsDataset.git</pre><p>What this does is that it downloads your entire dataset so that we can access it easily from this notebook.</p><pre>PATH = &#39;/content/minionsDataset&#39;</pre><p>We need to set up a constant path that will lead to the multiple classes (image folders for different topics) and this will be different for all of you. To find out the path, navigate to <strong>Files</strong> where your dataset is saved. <strong>Right-click </strong>on the file/folder you want to find the path of, then select <strong>Copy Path</strong>.</p><p>After doing this much, our notebook should look something like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pz_GYTUPcVyywDGPbXQiBQ.png" /><figcaption>Phew! Untitled0 looks great. Better give it a name.</figcaption></figure><pre>np.random.seed(24)<br>tfms = get_transforms(do_flip=False)<br>data = ImageDataBunch.from_folder(PATH, valid_pct=0.2, ds_tfms=tfms, size=299, bs=16).normalize(imagenet_stats)</pre><p>Here comes the first line of logic. To build a model we need two things - images and classes, i.e, the labels or what those images are. Now we already have all the classes separated out in different folders, which means one folder will contain all the images of a specific label. So our folder names become the label names.</p><p>In fastai, grabbing all the images and labeling them is made very easy using ImageDataBunch. And there are various ways you can read the data. Right now, all our images are in folders so we use from_folder<strong> </strong>to extract it. Now we pass various parameters to this function like -</p><p>1. <strong>path</strong> — The path where the image folders are. In this case, its value is stored in PATH.</p><p>2. <strong>valid_pct</strong> — Let’s talk about <strong>validation</strong> datasets.</p><ul><li>Now you must have heard about <strong>train</strong> and <strong>test</strong> datasets. The <strong>train</strong> dataset contains the values on which the model trains (learns) and the <strong>test</strong> set is used to check whether what we learned and predicted was right or not at the end of the training. The <strong>test </strong>set contains totally new data that our model hasn’t seen before.</li><li>The <strong>validation</strong> set comes in between. It is also a set of values that are held back from the model and is used to <strong>tune the hyperparameters </strong>(learning rate, epochs, etc) to give more accurate results so that we can finally test on our <strong>test</strong> set. Now, the question arises, we have a train set but not a validation set. How do we create one? The answer, let fastai handle this.</li><li>ImageDataBunch creates a <strong>DataBunch</strong> object that contains various sets like <strong>train</strong>, <strong>validation</strong> and an optional <strong>test</strong>. We can just split our training set into <strong>train</strong> and <strong>valid</strong> by passing a ratio to valid_pct. Generally, that ratio is 0.2 which means 20% of the training set is set aside for validation.</li></ul><p>3. <strong>dfms </strong>— To transform the images so that our model trains better. The get_transforms method. do_flip is set to false because we don’t want our minions upside down. It’s nauseating.</p><p>4. <strong>size </strong>— So that all the images are of the same shape and size. This will create a 299 by 299 square image. Why 299? Well, it’s what I generally use and found the results to be pretty good. You are free to experiment though.</p><p>5. <strong>bs</strong> — It stands for batch size. It sets the number of images processed at a time. This depends upon the memory you have. You can set this to a higher value if you have sufficient memory.</p><p>6.<strong> </strong><strong>normalize()</strong> — In nearly all machine learning tasks, you have to make all of your data about the same ‘size’ — they are specifically about the same mean and standard deviation so you need to use normalize()<em>. </em>imagenet_stats<em> </em>applies the normalization technique used by the famous ImageNet dataset.</p><p>Last but not least, np.random.seed() gets you the same random numbers each time you run the program. You can pass any value to this. Moving on, let’s see what data has in store for us.</p><pre>data.show_batch(rows=3, figsize=(5, 5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*ZK9yFqdVC6ONmNviBSz3Rw.png" /><figcaption>Kewt</figcaption></figure><p>This will show you some of the contents of your DataBunch object. You can clearly see that they have been zoomed, cropped and labeled. <em>Perfecto.</em></p><p>Let the training commence!</p><pre>learn = cnn_learner(data, models.resnet101, metrics=accuracy)</pre><p>In fastai, we use a learner for something that can learn to fit a model. We will be using a cnn_learner for the reasons stated above. And to this, we pass our data, a model and the metric, which I’ve chosen as accuracy. You can also choose error_rate.</p><p>Now for the model, all you need to know that there’s a particular kind of model called ResNet which works extremely well nearly all the time. Right now all you need to choose is the size. You can go with ResNet34, RestNet50 or ResNet101 like I’ve chosen here. This is a pretty huge architecture so you might wanna start small with RestNet34 since it works faster and then you can increment if you are not getting the desired output.</p><p>You’ll notice that as soon as you run the above line, it downloads something. Well, those are the pre-trained weights, that is, our model has already been trained to do something and it’s better than starting with nothing. And the thing it has been trained to do is recognize thousands of categories in ImageNet. What up comeback!</p><p>What we are implementing here is transfer learning. We will take a pre-trained model, and then we fit it so that instead of predicting a thousand categories of ImageNet with ImageNet data, it predicts the 3 categories of minions using our minions&#39; data. Two logic down, three more to go.</p><pre>learn.fit_one_cycle(4)</pre><p>The best way to fit models is to use something called one cycle. It’s accurate and faster. The number 4 basically decides how many times do we show the dataset to the model so that it can learn from it. Each time it sees a picture, it’s going to get a little bit better. But it’s going to take time and it means it could overfit. If it sees the same picture too many times, it will just learn to recognize that picture, not minions in general.</p><p>If the accuracy of your training set is pretty darn good, it means you’re overfitting. This can be avoided by using the validation set. We will print out the accuracy of the model on the validation set alongside so that you’ll recognize when the model is overfitting. Now, this is our result -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*CdJKMHi2xMsMhGTyACGGew.png" /><figcaption>Too lazy to include a gist</figcaption></figure><p>So 67%? Eh, not bad. This means we are in the right direction but it’s not good enough. We can do better folks. Notice how the accuracy is constant for the last 3 values?</p><p>It’s time to talk about the <strong>learning rate</strong>. It is the thing that figures out what is the fastest you can train this neural network without making it zip off the rails and crash. It basically says how quickly you’re updating your parameters.</p><pre>learn.unfreeze()</pre><p>Before we find a suitable learning rate, we’ll unfreeze() the model. A CNN has several layers for a whole lot of computations. What we did previously was just add a few extra last layers and trained only those. Now we want to train the whole model, therefore, we’ll use unfreeze().</p><pre>learn.lr_find()<br>learn.recorder.plot()</pre><p>To find a suitable learning rate, we run the lr_find(). And then we plot the losses against a range of learning rates like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*uCtc0u9_8Uq8zrRj_8t-aw.png" /><figcaption>Calm down. We’re not gonna have a Maths class now.</figcaption></figure><p>Choosing an appropriate learning rate is mostly intuition but this graph will help you narrow it down. We are basically looking for the steepest slope where the model is actually learning right before the losses skyrocket, which in this case will be between the red lines.</p><p>The keyword slice in Python can take a start value and a stop value and it trains the very first layers at a learning rate of <strong>3e-5</strong>, and the very last layers at a rate of <strong>3e-4</strong>, and distribute all the other layers across that. So that we can choose a range rather than just one value.</p><pre>learn.fit_one_cycle(4, max_lr=slice(3e-5, 3e-4))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*F0OAAV62CFBoXWMmaSepfg.png" /><figcaption>Ahh! Finally. A+</figcaption></figure><p>After this, we save the results -</p><pre>learn.save(&#39;stage-1&#39;)</pre><p>And, with this, you’ve completed your training. Hol’ up! There’s still a final important thing left to do, that is, to interpret the results. Let’s see where our model betrayed us by using class interpretation and then plotting the confusion matrix.</p><pre>interpret = ClassificationInterpretation.from_learner(learn)<br>interpret.plot_confusion_matrix()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*HCfwc5g8iR_ivvHyp9vvNw.png" /><figcaption>Is someone still reading the captions?</figcaption></figure><p>This is pretty self-explanatory. Our model’s right predictions are along the diagonal and the wrong ones are scattered throughout. But this dull. Let’s look at something more visually appealing.</p><pre>interpret.plot_top_losses(3, figsize=(5,5))</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/1*MeHlhvYm5X7qk9NsObhWQA.png" /><figcaption>Did you know that Walmart has a lower acceptance rate than Harvard?</figcaption></figure><p>Take the first picture for example — Our model classified that as Kevin when it was actually Bob. All this can be resolved by cleaning up the dataset a bit. But for now, you’re good to go.</p><p>Congratulations for bearing with me for so long. If you’re one of the lucky people that stuck around, boy, do I have a surprise for you?</p><p>Let’s test our model now. It’s an extra step just to make sure we’re doing things right. Let’s start by uploading an image in the <strong>File</strong> section. Then copy its path and paste it in <strong>IMAGEPATH</strong>. I found a unique image by taking a screenshot of a YouTube video.</p><pre>IMAGEPATH=&#39;/content/Screenshot (143).png&#39;</pre><pre>image = open_image(IMAGEPATH)<br>image.show()</pre><p>Now open the image to make sure it’s the right one. Then, we predict -</p><pre>learn.predict(image)</pre><p>If everything went alright, you should see something like this -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_UiSv_bOI-P4TzrydQd9-Q.jpeg" /><figcaption>*happy tears*</figcaption></figure><p>You can find the full code <a href="https://github.com/Priyansi/minionsClassifier">here</a>.</p><p>Now, go out into the world and then explore the beauty of deep learning. The above knowledge is enough to create a pretty accurate model. If you’re still hung up on something, ping me on <a href="https://twitter.com/iiverveii">Twitter</a>. I promise not to leave you on seenzone :p</p><p>P.S. If you stick around for the next part, I’m gonna show you how to deploy this trained model without any coding knowledge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d76e8fbf367" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dsckiit/an-image-classification-model-with-5-lines-of-code-4d76e8fbf367">An Image Classification Model With 5 Lines Of Code</a> was originally published in <a href="https://medium.com/dsckiit">GDG KIIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pedaling Towards A Greener Tomorrow]]></title>
            <link>https://medium.com/dsckiit/pedaling-towards-a-greener-tomorrow-b411f5c2da1b?source=rss-6ceb29424da2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b411f5c2da1b</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[cycling]]></category>
            <category><![CDATA[go-green]]></category>
            <category><![CDATA[team-building]]></category>
            <category><![CDATA[morning-routines]]></category>
            <dc:creator><![CDATA[Priyansi]]></dc:creator>
            <pubDate>Sun, 09 Feb 2020 10:59:02 GMT</pubDate>
            <atom:updated>2020-02-09T10:59:02.429Z</atom:updated>
            <content:encoded><![CDATA[<p>In the wee hours of a Sunday morning, members of DSC KIIT were up and getting ready for a cycling event. A 25 km course was laid out by our mentor, Prof. Kumar Devdutta, around the outskirts of Patia, Bhubaneswar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*MGocwfiUxD5gwez6eYaS6w@2x.png" /></figure><p>With safety-gears and a pocket full of determination, members proceeded towards fun and endorphins filled morning as we firmly believe that all work and no play makes Jack a dull boy.</p><p>As the wheels turned towards the highway, an icy wind greeted the cyclists. The fog tried to blind everyone’s spirits but there’s no stopping a team full of motivated developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5dph34YlzrCu9W_ZZJpGwA.jpeg" /><figcaption>Cycling Into The Unknown</figcaption></figure><p>Adventure, companionship, and a friendly atmosphere; that’s how we completed the 15 km mark. As the heat increased and the lung-burning sensations of a hard climb began to kick in, we took a break at a roadside stall to rest and replenish with a cup of tea.</p><p>The last leg of the journey was a straight road with scenery that makes your heart melt accompanied by a light breeze. Wide-open spaces and the morning sun affirmed our commitment towards a greener future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TknL_AksxKgA3vbciAURyw.jpeg" /><figcaption>Long Road Ahead</figcaption></figure><p>While the agenda was to focus mainly on health and going green, it also helped in team building and forming common bonds. The team rode together from start till the end and left no man behind while constantly supporting and encouraging fellow members.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b411f5c2da1b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dsckiit/pedaling-towards-a-greener-tomorrow-b411f5c2da1b">Pedaling Towards A Greener Tomorrow</a> was originally published in <a href="https://medium.com/dsckiit">GDG KIIT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>