<?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: Soumya kumar naik</title>
    <description>The latest articles on DEV Community by Soumya kumar naik (@soumyanaik717).</description>
    <link>https://dev.to/soumyanaik717</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%2F640633%2Fafb42047-7598-46be-9011-a48a6257a52f.jpg</url>
      <title>DEV Community: Soumya kumar naik</title>
      <link>https://dev.to/soumyanaik717</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soumyanaik717"/>
    <language>en</language>
    <item>
      <title>Kubernetes</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Wed, 30 Jun 2021 15:42:37 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/kubernetes-jh3</link>
      <guid>https://dev.to/soumyanaik717/kubernetes-jh3</guid>
      <description>&lt;h1&gt;
  
  
  !/usr/bin/python3
&lt;/h1&gt;

&lt;p&gt;import subprocess&lt;br&gt;
import cgi&lt;/p&gt;

&lt;p&gt;print("content-type: text/html")&lt;br&gt;
print()&lt;/p&gt;

&lt;p&gt;f = cgi.FieldStorage()&lt;br&gt;
cmd = f.getvalue("var")&lt;/p&gt;

&lt;p&gt;lower_cmd = cmd.lower()&lt;br&gt;
l_str = lower_cmd.split()&lt;/p&gt;

&lt;p&gt;Filter=["k8s","kubernetes","provide","for","just","up","me","my","to","or","plzz","please","do","using",      "is","which","whose","has","can","could","pods","pod","you","u","port","number","no.","deployment","hi","a",&lt;br&gt;
",","no","with","the","all","having","name","named","hello","hey","display","print","of","upto","deployments",&lt;br&gt;
"image"]&lt;/p&gt;

&lt;p&gt;for i in range(0,len(l_str)):&lt;br&gt;
    if l_str[i] in Filter:&lt;br&gt;
        l_str[i] = ""&lt;/p&gt;

&lt;p&gt;j_str = " ".join(l_str)&lt;/p&gt;

&lt;p&gt;j_str = j_str.split()&lt;/p&gt;

&lt;p&gt;if ("create" in j_str or "deploy" in j_str or "launch" in j_str or "make" in j_str) and len(j_str)&amp;lt;4:&lt;br&gt;
    command = "kubectl create deployment " + j_str[1] + " --image=httpd --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif ("create" in j_str or "deploy" in j_str or "launch" in j_str) and (len(j_str)&amp;lt;5 and "id" in j_str):&lt;br&gt;
    command = "kubectl create deployment " + j_str[1] + " --image=" + j_str[3] + " --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif ("get" in j_str or "show" in j_str) and len(j_str)&amp;lt;2:&lt;br&gt;
    command = "kubectl get pods --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "describe" in j_str:&lt;br&gt;
    command = "kubectl describe pods --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "expose" in j_str:&lt;br&gt;
    command = "kubectl expose deployment " + j_str[1] + " --type='NodePort' --port " + j_str[2] + " --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "cluster" in j_str or "cluster's" in j_str or "cluster-info" in j_str or "info" in j_str or "details" in j_str:&lt;br&gt;
    command = "kubectl cluster-info --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif ("replicas" in j_str or "replica" in j_str or "copies" in j_str or "copy" in j_str) and len(j_str)&amp;gt;3:&lt;br&gt;
    command = "kubectl scale deployment " + j_str[3] + " --replicas=" + j_str[1] + " --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "scale" in j_str:&lt;br&gt;
    command = "kubectl scale deployment " + j_str[1] + " --replicas=" + j_str[2] + " --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "delete" in j_str and ("svc" in j_str or "service" in j_str):&lt;br&gt;
    command = "kubectl delete svc " + j_str[2] + " --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "delete" in j_str or "remove" in j_str:&lt;br&gt;
    command = "kubectl delete pod " + j_str[1] + " --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;elif "service" in j_str or "svc" in j_str or "services" in j_str:&lt;br&gt;
    command = "kubectl get svc --kubeconfig admin.conf"&lt;/p&gt;

&lt;p&gt;else:&lt;br&gt;
        print("Check your command")&lt;/p&gt;

