<?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 Shivam Agrawal on Medium]]></title>
        <description><![CDATA[Stories by Shivam Agrawal on Medium]]></description>
        <link>https://medium.com/@shivampip?source=rss-a53e71b983d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*r3bh4MJpBgAcOxvzOSoBfQ.jpeg</url>
            <title>Stories by Shivam Agrawal on Medium</title>
            <link>https://medium.com/@shivampip?source=rss-a53e71b983d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:07:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivampip/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[Publish Your Python Package to PyPi]]></title>
            <link>https://medium.com/@shivampip/publish-your-python-package-to-pypi-58285d0bbce4?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/58285d0bbce4</guid>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Fri, 09 May 2025 11:59:02 GMT</pubDate>
            <atom:updated>2025-05-09T11:59:02.180Z</atom:updated>
            <content:encoded><![CDATA[<p>Just do it</p><p>Create this hirercy</p><pre>packaging_tutorial<br>├── LICENSE<br>├── README.md<br>├── example_pkg<br>│   └── __init__.py<br>├── setup.py<br>└── tests</pre><p>In setup.py</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58285d0bbce4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Be part of the A.I. revolution.]]></title>
            <link>https://medium.com/@shivampip/be-part-of-the-a-i-revolution-773d6b6f53bf?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/773d6b6f53bf</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai-research]]></category>
            <category><![CDATA[revolution]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Sat, 31 Dec 2022 09:40:41 GMT</pubDate>
            <atom:updated>2022-12-31T09:40:41.831Z</atom:updated>
            <content:encoded><![CDATA[<p>This is crazy times. everyday AI is getting better and better.</p><p>When I see all these AI models like ChatGPT, DALL.E2, etc, I feel like I’m a kid in a candy shop. and these open-source ML models are like huge pots of chocolate free to eat. or add our custom flavor and eat. Even it&#39;s allowed to sell that chocolate and make a profit.</p><p>One excellent idea is to chain these AI models and get unbelievable results. I’ll implement this idea in the Qureal website builder and later in the whole Qureal platform. where users will interact with a bot. the bot will extract requirements from clients and create website structure, layouts, content, images everything.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=773d6b6f53bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Add External Script in React]]></title>
            <link>https://medium.com/@shivampip/add-external-script-in-react-d935428351d9?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/d935428351d9</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[external-script]]></category>
            <category><![CDATA[external]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Fri, 14 Feb 2020 16:13:15 GMT</pubDate>
            <atom:updated>2020-02-14T16:13:15.089Z</atom:updated>
            <content:encoded><![CDATA[<h4>2 Ways to use the external script with your React project.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*dN8FtZsjb6NjYulCnbUAzQ.png" /></figure><p>Many times we want to use some external script with our React app. that can’t be installed by npm or yarn or we have script available locally or through CDN. Here is how you can easily use it in your React app.</p><p>Assume, you have your-script.js an external script.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f70814e7c889d983e93d6f1f807dce6/href">https://medium.com/media/3f70814e7c889d983e93d6f1f807dce6/href</a></iframe><p>And you want to use it in your React app. First of all, put it in the following location <em>(you will have to create </em><em>assets and </em><em>js folder in </em><em>public dir)</em></p><pre>public/assets/js/your-script.js</pre><p>Now there are 2 ways to load it</p><h3>Direct Loading</h3><p>Open public/index.html and add script tag above title tag.</p><pre>...<br>&lt;script type=”text/javascript” src=”./assets/js/your-script.js”&gt;&lt;/script&gt;<br>&lt;title&gt;React App&lt;/title&gt;<br>...</pre><p>and you’re done.</p><p>Now you can use functions from your external script. You can’t directly use them. you’ll have to call them with window</p><p>Suppose there is a function name helloLife in your external script. you can call it like this in your React Components.</p><pre>window.helloLife();</pre><p>Drawback with the approach is we may not need this script everywhere in our React app. but we are unnecessarily loading it every time the app starts.</p><h3>On-Demand Loading</h3><p>Step 1. Install react-load-script component</p><pre>npm install react-load-script --save</pre><p>You can load your-script.js on-demand in your React component like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/55f3c2745f7b82aee49141a33b6685e8/href">https://medium.com/media/55f3c2745f7b82aee49141a33b6685e8/href</a></iframe><p>You want to use it in Demo component</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68ab7f67fad87264f0c0748f0686b597/href">https://medium.com/media/68ab7f67fad87264f0c0748f0686b597/href</a></iframe><p>Remember you’ll have to call the functions from your external script with window ( window.yourFunction(); )</p><p><strong>Note</strong>: for script src, you can your local path or CDN URL.</p><p><strong>Hope You Enjoyed the Journey.</strong></p><p>Follow me on <a href="https://github.com/shivampip"><strong>Github</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d935428351d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy React App on GitHub Pages in 3 Minutes]]></title>
            <link>https://medium.com/@shivampip/deploy-react-app-on-github-pages-in-3-minutes-def712cba647?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/def712cba647</guid>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Tue, 28 Jan 2020 08:16:27 GMT</pubDate>
            <atom:updated>2020-01-28T08:23:35.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/987/1*lDwNi_3PcWyyANu7x1C6iw.png" /></figure><p>GitHub pages provides easy and free way to host static files. So we can use GitHub pages to deploy our React App. Let’s do it.</p><p>For instance, my GitHub username is shivampip and I have a react app named ghtest that I have to deploy on GitHub pages.</p><p><strong>Step 1</strong>: Create new GitHub repo with same name as React app. i.e. ghtest</p><p><strong>Step 2</strong>: Install gh-pages module in React app</p><pre>npm install --save gh-pages</pre><p><strong>Step 3</strong>: Now make following changes in package.json file.</p><ul><li>Add homepage url below name</li></ul><pre>&quot;homepage&quot;: &quot;https://shivampip.github.io/ghtest/&quot;,</pre><ul><li>Add these lines inside scripts object</li></ul><pre>&quot;predeploy&quot;: &quot;npm run build&quot;,<br>&quot;deploy&quot;: &quot;gh-pages -d build&quot;,</pre><p>After changes package.json file will look something like this.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/69561f738bdc538557190fce592acdad/href">https://medium.com/media/69561f738bdc538557190fce592acdad/href</a></iframe><p><strong>Step 4</strong>: Connect React app to GitHub repo</p><pre>git init<br>git remote add origin https://github.com/shivampip/ghtest.git</pre><p>Optionally you can commit and push code to master branch</p><pre>git add .<br>git commid -m &quot;ititial commit&quot;<br>git push origin master</pre><p><strong>Step 5</strong>: Just Deploy it</p><pre>npm run deploy</pre><p><strong><em>Congratulations</em></strong><em>, You have successfully deployed React app on GitHub pages.</em></p><p>You can browse your app on link that you provided in homepage (<em>in step 3</em>)</p><p>For instance, here is my ghtest react app, deployed on GitHub Pages.</p><p><a href="https://shivampip.github.io/ghtest/">React App</a></p><p>Hope you enjoyed the journey. Don’t forger to Clap</p><p><strong>Reference:</strong></p><ul><li><a href="https://gist.github.com/shivampip/a82a79eb80a99de5b3131c190203aaba"><em>Tutorial Gist</em></a></li><li><a href="https://pages.github.com/"><em>GitHub Pages</em></a></li><li><a href="https://github.com/gitname/react-gh-pages"><em>gh-pages module</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=def712cba647" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monster]]></title>
            <link>https://medium.com/short-tales/monster-90c5da484f5c?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/90c5da484f5c</guid>
            <category><![CDATA[scary-story]]></category>
            <category><![CDATA[horror-stories]]></category>
            <category><![CDATA[fear]]></category>
            <category><![CDATA[monsters]]></category>
            <category><![CDATA[fiction-story]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Sun, 26 Jan 2020 19:39:44 GMT</pubDate>
            <atom:updated>2020-01-26T19:39:44.318Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Short Horror Story</h4><p>Mayank was alone in the house. his wife Alpa had gone to meet her friend who just shifted to Mumbai from Indore. she said Mayank to go with her but he denied it. Mayank was a simple person who didn’t believe in violence. his friend used to say he can’t even kill an ant.</p><p>Mayank was watching a movie then suddenly he heard some noise which was coming from another room. He was scared as hell. he went there silently to see what’s going on. He saw a man whose face was covered was trying to break-in the locker. Mayank was watching him from behind the door.</p><p>The thief was not able to find the keys for the locker. suddenly Mayank’s cellphone rang. The thief was alerted. He pointed the knife towards Mayank and asked him for the key. Mayank was so scared that his legs were as cold as ice. his vision started getting blurred. but he somehow managed himself.</p><p>Mayank was moving backward and the thief was moving closer and closer to him. Mayank hit the table and the whiskey bottle fell down on the floor and got broken. red whiskey and glass pieces spilled on the floor.</p><p>It was getting dark. the twilight of the room was blinking. Alpa had said to Mayank many times to repair it but he was too busy to call an electrician. the blinking twilight was making the scene even scarier.</p><p>Mayank- <em>please leave us. we recently got married. I have to pay for my home loan. I can’t let you steal my money.</em></p><p>Thief- <em>everyone has their own reasons. I will take what I want. by hook or by crook.</em></p><p>Mayank- please please, don’t…</p><p>Thief- <em>just give me the keys or I’ll cut your throat.</em></p><p>Mayank- <em>You Monster, go and earn money. don’t steal. I’ve earned it with hard work. I won’t give you a single penny at any cost.</em></p><p>Each word that came out of Mayank’s mouth was making thief more and more angry. There was a Monster in the room.</p><p>….and the twilight gave up !!</p><p>It was totally dark. there was a silence for 4–6 seconds. and then a loud sound of something stabbed in the human body. a long scream and again everything was silent.</p><p>When Alpa came back at night, She had to turn on her mobile fleshlight. In the focused light of flesh what she saw, she screamed like hell. on the floor, there were glass pieces and red liquid spread on the floor. she could distinguish between whiskey and blood. the blood was flowing from a dead body lying on the floor. stabbed in the chest with a broken glass piece multiple times. the dead body’s face was still covered. and his knife was still in his lifeless hand. he was not Mayank.</p><p>The Monster was still in the room. Alive.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90c5da484f5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/short-tales/monster-90c5da484f5c">Monster</a> was originally published in <a href="https://medium.com/short-tales">Short Tales</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI: The New Internet]]></title>
            <link>https://medium.com/@shivampip/ai-the-new-internet-e3a66b4ff626?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3a66b4ff626</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[impact-on-society]]></category>
            <category><![CDATA[cutting-edge-technology]]></category>
            <category><![CDATA[internet]]></category>
            <category><![CDATA[aritificial-intelligence]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Sun, 26 Jan 2020 18:24:28 GMT</pubDate>
            <atom:updated>2020-01-27T06:45:20.296Z</atom:updated>
            <content:encoded><![CDATA[<h4>How Everything is going to be changed again.</h4><p>Let’s go back to 1995.</p><p>The Internet had just come out. Very few people used it. There was a buzz in the town about it. Lots of people were talking about it. but very few saw the opportunity there. They climbed on the horse. and today those horse riders run billion-dollar businesses like Google, Facebook, Amazon, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*x2vfBj7Ik-eq6B9stFg8LA.png" /></figure><p>In the 90s decade, people were unaware of the internet’s potential. Most of them couldn’t see what&#39;s coming. and in few years It was everywhere. or say everything was on the internet. it changed everything. how we live, how we think, what we do, how we do, everything.</p><p>Today we are standing on the same spot again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*Oh6J6neRu90EVj92GTbO3Q.png" /></figure><p>Artificial Intelligence is the New Internet. that is going to change everything again and in unimaginable ways.</p><p>Siri, Alexa talks to you like friends. You think of something to buy and you see that thing on Amazon’s homepage. You get a Facebook suggestion of your childhood friend that you didn’t meet for years. and you wonder how the hell Facebook knew about him/her. You unlock your iPhone with your face. Google is a new God. it knows you better than you know yourself. They’re all leveraging the power of A.I.</p><p>It’s already here. Changing and putting impact on our daily lives.</p><p>Day by day it’s beating human intelligence in different areas. It has already defeated world champions of almost all board games including most difficult games like Go. For your intuition, Go has more possible board configuration than total atoms in the universe. even at some points, AlphaGo’s (the AI algorithm) creators had no idea, how and why was it taking that particular move.</p><p>In the upcoming 10 years, how is it going to change our lives, we can only imagine. It will be a friend, a competitor or a demon, we don’t know.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3a66b4ff626" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dragon Curve: Beauty of Mathematics]]></title>
            <link>https://medium.com/@shivampip/dragoncurvepython-e0649dd6138?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0649dd6138</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[paper]]></category>
            <category><![CDATA[awesome]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[dragon-curve]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Sat, 06 Oct 2018 11:51:08 GMT</pubDate>
            <atom:updated>2019-06-29T15:10:15.111Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction and implementation in Python</h4><h4>What is the Dragon Curve?</h4><p>Let’s take a paper strip. Now fold it from the middle. We get a V shape. again fold it from the middle. We get something like a question mark symbol. Let’s fold it one more time. One more time. What we get is these kinds of designs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*hhdXlmzOv8nL8Z3VcjAg5Q.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*bAhryK62nlikxdY3bm6bHQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*GgUU3qrCnX4bvRmzwBeksg.png" /></figure><p>When we keep on folding the paper this way. We start getting some interesting designs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*I6Q1Ebb6c0oM3fZSjMQQQg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*JA8CK5Vy_gRol5YmOUoJWQ.png" /></figure><p>And We keep on folding it till infinite. We get the Dragon Curve. practically it is not possible to fold it infinite times. Here is the shape of paper after 15 folds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/553/1*WtfPBBYbTCNZpIfRIGCV6w.png" /></figure><p>I tried it with 21 folds. Even in 7 hours, it couldn’t render half of the design and It is too big to fit in my computer screen (Incomplete)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BrLpKmc4C4N-ST6N0TC1uA.png" /></figure><p>So, this is the Dragon Curve, which contains the beauty of Mathematics in itself. The interesting thing is paper is not crossing itself any time.</p><p>Dragon Curve replicates itself in each iteration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*a9NxyEEQZkiHhL0nQ52czw.gif" /></figure><p>Here are the four copies of the Dragon Curve fit together tightly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*cA6BqOxY1Amkg2_qPugJ_g.png" /></figure><h4>Implementation in Python</h4><p>Let’s write a Python script. which may draw Dragon Curve with a specified number of folds.</p><ul><li>For this We’ll use Python graphics library named Turtle. to install it, use this command.</li></ul><pre>pip install turtle</pre><ul><li>Now create a file named draw.py</li><li>You can get the code <a href="https://gist.github.com/shivampip/447525b07ada1502ebdcc773601daed9/revisions">here</a>.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/263aad2483b81fc61c7955cd8ae38853/href">https://medium.com/media/263aad2483b81fc61c7955cd8ae38853/href</a></iframe><h4>Working of the script</h4><p>We have created a function fold which is calling itself recursively. it generates an array of zeros and ones. where zero indicates left fold and one indicates right fold. this function is finding the middle of the given array and make one (right fold) there. then it will call itself on both sides of the remaining array. and so on….</p><p>Then we have used turtle module to convert this binary array into visual graphics. Turtle draws the curve in front of you.</p><ul><li>To run the script.</li></ul><pre>python3 draw.py</pre><p>Dragon Curve shows us, We are surrounded by beautiful Math secrets, which are waiting to be discovered.</p><h4>Resources</h4><ul><li><a href="https://gist.github.com/shivampip/447525b07ada1502ebdcc773601daed9">Code</a></li><li><a href="https://www.youtube.com/watch?v=wCyC-K_PnRY">Video</a></li><li><a href="https://en.wikipedia.org/wiki/Dragon_curve">Wikipedia</a></li></ul><p><strong><em>Hope, You Enjoyed.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0649dd6138" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telegram Wiki Bot]]></title>
            <link>https://medium.com/@shivampip/telegram-wiki-bot-97bbee33eb34?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/97bbee33eb34</guid>
            <category><![CDATA[telegram-python]]></category>
            <category><![CDATA[python-bot]]></category>
            <category><![CDATA[telegram-bot]]></category>
            <category><![CDATA[wikipedia-bot]]></category>
            <category><![CDATA[telegram]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Wed, 03 Oct 2018 18:00:19 GMT</pubDate>
            <atom:updated>2019-06-29T14:57:53.562Z</atom:updated>
            <content:encoded><![CDATA[<h3>Telegram Wiki Bot in Python</h3><p>Hello Friends, Here We’ll learn, how to create very basic Telegram Wiki Bot which will return us summery of any word. For instance, we say “wiki nepal” then it will return Wikipedia summary of Nepal. we’ll use Python3</p><p>There are two parts. First, create the bot on Telegram mobile app. Second, Make Python server for the bot and its logic. So, Let’s Start.</p><h4>Creating Bot</h4><ul><li>Install <a href="https://play.google.com/store/apps/details?id=org.telegram.messenger&amp;hl=en">Telegram</a> app on your mobile</li><li>Complete your profile</li><li>Now search for <strong>BotFather</strong> and select it</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*DIdtNFdMj2QovbC7NXAvTw.png" /></figure><ul><li>Click on <strong>Start</strong></li><li>Follow the instruction given by BotFather to create your bot.</li><li>When you finish, you will have BOT_TOKEN. keep it. it will be needed in the future.</li></ul><h4>Programming</h4><ul><li>Install<a href="https://github.com/python-telegram-bot/python-telegram-bot"> python-telegram-bot</a></li></ul><pre>pip install python-telegram-bot --upgrade</pre><ul><li>Install Wikipedia</li></ul><pre>pip install wikipedia</pre><ul><li>Now create file <strong>bot.py</strong></li><li>All the code of the file is given below (can’t copy). You can get it from <a href="https://gist.github.com/shivampip/d74c9a81daab7b6e4a8ea49ed12e4cf7">here</a></li><li>Further, we’ll discuss, how the code is working</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/05bad68f85536d0724c5d562be4f91ba/href">https://medium.com/media/05bad68f85536d0724c5d562be4f91ba/href</a></iframe><h4>Working</h4><ul><li>First, we have imported necessary libraries.</li><li>Initialize Updater with BOT_TOKEN, what we got from BotFather.</li><li>Create get_wiki function which extracts Wikipedia summary.</li><li>Define textpro function to process our incoming messages.</li><li>it features message, sender name, and chat id.</li><li>If the message starts with “wiki” then it replies Wikipedia summary of given word. Else replies “Invalid command”.</li><li>Supported message format: <strong>wiki</strong> <em>your word</em></li><li>Then we have added Message Handler.</li><li>and Started polling.</li><li>Run the file, Your Telegram Wikipedia Bot is live now.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*Ag0J3_rCO817DgJItT2EOw.png" /></figure><h4>Advanced Telegram Bot</h4><p>Telegram Bot API provides many more features like sending Audo, Video, Documents or other files. You can explore them from <a href="https://github.com/python-telegram-bot/python-telegram-bot/wiki/Code-snippets#post-an-image-file-from-disk">here</a>.</p><p>I have developed this LifeBot which supports <strong>Song</strong>, <strong>Book</strong>, and <strong>Wiki</strong> commands. You can find its source code <a href="https://github.com/shivam-ai/LifeBot">here</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1C9hfcveaFs%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1C9hfcveaFs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1C9hfcveaFs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/730fea8eeb669f923403e63fe80c5925/href">https://medium.com/media/730fea8eeb669f923403e63fe80c5925/href</a></iframe><h4>Resources</h4><ul><li><a href="https://gist.github.com/shivampip/d74c9a81daab7b6e4a8ea49ed12e4cf7">bot.py</a></li><li><a href="https://github.com/shivampip/LifeBot">Advanced bot</a></li><li><a href="https://core.telegram.org/bots/api">Telegram Bot API</a></li><li><a href="https://github.com/python-telegram-bot/python-telegram-bot/wiki/Code-snippets#post-an-image-file-from-disk">Useful documentation</a></li></ul><p><strong><em>Hope, you enjoyed :)</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97bbee33eb34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ubuntu 18.04 Wifi Problem Solved]]></title>
            <link>https://medium.com/@shivampip/ubuntu-18-04-wifi-problem-solved-f519bd8c7331?source=rss-a53e71b983d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f519bd8c7331</guid>
            <category><![CDATA[wifi-problem]]></category>
            <category><![CDATA[ubuntu-no-network]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[linux-wifi]]></category>
            <category><![CDATA[ubuntu-wifi]]></category>
            <dc:creator><![CDATA[Shivam Agrawal]]></dc:creator>
            <pubDate>Wed, 03 Oct 2018 14:51:49 GMT</pubDate>
            <atom:updated>2018-10-03T15:00:30.716Z</atom:updated>
            <content:encoded><![CDATA[<p>You are trying to search the wifi but it is showing No Network. Then you are at right place. Cause of the problem is the weak signal strength of your wifi driver. The solution is quite easy.</p><h3><strong>Lest’s Start</strong></h3><ul><li>Open Terminal</li><li>Clone this repo by typing following command</li></ul><pre>git clone <a href="https://github.com/lwfinger/rtlwifi_new.git">https://github.com/lwfinger/rtlwifi_new.git</a></pre><ul><li>Now go to the directory</li></ul><pre>cd rtlwifi_new/</pre><ul><li>Install it by typing the following (it will ask password, fill that)</li></ul><pre>sudo make install</pre><ul><li>Now Check your wifi driver name using this command</li></ul><pre>sudo lshw -C network | grep driver</pre><p>It will show network configuration information. (something like this)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*c0M_6bVLUrFl1inrwjZf1w.png" /></figure><p>Copy Driver name (in my case it is rtl8723be)</p><ul><li>Now just copy and paste this command. (rtl8723be is my wifi driver name)</li></ul><pre>sudo modprobe -r rtl8723be &amp;&amp; sleep 5 &amp;&amp; sudo modprobe rtl8723be ant_sel=2</pre><ul><li>Problem solved. Now you will see all the networks in the list</li><li>Just connect and Enjoy</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f519bd8c7331" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>