<?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 Thomas Wolfe on Medium]]></title>
        <description><![CDATA[Stories by Thomas Wolfe on Medium]]></description>
        <link>https://medium.com/@tewolfe2?source=rss-fb4352d78f0a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yWhk0klQyEi5XOpmm_fvGQ@2x.jpeg</url>
            <title>Stories by Thomas Wolfe on Medium</title>
            <link>https://medium.com/@tewolfe2?source=rss-fb4352d78f0a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 08:19:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tewolfe2/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[Using AWS Lambda and Cloudfront to retain SEO juice (using URL redirects)]]></title>
            <link>https://medium.com/@tewolfe2/using-aws-lambda-and-cloudfront-to-retain-seo-juice-using-url-redirects-86ca22dda1b3?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/86ca22dda1b3</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Mon, 02 Oct 2017 02:16:28 GMT</pubDate>
            <atom:updated>2020-08-05T01:07:28.472Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*g8vJnBLptldp148ICupIpw.jpeg" /></figure><p>If you change blog providers or are transferring help doc services, URLs to resources are likely to change. Redirecting is not only important so that you can retain SEO juice, you also want to ensure your customers can find what they’re looking for (no one likes getting a 404 page).</p><p>In this guide, I’ll first take you through creating an AWS Lambda function for URL redirection and then walk you through configuring Cloudflare to utilize this function.</p><p>First, a little background though…</p><h4>Why AWS Lambda?</h4><p>While Cloudfront allows you to set up some basic redirection, there’s no way to modify the URL path (i.e. test.com/blog/my-awesome-post needs to change to blog.test.com/my-awesome-post) . With Cloudfront, you would be able to redirect test.com/blog to blog.test.com/blog but you wouldn’t be able to strip the extraneous /blog. We need to bring in AWS Lambda so that we can write a serverless function that does this URL manipulation for us.</p><h4>What is AWS Lambda?</h4><blockquote>AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume — there is no charge when your code is not running. With Lambda, you can run code for virtually any type of application or backend service — all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. -AWS</blockquote><p>With AWS Lambda, we can write a function that will handle all of our URL redirects and have that function be triggered by the <a href="http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-cloudfront-trigger-events.html"><strong>Viewer Request</strong></a><strong> </strong>event<strong> </strong>in Cloudfront.</p><p><strong>Let’s get started!</strong></p><h4>URL Redirection Lambda function</h4><p>The first step we’re going to take is writing the actual function that will handle the URL redirection. Here’s how:</p><ol><li><a href="https://console.aws.amazon.com/lambda/home">Start here</a></li><li>Click ‘Create function’</li><li>Click ‘Author from scratch’</li><li>On the next page you’ll be asked to configure triggers, you can skip this for now and press ‘Next’</li><li>Name your function and choose a runtime (I’ll be using Node.js 6.10 in this guide)</li></ol><p>6. Code your function (below is some code that should get you 99% there)</p><pre>&#39;use strict&#39;;</pre><pre>exports.handler = (event, context, callback) =&gt; {<br>  /*<br>   * Generate HTTP redirect response with 301 status code and Location header.<br>   */<br>   <br>   const request = event.Records[0].cf.request;<br>   <br>   // get the original URL path<br>   const path = request.uri<br>   const baseURI = &#39;<a href="https://new.test.com&/#39;">https://new.test.com&#39;</a></pre><pre>// construct the response<br>   const response = {<br>      status: &#39;301&#39;,<br>      statusDescription: &#39;Found&#39;,<br>      headers: {<br>          location: [{<br>              key: &#39;Location&#39;,<br>              value: baseURI,<br>          }],<br>      },<br>  };</pre><pre>// Configure the URL redirects<br>  switch(path) {<br>    case &#39;/path/to/old/resource&#39;:<br>      response.headers.location[0].value = baseURI + &#39;/path/to/new/resource&#39;;<br>    break;<br>    case &#39;/rinse/and/repeat&#39;:<br>      response.headers.location[0].value = baseURI + &#39;/path/to/new/resource&#39;;<br>    break;<br>    default:<br>      response.headers.location[0].value = baseURI;<br>   }<br>  <br>  callback(null, response);<br>};</pre><p>7. For <strong>Role, </strong>choose ‘Create a new role from template(s)’ , name the role, and add ‘Basic Edge Lambda permission’ from the <strong>Policy templates</strong></p><p>8. <strong>Important: </strong>After creating this role, <a href="https://console.aws.amazon.com/iam/home">go here</a>, go to Roles, click the role you just created, go to Trust relationships, and <strong>Edit trust relationship.</strong></p><p>9. Make sure your Trust document looks like the following and Save:</p><pre>{<br>  &quot;Version&quot;: &quot;2012-10-17&quot;,<br>  &quot;Statement&quot;: [<br>    {<br>      &quot;Effect&quot;: &quot;Allow&quot;,<br>      &quot;Principal&quot;: {<br>        &quot;Service&quot;: [<br>          &quot;edgelambda.amazonaws.com&quot;,<br>          &quot;lambda.amazonaws.com&quot;<br>        ]<br>      },<br>      &quot;Action&quot;: &quot;sts:AssumeRole&quot;<br>    }<br>  ]<br>}</pre><p>11. Go back to the Lambda function you were creating</p><p>10.Click <strong>Next</strong> and copy the <strong>ARN </strong>number for this function (in upper right hand corner)</p><h4>Cloudfront configuration</h4><p>Now that we have our Lambda function set up, we need to make sure it is triggered in Cloudfront. To do this, you need to either create a new behavior or edit an existing one.</p><p>Once, you have the behavior, you’ll want to create a Lambda Function Association for it with an <strong>Event Type</strong> of Viewer Request. The ARN should be the ARN you copied in the previous sections <strong>step 9</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLJ9nZ3eBn5zepVraMbbTQ.png" /></figure><p>Once you hit save and the changes deploy (~20 min), your Cloudfront distribution will now properly redirect customers to your resources!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fxirnaz%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fxirnaz&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href">https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86ca22dda1b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Developers Guide to Conversion (Link Click) Tracking with Google Tag Manger, Google Adwords, and…]]></title>
            <link>https://medium.com/@tewolfe2/a-developers-guide-to-conversion-link-click-tracking-with-google-tag-manger-google-adwords-and-5db9d7fa8862?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5db9d7fa8862</guid>
            <category><![CDATA[google-analytics]]></category>
            <category><![CDATA[advertising]]></category>
            <category><![CDATA[google-tag-manager]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[marketing]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Sun, 23 Apr 2017 20:42:35 GMT</pubDate>
            <atom:updated>2020-08-05T13:49:40.843Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Developers Guide to Conversion (Link Click) Tracking with Google Tag Manger, Google Adwords, and Facebook</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*zxqTE-ozjGHuB3n1CHX2ig.jpeg" /></figure><p>Say you’re marketing department comes to and they want to run an ad campaign with Google AdWords and they want to be able to track conversions (how many people visited the site, clicked on a button, submitted a form, etc.).</p><p>You could just use Google Adwords to do this, but if you ever want to add additional conversion tracking (say they also want to run a Facebook [FB] ad campaign and track conversions for that) you would need to add script tags for FB to each page as well. You would then, also need to add special HTML code to track button clicks if you were just using AdWords and FB.</p><p>Instead of adding script tags for multiple tracking services, with Google Tag Manger (GTM) you can consolidate all of your tracking services in one central location and then only add script tags for GTM. GTM also has <a href="https://support.google.com/tagmanager/answer/6106716?hl=en">automatic event tracking</a> (link click detection, form submission, etc.) so you won’t have to add any special HTML code to detect these actions.</p><p>Your page will generally have many tags and you will control when these tags <em>fire</em> with <em>triggers. </em>You control when a <em>trigger</em> is <em>fired</em> by using a <em>variable </em>with <em>conditions</em> that evaluate to true or false at runtime. For example, if you have a button and you want to track when someone clicks that button, you would create a <em>trigger</em> that <em>fires </em>x tag (where x=a FB or AdWords conversion) when the link click <em>variable</em> meets the condition ‘the href of the link <em>is</em> <a href="https://themostimportantlink.com/">https://themostimportantlink.com</a>’</p><h3>How to use GTM to track AdWords and FB click conversions</h3><h4><strong>AdWords Instructions</strong></h4><ol><li>Create a new conversion for the link click (Tools &gt; Conversions)</li><li>After creating the conversion you will see an ‘Install your tag’ section and you should ensure that ‘Page load’ is selected for ‘<strong>Choose whether to track conversions on a page load or a click’. </strong>Note: This seems counterintuitive since we are trying to detect a link click, but since we can control when the conversion is triggered in GTM (using variables wit conditions) we don’t need to use AdWords method of detecting link clicks (adding onclick to commands to your&lt;a&gt;tags)</li><li>Take note of the ‘Tag for Request a Demo’ as we’ll need the google_conversion_id and google_conversion_label for GTM</li></ol><h4>GTM Instructions</h4><ol><li><a href="https://support.google.com/tagmanager/answer/6102821?hl=en">Setup GTM for your website (or app)</a></li><li>Enable the ‘Click URL’ built in variable (Workspace &gt; Variables &gt; Built-in Variables &gt; <strong>Configure</strong>)</li><li>Create a new Click trigger and give the trigger a descriptive name (We’ll use ‘The most important link click’)</li><li>Configure the trigger to only fire on ‘Some Clicks’</li><li>Choose ‘Click URL’ <em>equals </em><a href="https://thedestinationurl.com/">https://</a>themostimportantlink<a href="https://thedestinationurl.com/">.co</a>m</li><li>Create a new Tag and in the Tag Configuration choose AdWords Conversion Tracking. Add the google_conversion_id and google_conversion_label for the tag.</li><li>Choose the Trigger you set up in steps 3–5 (‘The most important link click’ our case)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OphcTiwDSGQjxgXTTsFIZQ.png" /></figure><p>Congrats! You now have link click tracking conversion set up for AdWords. Now let’s do the same for Facebook.</p><h4>Facebook Instructions</h4><p>GTM doesn’t have native support for Facebook but luckily Facebook has a wizard that can automatically add Tags to GTM</p><ol><li><a href="https://www.facebook.com/business/help/434245993430255">Create a Custom Conversion</a> (Hamburger menu &gt; Measure &amp; Report &gt; Custom Conversions)</li><li><a href="https://www.facebook.com/business/help/952192354843755?helpref=faq_content#createpixel">Create a Facebook Pixel</a> (Hamburger menu &gt; Assets &gt; Pixels)</li><li>You should then be taken into a wizard the will help you install your Pixel code. Choose ‘Use an Integration or Tag Manager’ and then Google Tag Manager. Then choose ‘Quick Install’.</li><li>Then, on Step 3 of the Fig. 1.1 you will want to add a Tag for the link click.</li><li>Then, go back into GTM and click on the newly created Tag</li><li>In Triggering, remove the Page Load trigger and add ‘The most important link click’ trigger.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HuqV63rhkhIFTblpgkpQPg.png" /><figcaption>Fig 1.1</figcaption></figure><p>Now, whenever someone clicks on a link that has an href of <a href="https://themostimportantlink.com,/">https://themostimportantlink.co</a>m our AdWords and Facebook conversions will be triggered.</p><h4>Wrapping up</h4><p>When I first started this project, I thought I would need to do a lot more coding, but GTM’s automatic event tracking made adding additional code unnecessary. At first this was confusing, but after I created a few triggers and tags and used the <a href="https://support.google.com/tagmanager/answer/6107056?hl=en">preview mode</a> to confirm everything was working, I began to understand how simple it is to do conversion tracking using a Tag Manager.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fxirnaz%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fxirnaz&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href">https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5db9d7fa8862" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The need for HOCs (Higher Order Components) in React]]></title>
            <link>https://medium.com/@tewolfe2/the-need-for-hocs-higher-order-components-in-react-dc144de3f99d?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc144de3f99d</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Sun, 13 Nov 2016 20:27:52 GMT</pubDate>
            <atom:updated>2016-11-13T20:27:52.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*Ma7rdTofUzIxhetWHzeGJA.jpeg" /></figure><p>This week I found myself in need of a way to pass data and functions as <strong>props</strong> to a component. Due to the constraints of the library I was using, I couldn’t do this in the following conventional manner:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2d9f64d92b319a4ed8d5741de605d656/href">https://medium.com/media/2d9f64d92b319a4ed8d5741de605d656/href</a></iframe><p>In order to pass awesomeName to a component in the library I was using, I would need to use a pattern in React called High Order Components (HOCs).</p><h3>High Order Components (HOC)</h3><blockquote><strong>A HOC is a React Component that wraps another React Component</strong></blockquote><p>Not so scary and extremely useful for what I needed to do.</p><p>I’m only going to show how I used HOCs to pass props to a component but you should check out <a href="https://medium.com/@franleplant/react-higher-order-components-in-depth-cf9032ee6c3e#.l8n0gs3op">this article</a> by <a href="https://medium.com/u/bbc4c2a3a7ae">franleplant</a> for a great in depth look at HOCs.</p><h4>Passing Props via HOCs</h4><p>Here’s how we create our HOC:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac3f73a3b9c93d82b5823d3d8f67572e/href">https://medium.com/media/ac3f73a3b9c93d82b5823d3d8f67572e/href</a></iframe><p>Here’s how we could use it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e0f5db95b4b0f319f7d68f02086faa3/href">https://medium.com/media/0e0f5db95b4b0f319f7d68f02086faa3/href</a></iframe><p>This example is arbitrary, but if you ever find yourself in a situation where you need to pass props to a Component and you can’t do it in the traditional manner, the above pattern should help.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc144de3f99d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use ONE language to create native Mobile, Desktop, and Web applications (Plus Chrome…]]></title>
            <link>https://medium.com/@tewolfe2/how-to-use-one-language-to-create-native-mobile-desktop-and-web-applications-plus-chrome-703bd0e2a08e?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/703bd0e2a08e</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Mon, 24 Oct 2016 19:24:32 GMT</pubDate>
            <atom:updated>2016-10-24T19:24:32.743Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to use ONE language to create native Mobile, Desktop, and Web applications (Plus Chrome Extensions)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rxzsy_E2MgxPP5oVmh1Q_g.jpeg" /></figure><p>The language that gives you the power to write code for almost any platform is <strong>JavaScript.</strong></p><p>Yes, that’s right, the programming language that some programmers love to hate gives you what I consider to be <strong>superpowers</strong>.</p><blockquote>“JavaScript is a language with more than its share of bad parts.”</blockquote><blockquote><em>-Douglas Crockford</em></blockquote><p>Let’s dive into an overview of how to tap into those superpowers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*uMXICZ1B8YDeOjMxkt0AMw.png" /></figure><h4>Native Mobile Applications using React Native</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*jaXuctDQR82t9v0Thqr7Sw.png" /></figure><p>React Native allows you to write native Android and iOS apps using JavaScript.</p><p>To get started with React Native I recommend going through the <a href="https://facebook.github.io/react-native/docs/tutorial.html">awesome tutorial</a>. Once you’re done with that checkout this great <a href="https://medium.com/react-native-development/a-quick-look-at-an-awesome-react-native-boilerplate-208a66b06588#.av9yt75a9">boilerplate</a>.</p><h4>Native Desktop Applications using Electron and React</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*zG0fonzUUYxLbJK7VSbJLg.png" /></figure><p>Electron allows you to write cross platform (Windows, Mac, and Linux) apps using JavaScript, HTML, and CSS. Slack and Atom are built using Electron and it’s a great open source project maintained by GitHub.</p><p>I choose to use React whenever I use Electron but you could use Angular or any other framework/library.</p><p>To get started with Electron you should run through the great <a href="https://github.com/electron/electron-api-demos">APIs demo</a> and then afterwards checkout the <a href="https://github.com/electron/electron-quick-start">quick start guide</a>. If you plan on using React then I would recommend you use this <a href="https://github.com/chentsulin/electron-react-boilerplate"><strong>boilerplate</strong></a> to get started.</p><h4>Web Applications and Chrome Extensions using React (or any other framework/library)</h4><p>Building web apps using JavaScript should come as no surprise to any web developers reading this and I’m only going to discuss how you can use React to build Chrome extensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*Do0LwNIPTq_qhL7p8Xz9Hg.png" /></figure><p>Chrome Extensions allow you to add functionality to Chrome using HTML, CSS, JavaScript, and some APIs that Chrome exposes. To get started building extensions run though this great <a href="https://www.sitepoint.com/create-chrome-extension-10-minutes-flat/">tutorial</a>.</p><p>You can use React, Angular, or any other JavaScript library/framework to build your extension and I would recommend you checkout <a href="https://www.npmjs.com/package/react-chrome-extension-boilerplate">this</a> boilerplate if you choose React.</p><p><em>Note: One issue you may run into while building your Chrome Extension using React and Redux is that your store will not persist between tabs. To solve this problem use the following </em><a href="https://github.com/tshaddix/react-chrome-redux"><em>utility</em></a><em>.</em></p><p>JavaScript is not without pitfalls and all of the above libraries and tools are not perfect either. However, they are still fun and great to use and you should defiantly give them a try!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=703bd0e2a08e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A quick look at an awesome React Native Boilerplate]]></title>
            <link>https://medium.com/react-native-development/a-quick-look-at-an-awesome-react-native-boilerplate-208a66b06588?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/208a66b06588</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Thu, 13 Oct 2016 17:52:33 GMT</pubDate>
            <atom:updated>2018-01-27T17:33:32.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*0haLQw7C5YbYnYH8E9ASow.jpeg" /></figure><h4>Tired of reading text? Then jump straight to my <a href="https://www.opentest.co/share/7d3401a0916a11e691c5d1c35b2012fa">quick video</a> that will walk you through the entire boilerplate.</h4><p>Starting a project from scratch can be a lot of work and finding the <strong>right</strong> boilerplate can help speed up your development process.</p><p>I’m going to walk you through one I always use and instead of hitting you with a wall of text describing every part of the boilerplate, I thought it would be more helpful to create a <a href="https://www.useloom.com/share/7d3401a0916a11e691c5d1c35b2012fa"><strong>video</strong></a> that will get you from zero to coding in no time!</p><p><a href="https://www.useloom.com/share/7d3401a0916a11e691c5d1c35b2012fa"><strong>Link to video</strong></a></p><p><strong>Want me to IGNITE my webcam on fire (😉) and NEVER make a video tutorial again OR did you enjoy the video tutorial and want to see more?</strong></p><p><strong>Either way, I’d love to hear your feedback on </strong><a href="https://twitter.com/tewolfe2"><strong>Twitter</strong></a><strong> and/or in the comments.</strong></p><p>Here’s some text for those who can’t watch my video <strong>at the moment</strong> but have bookmarked it for later.</p><p>These are some properties I look for in my boilerplates:</p><ol><li>A good file structure. If the boilerplate is disorganized from the start, you’re going to have to spent some time restructuring upfront and who knows what this will break. Its best to choose a boilerplate that has a file structure you’re ok with.</li><li>A relatively low learning curve. I’m all for learning new libraries but the more libraries you’re unfamiliar with in a boilerplate, the longer its going to take you to get started.</li><li>A vibrant community. You want to choose a boilerplate that is going to stand the test of time and one indicator of the previous is the community surrounding the boilerplate. How many stars does the project have on github? When was the last merge into master? How many open issues are there?</li></ol><p>The boilerplate I found for React Native that met all of the above requirements is called <a href="https://github.com/infinitered/ignite"><strong>Ignite</strong></a>.</p><p>It uses <a href="http://redux.js.org/"><strong>Redux</strong></a> for state management and a cool new technology called <a href="https://yelouafi.github.io/redux-saga/docs/introduction/BeginnerTutorial.html"><strong>Redux Sagas</strong></a> to handle your asynchronous flow.</p><p><strong>Ignite</strong> has an awesome CLI (Command Line Interface) that makes creating new components and apps a breeze and it also has a great community surrounding it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=208a66b06588" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-development/a-quick-look-at-an-awesome-react-native-boilerplate-208a66b06588">A quick look at an awesome React Native Boilerplate</a> was originally published in <a href="https://medium.com/react-native-development">React Native Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Develop React Native/Redux Applications like a BOSS with this tool]]></title>
            <link>https://medium.com/react-native-development/develop-react-native-redux-applications-like-a-boss-with-this-tool-ec84bed7af8?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec84bed7af8</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Wed, 28 Sep 2016 23:36:03 GMT</pubDate>
            <atom:updated>2016-09-28T23:36:03.338Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*D7Xm7-Xlfmpry5AU2VB2rg.gif" /></figure><p>If you’re using Redux to manage your state in React Native apps then you should also be using the <a href="https://github.com/jhen0409/react-native-debugger">React Native Debugger</a> to super charge your development experience.</p><p>In this post I’ll show you how to setup the amazing React Native Debugger.</p><p>First, make sure you have Homebrew installed on your system by executing ‘brew’ in your Terminal. If you don’t install instructions can be found <a href="http://brew.sh/index.html">here</a>.</p><p>Next, execute the following:</p><pre>$ brew update &amp;&amp; brew cask install react-native-debugger</pre><p>Then, install <a href="https://github.com/jhen0409/react-native-debugger">React Native Debugger Open </a>as a project dependency using the following (this will make it so that the React Native Debugger will get opened instead of the Chrome one):</p><pre>$ npm i --save-dev react-native-debugger-open</pre><p>You’ll also need to include the following in your projects <strong>package.json</strong>:</p><pre>&quot;scripts&quot;: {<br>  &quot;postinstall&quot;: &quot;rndebugger-open&quot;<br>}</pre><p>Finally, you’ll need to add the <strong>bolded lines</strong> of code below to wherever you’re initializing your store:</p><pre>import { createStore, applyMiddleware, compose } from &#39;redux&#39;;<br>import thunk from &#39;redux-thunk&#39;;<br>import reducer from &#39;../reducers&#39;;<br><br>export default initialState =&gt; {<br>  const enhancer = compose(<br>    applyMiddleware(thunk),<br>    <strong>global.reduxNativeDevTools ?<br>      global.reduxNativeDevTools(/*options*/) :<br>      noop =&gt; noop</strong><br>  );<br>  const store = createStore(reducer, initialState, enhancer);<br>  // If you have other enhancers &amp; middlewares<br>  // update the store after creating / changing to allow devTools to use them<br> <strong> if (global.reduxNativeDevTools) {<br>    global.reduxNativeDevTools.updateStore(store);<br>  }</strong><br>  return store;<br>}</pre><p>That’s it, you should now be ready to develop your React Native apps like a boss now.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec84bed7af8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/react-native-development/develop-react-native-redux-applications-like-a-boss-with-this-tool-ec84bed7af8">Develop React Native/Redux Applications like a BOSS with this tool</a> was originally published in <a href="https://medium.com/react-native-development">React Native Development</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating React, Redux, and Webpack into a Ruby on Rails project]]></title>
            <link>https://medium.com/@tewolfe2/integrating-react-redux-and-webpack-into-a-ruby-on-rails-project-ed4e266749e?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed4e266749e</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Tue, 20 Sep 2016 00:02:34 GMT</pubDate>
            <atom:updated>2016-09-20T00:19:55.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxIcCKXe5ucJewpKRdM7Qw.png" /></figure><p>Ruby on Rails(RoR) is great for web development but when you want more dynamic pages on your front end, it might be time to bring a library like React into your project.</p><p>I was recently tasked with integrating React into an existing RoR project and couldn’t find a simple explanation of how to do the previous. Here’s the blog post I wish I would have had a week ago.</p><p><em>Note: I’ll be assuming you have a basic understanding of RoR, React, Redux, and Webpack for the rest of this post. If you don’t, message or leave a comment and I’ll direct you to some learning resources I found helpful.</em></p><h3>The Big Picture</h3><p>You could use React to build the entire Front-End of your application and then use Rails as a backend API, but for now we’re going to focus on only converting a portion of your app to React.</p><p>Let’s say we have a Banking app that we already created with RoR and we have pages for a user’s Deposits and Withdrawals. We want to re-write the Withdrawals page in React so that we can make it more interactive for our users.</p><p>We don’t have time to remake the entire front end, so we’re just going to create a React component for Withdrawals and then drop that component into the RoR’s view for Withdrawals.</p><p>Here we go!</p><h3>Step 1: Add <a href="https://github.com/shakacode/react_on_rails">React on Rails</a> to your project</h3><ol><li>Add the following to your Gemfile and <em>bundle install</em>:</li></ol><pre>gem &quot;react_on_rails&quot;, &quot;~&gt; 6&quot;</pre><p>2. Commit these changes (this allows us to use the generator in the next step)</p><p>3. Run the generator in the root of your project directory:</p><pre>$ rails generate react_on_rails:install --redux<br>$ bundle &amp;&amp; npm i<br>$ npm run rails-server //this will be used to run your dev server from now on</pre><p>3. Visit <a href="http://localhost:3000/hello_world">localhost:3000/hello_world</a></p><p>After running the above your file directory should look something like this:</p><pre>.<br>├── Gemfile<br>├── Gemfile.lock<br>├── Procfile.dev<br>├── README.md<br>├── Rakefile<br>├── app<br>├── bin<br>├── <strong>client</strong><br>├── config<br>├── config.ru<br>├── db<br>├── lib<br>├── log<br>├── <strong>node_modules</strong><br>├── <strong>package.json</strong><br>├── public<br>├── test<br>├── tmp<br>└── vendor</pre><p>The generator added the bolded elements and the <strong>client</strong> directory is where all of our React code will live.</p><h3>Step 2: Create your React Component</h3><p>The generator creates a HelloWorld component for you and that provides a good starting point for creating new components but here’s a few important points:</p><ol><li>In order for Rails to know about our React component we need to register it with React on Rails at the bottom of your <em>/client/app/bundlesComponentName.jsx </em>file. For our Withdrawals component that would look like this:</li></ol><pre>ReactOnRails.register({ Withdrawals });</pre><p>2. Then to use the React component in a Rails view we would place this line of code in our<em> /app/views/view_name/index.html.erb</em>:</p><pre>&lt;%= react_component(&quot;Withdrawals&quot;, props: @some_props) %&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*OdsQaF5AZmWFdRgoCxRE5A.gif" /><figcaption>How I felt when I got React working with Rails</figcaption></figure><p>That’s pretty much it for adding React to your Rails project, you’re now ready to start improving your projects Front-End!</p><p><strong><em>Note 1:</em></strong><em> If you plan on using any packages from </em><strong><em>npm</em></strong><em>, make sure you are in the ‘client’ directory when installing them</em></p><p><strong><em>Note 2:</em></strong><em> If you want a background of React on Rails, read </em><a href="https://github.com/shakacode/react_on_rails#deployment"><em>this</em></a><em> and checkout </em><a href="https://github.com/shakacode/react-webpack-rails-tutorial"><em>this</em></a><em> tutorial. Also, checkout </em><a href="https://shakacode.gitbooks.io/react-on-rails/content/"><em>this</em></a><em> book for React on Rails to learn about everything you can do with it, we only scratched the surface.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed4e266749e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Push Notifications with React Native (iOS) and Firebase Cloud Messaging (FCM)]]></title>
            <link>https://medium.com/@tewolfe2/push-notifications-with-react-native-ios-and-firebase-cloud-messaging-fcm-6492b7326b53?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6492b7326b53</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Mon, 05 Sep 2016 05:37:18 GMT</pubDate>
            <atom:updated>2020-08-05T13:48:10.581Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*s-ezszpDlGFpJQMrXLmccA.jpeg" /></figure><p>Push notifications are an essential and powerful way to communicate with your users and one way to implement them with React Native is by using Firebase Cloud Messaging (FCM).</p><p><em>Note: In order to use FCM you will need to set up a server (I used </em><a href="https://www.djangoproject.com/"><em>Django</em></a><em> for my routes and </em><a href="https://github.com/olucurious/PyFCM"><em>PyFCM</em></a><em> to make interacting with firebase easier)</em></p><p>At a high level here is how push notifications will work with our setup:</p><ol><li>An FCM Token will be created in the app and this will be used to identify a unique user’s device</li><li>The FCM Token for the user will be stored on our server</li><li>Using the unique FCM token we will create the push notifications on the <a href="https://firebase.google.com/docs/cloud-messaging/send-message">server</a></li><li>The unique user will be notified with the notification we sent to FCM from the server</li></ol><p><em>Note: You </em><strong><em>MUST </em></strong><em>have a PAID Apple Developer account to enable push notifications in your app.</em></p><h4>Step 1: Follow the guide <a href="https://facebook.github.io/react-native/docs/pushnotificationios.html#content">here</a></h4><p>The above link will guide you on how to set up your project for push notifications.</p><h4>Step 2: Setup FCM</h4><p>Make sure you have <a href="https://guides.cocoapods.org/using/getting-started.html">Cocoapods</a> version &gt; 1.o installed</p><p>Install the Firebase/Messaging pod:</p><pre>cd ios &amp;&amp; pod init<br>pod install Firebase/Messaging</pre><p>Edit ios/your-project-name/<strong>AppDelegate.m</strong>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f24bed818962a13ef4353a1143dc672c/href">https://medium.com/media/f24bed818962a13ef4353a1143dc672c/href</a></iframe><p>Get the <em>GoogleService-Info.plist</em> file from your <a href="https://console.firebase.google.com/">firebase console</a> and place it in <em>/ios/your-project-name</em></p><h4>Step 3: Start sending notifications!</h4><p>Follow the below example to start sending notifications:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fe77402547db33a308bdb6083af1413/href">https://medium.com/media/4fe77402547db33a308bdb6083af1413/href</a></iframe><p>For reference here is what some code on your server might look:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1741a83b745a0efe96911dffa8d4b92f/href">https://medium.com/media/1741a83b745a0efe96911dffa8d4b92f/href</a></iframe><p>Congrats on getting notifications set up. If you got stuck on any of the above steps feel free to leave a comment and I’ll try my best to help.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fxirnaz%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fxirnaz&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href">https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6492b7326b53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying a React Native Application to your iPhone]]></title>
            <link>https://medium.com/@tewolfe2/deploying-a-react-native-application-to-your-iphone-1d5f9757be48?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d5f9757be48</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Sun, 28 Aug 2016 18:55:54 GMT</pubDate>
            <atom:updated>2020-08-05T13:46:37.791Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1F5lxdcWh_1t47CJs5e3Q.jpeg" /></figure><p>If you’ve created a React Native application and now want to put it on your iPhone so that you can use it yourself or show it off to all of your friends, you will need to follow a few specific steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*pLXCwUyIgWVmcFDGIeRwOQ.gif" /><figcaption>Your friends reaction to your new iPhone app</figcaption></figure><p><em>Note: I’m assuming that you already have </em><a href="https://itunes.apple.com/us/app/xcode/id497799835?ls=1&amp;mt=12"><em>Xcode</em></a><em> installed, an </em><a href="https://appleid.apple.com/account#!&amp;page=create"><em>AppleID</em></a><em>, and your </em><a href="https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/MaintainingCertificates/MaintainingCertificates.html"><em>Signing Identities</em></a><em> (Scroll to: </em><strong>Viewing Signing Identities and Provisioning Profiles</strong>) <em>set up.</em></p><h3>Step 1: Open your Project in Xcode</h3><p>The iOS version of your app should live here:</p><p><strong>ios &gt; projectName.xcodeproj</strong></p><p>If you’re in the Terminal you can use the following command:</p><pre>open projectName.xcodeproj </pre><h3>Step 2: Set up your app for deployment</h3><ol><li>⌘ + ⇧ + &lt; (Product &gt; Scheme &gt; Edit Scheme)</li><li>Change <strong>Build Configuration</strong> to <strong>Release</strong></li><li>Uncheck <strong>Debug executable</strong></li></ol><h3>Step 3: Add icons to your app</h3><ol><li>In the file directory on the left side of Xcode navigate to: <strong>yourProjectName &gt; Images.xcassests</strong></li><li>Get a set of icons (I use <a href="http://appicon.build/">http://appicon.build/</a> to do this)</li><li>Drag and drop the images into the <strong>AppIcon</strong> window</li></ol><h3>Step 4: Connect your iPhone and Deploy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P27Rp4mAiaiE3yI8XM1jKw.png" /></figure><p>Select your iPhone and then click ▶.</p><p><strong>Note 1: </strong>you may get the following error and resolving it should be easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/492/1*GcwE3FWOtxK9VgRNEntDgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*pnLvPVDq2T4O2kf8usfk4g.png" /></figure><p><strong>Note 2: </strong>In order to run the app on your iPhone you will need to do the following:</p><ol><li>Goto <strong>Settings &gt; General &gt; Profiles &amp; Device Management</strong></li><li>Touch <strong>yourEmail@example.com</strong></li><li>Touch <strong>Trust “yourEmail@example.com”</strong></li></ol><p>You should now be able to run the application you build without having your iPhone connected to your computer.</p><p>Now, go use your app and show your friends how cool and easy it is to develop with React Native!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fxirnaz%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fxirnaz&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href">https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d5f9757be48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up your Macbook for React Native and Android]]></title>
            <link>https://medium.com/@tewolfe2/5-steps-to-setting-up-your-macbook-for-react-native-7b8b1019eb6d?source=rss-fb4352d78f0a------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b8b1019eb6d</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Thomas Wolfe]]></dc:creator>
            <pubDate>Sun, 21 Aug 2016 00:33:21 GMT</pubDate>
            <atom:updated>2020-08-05T13:45:53.309Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8LtfhtjIw7MwgQFSCv26xw.jpeg" /><figcaption>Source: <a href="http://thenextweb.com/dd/2015/09/15/facebooks-react-native-for-android-helps-developers-ship-mobile-apps-fast/#gref">The Next Web</a></figcaption></figure><p>If you were like me and had never used Android Studio before, setting up your Mac for use with React Native and Android might be an error filled journey.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*uG8uljWN-ByJZ5QVSTrNcQ.gif" /></figure><p>I’m going to walk you through how to set up and configure Android Studio for use with React Native and hopefully help you avoid an error filled journey.</p><h3>Step 1: Follow the <a href="https://facebook.github.io/react-native/docs/getting-started.html">Getting Started</a> guide for React Native</h3><p>Note: You’ll need to have <a href="http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">Java SE Dev Kit 8</a> installed on your Mac to use <a href="https://developer.android.com/studio/install.html">Android Studio</a>.</p><h3>Step 2: Set up environment variables in your ~/.bash_profile file</h3><pre>export ANDROID_HOME=&#39;path/to/androidSDK/see/below&#39;<br>export PATH=$ANDROID_HOME/tools:$PATH<br>export PATH=$ANDROID_HOME/platform-tools:$PATH</pre><p>Here’s how to find where your Android SDK is located:</p><ol><li>Open Android Studio</li><li><strong>Configure &gt; SDK Manager </strong>(Bottom Right)</li><li>You should now see your <strong>Android SDK Location</strong></li></ol><p><strong>Restart your Terminal after the above!</strong></p><h3>Step 3: Download an ABI (Application Binary Interface)</h3><ol><li>Type <strong>android </strong>in your Terminal (if the command is not found make sure you’ve restarted your Terminal)</li><li>Make sure that the Intel x86 Atom_64 System Image is installed.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*Y4H7A-Ud9n63aYmhP-SFtw.png" /></figure><h3>Step 4: Create a new AVD (Android Virtual Device)</h3><ol><li>Type the following in your Terminal</li></ol><pre>$  android list targets</pre><p>You should now see something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBgROjf6aB1NRUGqeZeC4A.png" /></figure><p>2. Execute the following command</p><pre>$  android create avd -n &lt;name&gt; -t &lt;target&gt; --abi default/x86_64</pre><p><strong>&lt;name&gt;- </strong>can be whatever you would like it to be, in my case I named it <strong>react.</strong></p><p><strong>&lt;target&gt;- </strong>Should be one of the <strong>ids </strong>output from <strong>android list targets</strong>. In my case I used <strong>2</strong>.</p><h3>Step 5: Run your Emulator</h3><pre>$  emulator -avd &lt;name&gt;</pre><p>If you followed the above steps you should now be ready to run the following command in any React Native project without errors:</p><pre>react-native run-android</pre><p>If you’re still getting errors Google should be able to help you solve most, but feel free to leave a comment if you’re not able to figure something out.</p><h4><strong>You Did It!</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*XJ0g30Ly9j_NxDbZaEjiPg.gif" /></figure><p>Assuming that you had no errors you’re ready to start building Android applications with React Native!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fxirnaz%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fxirnaz&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href">https://medium.com/media/e43e91ca5e8528a5cabd5ab5edba5835/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b8b1019eb6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>