&lt;p&gt;output = subprocess.getoutput(command)&lt;br&gt;
print(output)&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Docker web application</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Fri, 25 Jun 2021 16:02:57 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/docker-web-application-e7b</link>
      <guid>https://dev.to/soumyanaik717/docker-web-application-e7b</guid>
      <description>&lt;p&gt;body {&lt;br&gt;
    background-image: url("whale.gif");&lt;br&gt;
    margin-left:150px;&lt;br&gt;&lt;br&gt;
    margin-right:250px&lt;br&gt;
  }&lt;/p&gt;

&lt;p&gt;h1{&lt;br&gt;
   margin-top: 30px;&lt;br&gt;
   margin: 1em 0 0.5em 0;&lt;br&gt;
     font-weight: 600;&lt;br&gt;
     font-family: 'Titillium Web', sans-serif;&lt;br&gt;
     position: relative;&lt;br&gt;&lt;br&gt;
     font-size: 36px;&lt;br&gt;
     line-height: 50px;&lt;br&gt;
     padding: 47px 15px 15px 30%;&lt;br&gt;
     color: #141314;&lt;br&gt;
     box-shadow: &lt;br&gt;
         inset 0 0 0 1px rgba(38, 39, 41, 0.4), &lt;br&gt;
         inset  0 0 5px rgba(52, 54, 56, 0.5),&lt;br&gt;
         inset 0px 0 30px rgb(17, 17, 17);&lt;br&gt;
     border-radius: 0 10px 0 10px;&lt;br&gt;
     background:  url("images (1).png") no-repeat center left;&lt;br&gt;
   }&lt;/p&gt;

&lt;p&gt;#screen {&lt;br&gt;
   background: rgb(8, 8, 8);&lt;br&gt;
   width: 90%;&lt;br&gt;
   height: 500px;&lt;br&gt;
   border-style:solid;&lt;br&gt;
   border-color: #474545;&lt;br&gt;
   margin: 0 auto;&lt;br&gt;
   padding: 10px;&lt;br&gt;
   opacity: 0.9;&lt;br&gt;
   overflow:inherit;&lt;br&gt;
 }&lt;br&gt;
 #textBox {&lt;br&gt;
       width: auto;&lt;br&gt;
       color: #f2f3ed;&lt;br&gt;
       border: none;&lt;br&gt;
       box-sizing: border-box;&lt;br&gt;
       font-size: 20px;&lt;br&gt;
       vertical-align: middle;&lt;br&gt;
       background-color: #000;&lt;br&gt;
       opacity: inherit;}&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#injected {
  padding-left: 10px;
  font-size: 18px;
  color: white;
  text-align: justify;
  margin-top: 5px;
}

#injected ul {
  list-style: none;
}

#injected li,
th,
td {
  padding-right: 45px;
  padding-left: 25px;
  padding-top: 7px;
  text-align: left;
}

#userInput {
  margin-top: 30px;
  padding: 10px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;br&gt;
  &lt;br&gt;
      &lt;h1&gt; Docker Web Application &lt;/h1&gt;
&lt;br&gt;
    &lt;br&gt;
    &lt;br&gt;
      &lt;br&gt;
      &lt;br&gt;
        
          autofocus&amp;gt;&lt;br&gt;
        RUN&lt;br&gt;
      &lt;br&gt;
      &lt;pre&gt;&lt;br&gt;
      OUTPUT COMES HERE..&lt;br&gt;
      &lt;/pre&gt;
&lt;br&gt;
    &lt;br&gt;
  



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function lw() {
alert("request");
var xhr = new XMLHttpRequest();
xhr.open("GET","http://17.132.48.54/cgi-bin/docker.py?x="+ document.getElementById("textarea").value,true);
alert("sending request");
xhr.send();
xhr.onload =  function()  {
document.getElementById("injected").innerHTML = xhr.responseText ;

}
}
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
    <item>
      <title>What is JavaScript ? It’s Industry Use Cases</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Mon, 21 Jun 2021 14:43:32 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/what-is-javascript-it-s-industry-use-cases-41dp</link>
      <guid>https://dev.to/soumyanaik717/what-is-javascript-it-s-industry-use-cases-41dp</guid>
      <description>&lt;p&gt;Uses of JavaScript:-&lt;br&gt;
