<?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 Kapil Gorve on Medium]]></title>
        <description><![CDATA[Stories by Kapil Gorve on Medium]]></description>
        <link>https://medium.com/@kapilgorve?source=rss-9e0bc0b6f08a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*AmYXdvaw_eGLjqSedroqFQ.jpeg</url>
            <title>Stories by Kapil Gorve on Medium</title>
            <link>https://medium.com/@kapilgorve?source=rss-9e0bc0b6f08a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:31:11 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kapilgorve/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[aws cli s3 commands]]></title>
            <link>https://medium.com/@kapilgorve/aws-cli-s3-commands-1c45bc819aee?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c45bc819aee</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Fri, 01 May 2020 02:36:36 GMT</pubDate>
            <atom:updated>2020-05-01T02:36:36.279Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>aws cli s3 cheatsheet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*8ws__wF5jb0srLfZ" /></figure><p>This post was originally published at <a href="https://www.jskap.com/notes/aws-cli-s3-commands/">https://www.jskap.com/notes/aws-cli-s3-commands/</a></p><h4>List buckets</h4><pre>aws s3 ls<br><br>Output:<br>Microsoft Windows [Version 10.0.19041.207]<br>(c) 2020 Microsoft Corporation. All rights reserved.<br><br>D:\work&gt;aws s3 ls<br>2018-11-22 12:23:27 kapilgorve<br>2020-01-08 10:36:12 macosimage<br><br>D:\work&gt;</pre><h4>List files and folders inside a bucket.</h4><pre>aws s3 ls kapilgorve/<br><br>Output:<br>D:\work&gt;aws s3 ls kapilgorve/<br>                           PRE all/<br>                           PRE covers/<br>                           PRE push-notification-react-native/<br>2019-04-28 14:03:03          0<br><br>D:\work&gt;</pre><h4>Copy single file to s3</h4><pre>aws s3 cp test.jpg s3://kapilgorve/blog/covers/</pre><h4>Copy single file to s3 and make public</h4><pre>aws s3 cp test.jpg s3://kapilgorve/blog/covers/ --acl public-read</pre><h4>Copy complete folder to s3</h4><pre>aws s3 cp myfolder s3://kapilgorve/ --recursive</pre><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c45bc819aee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to move WSL2 distro]]></title>
            <link>https://medium.com/@kapilgorve/how-to-move-wsl2-distro-49858d029a49?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/49858d029a49</guid>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Fri, 01 May 2020 02:35:59 GMT</pubDate>
            <atom:updated>2020-05-01T02:35:59.493Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>Move WSL distro from default installed location</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*9LT20Sra7LB9ZWEG" /></figure><p>This post was originally published at <a href="https://www.jskap.com/notes/how-to-move-wsl2-disto/">https://www.jskap.com/notes/how-to-move-wsl2-disto/</a></p><p>You can use LxRunOffline tool to move WSL 1 distros. I faced errors for moving wsl2 distro. You need to convert your distro to v1 and then move. Then convert again to v2.</p><h4>Move WSL2 distro from C drive</h4><ul><li>Install LxRunOffline tool. choco install lxrunoffline</li><li>Stop your distro.</li><li>wsl --list --verbose List all the installed distros on your system. I get output like this.</li></ul><pre>D:\work&gt;wsl --list --verbose<br>  NAME                   STATE           VERSION<br>  docker-desktop         Stopped         2<br>  Ubuntu-18.04           Stopped         2<br>  docker-desktop-data    Stopped         2<br>D:\work&gt;</pre><ul><li>wsl --set-version Ubuntu-18.04 1 This will convert your distro from v2 to v1.</li><li>lxrunoffline move -n Ubuntu-18.04 -d G:\wsl\. Move your distro to another drive. My distro name here is Ubuntu-18.04. I am moving it to G drive and wsl folder inside it. It would take some time to finish moving.</li><li>wsl --set-version Ubuntu-18.04 2 This will convert your distro from v1 to v2 again.</li></ul><p>That’s it. You can start to use your distro again.</p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49858d029a49" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Move/Install WSl distro from C drive to another drive]]></title>
            <link>https://medium.com/@kapilgorve/move-install-wsl-distro-from-c-drive-to-another-drive-9d748e49898d?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d748e49898d</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Fri, 01 May 2020 02:34:29 GMT</pubDate>
            <atom:updated>2020-05-01T02:34:29.114Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>Move WSL distro from default installed location</h4><figure><img alt="&#39;cover&#39;" src="https://cdn-images-1.medium.com/max/1024/0*htF3NyQddVSkEpwL.jpg" /></figure><p>I have a small 128GB SSD. I run out of space when I install ReactNative related dev tools. So I wanted to find a way to install/move my existing distro to different location than C drive.</p><h4>Move WSL to another drive</h4><ul><li>Install LxRunOffline tool. choco install lxrunoffline</li><li>lxrunoffline list List all the installed distros on your system. I get output like this.</li></ul><pre>Microsoft Windows [Version 10.0.19041.207]<br>(c) 2020 Microsoft Corporation. All rights reserved.<br>D:\work&gt;lxrunoffline list<br>Ubuntu-18.04<br>docker-desktop<br>docker-desktop-data<br>D:\work&gt;</pre><ul><li>lxrunoffline move -n Ubuntu-18.04 -d G:\wsl\ . Move your distro to another drive. My distro name here is Ubuntu-18.04. I am moving it to G drive and wsl folder inside it. It would take some time to finish moving.</li></ul><p>You can use the same move command to move your distro from default location to a different location inside C Drive.</p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d748e49898d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Set environment variable in Windows and WSL Linux in terminal]]></title>
            <link>https://medium.com/@kapilgorve/set-environment-variable-in-windows-and-wsl-linux-in-terminal-c5e11138e807?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5e11138e807</guid>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:52:49 GMT</pubDate>
            <atom:updated>2020-04-21T17:52:49.361Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>How to set an environment variable from a command line and shell</h4><figure><img alt="&#39;cover&#39;" src="https://cdn-images-1.medium.com/max/1024/0*uAj_-eogO79DuIqA.jpg" /></figure><h4>Windows set env variable from the command line</h4><ul><li>Open command line. set API_KEY=123</li><li>echo %API_KEY% should print your API_KEY.</li><li>This env variable is set for the context of the current cmd line.</li></ul><h4>Windows set env variable permanently using the command line</h4><ul><li>Open the command line as admin. setx API_KEY &quot;123&quot; /M</li><li>Close the current shell. Open a new shell.</li><li>echo %API_KEY% should print your API_KEY.</li><li>This env variable is set for all future shell instances permanently for your system.</li></ul><h4>WSL Linux set env variable from a bash terminal</h4><ul><li>Launch your wsl instance.</li><li>$ API_KEY=123</li><li>$ echo $API_KEY should print your API_KEY.</li></ul><h4>WSL Linux set env variable permanently from a bash terminal</h4><ul><li>Launch your wsl instance.</li><li>$ sudo vim ~/.bashrc</li><li>Enter your password.</li><li>Press i to go into edit mode. Go to the end of the file using arrow key.</li><li>Add your variable as API_KEY=123 at the end of the file. If your variable has spaces, use quotes. Example - API_KEY= &#39;My Key&#39;</li><li>Press esc key to get out of edit mode.</li><li>Enter :wq and press enter . This will save and close the file.</li><li>$ source ~/.bashrc will load your recent changes into your current shell.</li><li>$ echo $API_KEY should print your API_KEY.</li></ul><p>This post was originally published at <a href="https://www.jskap.com/blog/set-environment-variables-windows-wsl-linux/">https://www.jskap.com/blog/set-environment-variables-windows-wsl-linux/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5e11138e807" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AngularJs styled form handling with ReactJs Hooks]]></title>
            <link>https://medium.com/@kapilgorve/angularjs-styled-form-handling-with-reactjs-hooks-963c46f36a88?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/963c46f36a88</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:52:31 GMT</pubDate>
            <atom:updated>2020-04-21T17:52:31.965Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>Form input validation using ReactJs hooks.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*A2A_EoBdIIexvXHd" /></figure><p>### I loved AngularJs Form Validations I am biased to AngularJs (not to be confused by later version called as Angular). I started working in frontend space with AngularJs. I liked how easy it was for me. I shipped lot of complex functionality in less time or so I thought. Anyway I really loved AngularJs form Validations.</p><p>It’s not possible though to have similar API. I am going to settle here for the AngularJS styled form validation UX.</p><h4>Show me the code</h4><p>If you want to straight head out and play with the demo here you go.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fy28ro3w45j&amp;display_name=CodeSandbox&amp;url=https%3A%2F%2Fcodesandbox.io%2Fs%2Fy28ro3w45j&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2Fy28ro3w45j%2Fscreenshot.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/41717fae99d4669d0591c62fca558e57/href">https://medium.com/media/41717fae99d4669d0591c62fca558e57/href</a></iframe><p>This is a basic React function component using hooks. Incase you have missed the `hooks` party.</p><p>According to React docs-</p><blockquote>Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.</blockquote><pre>import React, { useState } from &#39;react&#39;;<br><br>export function FormInput(props) {<br>  const [inputValue, setValue] = useState(&#39;&#39;);<br><br>  const handleInput = (e) =&gt; {<br>      setValue(e.target.value);<br>  }<br><br>  return (<br>    &lt;div style={inputWrap} &gt;<br>        &lt;label&gt;{props.label}&lt;/label&gt;<br>      &lt;input<br>        style={inputStyle}<br>        value={inputValue}<br>        onChange={handleInput}<br>      /&gt;<br>    &lt;/div&gt;<br>  );<br>}</pre><p>useState is a Hook that lets you add React state to function components. What the hook ? Well you want to check out official <a href="https://reactjs.org/docs/hooks-intro.html">docs</a> here for more details on hooks. Believe me, they are good.</p><h4>So what’s going on here ?</h4><p>We import a predefined hook inside React named as useState.</p><p>import React, { useState } from &#39;react&#39;;</p><p>Which will let us use React’s state concept inside a function component. If you are not from React Land, before this we couldn’t use state inside function components. Function componets were used to passed state from parent components and then render whatever was passed to it through props.</p><p>const [inputValue, setValue] = useState(&#39;&#39;);</p><p>inputValue is our state variable here which we are initializing as empty string with useState(&#39;&#39;). setValue is our function which we can use to update inputValue.</p><pre>const [isTouched, setTouched] = useState(false);<br>  const [inputValue, setValue] = useState(&#39;&#39;);<br>  const [isValid, setValid] = useState(true);</pre><p>We declare two more state variables</p><ol><li>isTouched - to keep track if user has touched the input.</li><li>isValid - to keep track if entered value is valid or not.</li></ol><pre>&lt;input<br>        style={inputStyle}<br>        value={inputValue}<br>        onChange={handleInput}<br>        onBlur={ ()=&gt; setTouched(true)}<br>      /&gt;</pre><p>We add a handler for onBlur. When a user touches the input and leaves the input it will set off onBlur event. We will use this event to set our state variable isTouched. So now we know when a user has touched the input and we can display an error if the user has left it empty.</p><pre>&lt;input<br>        style={inputStyle}<br>        value={inputValue}<br>        onChange={handleInput}<br>        onBlur={ ()=&gt; setTouched(true)}<br>    /&gt;<br>      { touched &amp;&amp; !inputValue &amp;&amp;  &lt;p style={{ color: &#39;red&#39; }}&gt;Please enter value&lt;/p&gt;}</pre><p>Let’s go one more step and validate input and display an error if it is invalid according to us. We don’t want to bother user unless they have typed the value and then left input. I get pissed by instant errors which show up even when I am not finished. So let’s give our user a chance first without declaring them stupid.</p><pre>App.js -<br><br> &lt;div className=&quot;App&quot;&gt;<br>        &lt;FormInput required={false} type=&quot;text&quot; label=&quot;Name&quot; /&gt;<br>        &lt;FormInput required={true} type=&quot;email&quot; label=&quot;Your Email&quot;/&gt;<br>        &lt;FormInput required={true} type=&quot;number&quot; label=&quot;Pin&quot;/&gt;<br> &lt;/div&gt;<br><br>  const handleInput = (e) =&gt; {<br>      setValue(e.target.value);<br>      validate(e.target.value);<br>  }<br><br>  const validate = (val) =&gt; {<br>      if(props.type === &#39;email&#39;) {<br>        if(emailIsValid(val)) setValid(true);<br>        else setValid(false);<br>      }<br>      if(props.type === &#39;number&#39;) {<br>        if(isNum(val)) setValid(true);<br>        else setValid(false);<br>      }<br>}<br><br>....<br><br>     &lt;input<br>        style={inputStyle}<br>        value={inputValue}<br>        onChange={handleInput}<br>        onBlur={ ()=&gt; setTouched(true)}<br>      /&gt;<br>      {props.required &amp;&amp; touched &amp;&amp; !inputValue &amp;&amp;  &lt;p style={{ color: &#39;red&#39; }}&gt;Please enter value&lt;/p&gt;}<br>      {touched &amp;&amp; !isValid &amp;&amp;   &lt;p style={{ color: &#39;red&#39; }}&gt;Please enter valid value.&lt;/p&gt;}<br><br>...<br><br>function emailIsValid (email) {<br>    return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)<br>  }<br><br>  function isNum(val){<br>   return  /^\d+$/.test(val);<br>  }</pre><p>We validate the input value. We wait for user to leave the input and display the error if the input value is invalid. Pass an input type and validate based on regular expressions.</p><p>&lt;FormInput required={true} type=&quot;number&quot; label=&quot;Pin&quot;/&gt;</p><h4>Why I prefer this approach ?</h4><p>I have debated this with lot of people about approach to form validations. For an enterprise client, Product Manager and others weighed in for validations after form submission. I don’t llike instant validations as they sort of remind users that you don’t know what you are doing. I neither like validations after form submission. In some cases this may mean entering a captcha input. These captchas could be straight up harassment for disabled people or with poor vision. I would like to take a middle approach. Let the user fill in the input and display a validation error after they have left the input.</p><p>This post was originally published at <a href="https://www.jskap.com/blog/AngularJS-styled-form-handling-with-React-hooks/">https://www.jskap.com/blog/AngularJS-styled-form-handling-with-React-hooks/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=963c46f36a88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows10 WSL ssh Permission denied public key on new session]]></title>
            <link>https://medium.com/@kapilgorve/windows10-wsl-ssh-permission-denied-public-key-on-new-session-15e85825d95e?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/15e85825d95e</guid>
            <category><![CDATA[wsl]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:52:20 GMT</pubDate>
            <atom:updated>2020-04-21T17:52:20.357Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>Windows 10 Linux Subsystem SSH-agent issue, ssh key not regonized on new session.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*rbnKnMAKhTZI31Uo" /></figure><p>Problem — When trying to connect using ssh, the existing key isn’t recognized by the WSL shell. I had to manually add key each time ssh-add ~/.ssh/id_work_digitalocean on every session.</p><p>TLDR- Add your hostname and key to ~/.ssh/config</p><pre>Host 49.35.99.253<br>IdentityFile ~/.ssh/id_work_digitalocean<br>AddKeysToAgent yes</pre><p>I have been using WSL from long time. Most of it for experiment purposes only.</p><p>There is always something in whole tech stack of the project that it won’t work on WSL. Thats why I use Windows for frontend only projects and an Ubunutu installed on other drive for backend projects.</p><p>For work we use DigitalOcean droplets to deploy projects for client demos. I didn’t give much thought to SSH until recently. We are deploying multiple single page business websites for the client. That means I had to connect to droplets using ssh keys. Using passwords became hectic. So I switched to ssh keys.</p><p>There was one tiny issue though. It quickly became annoying.</p><p>When trying to connect using ssh, the existing key isn’t recognized by the WSL shell. I had to manually add key each time ssh-add ~/.ssh/id_work_digitalocean on every session.</p><p>Solution — Add your key in the ssh config .</p><ul><li>Create a config file first.</li></ul><pre>$ touch ~/.ssh/config</pre><p>There are chances that this file does not exist. In that case create it. If this file exists skip this step.</p><ul><li>Open config file using vim.</li></ul><pre>$ vim ~/.ssh/config</pre><ul><li>Enter i to go into insert mode so you can edit it. Add your hostname and private key location.</li></ul><pre>Host 49.35.99.253<br>IdentityFile ~/.ssh/id_work_digitalocean<br>AddKeysToAgent yes</pre><ul><li>Enter ESC key to get out of insert mode and press :wq to save your changes.</li></ul><p>Now reopen your bash and connect using ssh to your host. You won’t need to add ssh key this time.</p><p>Happy SSHING on Windows !!!</p><p>Fun Fact — ssh support landed in Powershell in 2018. You no longer need to use bash to use ssh. I discovered this while trying the newly launched Windows Terminal.</p><p>This post was originally published at <a href="https://www.jskap.com/blog/Windows10-wsl-ssh-permission-denied-new-session/">https://www.jskap.com/blog/Windows10-wsl-ssh-permission-denied-new-session/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15e85825d95e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Newsletter lesson learned -Dont use free emails like Gmail]]></title>
            <link>https://medium.com/@kapilgorve/newsletter-lesson-learned-dont-use-free-emails-like-gmail-aa52d45d99ff?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa52d45d99ff</guid>
            <category><![CDATA[newsletter]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:52:08 GMT</pubDate>
            <atom:updated>2020-04-21T17:52:08.892Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>Newsletter experiments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*J1GKDtcb540r_6tB" /></figure><p>Always use professional email ex- john@snow.com rather than free email ex john@gmail.com for sending mass emails/newsletters.</p><p>Free email providers like Gmail, Yahoo etc will mark your sender email as spam by default. This is the official policy from these email providers. They are meant for personal use.</p><p>My delivery rate jumped from 20% to 80% just by making a switch in email sender.</p><p>This post was originally published at <a href="https://www.jskap.com/notes/newsletter-lesson-leared-dont-use-free-emails/">https://www.jskap.com/notes/newsletter-lesson-leared-dont-use-free-emails/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa52d45d99ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to exit Vim]]></title>
            <link>https://medium.com/@kapilgorve/how-to-exit-vim-78efc4f61170?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/78efc4f61170</guid>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:51:56 GMT</pubDate>
            <atom:updated>2020-04-21T17:51:56.325Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>How to save and exit from Vim</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*0mHf9mVIEIig3b0v" /></figure><p>1. Press esc key. 2. Type, :q, press return. 3. Type, :wq, press return (If you wanna save) OR 3. Type, :q!, press return (If you don&#39;t wanna save)</p><p>This post was originally published at <a href="https://www.jskap.com/notes/how-to-exit-vim/">https://www.jskap.com/notes/how-to-exit-vim/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78efc4f61170" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Testing Library fireEvent.change example]]></title>
            <link>https://medium.com/@kapilgorve/react-testing-library-fireevent-change-example-ea520e51c4d2?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea520e51c4d2</guid>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:51:38 GMT</pubDate>
            <atom:updated>2020-04-21T17:51:38.473Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>How to test input element change example</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*VYEMgyHLAjVeqt1y" /></figure><p>Example -</p><pre>import React from &#39;react&#39;;<br>import { cleanup, render, fireEvent } from &#39;@testing-library/react&#39;;<br><br>import App from &#39;./App&#39;;<br><br>afterEach(cleanup);<br><br>it(&#39;Enter principal amount&#39;, async () =&gt; {<br>  const { getByTestId } = render(&lt;App /&gt;);<br>  const principalInputElement = getByTestId(&#39;principalInput&#39;) as HTMLInputElement;<br>  fireEvent.change(principalInputElement, {target: {value: &#39;20000&#39;}});<br>  expect(getByTestId(&#39;emititle&#39;)).toHaveTextContent(&#39;1758&#39;);<br>});</pre><p>This post was originally published at <a href="https://www.jskap.com/notes/react-testing-library-fireevent-change/">https://www.jskap.com/notes/react-testing-library-fireevent-change/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea520e51c4d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gatsby Error — Do not use quotes and apostrophe in frontmatter properties]]></title>
            <link>https://medium.com/@kapilgorve/gatsby-error-do-not-use-quotes-and-apostrophe-in-frontmatter-properties-6ec93a851a53?source=rss-9e0bc0b6f08a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ec93a851a53</guid>
            <category><![CDATA[gatsbyjs]]></category>
            <dc:creator><![CDATA[Kapil Gorve]]></dc:creator>
            <pubDate>Tue, 21 Apr 2020 17:51:15 GMT</pubDate>
            <atom:updated>2020-04-21T17:51:15.477Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>can not read a block mapping entry; a multiline key may not be an implicit key at line</h4><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*k0zLTR128lWN8qri" /></figure><p>Error Message — can not read a block mapping entry; a multiline key may not be an implicit key at line</p><p>I was using Apostrophe in the title. This is a parsing error. Remove quotes or apostrophe from your markdown frontmatter properties.</p><p>This post was originally published at <a href="https://www.jskap.com/notes/gatsby-error-cannot-read-block-mapping-entry/">https://www.jskap.com/notes/gatsby-error-cannot-read-block-mapping-entry/</a></p><p>👋 Hi! I’m Kapil. I am always chatty about building things, sharing my learnings, freelancing. Come say hi to me at <a href="https://twitter.com/kapilgorve">https://twitter.com/kapilgorve</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ec93a851a53" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>