<?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 grinder brad on Medium]]></title>
        <description><![CDATA[Stories by grinder brad on Medium]]></description>
        <link>https://medium.com/@grinderbrader?source=rss-ecef7c222e6e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vDhZIYd6peFL7RVps6ZtLA.jpeg</url>
            <title>Stories by grinder brad on Medium</title>
            <link>https://medium.com/@grinderbrader?source=rss-ecef7c222e6e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:35:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@grinderbrader/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[DIY 3D printed virus protection mask from scratch]]></title>
            <link>https://medium.com/@grinderbrader/diy-3d-printed-virus-protection-mask-from-scratch-2b6d736637ce?source=rss-ecef7c222e6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b6d736637ce</guid>
            <category><![CDATA[virus]]></category>
            <category><![CDATA[protection]]></category>
            <category><![CDATA[disease]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[3d-printing]]></category>
            <dc:creator><![CDATA[grinder brad]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 08:52:55 GMT</pubDate>
            <atom:updated>2020-03-15T09:46:36.235Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O6PyssnEJYgAn1UbdFzP8Q.jpeg" /></figure><h3>Problem</h3><p>2020 year has started quite unstable. We facing pandemic situation around Coronavirus (COVID-19). Even in unaffected counties citizens experiencing a lack of personal protective equipment in stores, especially the face masks. So we decided to create our version of DIY mask that uses widespread materials.</p><h3>Theory</h3><h4>Protection class</h4><p>We have a protection FFP classes for face masks. We interested in FFP3 class.</p><h4>FFP3</h4><ul><li>Protection from poisonous and deleterious kinds of dust, smoke, and aerosols</li><li>Oncogenic and radioactive substances or <strong>pathogens such as viruses, bacteria and fungal spores</strong> are filtered by this protective class of respirator masks</li><li>Total leakage may amount to a maximum of 5%</li><li>OEL transgression to the thirtyfold value</li></ul><p>Reverse engineering and research showed that it should consist of multiple layers.</p><p>organic cotton — can absorb dust and water particles very well.</p><p>synthetic mesh — due to electrostatic features can absorb pretty small particles including <strong>viruses</strong>.</p><blockquote>But wait a minute. How it can stop viruses since they are so small (20–300nm)?</blockquote><p>Viruses can’t travel by themselves on long range. They travel on water droplets or even if they can reach filter by themselves they will be attracted by electrostatic field of synthetic cloth. Of course, some of them will pass the filter, but our goal is significantly reduce the <strong>infectious dose </strong>of viruses, so your body immunity can deal with them.</p><p>We also need to reduce air flow through the filter part since we need only to inhale using filter. This task can be accomplished using <strong>valve</strong>. Specifications for well-known masks said that valve can prolong working state of filter from 2 to 6–8 hours of usage.</p><h3>Requirements</h3><p>So we found out that we need reusable, with easy widespread re-loadable multi-layer filter, good fit mask with valve, which have to consist of common materials.</p><h3>3D models that we designed</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lm4PVE1EBLljmR71PhGVCg.png" /><figcaption>Filter body with lid (green) and valve with lid (red)</figcaption></figure><p>You can download it here:</p><p><a href="https://www.thingiverse.com/thing:4223124">https://www.thingiverse.com/thing:4223124</a></p><h3>What do we need to create our version of virus mask</h3><h4>Materials:</h4><ol><li>Dense synthetic cloth for base of our mask. Polyester or nylon.</li><li>Household rubber gloves. (for valve)</li><li>PVC wrap food film.</li><li>medical fabric rubber</li><li>3D printed parts (you can use printer services of ask friend)</li></ol><h4>Tools:</h4><ol><li>Hot glue gun</li><li>Super glue</li><li>Soldering iron</li><li>Scissors</li></ol><h3>Build process</h3><p>Make a pattern from paper for your face. Something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53BOzvreZzWVrWeL1l66Fg.jpeg" /><figcaption>paper pattern</figcaption></figure><p>Make a blank from polyester using your pattern and alloy one side using soldering iron to create a pocket. <strong>Make 2 of these pockets.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0d67sEAsfAKuKEHkYIb9hw.jpeg" /><figcaption>Base of mask</figcaption></figure><p>insert one into another with PVC wrap food film on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5w7QJhCHtduwqEgRQX_cPQ.jpeg" /><figcaption>3 layers which makes it air resistant.</figcaption></figure><p>cut the desired length of rubber and glue corners inside of our sandwich using hot glue gun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EbD462_9l0cxOEycGazzA.jpeg" /><figcaption>Press harder in order to achieve good adhesion and infiltration of glue.</figcaption></figure><p>Cut a hole in mask using soldering iron for valve base. Then glue the valve base using hot glue gun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UZUJTpqb_v7dti91S0AGdg.jpeg" /></figure><p>Do same thing for filter base on the other side. Place the filter little bit higher than mouth. It can help to prolong filter life.</p><p>Cut a circle from rubber gloves and glue inside of valve base using super glue. <strong>Glue only on center line! It should open when you exhale and close when you inhale. </strong>And put the cover on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1NDnE3sLB1uenKTlar-KnA.jpeg" /></figure><p>insert a piece of solid wire in nose are and glue using hot glue gun.</p><p>Cover the edges using medical cloth tape in order to achieve better comfort.</p><h4>Filter assembly</h4><p>take one regular cotton pad and 2–3 layers of dried up wet wipes (check them, try to light it up, they needs to be synthetic) place them on filter base and tight by lid. That’s it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hyo59nwPgd-UJzqnPBSP_w.jpeg" /></figure><h3>Conclusion</h3><p>That’s how we can build face mask with good protection level at home. I hope that this tutorial can help someone. Please, leave a feedback and we can make it better!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b6d736637ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use your home PC as dev server]]></title>
            <link>https://medium.com/@grinderbrader/how-to-use-your-home-pc-as-dev-server-aba0a66dbef0?source=rss-ecef7c222e6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/aba0a66dbef0</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[webpack-dev-server]]></category>
            <category><![CDATA[remote-development]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[pc]]></category>
            <dc:creator><![CDATA[grinder brad]]></dc:creator>
            <pubDate>Mon, 17 Feb 2020 03:40:39 GMT</pubDate>
            <atom:updated>2020-02-17T03:40:39.747Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TVfVO9WoWawYKwe9EC71Jw.jpeg" /></figure><h3>So, what’s the problem here?</h3><p>We used to use ultrabooks for development purpose. I’m personally using 13&#39; macbook pro. But sometimes, it has not enough power to run dev servers for large applications or running docker containers for development purpose. Even small angular app + couple docker containers taking too much resources and makes your mac overheated and drain battery blazing fast.</p><blockquote>What if we can run all those things somewhere else and just connect to output results? I’m pretty sure that many of us have a home PCs which is capable of running all of those things and 90% of time they are not used.</blockquote><p><strong>TL:DR</strong> Your home PC (or if you haven’t one VPS/EC2 Instance) + SSH server configuration + VSCode Remote development extension on your laptop + your home router configuration.</p><h3>Enable SSH server on your home PC.</h3><p>Note. I have dual-boot configuration for Ubuntu and Windows on my home PC. Further details rely on Ubuntu settings. <a href="http://google.com/">How to make dual boot?</a></p><h4>Install openssh-server</h4><pre>sudo apt-get update<br>sudo apt-get install openssh-server</pre><p>After installation is complete service will start automatically. Make sure it’s running by executing.</p><pre>sudo systemctl status ssh</pre><p>It have to be in active (running) state and have a green bubble.</p><p>Ubuntu has built in firewall so we do need disable it for ssh which will open connections for ssh 22 port</p><pre>sudo ufw allow ssh</pre><p>Getting know your machine IP address in your local network by executing</p><pre>ip a</pre><p>We need local IP address. Something like <em>192.168.x.x</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mjblOBi9HLAMxOghYXe4WA.png" /></figure><p>Make sure you can connect to machine from your laptop by command</p><pre>ssh &lt;YOUR_UBUNTU_USERNAME&gt;@&lt;YOUR_IP_ADDRESS&gt;</pre><p>console will ask you for password and then if is succeeded you can notice that console is showing your ubuntu console line.</p><p>You can install all tools that you need for development (if they are not there yet): NodeJS, Golang, Docker etc.</p><p>Type <strong>exit</strong> to terminate ssh session when you’re done.</p><h3>Install remote development extension on your work laptop.</h3><p>There is nothing special to talk about. Just go to extensions marketplace then search and install Visual Studio Code Remote Development Extension Pack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YRm_JOw797BWnB5wD51Sbg.png" /></figure><p>Then, open command palette and search for <em>Add new SSH host</em>.</p><p>Paste your ssh connection string into field. For ex. (<em>ssh &lt;YOUR_UBUNTU_USERNAME&gt;@&lt;YOUR_IP_ADDRESS&gt;</em>)</p><p>Then chose your one existing ssh config file. ex (/Users/username/.ssh/config)</p><h3>Update your laptop’s /etc/hosts file.</h3><p>Add following line to resolve your home pc host as localhost.</p><pre>sudo nano /etc/hosts</pre><p>Paste your IP address.</p><pre># My local home PC<br>192.168.0.102 localhost</pre><p>Save and exit by ctrl + x.</p><h3>Run your docker containers and dev servers.</h3><p>Enter inside your home pc using ssh directly from terminal or by using VScode terminal through remote development extension and run you dev servers and containers.</p><p><strong>NOTE</strong>: Don’t forget to change host argument in your whatever server/container in order to access it within your network. Some of them serves content only to 127.0.0.1 (localhost) by default. We need to change it to 0.0.0.0. See the docs for your dev-server. Usually it achieved by adding environment variable <strong><em>HOST=0.0.0.0 </em></strong>or specifying <strong><em>— host=0.0.0.0</em></strong> command line argument.</p><pre>// for angular 2+ <br>$ npm start -- <strong>--host=0.0.0.0 --disable-host-check</strong></pre><pre>// for react<br>$ <strong>HOST=0.0.0.0</strong> npm start</pre><p>make sure that you can reach your app from your laptop on http://localhost:&lt;your_app_port&gt;</p><p>For docker containers you have to specify port argument to route your container traffic to outside network by adding:</p><h4>For Docker</h4><pre>$ docker run ... <strong>-p 0.0.0.0:&lt;your_port&gt;:&lt;container_app_port&gt;</strong></pre><h4>For docker-compose</h4><pre>version: &#39;3&#39;<br>services:<br>  your_service:<br>    restart: unless-stopped<br>    image: whatever<br>    restart: always<br><strong>    ports:<br>      - &#39;0.0.0.0:80:80&#39;</strong></pre><h3>Connect to PC from internet.</h3><p>Alright! So from now on all your apps are running on your home computer. You develop them using VScode extension, and you see output results on your laptop’s localhost!</p><blockquote>Great! But what if I’m not inside of my home WIFI network?</blockquote><p>To access your home pc from internet you have to open ssh port (22) and whatever else ports for your work inside your wifi router.</p><p>Enter in your home router’s dashboard and search for <strong>Forwarding -&gt; Virtual Servers. </strong>Then create new rules that will open needed ports for your home PC. For TP-link router it looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6OnFOZ3iLBvoy0WL5onuZg.png" /></figure><p>After that try to connect to your home machine from internet. In order to do that you have to know your public network address. Easiest way to do that just google “my ip”</p><p><strong>NOTE</strong>: Don’t forget to update your <em>/etc/hosts</em> file with your public IP address.</p><h3>Conclusion</h3><p>Now you can run all of yours apps and containers remotely using your home PC, unload your laptop and increase your productivity!</p><p>It’s been a lot of info. If you’re like this post or if you have found something which is seems quite not right to you please leave a feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aba0a66dbef0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building powerful Angular 7 app using NgRx Store from Scratch. Part 1]]></title>
            <link>https://medium.com/@grinderbrader/building-powerful-angular-7-app-using-ngrx-store-from-scratch-part-1-3138a60ab88c?source=rss-ecef7c222e6e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3138a60ab88c</guid>
            <category><![CDATA[ngrx]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[grinder brad]]></dc:creator>
            <pubDate>Fri, 01 Mar 2019 03:56:16 GMT</pubDate>
            <atom:updated>2019-03-01T04:52:33.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i38n2vLx_7z0T3e6WplIZQ.png" /></figure><h3>Introduction</h3><p>Hi! My name is Alex and I am JavaScript Developer at <a href="https://zensoft.io/">Zensoft</a>. I decided to start a series of articles about Angular 7. When I was upgrading from AngularJS to Angular 6 it takes much time to understand how to work with TypeScript and RxJs stuff. Today i’ll start a pet project to share my experience and show all pitfalls that I have faced when I was building a big powerful app using Angular 7 and NgRx Store. This app will be used to automate lunch purchase of Zensoft employees. All code will be stored in public GitHub repo [<a href="https://github.com/GrinderBrad/zenfood">here</a>].</p><h3>Story</h3><p>In our office process of lunch ordering is not standardized at all. Some guys bring food from home, some of them go to a cafe at a lunch time. But once we started to cooperate in group and started to order food from one place which is more profitable and cheeper. And that would be cool to have a platform to automate collecting and tracking orders and money from guys.</p><h4>So let’s begin!</h4><p>I’ve started drawing some simple design in Figma.</p><p>Here is the [<a href="https://www.figma.com/file/g9HavbmWAsO6olQqPf1kKdaP/Untitled?node-id=0%3A1">design</a>].</p><p>For UI part i’ll use Ng-Bootstrap because is lightweight and easily customisable. App will have several screens and I need to keep it light. To start building, we need to install @angular/cli.</p><pre>npm install -g @angular/cli</pre><p>Then create a new Angular seed app by typing:</p><pre>ng new my-angular-app</pre><p>It will ask you to include Routing, choose one of the listed CSS preprocessors or use pure CSS. We need to accept routing and SASS for styles. Then navigate to directory with our newly generated app and run it by typing:</p><pre>cd my-angular-app<br>ng serve</pre><p>Perfect! Now we have a seed project to start with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/826/1*OSjYl2bYoSh-rEzi-AMpNg.png" /></figure><p>Now we need to install <strong>NgRx Store</strong> in our app by typing:</p><pre>npm install @ngrx/core @ngrx/store <a href="https://github.com/ngrx/effects">@ngrx/effects</a> create-reducer-tree --save</pre><p>You noticed that we also installed the package @ngrx/effects and create-reducer-tree. We’ll take a look on this later. Now we need to remove all unnecessary things and give nice architecture look. All components will be stored in <strong>src/components</strong> all things related to state management in <strong>src/store. </strong>All services in <strong>src/services</strong> and so on. I’ve started building fundamental components and modules.</p><h3>RxJs has a lot of pitfalls for beginners</h3><p>One of them:</p><blockquote>Once you subscribed to some Observable in your component you must unsubscribe when subscription is no more needed.</blockquote><p>Better way to do that is to make some kind of a middleware which will handle those things for you. So I’ve created function AutoUnsubscribe</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/87ba21e64b5af0433e42ceec7fc9593e/href">https://medium.com/media/87ba21e64b5af0433e42ceec7fc9593e/href</a></iframe><p>And then use it as @decorator() to component for ex:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97f294b282848fc47d5401271f4ab290/href">https://medium.com/media/97f294b282848fc47d5401271f4ab290/href</a></iframe><p>Pretty handy, isn’t it? Alright, I’ve created fundamental regular things like modules, components and routing for them. To communicate with the backend we need some kind of a gate, to throw all your api calls through. Let’s make an injectable service for that.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a00552bee32790b66488dfdc18f249e4/href">https://medium.com/media/a00552bee32790b66488dfdc18f249e4/href</a></iframe><h4>That’s it for now! Stay tuned for next Part!</h4><p>You can find source code at <a href="https://github.com/GrinderBrad/zenfood">[GitHub]</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3138a60ab88c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>