Javascript is one of the most used languages in the market these days. Below graph shows a graphical representation of a company for all languages. JavaScript stands second in the lineup. It is mainly used in building websites and web applications. The other application of JavaScript is listed below.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--syb-7urm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7jav2psipx431dp55dsb.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--syb-7urm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7jav2psipx431dp55dsb.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How 10 Major Companies Are Using JavaScript:-&lt;/p&gt;

&lt;p&gt;Microsoft:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kcqjxxsm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iisto6baug5uxuk0fyia.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kcqjxxsm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iisto6baug5uxuk0fyia.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Okay, so you’re probably not going to find JavaScript powering Windows anytime soon, but Microsoft relies on JavaScript for a whole lot else.&lt;/p&gt;

&lt;p&gt;First off, Microsoft needs to work closely with JavaScript to built its Edge web browser. All browsers need to process and execute JavaScript efficiently, so Microsoft has developed and maintains its own JavaScript engine for Edge. Actually, there has been talk of them creating an alternate version of NodeJS with the Edge engine.&lt;/p&gt;

&lt;p&gt;Recently, Microsoft has really embraced NodeJS. They thoroughly support Node on the Azure cloud platform. Its one of Azure’s major features, and they’ve integrated Visual Studio support for Node.&lt;/p&gt;

&lt;p&gt;Microsoft has also developed a version of Node for Internet Of Things(IoT) applications. NodeJS is great of IoT because it’s light weight and efficient.&lt;/p&gt;

&lt;p&gt;PayPal:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9l1NvcQM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/neb64b1h188b1ii0wdwb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9l1NvcQM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/neb64b1h188b1ii0wdwb.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PayPal has obviously been using JavaScript on the front end of their website for a long time, but that’s only the beginning.&lt;/p&gt;

&lt;p&gt;The online payment giant was one of the earliest adopters of NodeJS. During an overhaul of their account overview page, they decided to try building the page in Node at the same time as their usual Java development. The NodeJS version worked out so well, that they chose to use it in production and build all client-facing applications in Node going forward. That means that most of what you see in your account is running on Node.&lt;/p&gt;

&lt;p&gt;PayPal even went as far as to create and maintain their own version of Express, called KrakenJS. It’s pretty obvious that they like JavaScript over at PayPal.&lt;/p&gt;

&lt;p&gt;Netflix:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9kfCD18u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/grl5fsrrilyk4ezd66n7.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9kfCD18u--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/grl5fsrrilyk4ezd66n7.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Like PayPal, Netflix started out using Java for just about everything. They too ran into problems with Java’s size and the time it required to develop.&lt;/p&gt;

&lt;p&gt;Over time, Netflix moved away from its more traditional structure into the cloud and started to introduce NodeJS. With Node, Netflix was able to break down pieces of their user interface into individual services. This more distributed approach was able to speed things up an alleviate stress on their servers. Today, a large portion of Netflix’s interface is running on Node.&lt;/p&gt;

&lt;p&gt;Groupon:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FLlLhrCH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ne9hqkbdrnc2wlcuovs3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FLlLhrCH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ne9hqkbdrnc2wlcuovs3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Groupon used to be infamously slow. Why? They were powered by Ruby on Rails. That’s the same framework that brought you the Twitter fail whale.&lt;/p&gt;

&lt;p&gt;Groupon was all one gigantic Ruby on Rails application. Thanks to difficulties in speed and maintainability, they decided to change over to NodeJS. Node allowed Groupon to rebuild their entire US website by breaking down everything into individual NodeJS web applications. Now, Groupon is made up of over 20 Node applications, and it moves much faster as a whole.&lt;/p&gt;

&lt;p&gt;Groupon is currently moving all of their international sites to NodeJS and has joined the NodeJS Foundation. It’s pretty clear that they are happy with their change.&lt;/p&gt;

&lt;p&gt;Uber:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bV5CzTn9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lvp2rks4m21c28kke7z5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bV5CzTn9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lvp2rks4m21c28kke7z5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Uber needs to handle loads of data in real time. They have millions of requests coming in continuously, and that’s not just hits on a page. Uber needs to track driver locations, rider locations, and incoming ride requests. It has to seamlessly sort that data and match riders as fast as possible.&lt;/p&gt;

