<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Utsav Ladani</title>
    <description>The latest articles on DEV Community by Utsav Ladani (@utsavladani).</description>
    <link>https://dev.to/utsavladani</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F480073%2Fc7309f9f-13a8-4c1e-8720-1147889c6318.png</url>
      <title>DEV Community: Utsav Ladani</title>
      <link>https://dev.to/utsavladani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/utsavladani"/>
    <language>en</language>
    <item>
      <title>How to change base repo in Github CLI?</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Sat, 02 Oct 2021 14:35:27 +0000</pubDate>
      <link>https://dev.to/utsavladani/how-to-change-base-repo-in-github-cli-5fhp</link>
      <guid>https://dev.to/utsavladani/how-to-change-base-repo-in-github-cli-5fhp</guid>
      <description>&lt;p&gt;When you use Github cli for fist time on locally clone forked repo, then you get some message that asked to setup base repo to execute all queries.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ gh issue list
? Which should be the base repository (used for e.g. querying issues) for this directory?  [Use arrows to move, type to filter]
  &amp;lt;name of owner&amp;gt; / &amp;lt;name of repo&amp;gt;
&amp;gt; &amp;lt;your name&amp;gt; / &amp;lt;name of repo&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you setup wrong repo here, then these is no any &lt;code&gt;gh&lt;/code&gt; command to change base repo. I face this issue, but not found solution easily. &lt;/p&gt;

&lt;p&gt;The solution is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open &lt;code&gt;.git/config&lt;/code&gt; file &lt;/li&gt;
&lt;li&gt;Remove line &lt;code&gt;gh-resolved = base&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Save the file and close&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;OR you can use this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;git config &lt;span class="nt"&gt;--unset&lt;/span&gt;  remote.upstream.gh-resolved
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it, now you prompted again to select repo. Select correct repo and go ahead.&lt;/p&gt;

&lt;p&gt;For more info refer this discussion on Github: &lt;a href="https://github.com/cli/cli/issues/1864"&gt;https://github.com/cli/cli/issues/1864&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>githubcli</category>
      <category>issue</category>
    </item>
    <item>
      <title>Web based terminal - Project Demo</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Sun, 06 Jun 2021 05:11:22 +0000</pubDate>
      <link>https://dev.to/utsavladani/web-based-terminal-project-demo-3ijp</link>
      <guid>https://dev.to/utsavladani/web-based-terminal-project-demo-3ijp</guid>
      <description>&lt;p&gt;Hey folks,&lt;/p&gt;

&lt;p&gt;I am trying to make a web based terminal. In which you can run a command and that command execute on your server.&lt;/p&gt;

&lt;h3&gt;
  
  
  Idea behind project
&lt;/h3&gt;

&lt;p&gt;We know that server run on different operating systems and each operating system has their own basic utility to get useful information and also has some useful tools to monitor CPU and RAM usage, etc. These tools and utilities run through a terminal/CLI. You can use that terminal through my web app to get information about your server system. Mobile client can support also, so no need to open computer, just open the app and type command whatever you want 😄.&lt;/p&gt;

&lt;h3&gt;
  
  
  Technical details
&lt;/h3&gt;

&lt;p&gt;Techs are React for frontend and NodeJS, socket.io and child_process modules for backend. There is on any emulator concept. Terminal commands are depends on server's operating system (I make it for my local server, so it supports windows commands),&lt;/p&gt;

&lt;h3&gt;
  
  
  How project works?
&lt;/h3&gt;

&lt;p&gt;There is a simple concept of &lt;strong&gt;child process&lt;/strong&gt;. For each socket, I create a new child process using the spawn function, which is running terminal executable file("cmd.exe" for windows). Now through socket event, I send input command to standard input of child process and get back standard output/error and send it to client.&lt;/p&gt;

&lt;p&gt;YouTube Demo: &lt;a href="https://youtu.be/JrIg-IOaw1U" rel="noopener noreferrer"&gt;https://youtu.be/JrIg-IOaw1U&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/JrIg-IOaw1U"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;GitHub Link: &lt;a href="https://github.com/Utsav-Ladani/Html-and-Terminal" rel="noopener noreferrer"&gt;Html and Terminal&lt;/a&gt;&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Utsav-Ladani" rel="noopener noreferrer"&gt;
        Utsav-Ladani
      &lt;/a&gt; / &lt;a href="https://github.com/Utsav-Ladani/Html-and-Terminal" rel="noopener noreferrer"&gt;
        Html-and-Terminal
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Type command in browser and run on server
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Html-and-Terminal&lt;/h1&gt;

