<?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 Jeremy on Medium]]></title>
        <description><![CDATA[Stories by Jeremy on Medium]]></description>
        <link>https://medium.com/@w9jds?source=rss-f0185ace7e63------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N07kXkA5zTvz5r3Yi8EGZQ.png</url>
            <title>Stories by Jeremy on Medium</title>
            <link>https://medium.com/@w9jds?source=rss-f0185ace7e63------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:09:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@w9jds/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[Windows Terminal and WSL v1 and WSL v2]]></title>
            <link>https://medium.com/@w9jds/windows-terminal-and-wsl-v1-and-wsl-v2-d7d6b1dcc69e?source=rss-f0185ace7e63------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7d6b1dcc69e</guid>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[windows-insider]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[windows-subsystem-linux]]></category>
            <dc:creator><![CDATA[Jeremy]]></dc:creator>
            <pubDate>Mon, 17 Jun 2019 02:18:08 GMT</pubDate>
            <atom:updated>2019-06-17T02:23:29.952Z</atom:updated>
            <content:encoded><![CDATA[<p>With the new release of WSL v2, you can now run both v1 and v2 next to each other. Now that Windows has unveiled their new Terminal, you can now easily configure it to use whatever version you would like! I’m going to show you the current configurations you can use to set them up if you decide to manually compile the new terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O67yEVp5sG1dhOgoHehJPQ.png" /><figcaption>Windows Terminal with a Ubuntu, Debian, and Powershell tab</figcaption></figure><p>If you didn’t know already, you should avoid using the bash.exe located inside of the System32 folder. Instead, you should be using the wsl.exe that is provided. There are two reasons why you want to do it</p><ol><li>The default shell is honored, in case you use zsh/oh-my-zsh/fish (which you probably should consider)</li><li>It provides a handful of useful arguments that you can use when launching your terminal</li></ol><p>Personally, I setup Ubuntu to use the new v2 and setup Debian to continue using v1. Keep in mind, if you install a new WSL distro it defaults to v2. So if you want it to be v1 or you want to upgrade your current distro you will need to run:</p><pre>wsl --set-version &lt;distro&gt; &lt;version&gt;</pre><p>Inside of the profiles.json file that the terminal uses, you will want to add two new profiles. This is what my two look like currently:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f43868d5f0df19e4c303c305c2ebf31d/href">https://medium.com/media/f43868d5f0df19e4c303c305c2ebf31d/href</a></iframe><p>If you notice, the commandline does NOT point to bash.exe this is where we take advantage of specifying your distro with:</p><pre>wsl.exe -d &lt;distro&gt;</pre><p>With that, you are now ready to start using both of these! Please keep in mind that at this time, WSL v2 and the Terminal are still being actively worked on! So I’m going to list some sources here for you to see what has changed.</p><p><a href="https://docs.microsoft.com/en-us/windows/wsl/wsl2-install">Install WSL 2</a></p><p><a href="https://docs.microsoft.com/en-us/windows/wsl/wsl2-ux-changes">WSL 2 UX Changes</a></p><p><a href="https://github.com/microsoft/wsl/issues">Report WSL Issues</a></p><p><a href="https://github.com/microsoft/terminal">Windows Terminal</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7d6b1dcc69e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using Firebase with Github Actions!]]></title>
            <link>https://medium.com/@w9jds/using-firebase-with-github-actions-629fdf64cafc?source=rss-f0185ace7e63------2</link>
            <guid isPermaLink="false">https://medium.com/p/629fdf64cafc</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[Jeremy]]></dc:creator>
            <pubDate>Tue, 11 Dec 2018 17:08:25 GMT</pubDate>
            <atom:updated>2019-03-29T15:20:09.867Z</atom:updated>
            <content:encoded><![CDATA[<p>You have probably heard that Github is releasing a workflow system of their own that is obscenely powerful. They even include a huge amount of out of the box actions that will get a lot of things done for you like deploying to NPM, Azure, and Google Cloud Platform. However, they don’t offer anything for Firebase which has a whole sweet of offerings like hosting, functions, real-time database, and Firestore.</p><p>Since actions can basically be anything with a Dockerfile, I have created a repo that sets up the environment so you can use any firebase-tools commands you need in your workflow. I have been using it on my private repositories to deploy to dev and prod hosting sites as I push them to specific branches. The firebase action can be found <a href="https://github.com/w9jds/firebase-action">here</a> and it’s extremely simple to implement.</p><p>On your development machine, you need to get a CI token from Firebase, so in your terminal just enter:</p><pre>firebase login:ci</pre><p>This will NOT mess up your current login on your machine and generates a completely new token to use.</p><p>Go through the login process and copy the token that is spit out into your console, and navigate to the project you want to include a Firebase action in. Inside of your workflow create a new action and for uses you want to set it to w9jds/firebase-action@master (It is recommended to use a specific commit has over master as it won’t break as actions are updated!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*F3pJ9CqPRSOekA_BW_RPEA.png" /><figcaption>Secrets section in the Github workflow</figcaption></figure><p>In this action there is a secrets section. Click create new secret and create a token named FIREBASE_TOKEN using the token you just recieved. Once you finish, make sure that the secret is checked for this action.</p><p>Depending on what you want to do in this action, update the args for the action to what you want. Actions are recommended to default to any help commands, so you want to override it. Once set up, it should look something like this:</p><pre>action &quot;Pushed to develop&quot; {<br>  uses = &quot;actions/bin/filter@95c1a3b&quot;<br>  args = &quot;branch develop&quot;<br>}</pre><pre>action &quot;Install Dependencies&quot; {<br>  uses = &quot;actions/npm@6309cd9&quot;<br>  needs = [&quot;Pushed to develop&quot;]<br>  args = &quot;install&quot;<br>}</pre><pre>action &quot;Build Development&quot; {<br>  uses = &quot;actions/npm@6309cd9&quot;<br>  needs = [&quot;Install Dependencies&quot;]<br>  secrets = [&quot;FIREBASE_API_KEY&quot;]<br>  args = &quot;run build&quot;<br>}</pre><pre>action &quot;Deploy to Development&quot; {<br>  uses = &quot;w9jds/firebase-action@master&quot;<br>  needs = [&quot;Build Development&quot;]<br>  args = &quot;deploy --only hosting:dev&quot;<br>  env = {<br>    PROJECT_ID = &quot;new-eden-storage-a5c23&quot;<br>  }<br>  secrets = [&quot;FIREBASE_TOKEN&quot;]<br>}</pre><p>Notice that I have a workflow that first installs all of the dependencies needed for my project. It then moves on to run a build for the project, and finally deploys the project to the dev hosting target on my firebase project.</p><p>As this action isn’t designed to only work for deployment, if the command is supported by firebase-tools then you can use it as an argument.</p><p>Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=629fdf64cafc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using ViewModels Like a Custom Loader]]></title>
            <link>https://medium.com/@w9jds/using-viewmodels-like-a-custom-loader-df85ddc3b66a?source=rss-f0185ace7e63------2</link>
            <guid isPermaLink="false">https://medium.com/p/df85ddc3b66a</guid>
            <category><![CDATA[viewmodel]]></category>
            <category><![CDATA[observables]]></category>
            <category><![CDATA[loader]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[livedata]]></category>
            <dc:creator><![CDATA[Jeremy]]></dc:creator>
            <pubDate>Thu, 17 May 2018 15:00:05 GMT</pubDate>
            <atom:updated>2018-05-17T15:00:05.565Z</atom:updated>
            <content:encoded><![CDATA[<p>With the introduction of ViewModels and LiveData the Loaders paradigm kind of died to an entirely stateless and observable powered system. However, there were things inside of loaders that were nice.</p><p>For instance, a lot of your logic to get and manage your data is inside of your Loader. If you were like me, you would send out events letting the UI know that something is running in the background (To display progress spinners accordingly). A good UX is important after all! So what I ended up doing was creating a class that extended from a ViewModel called a LoaderModel with base functions and logic that let you tell the UI that you have started or finished loading information. Here is the gist containing the class:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b2487247c0f9baaa72fd0fc8cb84802/href">https://medium.com/media/2b2487247c0f9baaa72fd0fc8cb84802/href</a></iframe><p>It’s an extremely simple concept really. When you start any kind of operation, call the loadStarted() to let the listener of isLoading know that an operation has started. This allows multiple operations to be running at once. When one of them is finished, just call loadFinished() and it will decrement the number of running jobs. Once it hits 0, the listener will be notified that loading has finished.</p><p>Handling the loading could look something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7bf0d6d510e1c4ec6988282f69d560fc/href">https://medium.com/media/7bf0d6d510e1c4ec6988282f69d560fc/href</a></iframe><p>It may be a small adjustment but letting the user know something is loading makes a huge difference.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df85ddc3b66a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>