&lt;p&gt;All of that plays to NodeJS’s and JavaScript’s strengths. Node is designed to handle requests and hand off data quickly. It’s asynchronous capabilities are a huge part of that. Node is central to Uber’s user facing stack for just that reason.&lt;/p&gt;

&lt;p&gt;Facebook:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8oKwFnLN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc3l4gvghjpg2vkqld9a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8oKwFnLN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hc3l4gvghjpg2vkqld9a.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You’re probably aware that Facebook uses JavaScript. It’s kind of hard to miss. What’s probably not as obvious is exactly how much JavaScript goes into making Facebook and how much Facebook is involved in JavaScript development.&lt;/p&gt;

&lt;p&gt;Try disabling JavaScript in your web browser and going to Facebook. The website will actually stop you from logging in because it won’t work without JavaScript.&lt;/p&gt;

&lt;p&gt;You may have noticed the way that Facebook loads. Each piece of the page is separate. Facebook has invented its own way of breaking down and delivering sections of JavaScript separately. In an odd way, each section of your Facebook page is a collection of independent JavaScript applications.&lt;/p&gt;

&lt;p&gt;It doesn’t stop there. Facebook created React, one of the most popular front end frameworks. Facebook uses React on Facebook.com as well as Instagram and WhatsApp.&lt;/p&gt;

&lt;p&gt;Google:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wV6rEwgM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmhugojmax5nzlh0wglz.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wV6rEwgM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wmhugojmax5nzlh0wglz.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How doesn’t Google use JavaScript? Seriously, it’s everywhere. Google’s search results that spring up as your typing get there with JavaScript. The Gmail web client is powered by JavaScript. Google Docs? Yeah, that’s JavaScript too.&lt;/p&gt;

&lt;p&gt;Google develops and usually open sources it’s own JavaScript tools. The most obvious example is AngularJS. Angular is used most prominently in Google’s DoubleClick advertising platform, but it’s also one of the most popular front end frameworks available. It’s even part of the MEAN stack.&lt;/p&gt;

&lt;p&gt;Google’s more intensive services, like Google Docs, use Closure Tools. This set of tools compiles JavaScript into a lower-level faster form more suited for rich and highly responsive web applications.&lt;/p&gt;

&lt;p&gt;There’s another big point to touch on. Google developed Chrome. Chrome, being a web browser, needed a JavaScript engine, so Google also made V8. V8 not only powers Chrome, it’s at the heart of NodeJS. So, without Google, there would be no Node.&lt;/p&gt;

&lt;p&gt;eBay:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1bq54K-2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b9ep5pvpnp9lp9ok1x1y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1bq54K-2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b9ep5pvpnp9lp9ok1x1y.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;eBay’s story is a lot like Netflix’s. For a long time, just about everything in eBay’s tech stack was based on Java. A few years ago, eBay encountered a problem that Java wasn’t the right solution for. They decided to give NodeJS a shot instead.&lt;/p&gt;

&lt;p&gt;Node worked so well that eBay not only kept using it for that particular service, they began migrating their entire user facing stack to NodeJS. Now, just about everything that you interact with on eBay is powered by Node. Sure, beneath Node, Java is still dealing with their databases, but eBay still places a lot of trust in NodeJS.&lt;/p&gt;

&lt;p&gt;Walmart:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NS2BjKsh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3d7ergn832wwoh79spnh.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NS2BjKsh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3d7ergn832wwoh79spnh.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Most people probably don’t think of Walmart as a tech company, but because they’re one of the largest retailers in the world, their online retail business is gigantic. It’s not much of a stretch to see how they need build a technologically advanced web application do drive their online business.&lt;/p&gt;

&lt;p&gt;Walmart started out with Java. It’s a solid enterprise-grade platform that has been the de facto choice for years. However, Walmart needed something faster and lighter weight for their mobile site. So, they turned to NodeJS.&lt;/p&gt;

