<?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: Muhammad Sami Khanday</title>
    <description>The latest articles on DEV Community by Muhammad Sami Khanday (@msamik).</description>
    <link>https://dev.to/msamik</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%2F638142%2F58c842fe-6c1e-4587-ad85-26615feb5667.jpeg</url>
      <title>DEV Community: Muhammad Sami Khanday</title>
      <link>https://dev.to/msamik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/msamik"/>
    <language>en</language>
    <item>
      <title>Uses Cases of JavaScript </title>
      <dc:creator>Muhammad Sami Khanday</dc:creator>
      <pubDate>Wed, 23 Jun 2021 04:30:00 +0000</pubDate>
      <link>https://dev.to/msamik/uses-cases-of-javascript-17k8</link>
      <guid>https://dev.to/msamik/uses-cases-of-javascript-17k8</guid>
      <description>&lt;p&gt;Comming Soon&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Confusion Matrix | Cyber Crime</title>
      <dc:creator>Muhammad Sami Khanday</dc:creator>
      <pubDate>Sun, 06 Jun 2021 17:40:50 +0000</pubDate>
      <link>https://dev.to/msamik/confusion-matrix-3985</link>
      <guid>https://dev.to/msamik/confusion-matrix-3985</guid>
      <description>&lt;h2&gt;What is Confusion Matrix&lt;/h2&gt;

&lt;p&gt;In the field of machine learning and specifically the problem of statistical classification, a confusion matrix, also known as an error matrix, is a specific table layout that allows visualization of the performance of an algorithm, typically a supervised learning one.&lt;/p&gt;

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

&lt;h2&gt;What is TP / TN / FP / FN ? &lt;/h2&gt;

&lt;p&gt;True Positive (TP) :&lt;br&gt;
The predicted value matches the actual value&lt;br&gt;
The actual value was positive and the model predicted a positive value&lt;/p&gt;

&lt;p&gt;True Negative (TN) :&lt;br&gt;
The predicted value matches the actual value&lt;br&gt;
The actual value was negative and the model predicted a negative value&lt;/p&gt;

&lt;p&gt;False Positive (FP) – Type 1 error:&lt;br&gt;
The predicted value was falsely predicted&lt;br&gt;
The actual value was negative but the model predicted a positive value&lt;br&gt;
Also known as the Type 1 error&lt;/p&gt;

&lt;p&gt;False Negative (FN) – Type 2 error:&lt;br&gt;
The predicted value was falsely predicted&lt;br&gt;
The actual value was positive but the model predicted a negative value&lt;br&gt;
Also known as the Type 2 error&lt;/p&gt;

&lt;h2&gt;Now let us Discuss what is Cyber Crime ?&lt;/h2&gt;

&lt;p&gt;Cybercrime, or computer crime, is a crime that involves a computer and a network. The computer may have been used in the commission of a crime, or it may be the target. Cybercrime may harm someone's security and financial health.&lt;/p&gt;

&lt;h2&gt;How Confusion Matrix has an Important take in Cyber Crimes ? &lt;/h2&gt;

&lt;p&gt;False Postivies :&lt;br&gt;
False positives are mislabeled security alerts, indicating there is a threat when in actuality, there isn’t. These false/non-malicious alerts (SIEM events) increase noise for already over-worked security teams and can include software bugs, poorly written software, or unrecognized network traffic.&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;False Negativies : &lt;br&gt;
False negatives are uncaught cyber threats — overlooked by security tooling because they’re dormant, highly sophisticated (i.e. file-less or capable of lateral movement) or the security infrastructure in place lacks the technological ability to detect these attacks.
&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Running GUI Applications inside Docker Container</title>
      <dc:creator>Muhammad Sami Khanday</dc:creator>
      <pubDate>Tue, 01 Jun 2021 16:05:01 +0000</pubDate>
      <link>https://dev.to/msamik/running-gui-applications-inside-docker-container-14ch</link>
      <guid>https://dev.to/msamik/running-gui-applications-inside-docker-container-14ch</guid>
      <description>&lt;h2&gt;What is DOCKER?&lt;/h2&gt;

&lt;p&gt;Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.&lt;/p&gt;

&lt;h2&gt;What is GUI ?&lt;/h2&gt;