&lt;/div&gt;
&lt;p&gt;Html and terminal is a basic project. You can type commnd in browser and run it on your server. You can use it to manage remote systems.&lt;/p&gt;
&lt;p&gt;Version 1 Demo : &lt;a href="https://youtu.be/JrIg-IOaw1U" rel="nofollow noopener noreferrer"&gt;https://youtu.be/JrIg-IOaw1U&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Version 2 Demo : &lt;a href="https://youtu.be/AhOC-8VGVNI" rel="nofollow noopener noreferrer"&gt;https://youtu.be/AhOC-8VGVNI&lt;/a&gt;&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Tech stack&lt;/h2&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;React&lt;/li&gt;
&lt;li&gt;xterm.js&lt;/li&gt;
&lt;li&gt;express&lt;/li&gt;
&lt;li&gt;node-pty&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;



&lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Utsav-Ladani/Html-and-Terminal" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


</description>
      <category>react</category>
      <category>socketio</category>
      <category>webbasedterminal</category>
    </item>
    <item>
      <title>Simple idea of html view engine</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Sun, 03 Jan 2021 16:58:06 +0000</pubDate>
      <link>https://dev.to/utsavladani/simple-idea-of-html-view-engine-1cla</link>
      <guid>https://dev.to/utsavladani/simple-idea-of-html-view-engine-1cla</guid>
      <description>&lt;h3&gt;
  
  
  What is html view engine?
&lt;/h3&gt;

&lt;p&gt;some code that can combine multiple &lt;code&gt;.html&lt;/code&gt; files and produce single &lt;code&gt;.html&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;Let's take example.&lt;br&gt;
This is &lt;code&gt;index.html&lt;/code&gt; file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Hi hello&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"./style.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    { navbar }
    { footer }
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;here &lt;code&gt;{ footer }&lt;/code&gt; means &lt;code&gt;HTML-Engine&lt;/code&gt; put the code from &lt;code&gt;footer.html&lt;/code&gt; and after replace this all &lt;code&gt;{ something }&lt;/code&gt;, engine merge all code in one file.&lt;/p&gt;

&lt;p&gt;and this is the simple &lt;code&gt;navbar.html&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"logo"&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Logo
    &lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Student&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Developer&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;and this is simple &lt;code&gt;footer.html&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;footer&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    Made with Utsav Ladani
&lt;span class="nt"&gt;&amp;lt;/footer&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;After run my code you get this &lt;code&gt;main.html&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Hi hello&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"logo"&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Logo
    &lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;span&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Student&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;Developer&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;span&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;footer&lt;/span&gt; &lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        Made with Utsav Ladani
    &lt;span class="nt"&gt;&amp;lt;/footer&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;I try to understand how html engine works, and make this simple html engine. I hope you also understand this idea.&lt;/p&gt;

&lt;p&gt;Here is my github project link&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vJ70wriM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Utsav-Ladani"&gt;
        Utsav-Ladani
      &lt;/a&gt; / &lt;a href="https://github.com/Utsav-Ladani/HTML-Engine"&gt;
        HTML-Engine
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
HTML Engine&lt;/h1&gt;
&lt;p&gt;The simple engine idea which can combine multiple html file and produce a single html file. 😄&lt;/p&gt;
&lt;h2&gt;
Version v1.0.0&lt;/h2&gt;
&lt;p&gt;This version is the basic idea of &lt;code&gt;HTML engine&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
How to use?&lt;/h2&gt;
&lt;p&gt;Use &lt;code&gt;views&lt;/code&gt; folder as your working directory. Example is given in there.
Just type &lt;code&gt;node src/index.js&lt;/code&gt; in command line.
And see the result in &lt;code&gt;build/main.html&lt;/code&gt;.&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Utsav-Ladani/HTML-Engine"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



</description>
      <category>html</category>
    </item>
    <item>
      <title>Difference between Object.assign() and just assign</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Thu, 31 Dec 2020 04:20:40 +0000</pubDate>
      <link>https://dev.to/utsavladani/difference-between-object-assign-and-just-assign-5ega</link>
      <guid>https://dev.to/utsavladani/difference-between-object-assign-and-just-assign-5ega</guid>
      <description>&lt;p&gt;As a newbie I saw that some developer use &lt;code&gt;Object.assign()&lt;/code&gt; for assign a value to object, and some developer use &lt;code&gt;just assign&lt;/code&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  What is the difference between that?