&lt;p&gt;Once again, Walmart began to see Node as a valid Java replacement in loads of other places. Today, the Walmart.com that you see is powered by Node. NodeJS was also the ideal choice for other web applications within their marketplace that require multiple users to be able to access management interfaces simultaneously.&lt;/p&gt;

&lt;p&gt;LinkedIn:-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uE3q-BNS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xy5jobz97c23jmh2k6n6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uE3q-BNS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xy5jobz97c23jmh2k6n6.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;LinkedIn relies on NodeJS for its mobile site. A few years back, LinkedIn used Rails for its mobile site. As with other other large Rails applications, it was slow, monolithic, and it scaled poorly.&lt;/p&gt;

&lt;p&gt;LinkedIn switched over to NodeJS to solve its scaling problems. Node’s asynchronous capabilities allowed the LinkedIn mobile site to perform more quickly than before while using fewer resources. Node also made data sharing and building APIs easier for the LinkedIn developers.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Creating-Live-Streaming-Video-Chat-App-without-voice-using-cv2-module-of-Python</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Sat, 12 Jun 2021 12:50:44 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/creating-live-streaming-video-chat-app-without-voice-using-cv2-module-of-python-4ci6</link>
      <guid>https://dev.to/soumyanaik717/creating-live-streaming-video-chat-app-without-voice-using-cv2-module-of-python-4ci6</guid>
      <description>&lt;p&gt;For creating live streaming video chat we have to install the the library that are mentioned below:&lt;/p&gt;

&lt;p&gt;1.pip install opencv-python &lt;br&gt;
   2.pip install sockets &lt;br&gt;
   3.pip install pickle-mixin&lt;br&gt;
   4.pip install imutils &lt;/p&gt;

&lt;p&gt;First we have to write the server program:&lt;/p&gt;

&lt;p&gt;import socket, cv2, pickle,struct,imutils&lt;/p&gt;

&lt;h1&gt;
  
  
  Socket Create
&lt;/h1&gt;

&lt;p&gt;server_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)&lt;br&gt;
host_name  = socket.gethostname()&lt;br&gt;
host_ip = socket.gethostbyname(host_name)&lt;br&gt;
print('HOST IP:',host_ip)&lt;br&gt;
port = 9999&lt;br&gt;
socket_address = (host_ip,port)&lt;/p&gt;

&lt;h1&gt;
  
  
  Socket Bind
&lt;/h1&gt;

&lt;p&gt;server_socket.bind(socket_address)&lt;/p&gt;

&lt;h1&gt;
  
  
  Socket Listen
&lt;/h1&gt;

&lt;p&gt;server_socket.listen(5)&lt;br&gt;
print("LISTENING AT:",socket_address)&lt;/p&gt;

&lt;h1&gt;
  
  
  Socket Accept
&lt;/h1&gt;

&lt;p&gt;while True:&lt;br&gt;
    client_socket,addr = server_socket.accept()&lt;br&gt;
    print('GOT CONNECTION FROM:',addr)&lt;br&gt;
    if client_socket:&lt;br&gt;
        vid = cv2.VideoCapture(0)&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    while(vid.isOpened()):
        img,frame = vid.read()
        frame = imutils.resize(frame,width=320)
        a = pickle.dumps(frame)
        message = struct.pack("Q",len(a))+a
        client_socket.sendall(message)

        cv2.imshow('TRANSMITTING VIDEO',frame)
        key = cv2.waitKey()
        if key ==ord('return'):
            client_socket.close()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Client side Program :&lt;/p&gt;

&lt;h1&gt;
  
  
  lets mke the client code
&lt;/h1&gt;

&lt;p&gt;import socket,cv2, pickle,struct&lt;/p&gt;

&lt;h1&gt;
  
  
  create socket
&lt;/h1&gt;

