<?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 Jared Potter on Medium]]></title>
        <description><![CDATA[Stories by Jared Potter on Medium]]></description>
        <link>https://medium.com/@jaredpotter1?source=rss-96e7a2231b71------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TpsIkqfRmocxcxgOmh5tNQ.jpeg</url>
            <title>Stories by Jared Potter on Medium</title>
            <link>https://medium.com/@jaredpotter1?source=rss-96e7a2231b71------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 23:09:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaredpotter1/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[Title — Medium CSS]]></title>
            <link>https://medium.com/@jaredpotter1/title-medium-css-5f357a35f636?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f357a35f636</guid>
            <category><![CDATA[medium-css]]></category>
            <category><![CDATA[test-tag]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Sun, 28 Jun 2020 05:28:38 GMT</pubDate>
            <atom:updated>2020-06-28T05:28:38.944Z</atom:updated>
            <content:encoded><![CDATA[<h3>Title — Medium CSS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I01QmNj7fsfw6SN8oDFKCQ.png" /><figcaption>Full Width</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I01QmNj7fsfw6SN8oDFKCQ.png" /><figcaption>Medium Width</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I01QmNj7fsfw6SN8oDFKCQ.png" /><figcaption>Standard Width</figcaption></figure><h3>Heading 1</h3><h4>Heading 2</h4><blockquote>quote</blockquote><p>Double dash — oh yeah</p><p>code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*EIsx5NuPoZZ4MpYqKDPBSw.png" /></figure><p>Text</p><p><strong>Bold</strong></p><p><em>Italicized</em></p><p>Leading paragraph</p><p><a href="https://www.twittter.com/jaredpottter">Jared’s Twitter Link</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f357a35f636" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Top Favorite VS Code Keyboard, Tips, Tricks, and Shortcuts]]></title>
            <link>https://medium.com/@jaredpotter1/my-top-favorite-vs-code-keyboard-tips-tricks-and-shortcuts-be1ef39f6104?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/be1ef39f6104</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[vscode-keyboard-shortcuts]]></category>
            <category><![CDATA[keyboard-shortcuts]]></category>
            <category><![CDATA[useful-keyboard-shortcuts]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Wed, 03 Jun 2020 05:47:12 GMT</pubDate>
            <atom:updated>2020-06-14T20:01:48.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>My Top Favorite VS Code Keyboard Tips, Tricks, and Shortcuts</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uIL6kcG0wYRJEihaR9N5fQ.png" /></figure><p>As a software engineer, how many times a day do you reach for the mouse to navigate your code editor to select the right bits of code to edit, remove, add, or move around? Although it can take just a second or so to perform each of these mouse moments and clicks, those seconds can add significantly.</p><p>Additionally, your level of confidence and proficiency with typing during a technical coding interview can weigh the opportunity in your favor. Or if you already have a job, then you can blow their minds with your mad Typin’Skillz!</p><p>Today I’m going to share my favorite daily-driver keyboard shortcuts that work across all text applications and VS Code specific ones.<br>To best teach you these shortcuts, I’m not going to just tell you like some cheatsheet you can find online by googling “VS Code keyboard shortcuts” but instead show real code with real use cases to exemplify it.<br>Putting a little bit of practice now will pay off enormously in time saved.</p><p>Let’s get started</p><h3>General Keyboard Shortcuts — Basics</h3><h4>Copy / Paste / Cut</h4><p><strong>Mac:</strong> Command + C / Command + V / Command X</p><p><strong>PC:</strong> Ctrl + C / Ctrl + V / Ctrl + X</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UdDTZsSwuJpqIf-1s5gt-w.gif" /><figcaption>Although foundational, you’d be surprised how many people don’t fully utilize these commands with maximum efficiency and accuracy, if used correctly.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*SBuXWRw3mPVmp05RaWWorQ.gif" /><figcaption>Cut and Paste</figcaption></figure><h4>2. Select All</h4><p><strong>Mac:</strong> Command + A</p><p><strong>PC:</strong> Ctrl + A</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*62yuLqDP5SfHDSK04ZN_Jw.gif" /><figcaption>Sometimes you just need to delete everything and start fresh</figcaption></figure><h3>General Keyboard Shortcuts — Leveled Up</h3><h4>1. Word Jump</h4><p><strong>Mac:</strong> Option + Left/Right Arrow</p><p><strong>PC:</strong> Alt + Left/Right Arrow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*S50vxel0OdDX7UG4j1CCBw.gif" /><figcaption>Super powerful — this command can be used for numerous scenarios. Quickly jump to the middle of a line of code. Or combined with Backspace and/or Shift to replace swiftly or select, respectfully. You’ll soon learn what is considered a word with practice.</figcaption></figure><h4>2. Delete Word</h4><p><strong>Mac:</strong> Option + Backspace</p><p><strong>PC:</strong> Ctrl + Backspace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ywJU58A9UVu_YyLHaOVFeA.gif" /><figcaption>Just like Word Jump but used to delete the proceeding word. Also useful for removing whitespace at the end of a line (if you aren’t using on-save doc format Prettier).</figcaption></figure><h4>3. Jump to End of Line / Just to Start of Line</h4><p><strong>Mac:</strong> Command + Left/Right Arrow</p><p><strong>PC:</strong> Home Key / End Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*3m1vTjKOZ65ort5bdfcU9Q.gif" /><figcaption>This is likely my most used keyboard shortcut. I often get my cursor to a line of code, use this shortcut to jump to the beginning/end, and then Word Jump X times to get to the right location.</figcaption></figure><h4>4. Delete Whole Line of Code</h4><p><strong>Mac:</strong> Command + backspace |OR| Command + Shift + K</p><p><strong>PC:</strong> Shift + End Key, then Delete Key |OR| Ctrl + Shift + K</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*ZULT__nvtVUJJtTIPHrCWA.gif" /><figcaption>Sometimes you just need to blow a whole line of code away</figcaption></figure><h4>6. DEL Key</h4><p><strong>Mac (not to be confused with the “delete” / backspace key):</strong></p><ul><li>Without full-sized keyboard -&gt; Control + D</li><li>With full-sized keyboard -&gt; Del Key</li></ul><p><strong>PC:</strong> Del Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*OGyzREMWv498Es5RZRPGnw.gif" /><figcaption>This will change your life if it hasn’t already. It is useful for deleting proceeding text or to easily remove the newline.</figcaption></figure><h3>VS Code Keyboard Shortcuts</h3><h4>1. Multi-Line / Multi-Cursor</h4><p><strong>Both (Mac / PC):</strong> Click and hold middle mouse wheel and drag vertically</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*unmZ4cHoWycGBrh67IcZ1A.gif" /><figcaption>Mouse</figcaption></figure><p><strong>Mac:</strong></p><ul><li>Keyboard: Option + Command + Up/Down Arrow</li><li>Mouse/Keyboard: Command + Option + Left Click (drag)</li></ul><p><strong>PC:</strong></p><ul><li>Keyboard: Ctrl + Alt + Up/Down Arrow</li><li>Mouse/Keyboard: Ctrl + Alt + Left Click (drag)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*8dh6WnD5fHlw-sXjjQxvEg.gif" /><figcaption>Keyboard</figcaption></figure><h4>2. Select sequential identical selected words</h4><p><strong>Mac:</strong> Command (hold) + D (repeated)</p><p><strong>PC:</strong> Ctrl (hold) + D (repeated)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*OxgemRD9KO7ZsWkyE03d6w.gif" /><figcaption>I use this one all day long. Effortlessly rename variables. Or select multiple variables that all start with ‘const’. Be aware this is case insensitive. Wrong quote marks? Highlight first pair, Command + D, correct press quote (single ‘ in javascript/typescript 😉)</figcaption></figure><h4>3. Select all identical selected words</h4><p><strong>Mac:</strong> Command + Shift + L</p><p><strong>PC:</strong> Ctrl + Shift + L</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*Bc7KbpCYnRCSViSAU9Tcbg.gif" /><figcaption>Works similarly to the multi-line / multi-cursor but selects all occurrences in the file. Be aware this is case in-sensitive.</figcaption></figure><p>warning: if you have the Mac desktop LastPass app install it hijacks this shortcut</p><h4>4. Duplicate Line of Code</h4><p><strong>Mac:</strong> Option + Shift + Up/Down Arrow</p><p><strong>PC:</strong> Ctrl + Shift + d</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*8ychAf5WzRFiqemYDMHTLw.gif" /><figcaption>Quickly duplicates a line of code above or below, and moves cursor to new line</figcaption></figure><h4>5. Move/Swap Line of Code</h4><p><strong>Mac:</strong> Option + Up/Down Arrow</p><p><strong>PC:</strong> Shift + Alt + Up/Down Arrow</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*0B0IWSXa5wP0aTdSItcx6g.gif" /><figcaption>Moves a line of code up and down, swapping places if moved into an existing line.</figcaption></figure><h4>6. Search Whole Project</h4><p><strong>Mac:</strong> Command + Shift + F</p><p><strong>PC:</strong> CTRL + Shift + F</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UuomEF88dC9XTvhEhchtYg.gif" /><figcaption>Easily search the entire project</figcaption></figure><h4>6. Go To File</h4><p><strong>Mac:</strong> Command + P</p><p><strong>PC:</strong> Ctrl + P</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*SlolPs5N_eptEh_S29X_mQ.gif" /><figcaption>So so so useful for quickly jumping to the right file. Especially if you’re working in Angular with their 17 thousand generated files per component.</figcaption></figure><h4>7. Open new Terminal</h4><p><strong>Mac:</strong> Control + ` (pronounced tick upper left on keyboard)</p><p><strong>PC:</strong> Ctrl + ` (pronounced tick upper left on keyboard)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*kc4o6Nfz6APJ1bPqYmkdYg.gif" /><figcaption>Easily and instantly open a handy dandy terminal</figcaption></figure><h4>8. Quickly Create <em>&lt;div&gt;</em> with <em>class</em> Attribute, and Auto Complete Elements</h4><p><strong>BOTH (Mac/PC):</strong></p><p><strong>With class:</strong> . then type classname and then tab.</p><p><strong>Just Element:</strong> type of element and then tab complete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KfTQpHjdZFzdCwj_B8elNg.gif" /><figcaption>Never type a full element ever again!</figcaption></figure><p>Thanks for reading this article. If you found it useful please tap the 👏, and share this article with others.</p><p>You can find me on <a href="https://twitter.com/jaredpotter">Twitter</a> or <a href="https://medium.com/@jaredpotter1">Medium</a> for future articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be1ef39f6104" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iMovie 2020— How to Make a Timelapse Video from Multiple Clips in iMovie]]></title>
            <link>https://medium.com/@jaredpotter1/imovie-2020-how-to-make-a-timelapse-video-from-multiple-clips-in-imovie-2e783508bcfc?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e783508bcfc</guid>
            <category><![CDATA[timelapse]]></category>
            <category><![CDATA[imovie]]></category>
            <category><![CDATA[video-editing]]></category>
            <category><![CDATA[multiple-clips]]></category>
            <category><![CDATA[dashcam]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 18:41:44 GMT</pubDate>
            <atom:updated>2022-04-16T00:34:22.801Z</atom:updated>
            <content:encoded><![CDATA[<h3>iMovie 2022— How to Make a Timelapse Video from Multiple Clips in iMovie</h3><p>Have you ever wanted to crate a really neat timelapse video from your most recent adventure?</p><p>Perhaps you have multiple clips that you want to combine into 1 timelapse video?</p><p>Maybe you’re like me and have lots of awesome dashcam footage you want to turn into a fun montage.</p><p>Great — you’ve found the right article. iMovie makes it is surprising easy and fast!</p><p>For reference I am using iMovie v10.1.12 on macOS 10.15.4 but I’ve verified these steps working with the latest M1 Macbook Pros April 2022 and macOS 12.3</p><h3>Let’s Get Started</h3><ol><li>Open iMovie and create a new Movie project</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*E0ay3Kp2TbnDxl0kOHi71A.png" /></figure><p>2. Import your video clips</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*sjG4TawDl0e_ZyXfM5dc-A.png" /><figcaption>Empty Project</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*azXBZIoRw9Bb3Li5O1jKwA.png" /><figcaption>Imported Media</figcaption></figure><p>3. Select all clips and drag-n-drop onto timeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*5hivqKeKGGGeORaTc_WpYQ.png" /><figcaption>^result^</figcaption></figure><p>4. Select all clips on the Timeline, and Detach and Delete Audio</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*eod_nru_Nd_kjY1Ytpx5Og.png" /><figcaption>Detach Audio</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*W4wvsteddGShT7Df8Yqnkg.png" /><figcaption>Delete Audio</figcaption></figure><p>5. Select all clips on the Timeline, Select Speed option</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4wwYFAtjWxg81BROd_uDjw.png" /><figcaption>Upper Right Corner — Clip Options</figcaption></figure><p>6. Change Speed from ‘Normal’ to ‘Custom’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*x8d-tpsTZd_-71BpHWt28w.png" /></figure><p>7. Change Speed % to desired level and hit the ‘Enter/Return’ key (if you don’t hit enter it won’t work).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/1*cdVL3vrbG8HDLS-aDZpjRg.png" /><figcaption>Set speed %</figcaption></figure><p>If done correctly the timeline clips will show little rabbits to show the clips being sped up:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*2xuXZ5EzDPDuQ0xqqdZ2QQ.png" /></figure><p>8. (optionally) add your own music / audio to add some spice to your timelapse.</p><p>9. Export to desired destination</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*a3Ahai4gaKZ10pFXppTygg.png" /></figure><h3><strong>What speed % do I use?</strong></h3><p>It depends on the combined length of the original clips and the desired timelapse video length.</p><p>For example, if you have 5 hours of footage and you want to condense it down to 1 minute you’ll set the speed to 30,000%.</p><p>I’ve created a simple calculate to do just this task: <a href="https://timelapse-calculator-d2903.firebaseapp.com/">Timelapse Calculator</a></p><p>The original time can be found in the middle of iMovie’s timeline once clips are loaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J9YRMLvFObMzSw8zUZeWzQ.png" /></figure><p>Thanks for reading this article. If you found it useful please tap the 👏, and share this article with others.</p><p>You can find me on <a href="https://twitter.com/jaredpotter">Twitter</a> or <a href="https://medium.com/@jaredpotter1">Medium</a> for future articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e783508bcfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cold Brew Coffee— Powering the Modern Work Force]]></title>
            <link>https://medium.com/@jaredpotter1/cold-brew-coffee-powering-the-modern-work-force-eb6c4dd35da5?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb6c4dd35da5</guid>
            <category><![CDATA[americas-test-kitchen]]></category>
            <category><![CDATA[coffee]]></category>
            <category><![CDATA[cold-brew]]></category>
            <category><![CDATA[cold-brew-coffee]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 20:28:15 GMT</pubDate>
            <atom:updated>2019-06-18T20:28:15.243Z</atom:updated>
            <content:encoded><![CDATA[<p>Today we’re going to talk about something a bit less technical compared to my other articles. I’m going to explore what powers my mind through line after line of code.</p><h3>Cold Brew Coffee</h3><p>For those unaware, cold brew coffee is really simple. It’s the process of using cold (or room temperature) water to extract coffee flavor and caffeine from coffee grounds over a longer period of time compared to traditional “hot” brewing methods. The benefits are:</p><ol><li>) Substantially less acidity and bitterness</li><li>) Upgrades the more-subtle flavors of coffee</li><li>) Enjoyed both hot and cold</li><li>) Superfast prep time</li></ol><p>Alright, let’s jump into my personal favorite method, which is based on <a href="https://www.youtube.com/watch?v=-n7yjuTYrwQ">America’s Test Kitchen’s</a> method.</p><p>Required Equipment</p><ol><li>) Large container for brewing</li><li>) Stirring Spoon</li><li>) Strainer</li><li>) Cheesecloth</li></ol><p>Additional Suggested Items</p><ol><li>) Coffee Grinder</li><li>) Coffee Filters / Pour Over</li></ol><h4>Overview</h4><p>My coffee to water ratio is 1 part coffee to 3 parts water. For my usual batch, I use 400g of kona blend beans (but feel free to use/experiment with different beans to find ones you like). And match that with 400 grams of filtered room temperature water.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MSJkjBycwk2PT5dlLSmWSA.jpeg" /><figcaption>Coffee Measured by Weight</figcaption></figure><p>I start by freshly grinding my beans with a coarse setting. Although I use a burr grinder — which is recommended among coffee snobs — <a href="https://www.youtube.com/watch?v=O7LAzSKgeoQ">America’s Test Kitchen</a> showed in that among their taste testers, the grind didn’t matter. The quality of the beans is the #1 factor in brewing great coffee.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FIM2CeB9uAtMuhL1nWy5VA.jpeg" /><figcaption>Grind Coffee with coarse Setting</figcaption></figure><p>Next, you simply add the freshly ground coarse coffee to the large container. Add the measured water. Stir. This is important to prevent evaporation but also allow gases to be released. Next, you wait for 24-hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tSqk4v6QCYeg0ypXC4qhIA.jpeg" /><figcaption>400g of Coffee</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OpzvwMC6Py2BW6TfkcclIQ.jpeg" /><figcaption>Approximately 1200g of water</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*4EOtAziAf2jBGBCfrEzQxw.gif" /><figcaption>Stir!</figcaption></figure><p>Wait 10 minutes. Stir again, and then <em>loosely</em> cover with plastic wrap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jja7hWYJY8j4ZpKdr2EJVw.jpeg" /></figure><p>After 24 hours, prepare a large bowl or pot with a strainer and 3 layers of cheesecloth. Pour all of the coffee grounds into the strainer and allow all of the coffee concentrate to drain into the catching container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qu0SHSLFHJp0fniXxZajfw.jpeg" /><figcaption>Strainer Over Concentrate Catcher</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rPBDI2yXA5rzx9nki4zYxw.jpeg" /><figcaption>3 Layers of Cheesecloth</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21nLav0Jud30CZgTObCtAA.jpeg" /><figcaption>Strain Coffee</figcaption></figure><p>After the concentrate finishes draining throw away the grounds or put them into your composting pile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dG5uSy15MYFQfSQJZ8x4tQ.jpeg" /><figcaption>The final product — cold brew coffee concentrate</figcaption></figure><p>This batch resulted in 431 grams of cold brew concentrate. Good for about 8–10 cups of cold brew.</p><p>It’s important to remember that this creates a coffee <em>concentrate</em>. It should be stored in an airtight container in the refrigerator. I usually will mix 50–60g of this concentrate with 200–240g of water. But feel free to adjust to your personal taste!</p><p>This concentrate can be kept for up to 2 weeks in the refrigerator.</p><h3>Step-By-Step — Time to Brew</h3><ol><li>Start with 400g of coffee beans</li><li>Grind coffee beans to a coarse grind</li><li>In a large container mix the freshly ground coffee with approximately 1200g of water (4.8 cups)</li><li>Stir.</li><li>Wait 10 minutes for some gases to release</li><li>Stir and then cover loosely with plastic wrap</li><li>After 24 hours use a medium or large size bowl or pot. Place a strainer on top and 3 layers of cheesecloth. I suggest pre-wetting the cheesecloth.</li><li>Strain all of the coffee through the filter</li><li>Store in an airtight container in the refrigerator</li></ol><h4>Preparing Hot 🔥</h4><p>I’ll measure out the 50–60g of concentrate. Microwave that while boiling water in my kettle and then mix them together.</p><h4>Preparing Cold ❄️</h4><p>Again, I’ll measure 50–60g of concentrate. Pour the concentrate over a full glass of ice, and top off with chill water.</p><h4>Additional Methods and Tips for Cold Brewing Coffee</h4><p><strong>Hot-Cold Hybrid Approach:</strong> Instead of using<strong> </strong>cold water you start with the water being hot. Brewing for a period of time, and then immediately chilling with cold water and ice. And continuing with a long period of time (12–36 hours).</p><p><strong>Grind Coffee as Close To Brewing</strong>: Nonetheless, beans lose a significant amount of aroma and flavor after only a short period of time after grinding. If you don’t have a coffee grinder, using the ones at the store is actually a good option as long as you begin the cold brewing process soon after you get home. It’s a good option over buying pre-guard beans which might be weeks to months old.</p><p><strong>Nitro Cold Brew:</strong> If you’ve ever had Starbucks Nitro Cold Brew you know how smooth and delicious it is. The same can be accomplished at home with a cream whipper. Check out America’s Test Kitchen’s method <a href="https://www.youtube.com/watch?v=KVU2-3esguw">here</a>.</p><h3>Conclusion</h3><p>You’ll undoubtedly find numerous methods and opinions online for making cold brew coffee — many that differ from mine, sometimes significantly. I strongly encourage you to those other methods as well on your journey to cold-brew salvation. I’d love to hear what methods others use. Along with tips and tricks to share with everyone!</p><p>Don’t forget to 👏 and keep an eye out for my other articles :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb6c4dd35da5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting a .DEV Domain to Github Pages with HTTPS]]></title>
            <link>https://medium.com/@jaredpotter1/connecting-a-dev-domain-to-github-pages-with-https-f0c59fb62579?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0c59fb62579</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[dev-domain]]></category>
            <category><![CDATA[google-dev-domain]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Tue, 26 Mar 2019 18:08:08 GMT</pubDate>
            <atom:updated>2020-05-25T23:12:17.870Z</atom:updated>
            <content:encoded><![CDATA[<h3>Connecting a .DEV Domain to Github Pages with HTTPS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xdiuKyDKka0VXLOqZCn4Ww.png" /></figure><p>Google recently <a href="https://www.blog.google/technology/developers/hello-dev/">finalized</a> the .dev Top-Level-Domain. You can now go buy yourAwesomeName.dev domain for about $12 a year including free privacy protection — <a href="https://domains.google/tld/dev/">https://domains.google/tld/dev/</a>.</p><p>Google’s .dev pitch:</p><blockquote>A domain just for developers</blockquote><blockquote>From tools to platforms, languages to blogs, .dev is a home for all the interesting things that you build. .dev lets your clients know what you do before they even open your site.</blockquote><p>Another distinct characteristic of .dev is that these domains <em>only </em>work with HTTPS.</p><p>Although you can easily obtain your very own certificate for free through <a href="https://letsencrypt.org/">Let’s Encrypt</a> I decided to connect a free <a href="https://help.github.com/en/articles/user-organization-and-project-pages">Github Pages</a> project repo to create a portfolio site with my new .dev domain.</p><h4>Overview</h4><p>We’re going to take a base React project, tweak a few things, add to Github, buy a .dev domain, and configure DNS.</p><h3>Let’s Get Started</h3><ol><li>Create a new repository on Github (either from website then git clone, or git init locally).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Iw8mpsDAau5gKieJf56NA.png" /><figcaption>Github Repo Creation</figcaption></figure><p>2. Inside your project directory run npx create-react-app . (the . means to create the app in the current directory). FYI, npx is included with <a href="https://nodejs.org/en/download/">node</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*j9izJLsmhUKaRxQJWIKebg.png" /><figcaption>Clone repo and create React app</figcaption></figure><p>3. Once created, inside the public directory create a file named CNAME — no extension. Inside add yourAwesomeName.dev</p><p>4. Run npm install gh-pages --save-dev</p><p>5. Open up your package.json file. First add the homepage property at the root. E.g. &quot;homepage&quot;: &quot;https://jaredpotter.dev&quot;. Also, under the scripts section, add the new property &quot;deploy&quot;: &quot;gh-pages -d build&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*bdAQtzb7ENX71sHyr0Y3FA.png" /><figcaption>package.json</figcaption></figure><p>6. Run npm run build — this will create a build folder containing the production build of your site.</p><p>Note: Normally npx create-react-app should install all node modules but you may need to also run npm install.</p><p>7. Run npm run deploy — this will create a gh-pages branch on your repo, and push only the files inside the build directory to it.</p><p>7. Go to your Github repo’s Settings then under Github Pages. Verify that Github set the source to gh-pages branch, set your custom domain (from the CNAME file), and checked Enforce HTTPS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wlcyhz0wXwxrtY2dlN_Dkg.png" /><figcaption>GitHub Pages — Settings</figcaption></figure><p>8. Finally, on <a href="http://domains.google.com/">domains.google.com</a> buy your domain. Once purchased and you’ve verified your email verified then you select DNS sidebar option, and then scroll all the way down toCustom resource records and add an A Record with the IP Address of 185.199.108.153 — one of Github Pages’ IPs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lv-AsFmf-8Y8ojA1oImOTQ.png" /><figcaption>Google Domains DNS — Custom Records</figcaption></figure><p>Note: Github’s support pages note it can take up to an hour to fully propagate DNS. In the meantime you’ll likely get an HTTPS error while attempting to go to your yourAwesomeName.dev domain.</p><p>9. (optionally) Stage, commit, and push your source code changes to the master branch of your Github repository.</p><p>10. Profit</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*NvxFm_POX3IQfmiZYMK0Rw.png" /><figcaption>Chrome — HTTPS — .dev</figcaption></figure><p>And there you have it. A secure HTTPS site using React and Github Pages.</p><p>Note: I opted to use Github Pages’ <a href="https://help.github.com/en/articles/user-organization-and-project-pages">project repo</a> for simplicity and control over the deployment folder/branch compared to a Github Pages “user” repo which has a few restrictions. It’s still possible to link your custom .dev domain to a Github Pages user repo but it takes a little more work.</p><p>Disclaimer: I’m not being paid/sponsored by google to plug their .dev domains.</p><p>Thanks for reading this article. If you found it useful please tap the 👏, and share this article with others.</p><p>You can find me on <a href="https://twitter.com/jaredpotter">Twitter</a> or <a href="https://medium.com/@jaredpotter1">Medium</a> for future articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0c59fb62579" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimizing Images for The Web — Part 1]]></title>
            <link>https://medium.com/@jaredpotter1/optimizing-images-for-the-web-part-1-aa88c1c6d80e?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa88c1c6d80e</guid>
            <category><![CDATA[magic]]></category>
            <category><![CDATA[fast-web-apps]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[image-optimization]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 18:10:40 GMT</pubDate>
            <atom:updated>2019-02-12T03:06:16.841Z</atom:updated>
            <content:encoded><![CDATA[<h3>Optimizing Images for The Web — Part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*pMh8ah46IkZ-QsnxH11Prw.png" /><figcaption>Icon made by Smashicons from <a href="http://www.flaticon.com/">www.flaticon.com</a></figcaption></figure><p>The majority of software engineers I know love to focus on the latest and greatest framework, technology, or library. However, not enough of these engineers look at some basics that will immediately improve the load times of web apps, improve user experience while also reducing data usage and storage costs.</p><p>The basic we’ll look at today is simple: optimizing images for the web.</p><h3>The Problem</h3><p>Take a look at the following examples. They all heavily utilize image content. What’s worse is that these images haven’t been optimized for the web. This lack of proper image compression causes cascading impacts: ballooning storage buckets, increase data transfer cost for both you and your user’s data plan, and, most critical, the negative impacts the user experiences with poor load times — especially in places with only 3g connections (or less).</p><p>Simply put: smaller image size =&gt; better.</p><p>I ran across a photographer’s portfolio website where they had a set of 4 different carousels showing off a total of 41 photos. The nasty truth became apparent when I opened up my Chrome network tab and found the site was loading over 300 MBs of data. With mobile providers charging about $10 a gig puts this person’s site at load cost of $3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJ_oncWbFcJfFiidjcvplw.png" /><figcaption>308 MB to load 1 page; ~$3</figcaption></figure><p>This is a bit of an extreme example but not impossible.</p><p>Let’s take a look at a more common example. Through hiring I’ve seen many developer portfolio sites with full screen background photos for a cool design effect. On some sites I also found very large, uncompressed PNG screenshots demoing apps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKuKnJ8sGc-TtprGjT8YTQ.png" /><figcaption>Full, uncompressed JPEG background image</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*8xTGAJNV6XLT7xwPS6i6lA.png" /><figcaption>Site required 50.5 MB to load 1 page</figcaption></figure><p>50 MB isn’t the same as 308 MB but still considered an unnecessarily large landing page on their site.</p><p>On this page the background image was 11.1 MB alone. ~10 PNG screenshots ranging in size of 2–3 MB.</p><h3>The Solution</h3><h4>Optimize your damn images!</h4><p>In this part 1 article we’ll explore a few native solutions for quick and easy image optimization. Part 2 will look at more advanced methods with professional tools (JPEGmini) and command line interfaces. Finally part 3 takes on organizational/enterprise solutions — APIs, Mobile SDKs, and Javascript web uploaders, and an affordable custom JPEGmini server.</p><h4>On a Mac:</h4><p>Too few Mac users know the power of many of the operating system’s basic apps. Today we’ll explore Mac OSX’s Preview app and its ability to batch compress images into a web optimized JPEG and PNG formats.</p><ol><li>Select the images you’d like to compress, secondary-click, then and open with Preview</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*of3L9T3u5LsOi27HO9MG4w.png" /><figcaption>Select Images -&gt; Open With -&gt; Preview</figcaption></figure><p>2. Select all images in the left sidebar (command + a)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*DSWDDLxEQn_-8iemxXmFdg.png" /><figcaption>All images selected in Preview</figcaption></figure><p>3. File -&gt; Export Selected Images…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*T8ACRgKBlv-FOKSNIXsOag.png" /><figcaption>Export selected images</figcaption></figure><p>4. For PNG you can remove the alpha layer (which reduces the file size if not required). For JPEG/JPG you can adjust the quality with a slider.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*-v2IZ1Du9jQMWsVC3Zp8Ow.png" /><figcaption>PNG settings — Removing alpha reduces size.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*dLMdPKOz8G7dMuaU7KT_fA.png" /><figcaption>JPEG settings — Only seemed to work when I slid the quality down at least 0.1 MB</figcaption></figure><p>Weird Bug: I found that if I left the quality slider at its recommend spot of 7.7 MB that it exports the same 11.1 MB original file. However, if I bumped it down from 7.7 MB to 7.6 MB then it exported correctly to 7.6 MB.</p><h4>On a Windows PC:</h4><p>Natively Windows 10 has 2 primary ways to compress an image. Unfortunately both methods are limited to 1 at a time; no batch support.</p><p>First, open the photo in the Windows 10 Photo app.</p><ol><li>Once the photo is open in the Photos app, in the top right corner select the hotdog menu (the …), and then “resize”.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*I0c_9XjxjrHJPmukxpqHVQ.png" /></figure><p>2. Pick from the 3 strict options. Or the 4th “Custom” option that allows retaining the original height and width, and a JPEG quality slider that defaults to 80%.</p><p>Outcomes your reduced image.</p><p>With MS Paint:</p><ol><li>Right-click the file, and select ‘Edit’</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*qiu693q2KhzfYhg1NHEEXA.png" /></figure><p>2. Once photo is open in MS Paint, simple select File -&gt; Save as -&gt; JPEG / PNG / ETC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*mypAKYYq9jOdT4cSjE86Qg.png" /></figure><h4>Web Based Option:</h4><p>I know I said only “native” solutions wanted to provide any Windows users with a batch option.</p><p>The site <a href="https://bulkresizephotos.com/">https://bulkresizephotos.com</a> has a simple drag-n-drop option for batch photo optimization. It outputs a zip file with the compressed files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*h1A-3_QivySGxIk_lZ3NzA.png" /><figcaption>Bulk Resize Photos Interface</figcaption></figure><h3>Quality</h3><p>Overall when comparing the original image to the optimized images the perceived image quality drop is virtually non-existent.</p><p>Note: The comparisons in this article aren’t entirely accurate as they are ultimately compressed by Medium. In a later article I’ll be showing the actual comparisons with original file sizes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jxb1JoGfMc9S_Y4StOQjdA.jpeg" /><figcaption>Mac Preview — Left original; right Optimized</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DdZ8FzQ49injaY95cjs3fw.jpeg" /><figcaption>Windows 10 Photos App — Left original; rightOptimized</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fs6Z_azpmj0xk54Sw0WALg.jpeg" /><figcaption>Windows 10 MS Paint — Left original; right Optimized</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QTar7k_ci1S5PRFV30asw.jpeg" /><figcaption>Bulk Resize Photos — Left original; right Optimized</figcaption></figure><h3>Results</h3><p>All results were performed using as close to default settings as possible.</p><h4><strong>For the photographer’s portfolio gallery that required over 308 MB to load was reduced to:</strong></h4><p><strong>Preview:</strong></p><p>Reduced image from 322.2 MB to 109.7 MB (65% reduction) of actual disk size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*SH0iaFmdk53xU977k6v8JA.png" /><figcaption>Chrome reports very close values w/ optimized image</figcaption></figure><p><strong>Windows 10 Photos App / MS Paint:</strong></p><p>N/A — no batch makes this impractical</p><p><strong>Bulk Resize Photos:</strong></p><p>Reduced image from 322.1 MB to 98.4 MB (69% reduction) of actual disk size.</p><p>—</p><h4><strong>For the overall reduction of developer’s portfolio (jpeg but mostly pngs) site. Note: all PNGs were converted to JPEGs for web hosting.</strong></h4><p><strong>Preview:</strong></p><p>13.4 MB (74% reduction)</p><p><strong>Windows 10 Photos App / MS Paint:</strong></p><p>N/A — no batch makes this impractical</p><p><strong>Bulk Resize Photos:</strong></p><p>11.1 MB (79% reduction)</p><p>—</p><h4><strong>For the single large 11.1 MB JPEG developer’s portfolio background photo these were the results:</strong></h4><p><strong>Preview:</strong></p><p>Reduced image from 11.1 MB to 7.6 MB (32% reduction), batch option</p><p><strong>Windows 10 Photos App:</strong></p><p>Reduced image from 11.1 MB to 4.2 MB (62% reduction), no batch option</p><p><strong>Windows 10 MS Paint:</strong></p><p>Reduced image from 11.1 MB to 8.5 MB (23% reduction), no batch option</p><p><strong>Bulk Resize Photos:</strong></p><p>Reduced image from 11.1 MB to 6.2 MB (44% reduction), batch option</p><h3>What’s next?</h3><p>COMING SOON: part 2 — JPEGmini, Command Line Tools, etc</p><p>COMING SOON: part 3 — Server Implementations, Javascript Web Uploader, Mobile SDK, and custom Mac Server Implementation.</p><p>Second, if you want to further optimize your web app I’d suggest taking a look at my JavaScript guru <a href="https://twitter.com/juanlizarazog">Juan Lizarazo</a>. At a recent meetup in Salt Lake City Juan presented on lazy-loading of images — <a href="https://github.com/juanlizarazo/image-lazy-load-demos">github</a>. If you’re also interested in learning about testing, Juan has created an entire course on exactly that at <a href="https://www.udemy.com/unit-testing-your-javascript-with-jasmine/">Udemy</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa88c1c6d80e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting Puppeteer to Existing Chrome Window]]></title>
            <link>https://medium.com/@jaredpotter1/connecting-puppeteer-to-existing-chrome-window-8a10828149e0?source=rss-96e7a2231b71------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a10828149e0</guid>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[web-scraping]]></category>
            <category><![CDATA[puppeteer]]></category>
            <category><![CDATA[recaptcha]]></category>
            <dc:creator><![CDATA[Jared Potter]]></dc:creator>
            <pubDate>Fri, 25 Jan 2019 19:54:58 GMT</pubDate>
            <atom:updated>2021-09-28T22:43:29.635Z</atom:updated>
            <content:encoded><![CDATA[<h3>Connecting Puppeteer to Existing Chrome Window w/ reCAPTCHA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*hZaqIHyXtXZX9j5VEt45yA.png" /></figure><h4>&lt;update&gt;</h4><h4><strong>Puppeteer 1.2.0 won’t work. Use 1.4.0 instead.</strong></h4><blockquote>npm install puppeteer@1.4.0</blockquote><blockquote>Although there is a ‘high’ severity audit notice on install, if run on a local machine it should be safe enough.</blockquote><h4>Also</h4><blockquote>Instructions for Windows have changed. I’ve updated story below.</blockquote><h4>&lt;/update&gt;</h4><p>By itself Puppeteer (<a href="https://github.com/GoogleChrome/puppeteer">https://github.com/GoogleChrome/puppeteer</a>) is a great tool created by Google to assist with automated UI testing. However, I’ve found it to be more useful in creating powerful and dynamic web-crawling/scraping scripts.</p><p>It’s worth clarifying this article isn’t recommending a strategy as a way to write tests. Instead it focuses on web-crawling/scraping. If you’re writing UI tests and need to get around captcha there are standard methods such as a separate testing environment with captcha disabled.</p><h4>Background</h4><p>The other common UI automation suite is Selenium WebDriver (I’ve always preferred Chrome web-driver with Python but other browsers / languages are supported). One “downside” with Selenium Chrome web-driver is that it always opens a fresh, independent, and isolated instance of Chrome without access to any existing user state. Nor the ability to easily set cookies/headers. This fresh instance can be either a good or a bad thing depending on the circumstance.</p><p>An example of a “bad” circumstance is when you have a script that needs to run behind a login page with a reCAPTCHA. By design reCAPTCHA blocks automated systems. The challenge becomes: how do we get around reCAPTCHA?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*j3i7sPEKLyP644SEqqbw4w.png" /><figcaption>Typical login page with reCAPTCHA</figcaption></figure><p>The answer is Puppeteer and its ability to connect to an existing Chrome Window which you’ve already manually logged into.</p><p>Here’s how to do it.</p><h4>Prerequisites</h4><ol><li>An existing Node.js javascript project with Puppeteer (base project: <a href="https://github.com/JaredPotter/puppeteer-base-project">https://github.com/JaredPotter/puppeteer-base-project</a>)</li><li>Google Chrome</li></ol><h4>Getting Started</h4><ol><li>Start Chrome with remote debugging enabled.</li></ol><p>MAC</p><pre>/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir=$(mktemp -d -t &#39;chrome-remote_data_dir&#39;)</pre><p>For Mac, once run you’ll see a printout like this:</p><pre>DevTools listening on ws://localhost:9222/devtools/browser/41a0b5f0–6747–446a-91b6–5ba30c87e951</pre><p>Windows</p><ol><li>Right click on your Google Chrome <em>shortcut</em> icon =&gt; Properties</li><li>In Target field, add to the very end --remote-debugging-port=9222</li></ol><p>Should look something like</p><p>&quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot; --remote-debugging-port=9222</p><p>3. Click “Apply” and re-launch Chrome</p><p>For Windows, next you’ll open a browser to <a href="http://127.0.0.1:9222/json">http://127.0.0.1:9222</a>/json/version</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kKpKlXt2SAM5iK0jnNwXiQ.png" /><figcaption>Existing Chrome Window</figcaption></figure><p>2. Copy websocketDebuggerUrl value(ws URL)</p><p>Note: this url changes each time you launch this separate instance of Chrome in this way.</p><p>Once this instance of Chrome is open you can manually log into whatever system you need access to, including solving reCAPTCHAs. This will set the necessary user state — cookies, tokens, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*37CpicAeSuCaNWjT76jV2w.png" /><figcaption>User State Set</figcaption></figure><p>Next, inside your index.js file, instead of launching a new instance of Chrome you’ll connect to this existing version.</p><pre>const wsChromeEndpointurl = &#39;ws://localhost:9222/devtools/browser/41a0b5f0–6747–446a-91b6–5ba30c87e951&#39;;</pre><pre>const browser = await puppeteer.connect({</pre><pre>    browserWSEndpoint: wsChromeEndpointurl,</pre><pre>});</pre><p>Couple of final tips:</p><ul><li>Avoid calling browser.close(); at the end of your script unless that’s what you specifically intend to do. Otherwise you’ll have to re-open Chrome with the commands above.</li><li>Be aware that Puppeteer runs in a Node.js environment and thus has access to read/write files to the file system (fs is my favorite). Handy for exporting scraped data.</li><li>When navigating to a new page in Puppeteer and it happens to be a SPA utilizing the following syntax helps ensure the page fully loads before starting to interact with its elements.</li></ul><pre>await page.goto(pageUrl, {</pre><pre>    waitUntil: &#39;networkidle0&#39;</pre><pre>});</pre><p>Github</p><p><a href="https://github.com/JaredPotter/puppeteer-base-project">https://github.com/JaredPotter/puppeteer-base-project</a></p><p>Reference:<br><a href="https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Chrome_Desktop">https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Chrome_Desktop</a></p><p><a href="https://www.hongkiat.com/blog/chrome-devtools-app-remote-debugging/">How to Enable Chrome DevTools App for Remote Debugging - Hongkiat</a></p><p>—</p><p>🔥 Want to learn Firebase? Checkout my Udemy Course <a href="http://learnfirebase.dev/">Learn Firebase Core with React</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a10828149e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>