&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;Object.assign()&lt;/code&gt; is clone the object.&lt;br&gt;
&lt;code&gt;Just assign&lt;/code&gt; assign the address.&lt;br&gt;
Here I give you an simple example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;b&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;y&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// {a: 50, b: 100}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here you can see that if we change the value of &lt;code&gt;y.a&lt;/code&gt; then &lt;code&gt;x.a&lt;/code&gt; changes automatically, means &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt; have same address.&lt;/p&gt;

&lt;p&gt;Now for &lt;code&gt;just assign&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;a&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;b&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;z&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{};&lt;/span&gt;
&lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;assign&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="nx"&gt;z&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;a&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// {a: 10, b: 100}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here you can notice that we change the value of &lt;code&gt;z.a&lt;/code&gt; but &lt;code&gt;x.a&lt;/code&gt; remains as it is, means &lt;code&gt;z&lt;/code&gt; and &lt;code&gt;x&lt;/code&gt; have different address.&lt;/p&gt;

&lt;p&gt;In short, &lt;code&gt;Object.assign()&lt;/code&gt; is copy the key-value pair ans &lt;code&gt;just assign&lt;/code&gt; assign the same address.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://javascript.info/object-copy"&gt;Here&lt;/a&gt; Link for more better understanding.&lt;/p&gt;

&lt;p&gt;Here is a useful link for javascript reference.&lt;br&gt;
&lt;a href="https://javascript.info/"&gt;Javascript.info&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Bye bye 2020. 😄&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>newbie</category>
    </item>
    <item>
      <title>Open Source Program which can help you to become a cool developer ( specially for student )</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Wed, 16 Dec 2020 18:40:32 +0000</pubDate>
      <link>https://dev.to/utsavladani/open-source-program-which-can-help-you-to-become-a-cool-developer-specially-for-student-2bhc</link>
      <guid>https://dev.to/utsavladani/open-source-program-which-can-help-you-to-become-a-cool-developer-specially-for-student-2bhc</guid>
      <description>&lt;p&gt;Hey people, I found the two open source program which can help you to learn new skills and it will make you good enough in programming, specially in JavaScript and Python. These programs are specially for students.&lt;/p&gt;

&lt;p&gt;Links of these programs are given below:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://devscript.tech/woc/"&gt;DevScript Winter of Code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://swoc.tech/"&gt;Script Winter of Code&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;How these programs help you?&lt;br&gt;
You can learn how to read large codebase, learn new trending tech and also learn how to communicate with other developer for help. You can add this in your resume also.&lt;/p&gt;

&lt;p&gt;Last date for registration is nearly 20 dec for both. So check the original site and apply for that ASAP.&lt;/p&gt;

&lt;p&gt;Happy coding 😄&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>newbie</category>
      <category>devscriptwoc</category>
      <category>scriptwoc</category>
    </item>
    <item>
      <title>When you run command via child_process module you can't able to use cd command, but here I found a way to do that</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Wed, 09 Dec 2020 04:11:58 +0000</pubDate>
      <link>https://dev.to/utsavladani/when-you-run-command-via-childprocess-module-you-can-t-able-to-use-cd-command-but-here-i-found-a-way-to-do-that-32n1</link>
      <guid>https://dev.to/utsavladani/when-you-run-command-via-childprocess-module-you-can-t-able-to-use-cd-command-but-here-i-found-a-way-to-do-that-32n1</guid>
      <description>&lt;p&gt;Hey people, &lt;br&gt;
     In my &lt;a href="https://dev.to/utsavladani/how-you-can-execute-terminal-command-on-server-via-ui-from-client-side-39jd"&gt;old post&lt;/a&gt;, I mentioned a issue . And cause of that issue we couldn't move from one dir to other dir. If we can't change our Current Working Directory, then it is a huge issue and our some task became difficult. But I find a way to do that.&lt;/p&gt;

&lt;p&gt;I make one more input box, where you can write your Current Working Directory path and all are working fine. 😄&lt;/p&gt;
&lt;h3&gt;
  
  
  How?
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// code ...&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;options&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;cwd&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="c1"&gt;// Here location is your Current Working Directory(cwd)'s path&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;exec&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;command&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;options&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;stdout&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;err&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;

&lt;span class="c1"&gt;//code ...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;So using this web app you can make another web app in your server, but still you haven't any text editor to edit those files.&lt;/p&gt;
&lt;h3&gt;
  
  
  Next features:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Simple text editor to edit text file&lt;/li&gt;