&lt;p&gt;client_socket = socket.socket(socket.AF_INET,socket.SOCK_STREAM)&lt;br&gt;
host_ip = '192.168.43.35' # paste your server ip address here&lt;br&gt;
port = 9999&lt;br&gt;
client_socket.connect((host_ip,port)) # a tuple&lt;br&gt;
data = b""&lt;br&gt;
payload_size = struct.calcsize("Q")&lt;br&gt;
while True:&lt;br&gt;
    while len(data) &amp;lt; payload_size:&lt;br&gt;
        packet = client_socket.recv(4*1024) # 4K&lt;br&gt;
        if not packet: break&lt;br&gt;
        data+=packet&lt;br&gt;
    packed_msg_size = data[:payload_size]&lt;br&gt;
    data = data[payload_size:]&lt;br&gt;
    msg_size = struct.unpack("Q",packed_msg_size)[0]&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while len(data) &amp;lt; msg_size:
    data += client_socket.recv(4*1024)
frame_data = data[:msg_size]
data  = data[msg_size:]
frame = pickle.loads(frame_data)
cv2.imshow("RECEIVING VIDEO",frame)
key = cv2.waitKey(1) &amp;amp; 0xFF
if key  == ord('q'):
    break
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;client_socket.close()&lt;/p&gt;

&lt;p&gt;After writing the code First we have run the server side program then we run client side Program.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to create  own image by python code</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Wed, 09 Jun 2021 11:24:10 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/how-to-create-own-image-by-python-code-453j</link>
      <guid>https://dev.to/soumyanaik717/how-to-create-own-image-by-python-code-453j</guid>
      <description>&lt;p&gt;To create our own image:&lt;br&gt;
-For that we have to install the python.&lt;br&gt;
-Then on top of the python we have to install numpy and opencv library .&lt;/p&gt;

&lt;p&gt;For creating own image:&lt;br&gt;
&lt;a href="https://github.com/soumyanaik717/Image-creation-"&gt;https://github.com/soumyanaik717/Image-creation-&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For image  crop and swap:&lt;br&gt;
&lt;a href="https://github.com/soumyanaik717/crop-the-image-and-swap-it"&gt;https://github.com/soumyanaik717/crop-the-image-and-swap-it&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For collage image:&lt;br&gt;
&lt;a href="https://github.com/soumyanaik717/collage-image"&gt;https://github.com/soumyanaik717/collage-image&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Confusion Matrix use cases in Cyber Crime</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Sun, 06 Jun 2021 02:59:27 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/confusion-matrix-use-cases-in-cyber-crime-4mm7</link>
      <guid>https://dev.to/soumyanaik717/confusion-matrix-use-cases-in-cyber-crime-4mm7</guid>
      <description>&lt;p&gt;What is the Confusion Matrix?&lt;/p&gt;

&lt;p&gt;The confusion matrix is a useful tool used for classification tasks in machine learning with the primary objective of visualizing the performance of a machine learning model.&lt;/p&gt;

&lt;p&gt;In a binary classification setting where the negative class is 0 and the positive class is 1, the confusion matrix is constructed with a 2x2 grid table where the rows are the actual outputs of the data, and the columns are the predicted values from the model.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oDfPWnUq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n14vrebxs4m6131lbj5h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oDfPWnUq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n14vrebxs4m6131lbj5h.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How to interpret a Confusion Matrix?&lt;/p&gt;

&lt;p&gt;I will start by first describing some terminology, if you are able to work out where they would go then you are halfway there:&lt;/p&gt;

&lt;p&gt;True Positive: The model predicted positive and the label was actually positive.&lt;/p&gt;

&lt;p&gt;True Negative: The model predicted negative and the label was actually negative.&lt;/p&gt;

&lt;p&gt;False Positive: The model predicted positive and the label was actually negative — I like to think of this as falsely classified as positive.&lt;/p&gt;

&lt;p&gt;False Negative: The model predicted negative and the label was actually positive— I like to think of this as falsely classified as negative.&lt;/p&gt;

&lt;p&gt;Our confusion matrix has two red patches on our grid, which infer to us the type of errors that our model is making.&lt;br&gt;
Type-1 =&amp;gt; False positive&lt;br&gt;
Type-2 =&amp;gt; False negative&lt;/p&gt;

&lt;p&gt;How we use the confusion matrix in cyber crime?&lt;/p&gt;