&lt;p&gt;The graphical user interface is a form of user interface that allows users to interact with electronic devices through graphical icons and audio indicator such as primary notation, instead of text-based user interfaces, typed command labels or text navigation.&lt;/p&gt;

&lt;p&gt;Lets Directly Jump to Practicles : &lt;/p&gt;

&lt;p&gt;Docker Engine Must be Installed in the Base OS / Host .&lt;/p&gt;

&lt;p&gt;To confirm whether docker is installed or not we can use :&lt;br&gt;
[root@os]~#  docker --version&lt;/p&gt;

&lt;p&gt;Docker Engine must be in running state .&lt;br&gt;
[root@os]~# systemctl start docker&lt;/p&gt;

&lt;p&gt;[root@os]~# systemctl status docker&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_MDhc2Cn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8o6msokvshm1ruqit7c6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_MDhc2Cn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8o6msokvshm1ruqit7c6.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We must have a docker image to execute our task .&lt;/p&gt;

&lt;p&gt;[root@os]~# docker pull centos:latest&lt;/p&gt;

&lt;p&gt;We will now create a Dockerfile in which we will specify our Requirements for our own custom Image&lt;/p&gt;

&lt;p&gt;[root@os]~# vim Dockerfile &lt;/p&gt;

&lt;p&gt;FROM centos:latest&lt;br&gt;
RUN yum install firefox -y &lt;/p&gt;

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

&lt;p&gt;[root@os]~# docker build -t firefox:v1 .&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Nh8BoVr6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kz11ig4sbwwq8vf0phlq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Nh8BoVr6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kz11ig4sbwwq8vf0phlq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;docker build will help us to make our own customized image with tag firefox:v1&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HaVOuPw4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ln9fp1a8rej91tae8zj8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HaVOuPw4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ln9fp1a8rej91tae8zj8.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;[root@os]~# docker run -it --name task2 -e DISPLAY=$DISPLAY --net=host firefox:v1&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YFyAk-JS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wu412ytz0626yuyrhvrx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YFyAk-JS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wu412ytz0626yuyrhvrx.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;$DISPLAY == Enivornment Variable for our Display :0 is the main display.&lt;br&gt;
--net=host == Using Socket to make connect between docker and base OS (Host)&lt;/p&gt;

&lt;p&gt;[root@os]~# firefox&lt;/p&gt;

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

&lt;p&gt;[root@os]~# jupyter notebook&lt;/p&gt;

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

&lt;p&gt;In Addition to firefox i used jupyter notebook as a GUI APP.&lt;/p&gt;

&lt;p&gt;Thanks for Visiting my Article &lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>linux</category>
    </item>
    <item>
      <title>Running ML Model in Docker Container</title>
      <dc:creator>Muhammad Sami Khanday</dc:creator>
      <pubDate>Wed, 26 May 2021 14:09:43 +0000</pubDate>
      <link>https://dev.to/msamik/running-ml-model-in-docker-container-4d39</link>
      <guid>https://dev.to/msamik/running-ml-model-in-docker-container-4d39</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5VQAoW_Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwdhk1629gpvbjiaiut6.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5VQAoW_Q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wwdhk1629gpvbjiaiut6.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What is Machine Learning?&lt;br&gt;
Machine learning is the study of computer algorithms that improve automatically through experience and by the use of data. It is seen as a part of artificial intelligence.&lt;/p&gt;

&lt;p&gt;What is Docker ?&lt;br&gt;
Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.&lt;/p&gt;

&lt;p&gt;How to Install Docker?&lt;br&gt;
 yum install docker-ce&lt;/p&gt;

&lt;p&gt;How to Check if the docker is running ?&lt;br&gt;
 systemctl status docker&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FMuEGG-M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mw30keyyhi7pgm0c9bsk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FMuEGG-M--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mw30keyyhi7pgm0c9bsk.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Downloading Centos:Latest Image from Docker HUB:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hN3PLgTY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/unqum18jv6i0k56kbspv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hN3PLgTY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/unqum18jv6i0k56kbspv.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

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

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

&lt;p&gt;Writing Code for our Machine Learning Model :&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WRoMD7Ne--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xgq36j7bg5jprq2umknp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WRoMD7Ne--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xgq36j7bg5jprq2umknp.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Output of our Machine Learning Model : &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vEAccJ53--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxo2dh5z4bfsop4oppar.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vEAccJ53--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qxo2dh5z4bfsop4oppar.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks!!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