&lt;li&gt;Improve I/O and O/P experience&lt;/li&gt;
&lt;li&gt;and more...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write your suggestions in comment 😄&lt;br&gt;
For better understanding, here is the link of my github project &lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i3JOwpme--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Utsav-Ladani"&gt;
        Utsav-Ladani
      &lt;/a&gt; / &lt;a href="https://github.com/Utsav-Ladani/Html-and-Terminal"&gt;
        Html-and-Terminal
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Type command in browser and run on server
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>html</category>
      <category>javascript</category>
      <category>terminal</category>
      <category>node</category>
    </item>
    <item>
      <title>How you can execute terminal command on server via UI from client-side?</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Thu, 03 Dec 2020 17:51:18 +0000</pubDate>
      <link>https://dev.to/utsavladani/how-you-can-execute-terminal-command-on-server-via-ui-from-client-side-39jd</link>
      <guid>https://dev.to/utsavladani/how-you-can-execute-terminal-command-on-server-via-ui-from-client-side-39jd</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bki9Dn_v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0oxebgrqn3qa45etxez2.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bki9Dn_v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0oxebgrqn3qa45etxez2.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hey folks, What am I saying, is it possible to execute command on server via UI from client-side with few lines of code?&lt;br&gt;
Yes, possible.&lt;/p&gt;
&lt;h3&gt;
  
  
  How?
&lt;/h3&gt;

&lt;p&gt;Let me tell you.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Make your own UI for enter command and send that command to server with suitable method and request.(use fetch, axios, etc.)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Make a basic server with your favourite libraries, now add one another library with name &lt;code&gt;execa&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
  
  
  What &lt;code&gt;execa&lt;/code&gt; do?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;execa&lt;/code&gt; is a js library for execute &lt;code&gt;.exe&lt;/code&gt; file with one line of code.&lt;br&gt;
like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// your code ....&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;execa&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;execa&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;output&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;execa&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;sync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;command&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nx"&gt;stdout&lt;/span&gt; &lt;span class="c1"&gt;// pass your command as a args&lt;/span&gt;

&lt;span class="c1"&gt;// your code .... &lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Now send this output in res and you can get the output of terminal.&lt;/p&gt;
&lt;h3&gt;
  
  
  Cons
&lt;/h3&gt;

&lt;p&gt;you can't execute all command, because &lt;code&gt;execa&lt;/code&gt; is execute only one line command and then close the cmd. When you run command, &lt;code&gt;execa&lt;/code&gt; open new cmd and execute command, then close cmd. So your 'cd dir' command run successfully but cmd closed and next time open new cmd, so we can get old path and &lt;code&gt;cd dir&lt;/code&gt; goes vain. &lt;/p&gt;
&lt;h5&gt;
  
  
  here I give you link of simple project on github, learn and enjoy 😄
&lt;/h5&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i3JOwpme--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-ba8488d21cd8ee1fee097b8410db9deaa41d0ca30b004c0c63de0a479114156f.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Utsav-Ladani"&gt;
        Utsav-Ladani
      &lt;/a&gt; / &lt;a href="https://github.com/Utsav-Ladani/Html-and-Terminal"&gt;
        Html-and-Terminal
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Type command in browser and run on server
    &lt;/h3&gt;
  &lt;/div&gt;
&lt;/div&gt;



</description>
      <category>html</category>
      <category>javascript</category>
      <category>terminal</category>
      <category>github</category>
    </item>
    <item>
      <title>Hey, are you still getting error in mongoDB compass?</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Sun, 29 Nov 2020 11:03:19 +0000</pubDate>
      <link>https://dev.to/utsavladani/hey-are-you-still-getting-error-in-mongodb-compass-4nof</link>
      <guid>https://dev.to/utsavladani/hey-are-you-still-getting-error-in-mongodb-compass-4nof</guid>
      <description>&lt;p&gt;Hey people, I found many of you getting error in installing mongoDB compass. Even I get also. And may be internet has no solution to solve this error. But I read error, read codebase, follow dependencies, done some experiments and finally I find the solution. I posted it on stack overflow.&lt;br&gt;
Link is given here.&lt;/p&gt;