&lt;p&gt;Let's take a case study of this:&lt;br&gt;
We are tasked with building a classifier that predicts fraudulent or non fraudulent for different transactions. The data was handed to us by a major bank in the UK with very tight security – the personal details of all customers were encrypted for privacy concerns – so fraudulent transactions do not happen very often. In fact, the data that they had given us had 10,000 Negative  cases (non-fraudulent) and 1000 positive cases(fraud). The below Figure shows the results of our classifier.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VFbnnBNK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tlcnreiv7cxnqww11in6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VFbnnBNK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tlcnreiv7cxnqww11in6.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the above image there are 11000 cases of fraud and non-fraudulent among them  our ML model find the 10000 cases are not-Fraudulent  i.e  negative .But actually 9900 cases  among them are True Negative(TN) and the rest 100 cases are False Negative(FN).here our model will predict the wrong output.so our model will not alert the Bank and The bank also don't the fraud  cases. Because the model predict 10000 cases are not-fraudulent.so this type of error FN(Type-2) is very dangerous in this case. The rest 1000 cases are fraud  cases but among them 800 cases are not fraud but the model gives us this is as a fraud cases i.e&lt;br&gt;
False Negative(Type-1).in this case the Type-1 error are not so dangerous. but the Type-2 error are so dangerous.  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Launching a GUI application inside the docker container</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Tue, 01 Jun 2021 16:05:48 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/launching-a-gui-application-inside-the-docker-container-8h2</link>
      <guid>https://dev.to/soumyanaik717/launching-a-gui-application-inside-the-docker-container-8h2</guid>
      <description>&lt;p&gt;STEP 1:- Launching  Container&lt;br&gt;
 docker run -it --name ml --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" centos&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---rzediK_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g60lmllfbif3si5yd2wt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---rzediK_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g60lmllfbif3si5yd2wt.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
After running this command it will lunch docker container name as ml&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iJK-otO7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmqzghsdj6oscle8bvt7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iJK-otO7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mmqzghsdj6oscle8bvt7.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 2:- Installing python3&lt;br&gt;
yum install python3&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aGgzMt97--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zvp4hrzk0kbgpr63xtl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aGgzMt97--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zvp4hrzk0kbgpr63xtl.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 3:- Installing jupyter notebook&lt;br&gt;
pip3 install jupyter&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q33nzhV5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mngk0lwaip4l7jbiimpa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q33nzhV5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mngk0lwaip4l7jbiimpa.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 4:- Installing Firefox&lt;br&gt;
yum install firefox&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BkWUzZfl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y60tcd33yzgkked9htja.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BkWUzZfl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/y60tcd33yzgkked9htja.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;STEP 5:- Launching jupyter notebook&lt;br&gt;
jupyter notebook&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ASKrKEUX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4nmz7iotbiu34zykgndp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ASKrKEUX--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4nmz7iotbiu34zykgndp.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZufmC-QH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/148iqgc82y3rl5kkekum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZufmC-QH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/148iqgc82y3rl5kkekum.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Deploy an ML model inside docker container</title>
      <dc:creator>Soumya kumar naik</dc:creator>
      <pubDate>Mon, 31 May 2021 03:22:19 +0000</pubDate>
      <link>https://dev.to/soumyanaik717/deploy-an-ml-model-inside-docker-container-42f1</link>
      <guid>https://dev.to/soumyanaik717/deploy-an-ml-model-inside-docker-container-42f1</guid>
      <description>&lt;p&gt;For installing the docker, I'm using the REDHAT 8 operating system. By default the REDHAT 8 doesn't come with the docker software. So first we have to download the docker software in side the REDHAT 8.&lt;br&gt;
For this we have to configure the yum repository.&lt;br&gt;
First of all login with root account and then go to:&lt;br&gt;
  -&amp;gt; cd /etc/yum.repos.d/&lt;br&gt;&lt;br&gt;
Create the file for docker repo with any name. The extension of file should be repo only. &lt;br&gt;
Then open the vim editor  with file that you have created .then write the code that are given below:&lt;br&gt;
[docker]&lt;br&gt;
baseurl=&lt;a href="https://download.docker.com/linux/centos/7/x86_64/stable/"&gt;https://download.docker.com/linux/centos/7/x86_64/stable/&lt;/a&gt;&lt;br&gt;
gpgcheck=0&lt;br&gt;
EOF&lt;br&gt;
Now update the yum repository using command:&lt;br&gt;
  -&amp;gt; yum repolist&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--D0Dr4ljg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rru5gejmq1mf4lvj4wng.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--D0Dr4ljg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rru5gejmq1mf4lvj4wng.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Now Download the docker-ce software that is community version. Use command  – &lt;br&gt;
