<?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 Aman Chourasiya on Medium]]></title>
        <description><![CDATA[Stories by Aman Chourasiya on Medium]]></description>
        <link>https://medium.com/@amanchourasiya?source=rss-3104277cd79b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K4jA_nEiB8ImIBk7w6xrIA.jpeg</url>
            <title>Stories by Aman Chourasiya on Medium</title>
            <link>https://medium.com/@amanchourasiya?source=rss-3104277cd79b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 09:24:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amanchourasiya/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 the referral process works at Google]]></title>
            <link>https://medium.com/@amanchourasiya/how-the-referral-process-works-at-google-c8cc4e958c24?source=rss-3104277cd79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c8cc4e958c24</guid>
            <category><![CDATA[google-interview]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[referrals]]></category>
            <dc:creator><![CDATA[Aman Chourasiya]]></dc:creator>
            <pubDate>Fri, 13 May 2022 08:02:03 GMT</pubDate>
            <atom:updated>2022-05-13T08:02:03.982Z</atom:updated>
            <content:encoded><![CDATA[<p>Different companies have different processes for accepting referrals and people get confused about the referral process inside Google. Let’s try to understand what it looks like inside Google based on my observations.</p><blockquote>Disclaimer: These are just my observation that I have made during my tenure here and these can change based on the time you read this. It’s always better to consult the official sources.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PbZJxXitd2nW0AJr.png" /><figcaption>Image Credits: Google Careers</figcaption></figure><h4>Googlers can not refer to a specific job.</h4><p>In most companies, you can refer candidates for specific job IDs but here at Google you refer to the whole Google and it&#39;s up to the candidate which job id they want to apply for.</p><p>This comes from the philosophy that Google doesn’t hire for specific teams or specific job IDs, they hire you for Google and based on your interest and the requirement you get to choose the team/project on which you will work.</p><h4>So how to ask for a referral?</h4><p>Even though a Googler can not refer you to a specific job ID, still a good practice is to first research the job profile and ID that you want to go for before asking for a referral.</p><p>Contact the Googler with these specific job IDs from the <a href="https://careers.google.com/">careers </a>page and describe your skills and why they are relevant for the role that you want to be referred for. This will help them assess whether they should refer you or not.</p><h4>What to do when you have got a referral?</h4><p>After a successful referral, the candidate receives an invite. The candidate can accept an invite and apply for the job within 30 days, after 30 days referral expires and the candidate will have to ask for another referral. Through one referral candidates can apply for up to 3 jobs.</p><p>After applying for the role, it&#39;s up to the recruiting team to shortlist the candidates based on the profiles and schedule the interviews, at this point referrer has no role in the further process.</p><h4>Common mistakes to avoid when asking for a referral</h4><ol><li>Asking questions like these — hey do you have any openings for this role and can you refer me to that. (Please check on the <a href="https://careers.google.com/">careers</a> page)</li><li>Not checking the minimum qualification for the job ID, e.g. a fresh graduate asking to be referred to a senior engineer role which requires 10 years of experience.</li><li>Thinking that problem solving is not required for senior engineering roles and only domain knowledge is enough and thus not providing enough evidence in problem-solving when they ask you how confident you are in problem-solving.</li><li>Getting offended when Googler asks questions about your level of problem-solving, they want to assess whether you can clear the Google coding interviews.</li></ol><p>And at the end respect each other even of the other person doesn’t respond in time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c8cc4e958c24" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Prepared For Google Coding Interviews]]></title>
            <link>https://medium.com/@amanchourasiya/how-i-prepared-for-google-coding-interviews-bddb6cc62bd9?source=rss-3104277cd79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/bddb6cc62bd9</guid>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[interview-tips]]></category>
            <category><![CDATA[google-interview]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Aman Chourasiya]]></dc:creator>
            <pubDate>Tue, 19 Oct 2021 06:56:46 GMT</pubDate>
            <atom:updated>2021-10-19T07:05:03.885Z</atom:updated>
            <content:encoded><![CDATA[<p>Coding is tough and preparing for coding interviews is tougher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*lfY24MXhNAJk_Kyn_rhlvw.jpeg" /><figcaption>www.open.edu</figcaption></figure><p>I was a working software engineer with almost four years of experience when I received an interview call from Google. That was once in a lifetime opportunity for me and no way I was going to take it lightly so I went full-on and started preparing for the interviews. I have shared my interview journey <a href="https://medium.com/@amanchourasia6/my-230-days-interview-journey-with-google-44a698926cd9">here</a>.</p><h3>Finding the elephant in the house.</h3><p>My first target was to find all the missing links and shortcomings in my data structures basics, I wanted to target them first and get them sorted. My first ground rule in every task I do is to first get the basics right and I followed the same here also. I worked on the basics of all the commonly used data structures and built upon them.</p><p>I identified that during my college time I didn’t have a strong foundation on graphs and trees so I started first with them and cleared all the basics and started to implement them and performed some basic tree and graphs operations.</p><h3>Practice Practice and Practice !!!</h3><p>This was my main agenda for a couple of weeks after building the basic foundation on all data structures. I used to practice at least 3–4 hours daily and taking out this much time for me was very difficult since I had to perform my office duties for 8–10 hours. And on weekends I used to dedicate my full time to this and I used to practice on <a href="https://leetcode.com/">Leetcode</a> since it was a great platform to practice various concepts and it was already being used by many of my friends and they recommended it to me.</p><p>I used to solve around 4–5 questions daily but solving questions was not the priority for me, my main priority was to learn the underlying concept and get to know all different techniques to solve that problem from least efficient to most efficient ways. I also used to focus on code readability and modularity even though these things didn’t matter in Leetcode but they matter in interviews and in writing real-world production code.</p><h3>Leveling Up My Game</h3><p>After a couple of weeks of practice I wanted to increase my level and enter into new territory so I started giving leetcode weekly and biweekly challenges and it was a big hit on my confidence negatively because initially, I was confident enough that I would be able to solve at least 3 questions out of 4 easily but in a couple of starting challenges I was able to solve only initial 2 questions and then later on in some challenges I was able to solve 3 questions but with great difficulty and it wasn’t giving me much confidence but still I kept going on.</p><h3>Gathering Info About Google Interviews</h3><p>When the interview dates were coming near I started to do my research on google interviews and kept growing my knowledge on different areas of google interviews such as</p><ul><li>What is the level of questions asked at Google?</li><li>What do interviewers focus on?</li><li>How much time do we get and what are expectations.</li><li>Different areas they generally ask questions from.</li><li>And many others</li></ul><p>After gathering all this information I started to focus on these and started preparing myself as what Google expected from me.</p><h3>Practicing Interviews</h3><p>Since I had not given interviews for a while and I was pretty rusty in giving interviews and explaining my thought process in interviews so I started giving mock interviews on <a href="https://www.pramp.com/#/">Pramp</a>. This is a great platform for giving mock interviews wherein one-half you act as interviewee and on another half as an interviewer so it benefits both parties. (Note: Be respectful there and consider it as a real interview for maximum benefits).</p><p>I used to give one interview daily and 3–4 interviews on weekends and this way I got to work on my weak areas and that helped me in interviews. This platform is not for improving coding or problem-solving skills, it&#39;s just for practicing interviews so please keep that in mind.</p><h3>Things I Learned About Google Interviews From My Experience</h3><ul><li>Google wants to know about your thought process while solving the problem, about how you are approaching the problem, and how do you handle different scenarios when you are stuck.</li><li>Keep the end in mind before starting, i.e. think of all the edge cases before even writing a single line of code.</li><li>Be respectful to your interviewer, they are there to help you.</li></ul><p>I will share my google interview tips in another post.</p><p>Keep Learning and Be Curious</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bddb6cc62bd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My 230 Days Interview Journey with Google]]></title>
            <link>https://medium.com/@amanchourasiya/my-230-days-interview-journey-with-google-44a698926cd9?source=rss-3104277cd79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/44a698926cd9</guid>
            <category><![CDATA[interview-preparation]]></category>
            <category><![CDATA[leetcode]]></category>
            <category><![CDATA[softare-development]]></category>
            <category><![CDATA[coding-interviews]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Aman Chourasiya]]></dc:creator>
            <pubDate>Thu, 14 Oct 2021 05:31:40 GMT</pubDate>
            <atom:updated>2021-10-18T08:24:27.911Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes it was a very long journey and 230 days by any standards is very long and tough.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bdfV5VLbCMa1s2I4Ckt7eA.jpeg" /></figure><p>Getting an interview call from <a href="http://google.com/">Google</a> is still a dream for most of the software engineers and so was mine. I was neither from a renowned college nor I was working in a fancy startup or big MNC. Yes, I was a software engineer with almost four years of experience and never thought of applying since Google receives millions of applications from all over the globe and I thought I won’t make the cut because I had not done anything extraordinary until that point in time.</p><p>But all the stars aligned and I got a mail from a Google recruiter asking if I would be interested in exploring the job opportunities at Google, that was and still a mystery to me and I still keep wondering how they contacted me. I will discuss my assumption at the end.</p><h3>First contact with the recruiter</h3><p>The recruiter who contacted me was from Singapore and I assumed that we will just discuss my current role and the opportunities that they have at Google and some other stuff related to my job profile since I had an experience of four years already. But as with Google, it doesn’t leave any chance to surprise us and it was the same case here. The discussion was totally different than I expected.</p><p>The first recruiter asked me some normal stuff and then bombarded me with rapid-fire questions e.g. which is better Dijkstra or Bellman-Ford algorithm? what is complexity for insert in min-heap, and a lot of others like these. I was very shocked and surprised because first I was not expecting these kinds of questions at the recruiter level and second that I had been a little out of touch with these topics since I graduated four years back and these things I didn’t use in my day to day job.</p><p>Obviously, I was not able to answer all of these correctly and the recruiter felt that I was not prepared for interviews right now and I needed some preparation before onsite interviews. So the recruiter asked me that since you don’t seem to be prepared would you like to take some time and brush up on these topics. Initially, I thought that since I have not answered all of those rapid-fire questions correctly so recruiter might move on from my profile and I won’t get a chance so hearing this brought back the delight in me. I asked her how much time I can take, to which she said that you can take one month also so I took one month’s time and she said that after one month book your slot in my calendar and we will meet again after 1 month.</p><h3><strong>Starting of preparation</strong></h3><p>Since I got one month&#39;s time to prepare and I didn’t want to miss this opportunity to get interviewed with Google so I created some strategies to cover all data structure and algorithm topics and get hands-on practice on them.</p><p>First I brushed all the data structures and learned all those data structures that I missed learning during my college days. I will share my preparation strategy in some other posts.</p><p>After brushing up on DS I started practicing on <a href="http://leetcode.com/">Leetcode</a> with 4–5 questions per day since I was also fulfilling my office duties and I had to take out around 3–4 hours for DS practice and with time I got a good grip on all major DS. Still algorithm part was missing so I started solving some previous year questions asked in Google, Amazon, and other top companies and initially it was very tough but with time this also got easy.</p><h3>Second interaction with the recruiter</h3><p>So after one month was finished I set up a calendar invite on the recruiter’s calendar and she canceled immediately, I was worried suspecting that if they are not hiring anymore or they are not interested in me, but fortunately that was not the case, I mailed her asking for the same and I got to know that she is not hiring for that role currently, she changed team and was working on something else, and then she referred me to some other recruiter who was now handling these stuff.</p><p>I contacted the other recruiter and set up a call and in that call also the same thing happened with some quick rapid-fire questions and since I was prepared this time so I got most of them correct and she also sensed that I am prepared and then she asked me to set up telephone screening round before the onsite interviews. The screening round was supposed to be a real interview with two Leetcode medium-level questions within 45 minutes, so she prepped me for this round by providing me with all the necessary study materials and some online platform links where I can practice mock interviews and do coding practice. This time also I took one month time before the interview and she was OK with that.</p><p>That’s where I realized that Google recruiting process is pretty sorted and they are not in a hurry to hire and they want to give us ample time to come up with the best version of ourselves in interviews.</p><h3>Telephone Screening Round</h3><p>After another one month’s preparation, I was pretty confident that at least I can clear this screening round since it was screening round and won’t be of the level of the real onsite rounds but as always I was wrong, this round had the same standard as the actual onsite round and 2 questions were asked and first one I came up with the solution quickly and implemented it but for the second one I took a long time to come up with the approach and had to take a hint from interviewer to get to the final solution but I implemented the solution very well by covering all the edge cases.</p><p>After the interview recruiter contacted me asking how was the interview and some other stuff and then later she provided me the interview feedback. I was very nervous and scared because after my performance in the screening round the opportunity with Google was slightly slipping out of my hands. While giving the feedback she told that you still need to work on your problem-solving skills but your coding skills are very good and that saved me somehow but not fully because I will have to give another screening to be sure that I can do better than this and for this also I took one more month for preparation.</p><h3>Second Telephone Screening Round</h3><p>After one month of pure dedication, I was ready for this round and as expected I aced this round with flying colors and got very good feedback from the interviewer, and got a green signal from the recruiter that I was good to go for onsite interviews and from here my onsite interviews started.</p><p>There were planning to take 4 round of onsite (even though they were virtual) interviews, 3 were coding round and 1 was <em>googliness</em> or cultural fit round. For these also recruiter prepped me very well and making me familiar with the whole process.</p><h3>Onsite Interviews</h3><p>All the onsite interviews went fine, I was not very confident about what will be the feedback for these interviews because according to me I kept missing one thing or other even though these were very minor such as some syntax mistake in some built-in function call or naming variables very long which were not appropriate as per interview settings because we were not coding on an IDE so there was no autosuggestion and I had to type these manually or do copy-paste every time. So because of these things I was a little nervous about the result and before the hiring committee feedback I had to go through another round of discussion to see which team I will fit in.</p><h3>Team Matching Discussion</h3><p>Usually, in team matching discussion we have a chat with many managers from different teams and we discuss our interests and the tell us about the kind of work and projects their team is working on and if both show the same interest then the talk settles there only or else we keep talking to other managers.</p><p>Fortunately for me my first meeting with one manager was enough within minutes our rhythms started to come in sync and there was no need to discuss with some other manager and that’s how my team matching discussion round finished</p><p>I started in March 2021 and team matching finished in July 2021 and that my profile and feedback went to the hiring committee in the form of a hiring packet and after this, all I had do to was to wait, and the wait was very long for some or other reason and finally in September 2021 I got the hire decision and in October 2021 I will be joining Google as a software engineer. And all the efforts I put, all the time I invested finally came to a fruitful end and I was delighted because what started as a dream was turning into a reality soon.</p><h3>My Assumption On Why I Got contacted By Google</h3><p>My initial suspicion is towards the Google’s Foo Bar challenge I gave, this challenge is for google hiring only and it provides a set of problems and after three stages it asks if we want to share our profile with Google recruiting team. But this challenge I took was in December 2020, and it was a long time and then I got contacted by Google so still not sure if that was the source because of which they contacted me.</p><p>I will share the detailed interview preparation in a separate post.</p><p>Thanks for reading</p><p>Be Curious and Be Happy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44a698926cd9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Twitter Bot Using Tweepy]]></title>
            <link>https://medium.com/analytics-vidhya/creating-twitter-bot-using-tweepy-66565fe59cd9?source=rss-3104277cd79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/66565fe59cd9</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[tweepy]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Aman Chourasiya]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 12:49:15 GMT</pubDate>
            <atom:updated>2020-09-29T13:24:50.085Z</atom:updated>
            <content:encoded><![CDATA[<p>Automating not so boring stuff</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*-HNW88bfZu4wFFX4.png" /><figcaption>Twitter Icon</figcaption></figure><p>Automating our daily boring tasks is one thing and automating something that you love doing is altogether different things. The same task I tried to accomplish a task that I love i.e. is being active on social media. Yes, I tried automating my activities on twitter by using a popular python library named <a href="https://www.tweepy.org/">Tweepy.</a></p><p><a href="https://www.tweepy.org/">Tweepy</a> is a very interesting Python library which makes interacting with python developer API’s very easy and hides many low-level details that can be overwhelming for a beginner who is just starting to use REST API.</p><p>To get things started first we need to create a developer account with <a href="https://developer.twitter.com/en">twitter</a> and then you can create an app that will provide the following credentials that we have to use while creating a bot.</p><ul><li>ACCESS_TOKEN</li><li>ACCESS_TOKEN_SECRET</li><li>API_KEY</li><li>API_SECRET_KEY</li></ul><p>These credentials should be kept secret and should not be shared in any way, its a common mistake to put these details in source code and pushing it to GitHub so these should be used only from environment variables.</p><pre>__API_KEY = os.environ[&#39;API_KEY&#39;]<br>__API_SECRET_KEY = os.environ[&#39;API_SECRET_KEY&#39;]<br>__ACCESS_TOKEN = os.environ[&#39;ACCESS_TOKEN&#39;]<br>__ACCESS_TOKEN_SECRET = os.environ[&#39;ACCESS_TOKEN_SECRET&#39;]</pre><p>And just one more thing to get started is that we need to install <a href="https://www.tweepy.org/">tweepy</a> library via pip</p><p>To get this done quickly you can use my sample bot from Github, here is the <a href="https://github.com/amanchourasiya/twitter-bot">link</a>.</p><pre>git clone <a href="https://github.com/amanchourasiya/twitter-bot">https://github.com/amanchourasiya/twitter-bot</a><br>export ACCESS_TOKEN=&quot;&lt;access token from twitter developer account&gt;&quot;<br>export ACCESS_TOKEN_SECRET=&quot;&lt;access token from twitter developer account&gt;&quot;<br>export API_KEY=&quot;&lt;api key from twitter developer account&gt;&quot;<br>export API_SECRET_KEY=&quot;&lt;api secret key from twitter developer account&gt;&quot;<br>python3 bot.py</pre><p>This bot is currently programmed to like and retweet tweets from specific accounts and this bot also filter tweets based on specific filters real-time.</p><h3>Components used in this bot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ELomfpVr0lOrZv-W.png" /></figure><p>There are not many components in this bot but it is extensible enough to be customized for different purposes.</p><h3>1. Creating auth config for Twitter API</h3><p>Creating an authenticated connection to twitter API using Tweepy required all four secret values that we get from the twitter developer account.</p><pre>class Bot:<br>    def __init__(self):<br>        try:<br>            __API_KEY = os.environ[&#39;API_KEY&#39;]<br>            __API_SECRET_KEY = os.environ[&#39;API_SECRET_KEY&#39;]<br>            __ACCESS_TOKEN = os.environ[&#39;ACCESS_TOKEN&#39;]<br>            __ACCESS_TOKEN_SECRET = os.environ[&#39;ACCESS_TOKEN_SECRET&#39;]</pre><pre>auth = tweepy.OAuthHandler(__API_KEY, __API_SECRET_KEY)<br>            auth.set_access_token(__ACCESS_TOKEN, __ACCESS_TOKEN_SECRET)<br>            self.api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)<br>            self.api.verify_credentials()<br>            print(&#39;Authentication successful&#39;)<br>        except KeyError:<br>            print(&#39;Twitter credentials not supplied.&#39;)<br>        except Exception as e:<br>            print(e)</pre><p>This handles creating OAuth connection with twitter API and also sets rate limit alerts and notifications, twitter has some set API usage limit and if we pass that limit then out API handler waits for that time and then again starts making calls to twitter API.</p><h3>2. Creating utility functions.</h3><p>Some utility functions should be created for basic use of this bot, these may include</p><ul><li>Getting the top 20 tweets.</li><li>Getting 10 trending hashtags.</li><li>Fetching recent tweets from a specific user.</li><li>Get a list of all followers.</li></ul><p>And this list can be endless as these are infinite use cases of twitter API and using these utility functions we can regulate our bot to trigger some functions based in the results of these functions.</p><p>e.g. suppose if we are planning to make a feature so that if a user retweets out tweet then we automatically follow that user, like this we can make multiple features and run them periodically.</p><h3>3. Stream live data from twitter.</h3><p>We can use Teeepy’s StreamListerner object to stream and filter live data from the twitter news feed and based on that we can instruct out our bot to make some decisions. This data can also be used to do live analysis to Twitter data.</p><pre>class WorkerStreamListener(tweepy.StreamListener):<br>    def __init__(self, api):<br>        self.api = api<br>        self.me = api.me()</pre><pre>def on_status(self, tweet):</pre><pre># Check if this tweet is just a mention<br>        print(f&#39;{tweet.user.name}: {tweet.text}&#39;)</pre><pre>print(f&#39;{tweet.user.id}&#39;)</pre><pre># Check if tweet is reply<br>        if tweet.in_reply_to_status_id is not None:<br>            return</pre><pre># Like and retweet if not done already<br>        if not tweet.favorited:<br>            try:<br>                tweet.favorite()<br>            except Exception as e:<br>                print(f&#39;Exception during favourite {e}&#39;)<br>        if not tweet.retweeted:<br>            try:<br>                tweet.retweet()<br>            except Exception as e:<br>                print(f&#39;Exception during retweet {e}&#39;)</pre><pre>print(f&#39;{tweet.user.name}:{tweet.text}&#39;)</pre><pre>def on_error(self, status):<br>        print(&#39;Error detected&#39;)</pre><pre>stream.filter(track=[&quot;Hacking&quot;], languages=[&quot;en&quot;], is_async=True)</pre><p>So like this, we can create stream object and filter data based on some targeted keywords, what this stream listener is doing is that whenever there is any tweet including a keyword <strong>Hacking</strong> then it will automatically like and retweet that tweet automatically.</p><p>This is just a sample of the capabilities of a twitter bot and much more can be achieved by going through all features of this API. My twitter-bot project is also in phase-1 as I am writing this blog.</p><p><em>Originally published at </em><a href="https://www.amanchourasiya.com/blog/creating-twitter-bot-using-tweepy/"><em>https://www.amanchourasiya.com</em></a><em>.</em></p><p>Follow me for more blogs <a href="https://twitter.com/TechieAman">https://twitter.com/TechieAman</a></p><p>Personal blog https://www.amanchourasiya.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66565fe59cd9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/creating-twitter-bot-using-tweepy-66565fe59cd9">Creating Twitter Bot Using Tweepy</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Django App on Heroku From Github Repository]]></title>
            <link>https://medium.com/analytics-vidhya/deploying-django-app-on-heroku-from-github-repository-ae9b472613c7?source=rss-3104277cd79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9b472613c7</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[django]]></category>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Aman Chourasiya]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 12:40:30 GMT</pubDate>
            <atom:updated>2020-09-03T12:20:53.739Z</atom:updated>
            <content:encoded><![CDATA[<p>A simple and easy guide to automating your deployment on Heroku cloud</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j_kiOykCYA21EN0v.png" /></figure><p>Deploying your Django application has never been easier as deploying on Heroku cloud platform. Heroku provides a seamless experience for deploying a web application. Heroku does one thing and does it well i.e. deploying web application with fewer steps.</p><p>Let’s take a look how Heroku deploys our application, it provides us with an option to connect our GitHub repository and then it automatically triggers a build and deploys our application with every code check-in, this way it provides a minimal CI/CD pipeline for our development process.</p><p>These are some key steps that should be followed while deploying your app on <a href="https://www.heroku.com/">Heroku</a>.</p><h3>1. Creating a new app on Heroku</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kC1U1JXetI4o37yO.png" /></figure><p>The first step would be creating an account on Heroku and creating an app for your <a href="https://www.djangoproject.com/">Django</a> application.</p><p>After creating the app on Heroku dashboard, we can start configuring our app.</p><h3>2. Connecting the GitHub repository to Heroku.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qxavVSAbiOkq25zr.png" /></figure><p>Go to deploy tab and connect your GitHub repository with this app and Heroku will automatically detect our application by seeing some specific files.</p><h3>3. Generating files specific to Heroku deployment.</h3><p>In this above image, we can see that <a href="https://github.com/amanchourasiya/portfolio">my GitHub repository</a> is connected with this app. Heroku looks for two files in our repository root directory.</p><ol><li>requirements.txt — This is a list of all the requirements and external dependencies that our project will need before deployment.</li><li>Procfile — This is a special file that is specific to Heroku and it has its own commands that Heroku needs to determine what command to run to start our app.</li></ol><pre>requirements.txt<br>=============================<br>asgiref==3.2.10<br>dj-database-url==0.5.0<br>Django==3.0.8<br>gunicorn==20.0.4<br>psycopg2==2.8.5<br>psycopg2-binary==2.8.5<br>pytz==2020.1<br>sqlparse==0.3.1<br>whitenoise==5.1.0<br>boto3==1.14.16<br>django-heroku==0.3.1<br>Pillow==7.2.0</pre><pre>Procfile<br>=======================<br>release: python3 portfolio/manage.py migrate<br>web: python3 scripts/start_server.py prod</pre><p>First, Heroku will install all dependencies from requirements.txt and then will move on to Procfile.</p><p>In<a href="https://github.com/amanchourasiya/portfolio/blob/master/Procfile"> Procfile</a> the command under release will be run before every deployment since we need to migrate our database before every deployment therefore this command is necessary.</p><p>The command under web is the command that should start our application and will receive web traffic. Since Heroku deploys our application inside a container called dyno in Heroku&#39;s term, it becomes necessary to note that our data will not persist across deployments.</p><h3>4. Testing our app.</h3><p>Heroku provides a logs console that displays all the deployment-related logs, we should go through these logs to confirm that our app is successfully deployed and we can go to the URL provide by Heroku to test if our app is working is excepted.</p><p>For more clarification please go through my <a href="https://github.com/amanchourasiya/portfolio">GitHub repo</a> to check directory structure and other changes for Heroku deployment.</p><p>This website is currently deployed on Heroku cloud platform.</p><p><em>Originally published at </em><a href="https://www.amanchourasiya.com/blog/deploying-django-app-on-heroku-from-github-repository/"><em>https://www.amanchourasiya.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9b472613c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/deploying-django-app-on-heroku-from-github-repository-ae9b472613c7">Deploying Django App on Heroku From Github Repository</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Beginner Friendly Guide To Competitive Programming]]></title>
            <link>https://medium.com/@amanchourasiya/a-beginner-friendly-guide-to-competitive-programming-d604bdb52339?source=rss-3104277cd79b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d604bdb52339</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[competitive-programming]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Aman Chourasiya]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 08:56:37 GMT</pubDate>
            <atom:updated>2020-08-30T08:56:37.803Z</atom:updated>
            <content:encoded><![CDATA[<p>A must read guide for beginners in the world of competitive programming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6fn0k0mjHezWKxym.png" /></figure><p>Programming is mostly about fun and competitive programming takes this fun to another level where it become a challenge to compete with the best and solve complex problems and showcase our talent.</p><p>The hardest and most important step in any field is getting started i.e taking first steps and same goes true for competitive programming. For beginners it becomes really confusing to learn about so many different terms e.g. dynamic programming, backtracking, greedy approach and many more , specially when we know only about arrays, queues , stacks.</p><p>So in this article we will go through some key steps that will help in getting started with competitive programming.</p><ul><li>Where to start from?</li><li>Which language to choose?</li><li>Where to practice?</li><li>How to improve?</li><li>Tips and tricks for becoming better at competitive programming.</li></ul><h3>1. Where to start ??</h3><p>This is the most significant part of our challenging journey into the world of competitive programming. We can start by building a basic understanding of commonly used data structures and getting familiar with them in and out. Data structures play an important part in solving any problem that we might tackle in the world of competitive programming.</p><p>Here is just a brief list if commonly used data structures that every beginner should get hands on into.</p><ul><li>Arrays and linked list.</li><li>Stacks.</li><li>Queues ( Priority queues, Dequeues etc)</li><li>Trees ( Binary tree, Red-Black trees , AVL trees etc).</li><li>Graphs ( Sparse graphs, Hamiltonian Graphs etc)</li></ul><p>These data structures will give an edge while solving any complex and help us focusing on the main problem rather than focusing on how to deal with trivial components.</p><h3>2. What language to choose ??</h3><p>Best programming language is another topic of long debate and personal opinion, the language we code daily and have good command over it automatically becomes our favorite and best language for us.</p><p>For competitive programming we should have at least two languages.</p><p>Primary language that we are most comfortable in and takes less coding time and comes with modern API and framework, e.g.</p><ul><li>Python</li><li>Go</li><li>Rust</li></ul><p>Secondary language in case if any of our primary language is not present on the platform where we are competing, it may happen because these are modern languages and they give a competitive advantage in terns of coding time, so in this case we can switch back to our secondary language that most of the times will be available in all platforms e.g</p><ul><li>C</li><li>C++ ( Mostly preferred)</li><li>Java</li></ul><p>Again most people argue that machine native languages such as C, C++ are faster than interpreted languages such as Python, Rust and are good for competitive programming, yes that is true that C++ is faster than Python but its also proven then no implementation of O(n²) solution in C++ can be faster that O(n) solution implemented in Python.</p><p>Therefore its all about creating better solution in time and space complexity than to worry about language performance.</p><h3>3. Where to practice ??</h3><p>After getting through basic study of data structures and mastering your favorite programming language now its time for practice because practice is all it takes to reach a level that no one has reached before. If Cristiano Rolando and Usain Bolt needs practice before every game even after reaching at top level and who are we to shy away from practice.</p><p>Here are some good platforms where we can practice our problem solving skills and be prepared for competitive programming.</p><ul><li><a href="https://leetcode.com/">Leetcode</a></li><li><a href="https://www.codechef.com/">CodeChef</a></li><li><a href="https://www.hackerrank.com/">HackerRank</a></li><li><a href="https://www.hackerearth.com/">HackerEarth</a></li><li><a href="https://www.topcoder.com/">Topcoder</a></li><li><a href="https://codeforces.com/">CodeForces</a></li></ul><h3>4. How to improve ??</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*J4F01mB-UJiKGMO9.png" /></figure><p>Plateau curve is the significant thing to consider while measuring our progress , because most of our journey will be spent on one or other plateau this is because once we improve ourselves we need to make more efforts to reach another plateau, so sometime we feel that we are not making any progress but in realty we are just preparing for our jump for next plateau, so don’t be disappointed on this.</p><p>Regular practice makes us better daily and we should keep that in mind, never stop practicing otherwise we will become rusty, similar to the bodybuilders go to gym daily even after achieving their dream physique because it takes lot of efforts to be at that level , same way we should also practice regularly to keep our skills on top level.</p><p>Keep reading about new problems and new approaches to solve them and <a href="https://www.geeksforgeeks.org/">GeeksForGeeks </a>is place to go for.</p><h3>5. Tips to become better at competitive programming.</h3><ul><li>Join the discussion forums to know more about what you don not know.</li><li>Go through editorials of the challenges that you already solved, these can give you a better perspective to solving that problem.</li><li>Read others solutions that you solved and try to understand if their approach is better than yours.</li><li>Practice , practice and practice…</li></ul><p>Follow me for more blogs like this on</p><p><a href="https://www.amanchourasiya.com/blog">Aman Chourasiya</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d604bdb52339" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>