<?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 Ian Gloude on Medium]]></title>
        <description><![CDATA[Stories by Ian Gloude on Medium]]></description>
        <link>https://medium.com/@igloude?source=rss-b5d8d552a0e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FkiRjrCYF7whvUcMXPWX2A.jpeg</url>
            <title>Stories by Ian Gloude on Medium</title>
            <link>https://medium.com/@igloude?source=rss-b5d8d552a0e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:18:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@igloude/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[4 Steps to Self-Hosted Fonts in Gatsby]]></title>
            <link>https://medium.com/@igloude/4-steps-to-self-hosted-fonts-in-gatsby-d40db29e57c2?source=rss-b5d8d552a0e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d40db29e57c2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[gatsbyjs]]></category>
            <category><![CDATA[typography]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Ian Gloude]]></dc:creator>
            <pubDate>Thu, 17 Oct 2019 23:13:04 GMT</pubDate>
            <atom:updated>2019-10-17T23:13:04.961Z</atom:updated>
            <content:encoded><![CDATA[<p>I finally got around to setting up fonts for this site, but everywhere I looked were articles that overly complicated self-hosting fonts in Gatsby. Here’s the easy 4-step process I used for my blog.</p><p>1. Place your font files in static/fonts/</p><p>2. Create a fonts.css file in the same directory and add your css font face rule(s). Mine looks like this:</p><pre><a href="http://twitter.com/font">@font</a>-face {<br>  font-family: &quot;Lato&quot;;<br>  src: url(https://medium.com/&quot;Lato-Regular.otf&quot;);<br>}</pre><pre><a href="http://twitter.com/font">@font</a>-face {<br>  font-family: &quot;Dank Mono&quot;;<br>  src: url(https://medium.com/&quot;DankMono-Regular.otf&quot;);<br>}</pre><p>3. Add gatsby-plugin-web-font-loader with either npm or yarn (don’t forget to--save!).</p><p>4. Add the plugin to your gatsby-config.js inside the plugins array. Here’s mine:</p><pre>{<br>  resolve: &quot;gatsby-plugin-web-font-loader&quot;,<br>  options: {<br>    custom: {<br>      families: [&quot;Lato, Dank Mono&quot;],<br>      urls: [&quot;/fonts/fonts.css&quot;],<br>    },<br>  },<br>},</pre><p>That’s it!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d40db29e57c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How CSS Grid Makes Single Columns Better]]></title>
            <link>https://medium.com/@igloude/how-css-grid-makes-single-columns-better-def5a7dd5045?source=rss-b5d8d552a0e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/def5a7dd5045</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Ian Gloude]]></dc:creator>
            <pubDate>Sat, 09 Dec 2017 04:09:08 GMT</pubDate>
            <atom:updated>2017-12-09T04:09:08.120Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ByFwzY1d4BKxtNNDjpoOvQ.jpeg" /></figure><p>Let’s build a grid for a single column of content with the ability to have a child grid item span the full width of the viewport, but keep its content in the same grid as the other items.</p><p>This article will assume a basic familiarity with CSS Grid. If you’re unsure of how minmax, template-areas, or any of the other grid properties below work, a great place to learn is <a href="https://medium.com/u/be9c04b39015">Rachel Andrew</a>’s tutorials on <a href="https://gridbyexample.com/">Grid By Example</a>. Can’t recommend her work enough.</p><p>On to the task at hand. If we were to build this setup in bootstrap it <em>could </em>look like this:</p><pre>&lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;col-md-12&quot;&gt;<br>        &lt;p&gt;some content in a standard column&lt;/p&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>&lt;div class=&quot;bg-style&quot;&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>        &lt;div class=&quot;col-md-12&quot;&gt;<br>            &lt;p&gt;some content with a fancy background, but<br>            still in what appears to be the same column&lt;/p&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;div class=&quot;col-md-12&quot;&gt;<br>        &lt;p&gt;some more content in our column&lt;/p&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><p>That’s a lot of divs.</p><p>Thanks to CSS Grid, we can do much better. Let’s begin by creating our container.</p><pre>.grid {<br>    display: grid;<br>    grid-template-columns: <br>        [viewport-start] minmax(1em, 1fr)<br>        [container-start] minmax(0, 30em) [container-end]<br>        minmax(1em, 1fr) [viewport-end];<br>}</pre><p>We’ve set our container, specified three columns, and two named grid-areas — <em>viewport</em> and <em>container</em>. Any element with the class grid will look something like this:</p><pre>|------------|------------|------------|<br>|--viewport--|--viewport--|--viewport--|<br>|            |--container-|            |<br>|------------|------------|------------|</pre><p>The <em>viewport</em> area will be used to center the container on the page responsively and apply any background color/images. All of the content will live inside the <em>container </em>area.</p><p>To assign grid children to each area, we’ll create two classes and assign the grid-column property to each of our named grid-areas.</p><pre>.item--contained {<br>    grid-column: container;<br>}</pre><pre>.item--full { <br>    grid-column: viewport;<br>}</pre><p>At this point, the item--contained class is working well. But all of item--full‘s children are spanning the width of the parent — not what we had in mind. To solve this, we’ll add:</p><pre>.item--full { <br>    grid-column: viewport; <br>    display: inherit;<br>    grid-template-columns: inherit;<br>}</pre><pre>.item--full &gt; * {<br>    grid-column: container;<br>}</pre><p>When the display and grid-template-columns properties are set to inherit, the grid columns we set up on the parent .grid will trickle down and apply to the child .item--full. So we have the same center column and the same exterior columns, but without changing breaking out of the parent like we had to in the bootstrap example above.</p><p>So our final CSS looks like this:</p><pre>.grid {<br>    display: grid;<br>    grid-template-columns: <br>        [viewport-start] minmax(1em, 1fr)<br>        [container-start] minmax(0, 30em) [container-end]<br>        minmax(1em, 1fr) [viewport-end];<br>}</pre><pre>.item--contained {<br>    grid-column: container;<br>}</pre><pre>.item--full { <br>    grid-column: viewport; <br>    display: inherit;<br>    grid-template-columns: inherit;<br>}</pre><pre>.item--full &gt; * {<br>    grid-column: container;<br>}</pre><p>Which means our markup can look like this:</p><pre>&lt;div class=&quot;grid&quot;&gt;<br>    &lt;div class=&quot;item item--contained&quot;&gt;<br>        &lt;p&gt;some contained content&lt;/p&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;item item--full blockquote&quot;&gt;<br>        &lt;p&gt;some content with a nice full-width background&lt;/p&gt;<br>    &lt;/div&gt;<br>    &lt;div class=&quot;item item--contained&quot;&gt;<br>        &lt;p&gt;some more contained content&lt;/p&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;</pre><p>Much easier to read and write.</p><p>Full working example below. Happy gridding!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Figloude%2Fembed%2Fpreview%2FpPVPxP%3Fheight%3D600%26slug-hash%3DpPVPxP%26default-tabs%3Dhtml%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Figloude%2Fpen%2FpPVPxP&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F80050.pPVPxP.small.0b57124e-aed8-4255-8b07-923342b797d6.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/443833120a22d5766df848468ef83053/href">https://medium.com/media/443833120a22d5766df848468ef83053/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=def5a7dd5045" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using applescript and BTT to make the AirPods experience a little bit better]]></title>
            <link>https://medium.com/@igloude/using-applescript-and-btt-to-make-the-airpods-experience-a-little-bit-better-6e78b12d33bd?source=rss-b5d8d552a0e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e78b12d33bd</guid>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[airpods]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[iphone]]></category>
            <category><![CDATA[macbook]]></category>
            <dc:creator><![CDATA[Ian Gloude]]></dc:creator>
            <pubDate>Wed, 07 Jun 2017 17:37:35 GMT</pubDate>
            <atom:updated>2017-06-07T17:37:35.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sRLHOtABNqDVadda_mo-8A.jpeg" /></figure><p>Let’s be clear off the bat, this post is not about me trying to justify buying AirPods. There are enough of those posts out there already. I like the little guys. I describe them in the same way as I do my Apple Watch — it doesn’t change my life, but its very convenient and I’ve grown to like it. It’s a gadget. And I like gadgets.</p><p>At work I find myself constantly switching the AirPods between my laptop and phone. This requires manually going into the bluetooth menu and connecting to the device. I cannot be more clear on this point: THIS IS HOW IT SHOULD BE. I have seen countless forum posts of people lamenting this extra step. Your laptop and/or phone are not smart enough to know when you want to switch audio sources.</p><p>We can come up with a way to make manually switching sources easier. Unfortunately, there is no API to directly interact with bluetooth devices in OSX. But, we can engineer a creative/hacky workaround using applescript.</p><p>Create an .applescript file with the code below. I chose to make my script a dotfile, so it would be invisible to basic file searches. For simplicity’s sake, I made my filepath ~/.airpod-connect.applescript. Location and visibility doesn’t matter in the end.</p><pre>tell application &quot;System Events&quot; to tell process &quot;SystemUIServer&quot;<br>    set bt to (first menu bar item whose description is &quot;bluetooth&quot;) of menu bar 1<br>    click bt<br>    tell (first menu item whose title is &quot;YOUR_DEVICE_NAME&quot;) of menu of bt<br>        click<br>        tell menu 1<br>            if exists menu item &quot;Connect&quot; then<br>                click menu item &quot;Connect&quot;<br>            else<br>                click bt<br>            end if<br>        end tell<br>    end tell<br>end tell</pre><p>You’ll need to replace YOUR_DEVICE_NAME with your device’s name. Then make sure to enable the bluetooth icon in your menu bar.</p><p>Now, the script should be working from the command line. You can test it by running osascript your/file/path/file.applescript. For me, this command would look like: osascript ~/.airpod-connect.applescript. You may need to give security permissions to the terminal and/or BTT.</p><p>The final step is creating a shortcut with <a href="https://www.boastr.net/">BTT</a> to execute a terminal command. Open BTT and create a new Keyboard shortcut. Under Trigger Predefined Action select Execute Terminal Command and paste in the osascript command with your path to the .applescript file.</p><p>All done! Now you have a keyboard shortcut that pairs your AirPods to your Mac.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e78b12d33bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Containers with CSS Grid]]></title>
            <link>https://medium.com/@igloude/containers-with-css-grid-efcf28cbb491?source=rss-b5d8d552a0e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/efcf28cbb491</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Ian Gloude]]></dc:creator>
            <pubDate>Mon, 15 May 2017 00:51:13 GMT</pubDate>
            <atom:updated>2019-08-06T01:11:01.734Z</atom:updated>
            <content:encoded><![CDATA[<p>Aug. 2019 Update — A lot has changed on Medium since I wrote this article. A lot that I’m not a fan of. So, I’ve decided to move off Medium and start my own little corner of the internet. You can find the relocated article here:<br><a href="https://compiledsuccessfully.dev/css-grid-site-container/">https://compiledsuccessfully.dev/css-grid-site-container</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efcf28cbb491" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git skip-worktree and how I used to hate config files]]></title>
            <link>https://medium.com/@igloude/git-skip-worktree-and-how-i-used-to-hate-config-files-e84a44a8c859?source=rss-b5d8d552a0e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e84a44a8c859</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Ian Gloude]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 04:29:26 GMT</pubDate>
            <atom:updated>2019-08-05T23:28:32.487Z</atom:updated>
            <content:encoded><![CDATA[<p>Aug. 2019 Update — A lot has changed on Medium since I wrote this article. A lot that I’m not a fan of. So, I’ve decided to move off Medium and start my own little corner of the internet. You can find the relocated article here:<br><a href="https://compiledsuccessfully.dev/git-skip-worktree/">https://compiledsuccessfully.dev/git-skip-worktree/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e84a44a8c859" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>