yum install docker-ce –nobest &lt;br&gt;
After installing docker if we check docker is install or not then run the command:&lt;br&gt;
 -&amp;gt; rpm -q docker-ce (it will show the software name )&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sQ_iAgPT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jak3p1knuwnh1uvo6rbg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sQ_iAgPT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jak3p1knuwnh1uvo6rbg.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Now start all the services of Docker through the below command:&lt;br&gt;
 -&amp;gt;systemctl enable  docker&lt;br&gt;
If we check the status of the docker then run the command:&lt;br&gt;
 -&amp;gt;systemctl status docker&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V3UoQJNH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0opreegkv9oztf6cngps.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V3UoQJNH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0opreegkv9oztf6cngps.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now we can move towards deployment of ML Model. So let's pull a centos docker image for building own docker image top of it.&lt;br&gt;
 -&amp;gt;docker pull centos:latest&lt;br&gt;
To check the images, run the below command, you can see your all the docker images like this:&lt;br&gt;
 -&amp;gt;docker images&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Ph_l211Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ra27pjihevhrj1i2alo8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Ph_l211Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ra27pjihevhrj1i2alo8.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Then we have to start our docker using the command:&lt;br&gt;
 -&amp;gt; docker run -i -t centos:latest&lt;br&gt;
Then it will gives us new terminal for centos like this:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tSX4dQoe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zwench4fglodxrkog6c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tSX4dQoe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2zwench4fglodxrkog6c.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then inside the docker container we have to deploy our ML model&lt;br&gt;
For this we have install the python and the libraries that are require for our ML model.&lt;br&gt;
First inastall the python using the command:&lt;br&gt;
  -&amp;gt; yum install python3&lt;br&gt;
 &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ps24QV8K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qr13ndg6xpc7qa2ohog3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ps24QV8K--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qr13ndg6xpc7qa2ohog3.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then we have to install the libraries using the command:&lt;br&gt;
  -&amp;gt;pip3 install numpy&lt;br&gt;
  -&amp;gt;pip3 install pandas&lt;br&gt;
  -&amp;gt;pip3 install  scikit-learn&lt;br&gt;
For ML model we require the data set.so for this we have to transfer or import the data set from the base operating system(REDHAT 8) to docker container. &lt;br&gt;
For this we have to use the command:&lt;br&gt;
 -&amp;gt; docker cp   (file name)   (image name of container):/&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CQjKbiye--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m77klqeu8zh0wdlk3xm1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CQjKbiye--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m77klqeu8zh0wdlk3xm1.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
 Here the command will be:&lt;br&gt;
 -&amp;gt; docker cp  SalaryData.csv   busy_Matsumoto :/&lt;/p&gt;

&lt;p&gt;After that you will see your file that would be transferm from base operating system to docker container.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xr4GcGP2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77014xy3scwevtq38k9v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xr4GcGP2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/77014xy3scwevtq38k9v.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then we have to lunch our vim editor in docker container to run the ML code:&lt;br&gt;
 -&amp;gt;vim file name&lt;br&gt;
 -&amp;gt;vim salary.py&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zMyFTTiK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k40upj7o1solpap3o2nh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zMyFTTiK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k40upj7o1solpap3o2nh.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After writing the code in vim editor we have to run the command  in docker container.so for that we have to use the command:&lt;br&gt;
 -&amp;gt; python3  (file name)&lt;br&gt;
 -&amp;gt; python3  salary.py &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2el2DOdu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pt3wlh3wjebhl9vf8pxv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2el2DOdu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pt3wlh3wjebhl9vf8pxv.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Like this we have run the ML model inside the docker container.&lt;/p&gt;

&lt;p&gt;Hopefully, you enjoy it&lt;/p&gt;

</description>
      <category>devops</category>
      <category>docker</category>
      <category>machinelearning</category>
    </item>
  </channel>
</rss>