&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/64226753/how-to-resolve-loading-error-on-mongodb-compass-for-windows-os/64897505#64897505" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  how to resolve loading error on mongodb compass for windows os?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 18 '20&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/64226753/how-to-resolve-loading-error-on-mongodb-compass-for-windows-os/64897505#64897505" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          1
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;I have a same issue, but I found a solution.&lt;/p&gt;
&lt;p&gt;Let me tell you why this issue came, when you install mongoDB compass.&lt;/p&gt;
&lt;p&gt;MongoDB compass is made using electron and electron have many dependencies. And one of them is &lt;code&gt;windows-release&lt;/code&gt;. This dependency try to find details about your OS…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/64226753/how-to-resolve-loading-error-on-mongodb-compass-for-windows-os/64897505#64897505" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>mongodb</category>
      <category>compass</category>
      <category>installationerror</category>
    </item>
    <item>
      <title>These two most common errors come when you try to install new software.</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Sat, 21 Nov 2020 12:34:53 +0000</pubDate>
      <link>https://dev.to/utsavladani/these-two-most-common-errors-come-when-you-try-to-install-new-software-35hb</link>
      <guid>https://dev.to/utsavladani/these-two-most-common-errors-come-when-you-try-to-install-new-software-35hb</guid>
      <description>&lt;p&gt;1) Some path are not included in your environment variables.&lt;br&gt;
2) Some permission is denied.&lt;/p&gt;

&lt;h2&gt;
  
  
  solution :
&lt;/h2&gt;

&lt;p&gt;1) Find which path are not included in environment variables. May be errors give you hints. &lt;br&gt;
2) Don't run setup or installer by just double click. First right click and then select &lt;code&gt;run as administrative&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>errors</category>
      <category>installation</category>
    </item>
    <item>
      <title>Javascript library for cli app</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Fri, 13 Nov 2020 15:22:11 +0000</pubDate>
      <link>https://dev.to/utsavladani/javascript-library-for-cli-app-1g2h</link>
      <guid>https://dev.to/utsavladani/javascript-library-for-cli-app-1g2h</guid>
      <description>&lt;p&gt;Hey guys, are you making cli apps in JavaScript? I have three important libraries for you.&lt;/p&gt;

&lt;h3&gt;
  
  
  1) commander.js
&lt;/h3&gt;

&lt;p&gt;You can make your own commands with this library.&lt;/p&gt;

&lt;h3&gt;
  
  
  2) inquirer.js
&lt;/h3&gt;

&lt;p&gt;You can take input like true/false, check box, text, password in terminal.&lt;/p&gt;

&lt;h3&gt;
  
  
  3) chalk.js
&lt;/h3&gt;

&lt;p&gt;People feel cool when they show colorful text in terminal. Chalk.js makes text colorful in terminal.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>node</category>
      <category>cli</category>
    </item>
    <item>
      <title>Tell me the next step for the open source </title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Tue, 10 Nov 2020 08:02:02 +0000</pubDate>
      <link>https://dev.to/utsavladani/tell-me-the-next-step-for-the-open-source-2iij</link>
      <guid>https://dev.to/utsavladani/tell-me-the-next-step-for-the-open-source-2iij</guid>
      <description>&lt;p&gt;Hello people,&lt;/p&gt;

&lt;p&gt;I am interested in web technologies. I know basic about open source and did some contribution also. I familiar with git and github and make PR also. Many of my PR merged.&lt;/p&gt;

&lt;p&gt;But what will i do next?&lt;br&gt;
How can learn from open source?&lt;br&gt;
How can start contributing in org with large codebase?&lt;/p&gt;

&lt;p&gt;I need some advice for "what will do next?"&lt;/p&gt;

&lt;p&gt;Thanks in advance. 😄&lt;/p&gt;

</description>
      <category>github</category>
      <category>opensource</category>
      <category>guide</category>
    </item>
    <item>
      <title>Drag and drop static website generator demo</title>
      <dc:creator>Utsav Ladani</dc:creator>
      <pubDate>Mon, 09 Nov 2020 06:59:06 +0000</pubDate>
      <link>https://dev.to/utsavladani/drag-and-drop-static-website-generator-demo-2opp</link>
      <guid>https://dev.to/utsavladani/drag-and-drop-static-website-generator-demo-2opp</guid>
      <description>&lt;p&gt;Hey folks,&lt;br&gt;
I am making a static drag and drop website generator.&lt;/p&gt;

&lt;p&gt;Demo is here 👇&lt;/p&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/Wl-pyheFGTQ"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Comments your suggestion 😄&lt;/p&gt;

</description>
      <category>developer</category>
      <category>qwertyprojects</category>
    </item>
  </channel>
</rss>
