<?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 Tom Yotwongjai on Medium]]></title>
        <description><![CDATA[Stories by Tom Yotwongjai on Medium]]></description>
        <link>https://medium.com/@tomyotwongjai?source=rss-37ccc0061792------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wNfTGJ6MRrDGHlj_y56Fqg.jpeg</url>
            <title>Stories by Tom Yotwongjai on Medium</title>
            <link>https://medium.com/@tomyotwongjai?source=rss-37ccc0061792------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 17:44:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomyotwongjai/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 to use Omniauth gem with devise in Rails]]></title>
            <link>https://medium.com/firehose-project/how-to-use-omniauth-gem-with-devise-in-rails-eea8e3e5d346?source=rss-37ccc0061792------2</link>
            <guid isPermaLink="false">https://medium.com/p/eea8e3e5d346</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[firehose-project]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Tom Yotwongjai]]></dc:creator>
            <pubDate>Thu, 27 Oct 2016 19:19:44 GMT</pubDate>
            <atom:updated>2016-10-27T19:19:44.155Z</atom:updated>
            <content:encoded><![CDATA[<p>Ready? Let’s dig in.</p><p>OmniAuth is a library that provide flexible authentication for your app. You can read more here: <a href="https://github.com/omniauth/omniauth">https://github.com/omniauth/omniauth</a>. Sound great! For someone who struggle, I will spare you your precious time and show you how I did it after a whole day of struggling. This is the easiest way for me. Funny thing is, I will be using this blog to help me in the future!</p><p><strong>1. Install Gemfile and bundle install:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*lwUf0msYKIjL8kGiW3S7Vg.png" /></figure><p><strong>2. Install Devise </strong><a href="https://rubygems.org/gems/devise/versions/4.2.0"><strong>Gem</strong></a><strong>:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*JitoBxqr_euTNC-wWlpfuA.png" /></figure><p><strong>3. Add callbacks to routes:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*5cO_kfUoTYxiem4WYBQwug.png" /></figure><p><strong>4. Create controller:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*gUa5FzwLW6avxHXq-hSUxw.png" /></figure><p><strong>5. Change your model to support omniauth:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*szYFRCj2sK4wRjuVHA61kA.png" /></figure><p><strong>6. In devise.rb:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*me4Gk5fgWEK6ZkIoJP2I9A.png" /></figure><p><strong>7. Connect your app to Facebook:</strong></p><ul><li>Create <a href="https://developers.facebook.com/">Facebook Developer</a> account and login</li><li>Select add new App</li><li>Select basic setup on the bottom</li><li>Name your app with contact email. Category should be page apps(something like that)</li><li>Product setup/Facebook Login/scroll down to Valid OAuth redirect URIs</li><li>Your callbacks url should be something like: <a href="http://localhost:3030/">http://localhost:3030/</a>users/auth/facebook/callback</li><li>to make sure. use command rake routes and check your Facebook callback path:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*D7CH0hg9JdLC41wZQUSK-g.png" /></figure><ul><li>Get App ID and App Secret</li><li>Click setting/Add Platform/Website icon/Enter your callback url again.</li><li>Select any attribute you want to enable.</li><li>Save and confirm.</li></ul><p><strong>8. Make sure you hide your App ID and Secret-key by using Fi</strong><a href="https://github.com/laserlemon/figaro"><strong>garo</strong></a><strong> gem before commit.</strong></p><p><strong>9. Create a view page and link:</strong></p><p>&lt;%= link_to “Facebook”, user_facebook_omniauth_authorize_path %&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KmsJVkWi3ioHDEeH7trehA.png" /></figure><p><strong>Here’s a step on how it works:</strong></p><ol><li>User click on “Facebook” link</li><li>Rails app redirect him or her to Facebook page</li><li>User sign in on Facebook and grant access to your app</li><li>Facebook redirect user back to your rails app</li><li>Rails app got at least two things: provider and uid</li><li>User can sign in using their Facebook account.</li></ol><p><strong>Conclusion:</strong></p><p>Simple but can be confusing. Each authentication may be differ but I use the same step for <a href="https://developer.github.com/">GitHub</a> and <a href="https://github.com/zquestz/omniauth-google-oauth2">Google +</a>. Hope this will help someone from wasting so much time figuring this out, because I sure did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*mEtv7CP3nbpS9DtTZJ6PrQ.jpeg" /></figure><p><strong>FYI:</strong> Google plus is a little different. Message me if anyone have any issues.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eea8e3e5d346" width="1" height="1" alt=""><hr><p><a href="https://medium.com/firehose-project/how-to-use-omniauth-gem-with-devise-in-rails-eea8e3e5d346">How to use Omniauth gem with devise in Rails</a> was originally published in <a href="https://medium.com/firehose-project">Real World Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I understand things]]></title>
            <link>https://medium.com/firehose-project/how-i-understand-things-fa524aab226e?source=rss-37ccc0061792------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa524aab226e</guid>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[strategy]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[understanding]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Tom Yotwongjai]]></dc:creator>
            <pubDate>Fri, 30 Sep 2016 17:12:00 GMT</pubDate>
            <atom:updated>2016-09-30T17:37:49.336Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*eg4pRb-pL3I7mtiwE3J8fw.png" /></figure><p>In order for me to understand a complex concept, I have to compare that concept to what I already know. As far as programming language goes, I’m a foreigner with a dictionaries. In order for me to get it, I need figure some ways that will click in my brain.</p><p>I found an interesting video from Tony Robbins explain strategy for learning. He stated that learning is creating a relationship between known and unknown. We do it all the time. If I ask you in your own word describe life. How would you describe it? For me. Life is like a movie. I can make it as sad, or as happy as I want.</p><p>Take understanding algorithm for example. When I heard that word, I tried to dig into my brain to see if I know anything about algorithm. What I got was, “It’s a beautiful word”. No shit it’s a beautiful word. Still blah bloop to me.</p><h4>Understanding algorithm for me is comparing it to cooking.</h4><p>I first need a recipe, then go to grocery store, prep, and cook. So, algorithm is a step use to accomplish task. Got it! Now the hard part is implement it in a computer science way.</p><p>I’m not stupid, I just need metaphors and similes to understand things. Leave a comment and share ways to learn better. Below is a video of Tony Robbins explain learning.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6bQTCKZjFrY%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6bQTCKZjFrY&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6bQTCKZjFrY%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/dce5ad6a5dc45461f0eed9607879588d/href">https://medium.com/media/dce5ad6a5dc45461f0eed9607879588d/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa524aab226e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/firehose-project/how-i-understand-things-fa524aab226e">How I understand things</a> was originally published in <a href="https://medium.com/firehose-project">Real World Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I quit negative BS (Belief System) and took a massive action.]]></title>
            <link>https://medium.com/firehose-project/how-i-quit-negative-bs-belief-system-and-take-a-massive-action-a-calculated-risk-to-the-world-of-704c95d5903f?source=rss-37ccc0061792------2</link>
            <guid isPermaLink="false">https://medium.com/p/704c95d5903f</guid>
            <category><![CDATA[self-help]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Tom Yotwongjai]]></dc:creator>
            <pubDate>Wed, 31 Aug 2016 08:22:58 GMT</pubDate>
            <atom:updated>2016-09-16T15:55:05.334Z</atom:updated>
            <content:encoded><![CDATA[<h4>My calculated risk to enter the world of coding.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vy9Ftczpmvc6jqCLZpgeGQ.png" /></figure><p>I remember envisioning myself as a web developer. I was in Chicago at the time, with no money saved up and two months until my lease would be over. It was January, and it was too cold to go out and do anything. So I started researching about a career in tech. Fascinated by the world of apps and websites, I bought a couple courses on android development and dove in with no sense of direction.</p><p><strong>This did not work out.</strong></p><p>I procrastinated and become stuck in, as Tony Robbin said it, “the mañana effect.” Soon enough, I gave up. Moved back to Hawaii. And settled for a mediocre job.</p><p><strong>But Life has a way of slapping you in the face when it matters most.</strong></p><p>I was about to settle into a bussing job and landscaping gig. And I dreaded the thought of going to work.</p><p><strong>One day, when I was on my way to work, I just thought to myself, “Is this it?”</strong></p><p>I pulled over. And I decided right then and there to quit my bussing job. Next, I went to the nearest Starbucks, pulled out my Android phone, and began researching anything that would give me direction.</p><p>I liked the idea of building apps and websites. So I started to research online bootcamps. I found a ton of schools, but Firehose really caught my attention. The name reminded me of when I talked to my brother about becoming a firefighter. I looked at the curriculum, read the wonderful reviews and many positive stories from past students, and watched some videos about a day in the life of a web developer.</p><p><strong>This was the start.</strong></p><p>Shortly after, I began to go down this exciting new path:</p><p><strong>1. </strong>I took their 2 week course on HTML and Ruby, which took me 4 weeks to accomplish.</p><p><strong>2. </strong>I cancelled all unnecessary expenses. I worked a full two weeks at my landscaping job to make enough for a deposit and extras.</p><p><strong>3.</strong> I started the first week without giving up.</p><p><strong>4.</strong> I built this: <a href="http://tiktok-test-app.herokuapp.com/">http://tiktok-test-app.herokuapp.com/</a>(simple, but I love it!)</p><p>I can tell that this is the beginning to something very fascinating, and I’m so excited.</p><p><strong>My emotions are driving my motion. And the direction is forward.</strong></p><p>Here’s an interesting pattern that I’ve noticed since I started:</p><p><strong>Interest &gt;&gt; Hobby &gt;&gt; Passion &gt;&gt; Vision</strong></p><p>You can’t just skip to passion. That is, unless you were fed that passion since you were a kid, kind of like Tiger Woods! Many people gain <em>interest</em>, then interest turns to your activity…your <em>hobby</em>. Once you practice your hobby with extra intensity and drive, it becomes <em>passion</em>. The next step is that passion becoming <em>vision</em>.</p><p><strong>Here’s the point of this: you can never settle for less.</strong></p><p>Stop looking at your limitation and start looking at your assets. As soon as I stopped letting my self-doubt get in the way, I was able to take a massive action toward my ultimate goal. I’m now beginning to understand what it means to start with the end in mind.</p><p>I want to inspire and contribute to the ever-changing world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=704c95d5903f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/firehose-project/how-i-quit-negative-bs-belief-system-and-take-a-massive-action-a-calculated-risk-to-the-world-of-704c95d5903f">How I quit negative BS (Belief System) and took a massive action.</a> was originally published in <a href="https://medium.com/firehose-project">Real World Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>