<?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 Akash Gupta on Medium]]></title>
        <description><![CDATA[Stories by Akash Gupta on Medium]]></description>
        <link>https://medium.com/@akash_gupta?source=rss-476298b37161------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MmBcVnyXjbyZbj7QAMGDEw.jpeg</url>
            <title>Stories by Akash Gupta on Medium</title>
            <link>https://medium.com/@akash_gupta?source=rss-476298b37161------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 19:11:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@akash_gupta/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[Thoughts on infinity]]></title>
            <link>https://medium.com/@akash_gupta/thoughts-on-infinity-8e7cf3f667cc?source=rss-476298b37161------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e7cf3f667cc</guid>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[infinity]]></category>
            <dc:creator><![CDATA[Akash Gupta]]></dc:creator>
            <pubDate>Thu, 25 Apr 2024 17:34:40 GMT</pubDate>
            <atom:updated>2024-04-25T17:34:40.793Z</atom:updated>
            <content:encoded><![CDATA[<p>Thoughts on infinity</p><p>Humans have long contemplated the vastness of infinity. It’s a concept ingrained in our minds.</p><p>Lately, I found myself delving into its depths. What does infinity entail? What’s its significance or purpose? These questions lingered unanswered. Gradually, my thoughts veered towards the philosophical. What’s the point of pondering something that is unquantifiable? Yet, infinity manifests physically in the boundlessness of the universe.</p><p>The only thing we can do with infinity is learn humility from it because it has no limit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e7cf3f667cc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native: How I solved my lagging drawer problem]]></title>
            <link>https://medium.com/classpro-tech-blog/react-native-how-settimout-saved-my-life-803346bf18a5?source=rss-476298b37161------2</link>
            <guid isPermaLink="false">https://medium.com/p/803346bf18a5</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[navigation-drawer]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Akash Gupta]]></dc:creator>
            <pubDate>Mon, 11 Sep 2017 19:28:28 GMT</pubDate>
            <atom:updated>2022-03-17T09:39:42.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*7lwP90uD_PsbkbLek7ffyQ.jpeg" /><figcaption>React Native</figcaption></figure><p>I am developing apps on React Native. I released my first version of an app in pure react. I was very happy. Everything was perfect until I introduced redux in my app.</p><blockquote>I have uploaded a GIF below. See those slow ripple effect and lag in closing of drawer.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*rQTBJtKV-6s6-vpbFTg9vg.gif" /><figcaption>Lagging Drawer</figcaption></figure><p><strong>Note that this is not</strong> <strong>in development mode</strong>. These ripples are even slower on some android phones.</p><p>I tried changing my navigator. I tried <a href="https://github.com/react-community/react-navigation">react-navigation</a>, <a href="https://github.com/wix/react-native-navigation">wix navigation</a>, etc. All my navigators were showing a lag effect. Experiencing the same janky on press effect on touching drawer icons on every navigator I tried. Finally, I chose react-navigation and stuck with it.</p><p>I noticed certain things. At first, I thought that a lot of processing was going on componentDidMount, for example, <em>API requests, dispatches, setState, etc</em>. Then I removed all these things and used static data to render my list. Then also the lag was there for eg, <em>very slow ripple on drawer icons after pressing, janky drawer closing, etc</em>.</p><p>For a few months, I worked on making a drawer trying to make it as smooth as possible. I read about many things like <a href="https://github.com/redux-saga/redux-saga"><em>redux-saga</em></a><em>, </em><a href="https://mobx.js.org/"><em>MobX</em></a>, <a href="https://facebook.github.io/relay/"><em>relay</em></a><em>, etc</em>. I must say Relay is very good. I started learning relay. I had to write my APIs in <a href="http://graphql.org/">GQL</a> and finally made a sample app in Relay. Initially, it had the server data in just <a href="https://facebook.github.io/react-native/docs/text.html">Text</a> component. It was very fast. I decided to make my app in Relay. As soon as I made list using <a href="https://docs.nativebase.io/Components.html#list-def-headref">ListItem</a> of <a href="https://nativebase.io/">native-base</a> my app started to behave the same way as it was before. Boom… everything was shattered.</p><h3>Is Native base the culprit? No.</h3><p>I thought it was NativeBase, because of which the rendering of their component was a very expensive task. I thought that ListItem is the culprit. Also, there were issues opened regarding this, like <a href="https://github.com/GeekyAnts/NativeBase/issues/759">this</a> one. I removed NativeBase, checked f8 GitHub repo whether they are using it or not. They weren’t using it. So, I made my own list with <a href="https://facebook.github.io/react-native/docs/view.html">View</a> of React Native. The lagging and janky behavior of the drawer was reduced by some amount. But still, it wasn’t at par with the performance of native apps. What does it mean? I shouldn’t have anything on my screen? Ridiculous!!!</p><p>What’s the point in making my own components if there is <strong>still </strong>some performance issue. So, I chose to use NativeBase in my app.</p><h3>FlatList and its optimization</h3><p>I heard that <a href="https://facebook.github.io/react-native/docs/flatlist.html">FlatList</a> renders list in the same style as android native apps would do. I decided to use that to make my list. Even after using FlatList to generate my list, the performance was not satisfactory. Then I found <a href="http://matthewsessions.com/2017/05/15/optimizing-list-render-performance.html">this</a> article. From this article, I came to know about the <a href="https://facebook.github.io/react-native/docs/flatlist.html#initialnumtorender"><em>initialNumToRender</em></a><em> </em>prop. When I gave <em>initialNumToRender={4} </em>the drawer closing was improved. And after giving <em>initialNumToRender={0} </em>it improved by 50%.</p><p>For more performance optimization let’s move to the next part.</p><h3>Deferred Rendering</h3><p>I deduced that in order to render it smoothly there should be minimum load on the page. There should be a very light component. I thought is there any way by which, I can process rendering of all the components sequentially from light to heavy ones after the drawer closes? Yes, I can do that by putting my rendering of components in the following way by using setTimeout:</p><pre>setTimeout(() =&gt; {<br>// do rendering here<br>}, 0);</pre><p>The scheduler will invoke this only after the current code is complete i.e. in this case<em> — the closing of the drawer</em>. I call this as <strong>deferred rendering</strong>.</p><p>You can read more about setTimeout from <a href="https://javascript.info/settimeout-setinterval">here</a>.</p><h3>The code for flawless side drawer working and deferred rendering is as follows:</h3><p><em>Consider, I have a header, a list (of about 25 items or more), and footer components.</em></p><pre>// import statements...</pre><pre>class MyApp extends Component {<br>  constructor(props) {<br>    super(props);<br>    this.state = {<br>      renderHeader: false,<br>      renderList: false,<br>      renderFooter: false<br>    }<br>  }<br> .<br> .<br> .</pre><pre>componentDidMount() {<br>  setTimeout(() =&gt; {this.setState({renderHeader: true})}, 0);<br>  setTimeout(() =&gt; {this.setState({renderList: true})}, 0);<br>  setTimeout(() =&gt; {this.setState({renderFooter: true})}, 0);<br>}</pre><pre>render() {<br>  const {<br>    renderHeader,<br>    renderList,<br>    renderFooter<br>  } = this.state;</pre><pre>  const = {<br>    data,<br>    meta<br>  } = this.props;</pre><pre> return(<br>  &lt;Container&gt;<br>    {<br>      renderHeader &amp;&amp; <br>      &lt;Header&gt;<br>        // left side open drawer icon and a title in center<br>      &lt;/Header&gt;<br>    }</pre><pre>    &lt;Content&gt;<br>      {isFetching &amp;&amp; data.length === 0 &amp;&amp; &lt;CenterSpinner /&gt;}<br>      {!isFetching &amp;&amp; data.length === 0 &amp;&amp; &lt;EmptyPlaceholder /&gt;}  <br>      {<br>       renderHeader &amp;&amp; renderList &amp;&amp;<br>       &lt;FlatList     <br>        data={data}  <br>        renderItem={this._renderItem}<br>        keyExtractor={(item) =&gt; item.id}    <br>        ListFooterComponent={() =&gt;      <br>         !isFetching &amp;&amp; !_.isNull(meta.next_page) &amp;&amp;  <br>          &lt;Spinnercolor=&#39;#3F51B5&#39;/&gt;}<br>        refreshing={isRefreshing}<br>        onRefresh={()=&gt; this._onRefresh()}    <br>        onEndReached={()=&gt; this._onEndReached()}           <br>        onEndReachedThreshold={0.5}        <br>       /&gt;<br>      } <br>    &lt;/Content&gt;   <br>     {<br>       renderHeader &amp;&amp; renderList &amp;&amp; renderFooter &amp;&amp;<br>       &lt;Footer&gt;<br>        // footer code here...<br>       &lt;/Footer&gt;<br>     } <br>   &lt;/Container&gt;<br>  );<br> }<br>}<br>const mapStateToProps = state =&gt; {/* your code */}<br>export default connect(mapStateToProps)(MyApp);</pre><p>The above code will <strong>run smoothly</strong> with the side drawer. It will be rendered in sequence as the conditions on component rendering are dependent on previous components’ rendering.</p><p>The above will be executed like this:</p><ol><li>Drawer closing starts.</li><li>Setting up state.</li><li><strong><em>componentWillMount()</em></strong> // no code here</li><li><strong><em>render()</em></strong> // nothing will render as condition is not true for rendering</li><li><strong><em>componentDidMount()</em></strong> // scheduling of making render variables true after current execution of code is finished i.e. closing of the drawer</li><li>Drawer closes smoothly <em>(or somewhere in between these points)</em>.</li><li>renderHeader, renderList, renderFooter is set to true, sequentially in the order mentioned.</li></ol><p><strong>Don’t believe me? See for yourself.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/253/1*PWxEaPV46CXcExh3wb01cA.gif" /><figcaption>Faster drawer</figcaption></figure><p>I chose to render in this sequence because <strong>(i)</strong> header is lighter component then list component, <strong>(ii)</strong> rendering of header first, which at the top, gives a good UX and <strong>(iii)</strong> if I had rendered list first or footer first then it would be at the top and when header component’s renderHeader variable would be set to <strong>true </strong>then it would just appear and push already existing component down, thereby making a place for itself. This would look bad.</p><blockquote>As far as drawer closing process is going on, there will be nothing to render on the page. And as soon as the drawer is finished closing smoothly<em>(again because nothing was there to render on the page with data in their prop which is passed by redux) </em>the setTimeout code will run, thereby rendering each component in sequence because of <a href="https://facebook.github.io/react/docs/conditional-rendering.html#inline-if-with-logical--operator">conditional rendering</a>.</blockquote><p>I have seen apps like f8 and some other react native apps not having a side drawer, I don’t know why.</p><p>This may not be the perfect or ideal solution or some better solution may come in the future, but this solves my problem of lagging after touching drawer items.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=803346bf18a5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/classpro-tech-blog/react-native-how-settimout-saved-my-life-803346bf18a5">React Native: How I solved my lagging drawer problem</a> was originally published in <a href="https://medium.com/classpro-tech-blog">Engineering at Classpro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Rails layouts: Convention over Configuration]]></title>
            <link>https://medium.com/classpro-tech-blog/rails-layouts-convention-over-configuration-98cabcaa08e?source=rss-476298b37161------2</link>
            <guid isPermaLink="false">https://medium.com/p/98cabcaa08e</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Akash Gupta]]></dc:creator>
            <pubDate>Sat, 24 Jun 2017 10:34:08 GMT</pubDate>
            <atom:updated>2017-07-17T11:21:11.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nDHvDAp9q8pbjntf-bTmKQ.jpeg" /></figure><p>Today, i was just playing around with layouts.</p><p>I have two layouts as follows:</p><ol><li>application.html</li><li>person.html</li></ol><p>In my person controller, i have the following code:</p><pre><strong>class <em>PersonController </em>&lt; StudentApplicationController</strong><br>  <em>layout </em>&#39;person&#39;<br>  <em>before_filter </em>:authenticate_person!</pre><pre><strong>  def </strong>index<br>    ...<br>  <strong>end</strong></pre><pre><strong>end</strong></pre><p>I commented the layout line, so my code becomes:</p><pre><strong>class <em>PersonController </em>&lt; StudentApplicationController</strong><br>  # <em>layout </em>proc &#39;person&#39;<br>  <em>before_filter </em>:authenticate_person!<br><strong>end</strong></pre><p>And refreshed my current page i.e. <a href="http://localhost:3000/people/100/events">http://localhost:3000/people/100/events</a></p><p>I expected to see my view without my layout i.e. <em>person.html. </em>To my shock, the <em>person.html</em> layout was still applied and my view was perfect. I searched my entire project to find the code which was applying this <em>person.html</em> layout. But i couldn’t find it.</p><p>My <em>routes.rb </em>was as follows:</p><pre>resources :person, :path <em>=&gt; </em>&#39;/people&#39; <strong>do<br>  </strong>resources :student_documents, only: [:index]<br>  resources :student_messages, only: [:index]<br>  member <strong>do<br>    </strong><em>get </em>:admissions<br>    <em>get </em>:payments<br>    <em>get </em>:profile<br>    <em>get </em>:attendance<br>    <em>get </em>:events<br>  <strong>end<br>end</strong></pre><p>Then i opened my <em>StudentMessages </em>controller and did the same thing:</p><pre><strong>class <em>StudentMessagesController </em>&lt; ApplicationController</strong><br>  # <em>layout </em>proc &#39;person&#39;<br>  <em>before_filter </em>:authenticate_person!<br><br>  <strong>def </strong>index<br>    ...<br>  <strong>end</strong></pre><pre><strong>end</strong></pre><p>And once again i refreshed my page related to StudentMessage i.e. <a href="http://localhost:3000/people/100/student_messages">http://localhost:3000/people/100/student_messages</a>. But this time the <em>application.html</em> layout was applied.</p><p>Then i decided to test, what i was thinking was right or not.</p><p>I renamed my layout from <em>person.html </em>to <em>student_messages.html</em>. And then i refreshed the same page i.e. <a href="http://localhost:3000/people/100/student_messages">http://localhost:3000/people/100/student_messages</a>. And this time the renamed layout <em>student_messages.html </em>was applied.</p><p><strong>Conclusion:</strong></p><p>Rails first looks for the filename same as the parent controller and then the controller itself. For example, if you have your controller declaration as follows:</p><pre><strong>class <em>BranchesController </em>&lt; ApplicationController</strong><br><strong>end</strong></pre><blockquote>For layout file, rails will first look for <em>application.html </em>and then for <em>branches.html </em>unless explicitly specified as follows:</blockquote><pre><strong>class <em>BranchesController </em>&lt; ApplicationController</strong><br>  <em>layout </em>&#39;my_custom_layout&#39;<br><strong>end</strong></pre><p>So my <em>person.html </em>was applied because of my person controller’s name.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98cabcaa08e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/classpro-tech-blog/rails-layouts-convention-over-configuration-98cabcaa08e">Rails layouts: Convention over Configuration</a> was originally published in <a href="https://medium.com/classpro-tech-blog">Engineering at Classpro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrate Google Drive with Rails]]></title>
            <link>https://medium.com/classpro-tech-blog/integrate-google-drive-with-rails-c9514191249e?source=rss-476298b37161------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9514191249e</guid>
            <category><![CDATA[google-drive]]></category>
            <category><![CDATA[refresh-token]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[Akash Gupta]]></dc:creator>
            <pubDate>Fri, 10 Feb 2017 15:14:23 GMT</pubDate>
            <atom:updated>2017-10-21T14:39:18.034Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*PIIrO2Ocd_QG7DNlY0TXTg.jpeg" /></figure><h4><em>Do you want each user to connect their Google Drive account to Rails app? So that they can do Google Drive stuffs?</em></h4><h4><strong>Use </strong><a href="http://railscasts.com/episodes/241-simple-omniauth?autoplay=true"><strong>OAuth</strong></a><strong> to connect the user</strong></h4><p><em>Set your origin and redirect URI in your Google Developer Console. <br>Use </em>gem “<a href="https://github.com/zquestz/omniauth-google-oauth2">omniauth-google-oauth2</a>”</p><pre>= link_to<em> </em>&quot;Connect to Google Drive&quot;, <strong>&quot;</strong>https://www.yourwebsite.com/auth/google_oauth2/callback</pre><p>In routes.rb:</p><pre>get &#39;/auth/google_oauth2/callback&#39;,<br>to:&#39;omniauth_authentications#google_oauth2&#39;</pre><p>Our <strong>omniauth_authentications_controller.rb</strong>:</p><pre><strong>def </strong>google_oauth2<br>  auth = request.env[&#39;omniauth.auth&#39;]  <br>  omniauth_params = request.env[&#39;omniauth.params&#39;]</pre><pre>  <em># fetch customs params and find_or_create user to login...<br></em> <br>  <em>redirect_to your_path</em><br><strong>end</strong></pre><p>request.env[‘omniauth.auth’] will contain a hash as follows</p><pre>{<br>    :provider =&gt; &quot;google_oauth2&quot;,<br>    :uid =&gt; &quot;123456789&quot;,<br>    :info =&gt; {<br>        :name =&gt; &quot;John Doe&quot;,<br>        :email =&gt; &quot;john@company_name.com&quot;,<br>        :first_name =&gt; &quot;John&quot;,<br>        :last_name =&gt; &quot;Doe&quot;,<br>        :image =&gt; &quot;https://lh3.googleusercontent.com/url/photo.jpg&quot;<br>    },<br>    :credentials =&gt; {<br>        :token =&gt; &quot;token&quot;,<br>        :refresh_token =&gt; &quot;another_token&quot;,<br>        :expires_at =&gt; 1354920555,<br>        :expires =&gt; true<br>    },<br>    .<br>    .<br>    .</pre><pre>}</pre><h3><strong>How will you know who initiated the oauth request?</strong></h3><p>Suppose, for example, you want to log in with oauth and there are different kinds of users — <em>eg: Teacher, Student, etc,</em> you ought to know their details. So that you can find record of the user in appropriate table in your database. This can be achieved by passing params as follows.</p><p>request.env[‘omniauth.params’] will contains params which are send after the URL, for eg:</p><pre>= link_to<em> </em>&quot;Connect to Google Drive&quot;, &quot;https://www.yourwebsite.com.in/auth/google_oauth2?user_id=1&quot;</pre><p>For the above URL,</p><pre>puts request.env[‘omniauth.params’][‘user_id’]<br>=&gt; 1</pre><p>To access Google Drive easily, use gem ‘<a href="https://github.com/gimite/google-drive-ruby">google_drive</a>’.</p><p>With this gem we can log in as follows:</p><pre>google_drive_session = GoogleDrive.login_with_oauth(request.env[&#39;omniauth.auth&#39;].credentials.token)</pre><pre>puts google_drive_session<br>=&gt; #&lt;GoogleDrive::Session:0x007f8d9a80a960&gt;</pre><p>Here, we get a Google Drive session object in <em>google_drive_session</em> variable. Now you can upload files, create folder, etc. see the <a href="https://github.com/gimite/google-drive-ruby">documentation</a> page of the gem.</p><h3>Does your token gets expired? Want to request a new token?</h3><p>If you want a user to keep using Google Drive service, its better to save it in database. For requesting a new token, we should have <em>‘refresh_token’.</em></p><p>Token comes with an expiration time (<em>request.env[‘omniauth.auth’].credentials.expires_at)</em></p><p>Check if your token has been expired or not:</p><pre>Time.at(expires_at.to_i) &lt; Time.now</pre><p>Get the new token using current refresh token as follows:</p><pre>data = {<br>    client_id:  <em>&#39;client_id&#39;</em>,<br>    client_secret: <em>&#39;client_secret&#39;</em>,<br>    refresh_token: <em>&#39;refresh_token&#39;</em>,<br>    grant_type: &#39;refresh_token&#39;<br>}</pre><pre>post_form = Net::HTTP.post_form(URI.parse(&#39;https://accounts.google.com/o/oauth2/token&#39;), data)</pre><pre>puts post_form<br>=&gt; <em>#&lt;Net::HTTPOK 200 OK readbody=true&gt;</em></pre><pre>puts JSON.parse(post_form.body)<br>=&gt; <em>{&quot;access_token&quot;=&gt;&quot;ya29.Gl3uAw9iNfMXk9D2-wAB9Lrlwun-CQprCyqZgPUC_CY1dEHwqVbx8VBGLc4Tdlhk5KAL-9rvrEzGkoFJPMxZfo3GrdqOO52GHxIrPWl5qYCkI0VSAbda4psBST6PdsA&quot;, &quot;expires_in&quot;=&gt;3600,&quot;token_type&quot;=&gt;&quot;Bearer&quot;}</em></pre><p>As you can see above, we get our <strong>new access token</strong> which expires in 3600 seconds.</p><p><strong>Note:</strong> Initially in <em>request.env[‘omniauth.auth’].credentials.expires_at </em>we get the time at which token <em>‘expires at’</em> and while generating new access token we get <em>‘expires_in’.</em></p><h3>Not getting refresh token while connecting to Google Drive?</h3><p>While getting new access token, its mandatory that we have refresh token. And to get refresh token on each request, we can pass <strong>prompt</strong> param in the URL.</p><pre>= link_to<em> </em>&quot;Connect to Google Drive&quot;,<em> </em>&quot;https://www.yourwebsite.com.in/auth/google_oauth2?prompt=consent&quot;</pre><p>This will prompt for connection with Google Drive and provide you with a <em>refresh token </em><strong>each time</strong><em>.</em></p><p>In fact, you can pass redirect URI, scope and custom params in the URL.</p><p>For eg:</p><pre>= link_to<em> </em>&quot;Connect to Google Drive&quot;,<em> </em>&quot;https://www.yourwebsite.com.in/auth/google_oauth2?prompt=consent&amp;user_id=<strong>#{current_user.id}</strong>&amp;scope=userinfo.email,userinfo.profile,https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/drive&quot;</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9514191249e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/classpro-tech-blog/integrate-google-drive-with-rails-c9514191249e">Integrate Google Drive with Rails</a> was originally published in <a href="https://medium.com/classpro-tech-blog">Engineering at Classpro</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>