<?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 Yohanna on Medium]]></title>
        <description><![CDATA[Stories by Yohanna on Medium]]></description>
        <link>https://medium.com/@Yohanna?source=rss-cd84cae4d8b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9qoQTjo39C3isCi5lQwgzQ.jpeg</url>
            <title>Stories by Yohanna on Medium</title>
            <link>https://medium.com/@Yohanna?source=rss-cd84cae4d8b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:39:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Yohanna/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[Aquarium Water Conditioners]]></title>
            <link>https://medium.com/@Yohanna/aquarium-water-conditioners-7754331f5256?source=rss-cd84cae4d8b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/7754331f5256</guid>
            <category><![CDATA[water-conditioners]]></category>
            <category><![CDATA[aquarium]]></category>
            <category><![CDATA[betta-fish]]></category>
            <category><![CDATA[fish-tank]]></category>
            <dc:creator><![CDATA[Yohanna]]></dc:creator>
            <pubDate>Tue, 15 Feb 2022 00:18:30 GMT</pubDate>
            <atom:updated>2023-01-01T01:54:27.971Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P0UgPlbw_BHoYfvb" /><figcaption>Photo by <a href="https://unsplash.com/@taeyeonstar?utm_source=medium&amp;utm_medium=referral">Silas Hao</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Different types of Fresh Water Aquarium water products are available like Nitrifying bacteria, Ammonia neutralizer, cloudy water clarifier…etc. Unfortunately each company uses their own term for each type of product, even if the products perform the same function. This can make it really confusing to know which products does what, so hopefully this article makes it clearer.</p><p>While my experience is with Fresh water aquariums, some of the products mentioned below are suitable for different types of aquariums, like Salt water and Ponds.</p><p>Also be aware that not all products have the same concentrations of their contents. For instance, variations exist of the products below for Betta fish tanks. They either contain the exact product in a lower volume, and/or concentration. But they perform the exact same function.</p><p><strong>Note</strong> that any products mentioned below are not an endorsement of the products themselves, and are just an example of the different types of water conditioners available on the market. I have not tried or used all the products, it’s just a list compiled from the public information on the respective products websites. The list is also not exhaustive of all the products available on the market. Use your own judgement and conduct your own research if you want to use any product below.</p><h3>Tap Water Conditioner / Dechlorinator</h3><p>Sometimes just called <em>Water Conditioner</em>, but it will mention somewhere on the bottle that it treat tap water to remove<em> Chlorine, aka a Dechlorinator.</em></p><p>Some Tap Water Conditioners contain <strong>Aloe Vera, </strong>and<strong> </strong>some contain added chemicals to Detoxifies <em>Ammonia</em>, <em>Nitrite</em> and <em>Nitrates</em>. So it can also be used in urgent situations when you detect traces of Ammonia or Nitrites in your Aquarium.</p><h4><strong>Examples:</strong></h4><ul><li>Top Fin Aquarium Water Conditioner (Contains Dechlorinator and Aloe Vera only)</li><li><a href="https://www.apifishcare.com/product/stress-coat">API Stress Coat+</a> (Contains Dechlorinator and Aloe Vera only). <strong>Not</strong> to be confused with API Stress Zyme+, a different product.</li><li><a href="https://www.apifishcare.com/product/tap-water-conditioner">API Tap Water Conditioner</a> (Just a <em>Dechlorinator</em> but concentrated. <strong>Doesn’t</strong> contain <em>Aloe Vera)</em></li><li><a href="https://www.apifishcare.com/product/aqua-essential">API Aqua Essentials</a> (Dechlorinator, and Detoxifier for ammonia, nitrate and nitrite. <strong>Doesn’t </strong>contain Aloe Vera)</li><li><a href="https://apifishcare.com/product/ammo-lock">API Ammo Lock</a> (Dechlorinator, and Detoxifier for Ammonia <strong>only).</strong></li><li><a href="https://www.seachem.com/prime.php">Seachem Prime</a> (Dechlorinator, and Detoxifier for ammonia, nitrate and nitrite. <strong>Doesn’t</strong> contains Aloe Vera as far as I can tell)</li></ul><p>Confused yet?! 😖</p><h3>Nitrifying Bacteria</h3><p>Also called <em>Beneficial Bacteria Supplement, Bacteria Supplement, Cycling Water Conditioner </em>or anything that says Nitrifying<em> Bacteria</em> on it. <strong>Note </strong>that some other products says <em>Beneficial Bacteria</em> on their bottles, but they’re not necessary a <em>Nitrifying Bacteria. </em>So you have to read the label to know exactly what it does.</p><p><strong>Examples:</strong></p><ul><li><a href="https://www.apifishcare.com/product/quick-start">API Quick Start</a></li><li>Top Fin Aquarium Readistart Nitrifying Bacteria Starter</li><li><a href="https://www.seachem.com/stability.php">Seachem Stability</a></li></ul><h3>Detoxifiers</h3><p>They work by turning Ammonia into Ammonium. They’re used in emergency situations if you detect Ammonia in the aquarium since Ammonia (in any concentration) is lethal to the fish.</p><p>Note that your Water test kits will still detect Ammonia levels as the reagents in them can’t tell the difference between Ammonia and Ammonium. If you’re interested in learning more, you can read more <a href="https://nippyfish.net/2006/08/08/ammonia-test-kits-nessler-vs-salicylate/">here</a>.</p><h4>Examples:</h4><ul><li><a href="https://apifishcare.com/product/ammo-lock">API Ammo Lock</a> (Dechlorinator, and Detoxifier for Ammonia <strong>only).</strong></li><li>Top Fin Instant Ammonia Neutralizer</li><li><a href="https://www.seachem.com/prime.php">Seachem Prime</a> (Dechlorinator, and Detoxifier for ammonia, nitrate and nitrite. <strong>Doesn’t</strong> contains Aloe Vera as far as I can tell)</li></ul><h3>Biological Cleaner / Sludge Remover</h3><p>Also called <em>Biological Water Clarifier</em>, <em>Sludge-digesting Bacteria, and Detritus</em> remover. Not to be confused with <em>water clarifiers</em> that <strong><em>don’t</em></strong> contain live bacteria<strong><em>.</em></strong></p><p>These types of bacteria help consume dead Algae, fish waste, and uneaten food. All of which create “sludge” in the aquarium.</p><p><strong>Examples:</strong></p><ul><li><a href="https://www.seachem.com/pristine.php">Seachem Pristine</a></li><li>API Stress Zyme+ (<strong>Not </strong>to be confused with API Stress Coat+)</li><li>Top Fin Aquarium Biological Cleaner</li></ul><h3>Water Clarifier</h3><p>Sometimes called <em>Particulate Water Clarifier. </em>They’re used to clear <strong>cloudy water </strong>by clumping together tiny floating particles together, to form larger particles. This makes them easier to remove by the filter. These types of product <strong>don’t</strong> contain live bacteria.</p><h4>Examples:</h4><ul><li><a href="https://apifishcare.com/product/accu-clear">API Accu-Clear</a></li><li>Top Fin Aquarium Water Clarifier</li><li><a href="https://www.seachem.com/clarity.php">Seachem Clarity</a></li></ul><h3>pH Adjusters</h3><p>These products usually come in two forms, one to raise the pH and another to lower it according to your needs. Thankfully, their labels are usually self-explanatory so I won’t add any examples here.</p><h3>Algaecides or Algae Removers</h3><h4>Examples:</h4><ul><li><a href="https://www.tetra-fish.com/products/water-care/algaecontrol.aspx">Tetra AlgaeControl</a></li><li><a href="https://apifishcare.com/product/algaefix">API AlgaeFix</a></li></ul><p>Let me know in the comments if I missed anything :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7754331f5256" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git going with aliases]]></title>
            <link>https://medium.com/@Yohanna/git-going-with-aliases-d14a5092239d?source=rss-cd84cae4d8b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d14a5092239d</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Yohanna]]></dc:creator>
            <pubDate>Wed, 22 May 2019 05:20:02 GMT</pubDate>
            <atom:updated>2021-05-24T23:25:06.452Z</atom:updated>
            <content:encoded><![CDATA[<p>What are Git aliases and how to configure &amp; use them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GxHsQuAj5fTQPlgh" /><figcaption>Photo by <a href="https://unsplash.com/@yannb?utm_source=medium&amp;utm_medium=referral">yann bervas</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Git is a free and open source <a href="https://hackernoon.com/tagged/version">version</a> control system designed to handle everything from small to <a href="https://blogs.msdn.microsoft.com/bharry/2017/05/24/the-largest-git-repo-on-the-planet/">very large projects</a> with speed and efficiency.</p><p>One of <a href="https://hackernoon.com/tagged/git">Git</a>’s features allow you to create <a href="https://hackernoon.com/tagged/aliases">aliases</a> so you’re able to type shorter commands &amp; combine multiple commands into one.</p><p>For example, I have an alias for the checkout command to co so you can type git co instead of git checkout (Yea, I&#39;m that lazy), Git simply replaces the new command with whatever you aliased it for.</p><p>Over time, I’ve created &amp; collected useful aliases that made my everyday work with <a href="https://hackernoon.com/tagged/git">Git</a> easier. I’ll be going through a couple of them below.</p><h3>Obligatory Git joke</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/0*QlpLa3YYjOYmFuT2.png" /><figcaption><a href="https://xkcd.com/1597/">https://xkcd.com/1597/</a></figcaption></figure><h3>Configuring a new alias</h3><p>First let’s talk about how to configure aliases.</p><p>You can easily set up an alias for a command using git config. Here are a couple of examples you may want to set up:</p><pre>$ git config --global alias.co checkout<br>$ git config --global alias.br branch<br>$ git config --global alias.st status</pre><p>This basically adds a new entry in ~/.gitconfig file. Git uses this file to store all your settings. On Windows it&#39;s located in C:\Users\&lt;user_name&gt; .</p><p>Another way to add a new alias would be to edit ~/.gitconfig directly. I always use this method since I can add comments to my aliases.</p><p>To do that, simply open ~/.gitconfig in your current favourite editor, and add the new alias under the [alias] section. For example, to add git co manually:</p><p>Which tells Git to replace co with checkout everytime you write git co .</p><p>Keep in mind that this would only work for Git subcommands (like checkout, status, commit). For instance, If you try to alias an OS command:</p><p>Running git list would make Git get mad at you (see what I did there!)</p><pre>$ git list<br>expansion of alias &#39;list&#39; failed; &#39;ls&#39; is not a git command</pre><h3>Aliasing external commands</h3><p>Fortunately Git provide a simple way to alias anything that’s not a git command. If you want to run an external command, start the command with a ! character. Using our previous example:</p><p>Now typing git list in the terminal would instruct Git to run the ls command &amp; list files in current directory.</p><p>I’ll use two aliases I use daily to show you how powerful Git aliases are.</p><h3>Branches</h3><p>After creating a new branch, you’ll want to push it to your remote fork of the repo to have a backup of your code or to be able to merge it later with other repos.</p><p>If you type git push after creating a new branch, you&#39;ll get an error similar to this:</p><pre>fatal: The current branch &lt;branch_name&gt; has no upstream branch.<br>To push the current branch and set the remote as upstream, use git push --set-upstream origin &lt;branch_name&gt;</pre><p>Basically Git is telling you that you need to explicitly tell it which remote branch you want your local branch to track before you can push your changes. And you can run the command it provided to push the branch &amp; set it’s remote at the same time.</p><p>Now I don’t know about you, but I don’t want remember all of this, and I don’t want to type git push in order for Git to remind me of the command I need, so I can copy &amp; paste it in the terminal to run. That&#39;s just too much work :)</p><p>How about if we can just type one command that will:</p><ol><li>Set a remote upstream branch with the <em>same name</em> as your current branch,</li><li>and then push your current branch.</li></ol><p>To do that, we’ll create a new alias called publish that does that for us. However, in order for publish to work it needs a way to figure out the current branch name. Fortunately we can run this Git command: git rev-parse - abbrev-ref HEAD to give us this info.</p><p>To be able to get the output of one command, and use it in another, we can use <a href="https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html">Command Substitution</a>.</p><p>So now our publish alias becomes:</p><pre>git push --set-upstream origin $(git rev-parse - abbrev-ref HEAD)</pre><p>This is how it looks in .gitconfig</p><pre>[alias]<br> publish = git push --set-upstream origin $(git rev-parse - abbrev-ref HEAD)</pre><p>This is where Git aliases really shine, its ability to combine multiple commands to save you time.</p><p>Note that you’ll notice in my personal aliases list (at the end of this post) I’ve created a separate alias for the command that returns the current branch name, just for sake of organization.</p><p>Now let’s see how we can even create aliases that takes input from the user!</p><h3>Syncing with upstream</h3><p>One of the other really helpful alias I use constantly is:</p><pre>git sync upstream/develop</pre><p>If you work on open source projects or if you use the <a href="https://www.atlassian.com/git/tutorials/comparing-workflows/forking-workflow">Git Forking workflow</a>, then you’ll find yourself always updating your repo with the upstream repo (the repo you forked from).</p><p>This process basically involves two steps, <em>fetching </em>the commits you want to merge. And actually <em>merging </em>those two commits.</p><p>To do the first step I run git fetch --all --prune when gets all the newer commits from all <a href="https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes">remotes</a> I have.</p><p>And then I run git rebase -p --autostash upstream/develop to merge the commits fetched specifically from upstream/develop branch to my current branch. While these two commands can be combined in an alias, I found that sometimes I want to <em>rebase </em>commits<em> fetched </em>from a different branch than upstream/develop 😕</p><p>How can I pass extra info, like a branch name, to my alias?</p><p>Basically something like this:</p><pre>[alias]<br> sync= <strong>!</strong>git fetch --all --prune &amp;&amp; git rebase -p --autostash &lt;user_input&gt;</pre><p>Fortunately that’s still doable in Git. All you need to do is add a $1 to where your input will be used in the command:</p><pre>[alias]<br> sync= !git fetch --all --prune &amp;&amp; git rebase -p --autostash $1</pre><p>And now you can just call the sync alias with any input you&#39;d like! For example:</p><pre>git sync different-remote/feature</pre><p>Hopefully that gives you an introduction to Git aliases. You can find my list of aliases below.</p><p>If there are any other aliases that you use and find helpful, let me know and I’ll add them to the list :)</p><p>Thanks for reading — I hope you found this article useful.</p><p>You can follow me on <a href="https://twitter.com/Yo_Gad">Twitter</a> &amp; <a href="https://github.com/Yohanna">GitHub</a>.</p><h3>Full list</h3><p>So without further ado here’s my current list of aliases:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a64f7c75a43cd4b77c06b4edc959eee1/href">https://medium.com/media/a64f7c75a43cd4b77c06b4edc959eee1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d14a5092239d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git going with aliases]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/hackernoon/git-going-with-aliases-a9706e23fa9c?source=rss-cd84cae4d8b7------2"><img src="https://cdn-images-1.medium.com/max/2600/0*p9_law2V49JzCyTL" width="6564"></a></p><p class="medium-feed-snippet">What are Git aliases and how to configure &amp; use them.</p><p class="medium-feed-link"><a href="https://medium.com/hackernoon/git-going-with-aliases-a9706e23fa9c?source=rss-cd84cae4d8b7------2">Continue reading on HackerNoon.com »</a></p></div>]]></description>
            <link>https://medium.com/hackernoon/git-going-with-aliases-a9706e23fa9c?source=rss-cd84cae4d8b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9706e23fa9c</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[git-going-with-aliases]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[git-going]]></category>
            <dc:creator><![CDATA[Yohanna]]></dc:creator>
            <pubDate>Mon, 13 Aug 2018 18:01:01 GMT</pubDate>
            <atom:updated>2019-05-22T05:20:02.319Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
        </item>
        <item>
            <title><![CDATA[Difference between Enzyme’s rendering methods]]></title>
            <link>https://medium.com/@Yohanna/difference-between-enzymes-rendering-methods-f82108f49084?source=rss-cd84cae4d8b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/f82108f49084</guid>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[enzyme]]></category>
            <category><![CDATA[jest]]></category>
            <dc:creator><![CDATA[Yohanna]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 18:01:01 GMT</pubDate>
            <atom:updated>2018-11-05T16:14:49.623Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<blockquote>shallow vs mount vs render</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*BH-JZtjVZJnZoksmUNJuOw.jpeg" /><figcaption>Darth Vader on the importance of unit tests, circa 1977</figcaption></figure><p><a href="https://github.com/airbnb/enzyme">Enzyme</a> is a JavaScript Testing utility for React that makes it easier to assert, manipulate, and traverse your React Components’ output.</p><p>The library offers different methods to render the component under test. However, for new users the difference between them can be a bit confusing.</p><p>Hopefully this post will help you choose the correct rendering method for your use case.</p><p><strong>Note: </strong>methods marked with v3 are only available since version 3.</p><h3><a href="http://airbnb.io/enzyme/docs/api/shallow.html">Shallow</a></h3><h4>Simple shallow</h4><p>Calls:</p><ul><li>constructor</li><li>render</li><li>componentDidMount v3</li></ul><h4>shallow + <a href="http://airbnb.io/enzyme/docs/api/ShallowWrapper/setProps.html">setProps</a></h4><p>Calls:</p><ul><li>componentWillReceiveProps</li><li>shouldComponentUpdate</li><li>componentWillUpdate</li><li>render</li><li>componentDidUpdate v3</li></ul><h4>Shallow + unmount</h4><p>Calls:</p><ul><li>componentWillUnmount</li></ul><h3><a href="http://airbnb.io/enzyme/docs/api/mount.html">Mount</a></h3><ul><li>Full rendering <strong>including </strong>child components.</li><li>Requires a DOM (<a href="https://github.com/jsdom/jsdom">jsdom</a>, <a href="https://github.com/fgnass/domino">domino</a>).</li><li>More costly in execution time.</li></ul><h4>Simple mount</h4><p>Calls:</p><ul><li>constructor</li><li>render</li><li>componentDidMount</li></ul><h4>Mount + setProps</h4><p>Calls:</p><ul><li>componentWillReceiveProps</li><li>shouldComponentUpdate</li><li>componentWillUpdate</li><li>render</li><li>componentDidUpdate</li></ul><h4>Mount + unmount</h4><p>Calls:</p><ul><li>componentWillUnmount</li></ul><h3><a href="http://airbnb.io/enzyme/docs/api/render.html">Render</a></h3><p>Only calls render but renders all children.</p><p>So my rule of thumbs is:</p><ul><li>Always begin with shallow</li><li>If you want to test children behavior, use mount</li><li>If you want to test children rendering with less overhead than mount and you are not interested in lifecycle methods, use render</li></ul><h3>Acknowledgment</h3><p>This post is basically a copy of <a href="https://github.com/airbnb/enzyme/issues/465#issuecomment-227697726">this comment</a> by <a href="https://twitter.com/geowarin">Geoffroy Warin</a>, with a few edits to reflect updates to the library. I wanted to create a separate post for it as I felt it’s relevant to anyone learning/using Enzyme in general.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f82108f49084" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>