<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lalita Rajpoot on Medium]]></title>
        <description><![CDATA[Stories by Lalita Rajpoot on Medium]]></description>
        <link>https://medium.com/@lalita-rajpoot?source=rss-17a51fa63d9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QiX3KYimN6V9HRlR9isAGA.jpeg</url>
            <title>Stories by Lalita Rajpoot on Medium</title>
            <link>https://medium.com/@lalita-rajpoot?source=rss-17a51fa63d9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:24:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lalita-rajpoot/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Configure WebApplication in Docker Using Ansible Playbook]]></title>
            <link>https://lalita-rajpoot.medium.com/configure-webapplicatio-in-docker-using-ansible-playbook-6b058cc7c03e?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b058cc7c03e</guid>
            <category><![CDATA[righteducation]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ansible-playbook]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Fri, 29 Apr 2022 07:50:29 GMT</pubDate>
            <atom:updated>2022-04-29T15:22:05.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5u-1Uhm4bxWtmvRp3Zu1Dg.jpeg" /></figure><p>Before move forward, we’ll discuss about basics of Docker and ansible.</p><p>So Let’s start……</p><h3>What is Docker?</h3><p>Docker is container tool that helps developers to package the application in the container in the form of image so anybody can run this application at any environment according to requirement.</p><p>Using Docker, you can quickly deploy and scale applications into any environment and know your code will run.</p><h3>How Docker works</h3><p>Docker works by providing a standard way to run your code. Docker is an operating system for containers. Similar to how a virtual machine virtualizes server hardware, containers virtualize the operating system of a server. Docker is installed on each server and provides simple commands you can use to build, start, or stop containers.</p><h3><strong>What is Ansible?</strong></h3><p>Ansible is configuration management tool written in Python programming language.</p><p>In simple words we can say that ansible provides the way where we don’t have need to do task manually it automates our task and develop fast. Ansible doesn’t depend on agent software and has no additional security infrastructure, so it’s easy to deploy.</p><h3>How Ansible works</h3><blockquote>In Ansible, there are two categories of computers: the <em>control node</em> and <em>managed nodes</em>. The control node is a computer that runs Ansible. There must be at least one control node, although a backup control node may also exist. A managed node is any device being managed by the control node.</blockquote><p>we have some basic knowledge about Docker and Ansble. Now, We’ll install ansible in our controller node…</p><p>so Let’s move forward…..</p><pre>pip3 install ansible</pre><p>Ansible is written in python, so we can install Ansible using pip3,pip3 is nothing but the python package manager.</p><p>You can refer this document to install Ansible on your machine <a href="https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html">link</a></p><p>After install the ansible we’ll check ansible version using following command.</p><pre>ansible --version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGr1CO0tGGl01jYUIA0AmA.png" /></figure><p>Now, will go into manage node and check IP of this node to configure in (/etc/ansible/hosts) dir of controller to manage it.</p><p>One more important thing to keep in mind before go forward make sure we have configured yum in our manage node</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuWgVcFSQZrd_0eGUErrTQ.png" /><figcaption>IP of manage node</figcaption></figure><p>Setting the manage node configuration file so that ansible system can connect to the target node. Created the host-file which contains all this info of manage node in dir (/etc/ansible/hosts)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XcJuZaPNVN2zmJhwtORMHg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4a8E3DexhQqdzIVc5ASWbg.png" /></figure><p>Create the ansible.cfg which is configuration file for ansible and store inventory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8bIx4FarXzqvcBlgzuZNSA.png" /></figure><p>Check list of nodes are present in our inventory file use command given below command</p><pre>ansible all --list-hosts</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsHrGrmSCE7JLLc16mIMMA.png" /></figure><p>Now, we’ll check our controller nodes is fully connected to manage node with the help of this command</p><pre>ansible -m ping all</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vn8jzBp5Zb7b7F7aryttwA.png" /></figure><p>As we can see that there is message “ping: pong” which means our managed node is successfully connected with our controller node.</p><p>Now, we’ll Create a ansible playbook and in this playbook we configure yum repository for docker and installed docker package and through pip we install docker sdk, Also start the docker service.</p><p>i’ll create a ansible-docker playbook by using yaml code the name of our playbook is ansibe-docker.yml and webapp.html file is used to copy html code in /var/www/html directory.</p><p><strong><em>Configure Yum repo for Docker</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCnaFIFcdmBNKpZuNOGcqw.png" /></figure><p>Here we are using yum _repository module to configure yum, here we are not including and gpg key for the package so we just simply giving gpgcheck value as no. This Module will create a repo file docker and include all details we passed in module arguments</p><p><strong><em>Install Docker</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*C4b_PEIIz8MxyQas61iEjw.png" /></figure><p>Here we are using Package module to do so, state present mean docker should be installed on the managed node</p><p><strong><em>Start and enable Docker services</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pAfxnWdmsbIfFFgQ0pPUcw.png" /></figure><p><strong><em>Pull the httpd server image from the Docker Hub and Run the docker container and expose it to the public</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p7Yxvu_pxY1AYcrxuq1ZsQ.png" /></figure><p><strong><em>Copy the html code in /var/www/html directory and start the web server</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mkatPbNoIvai_6_Pqf8ZuA.png" /></figure><p>This is a simple playbook to configure Apache Web-Server in Docker Container using Ansible Playbook . This code can be used for each environment if you want to duplicate a similar setup to any other environment; you just need to make sure you have updated the required values in your environment-specific inventory file.</p><p>To run ansible playbook we have to write command:</p><pre>ansible-playbook your_playbook_name.yml<br>ansible-playbook ansible-docker.yml</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qkECqTyN8r3_8JVK_dF3Pw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OqBwekerHoME0b8B3s6BAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPvxnCBu-9Yj9J4Hwv1MHw.png" /><figcaption>Successfully Docker installed in Manage Node</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xtP1WdumDqQTCFZbxkOnQ.png" /></figure><p>Successfully run our playbook and Docker installed in manage node .</p><p>we have httpd image container.</p><p>Use command to check IP of this container</p><pre>docker inspect container_id | grep IP<br>docker inspect d5180eccb664 | grep IP<br>so we got the IP  172.17.0.2</pre><p>Now we can run our webApp over web the browser</p><pre>172.17.0.2/webapp.html</pre><p>Thanks for reading my artcle….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b058cc7c03e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS(Amazon Web Service) and It’s Use Cases]]></title>
            <link>https://lalita-rajpoot.medium.com/aws-amazon-web-service-and-its-use-cases-b8fdeacb07ed?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8fdeacb07ed</guid>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Wed, 13 Apr 2022 08:47:04 GMT</pubDate>
            <atom:updated>2022-04-13T09:54:01.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eH27vlcEeiz1gT1P.png" /></figure><p>Firstly, Before knowing about AWS I would to explain you what is Cloud Computing and why it is?</p><p>So, Let’s start..</p><p><strong>Why Cloud Computing?</strong></p><p>Let’s take an example to understand that why we use cloud computing.</p><p>I’m about to start a company and need resources to setup on-premise infrastructure but on premise we have some challenges to face e.g</p><ol><li>Higher pay, less scalibity</li><li>Allot huge space for servers</li><li>Appoint a team for hardware and software maintenance</li><li>Poor data security</li><li>Less chance of data recovery</li><li>Lack of flexibility</li><li>No automatic updates</li><li>Less collaboration</li><li>Data cannot be accessed remotely</li><li>Takes longer implementation time</li></ol><p>But By using Cloud Computing you have those solution that were facing on premise</p><p>cloud computing having many advantages</p><ol><li>Pay for what you use</li><li>No server space required</li><li>No experts required for hardware and software maintenance</li><li>Better dat security</li><li>Disaster recovery</li><li>High Flexibility</li><li>Automatic Software updates</li><li>Teams can collaborate from widespread location</li><li>Data can be accessed and shared anywhere over the internet.</li><li>Rapid implementation</li></ol><p>So assumed that Cloud Computing is better that on-premise</p><p><strong>What is Cloud Computing?</strong></p><p>You can define cloud computing is the ability to delivery of on-demand computing services over the internet on a pay-as-you-go basis.</p><p>Rather than manage files on a local storage device, cloud computing makes it possible save them over the internet.</p><p><strong>Types of Cloud Computing</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nAH7r7PEDCsgR1AvVnYaCQ.jpeg" /></figure><p>Now, move forward to main topic….</p><p><strong>What is AWS?</strong></p><p>AWS stands for Amazon Web Service. It is cloud platform offered by Amazon.com Inc. You can easily say that AWS provides the resources on rent over the internet.</p><p>AWS provides servers, storage, networking, remote computing, email, mobile development, and security. AWS can be broken into three main products: EC2, Amazon’s virtual machine service, Glacier, a low-cost cloud storage service, and S3, Amazon’s storage system. It is a comprehensive, easy to use computing platform offered Amazon. The platform is developed with a combination of infrastructure as a service (IaaS), platform as a service (PaaS) and packaged software as a service (SaaS) offerings</p><p>AWS has 81 availability zones in which its servers are located. These serviced regions are divided in order to allow users to set geographical limits on their services but also to provide security by diversifying the physical locations in which data is held. Amazon Web Services is a global leader in terms of Public Cloud market share and provide cloud solutions in 245 different countries across the globe. It provides more than 200 Cloud Computing services.</p><p><strong>AWS History:-</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8XxPf0PrYeEsXuLN" /></figure><h3>AWS Regions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EukFLYBVRR5-YlK-.jpeg" /></figure><h3>Data Centre of AWS -</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*jglj4SZ3Ax-4Xogr" /><figcaption>Amazon AWS: South Dublin Data Center</figcaption></figure><h4><strong>AWS have some important services.</strong></h4><p>Examples:- Compute service, Migration, Security, Storage, Networking, Messaging, Database, Management Tools, Analytics.</p><ol><li><strong>Compute Services:- </strong>Compute services are also known as Infrastructure-as-a-Service (IaaS). it supplies a virtual server instance and storage and APIs that let users migrate workloads to a virtual machine.</li></ol><p>a)<strong>EC2(Elastic Compute Cloud)-</strong> EC2 is a virtual machine in the cloud on which you have OS level control. You can run this cloud server whenever you want.</p><p>b)<strong>EKS (Elastic Container Service for Kubernetes)-</strong> The tool allows you to<strong> </strong>Kubernetes on Amazon cloud environment without installation.</p><p>c) <strong>AWS Lambda-</strong> This<strong> </strong>AWS service allows you to run functions in the cloud. The tool is a big cost saver for you as you to pay only when your functions execute.</p><p><strong>2</strong>. <strong>Migration:-</strong> Migration services used to transfer data physically between your datacenter and AWS e.g DMS(Database Migration Service), SMS (Server Migration Service), Snowball</p><p><strong>3. Storage:-</strong></p><p><strong>a) Amazon Glacier-</strong> It is an extremely low-cost storage service. It offers secure and fast storage for data archiving and backup.</p><p><strong>b) Amazon Elastic Block Store (EBS)-</strong> It provides block-level storage to use with Amazon EC2 instances. Amazon Elastic Block Store volumes are network-attached and remain independent from the life of an instance.</p><p><strong>c) AWS Storage Gateway-</strong> This AWS service is connecting on-premises software applications with cloud-based storage. It offers secure integration between the company’s on-premises and AWS’s storage infrastructure.</p><p><strong>4. Security Services:-</strong></p><p><strong>a) IAM (Identity and Access Management)</strong> — IAM is a secure cloud security service which helps you to manage users, assign policies, form groups to manage multiple users.</p><p><strong>b) Inspector</strong> — It is an agent that you can install on your virtual machines, which reports any security vulnerabilities.</p><p><strong>c) Certificate Manager</strong> — The service offers free SSL certificates for your domains that are managed by Route53.</p><p><strong>d) WAF (Web Application Firewall)</strong> — WAF security service offers application-level protection<strong> </strong>and allows you to block SQL injection and helps you to block cross-site scripting attacks.</p><p><strong>5. Database Services:-</strong></p><ol><li><strong>Amazon RDS- </strong>This<strong> </strong>Database AWS service is easy to set up, operate, and scale a relational database in the cloud.</li><li><strong>Amazon DynamoDB-</strong> It is a fast, fully managed NoSQL database service. It is a simple service which allow cost-effective storage and retrieval of data. It also allows you to serve any level of request traffic.</li></ol><p><strong>6. Management Services:-</strong></p><ol><li><strong>CloudWatch</strong> — Cloud watch helps you to monitor AWS environments like EC2, RDS instances, and CPU utilization. It also triggers alarms depends on various metrics.</li><li><strong>CloudFormation</strong> — It is a way of turning infrastructure into the cloud. You can use templates for providing a whole production environment in minutes.</li></ol><h3>Applications of AWS services</h3><p>Amazon Web services are widely used for various computing purposes like:</p><ul><li>Web site hosting</li><li>Application hosting/SaaS hosting</li><li>Media Sharing (Image/ Video)</li><li>Mobile and Social Applications</li><li>Content delivery and Media Distribution</li><li>Storage, backup, and disaster recovery</li><li>Development and test environments</li><li>Academic Computing</li><li>Search Engines</li><li>Social Networking</li></ul><h3>Benefits of Amazon Web Services</h3><p>Amazon Web Services(AWS) offers many benefits, let us explore a few of these ones by one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9lcTHDq8b3JUl6SewNZbEw.jpeg" /></figure><h3>Global network of AWS Regions</h3><p>AWS has the most extensive global cloud infrastructure. No other cloud provider offers as many Regions with multiple Availability Zones connected by low latency, high throughput, and highly redundant networking. AWS has 84 Availability Zones within 26 geographic regions around the world, and has announced plans for 24 more Availability Zones and 8 more AWS Regions in Australia, Canada, India, Israel, New Zealand, Spain, Switzerland, and United Arab Emirates (UAE). The AWS Region and Availability Zone model has been recognized by Gartner as the recommended approach for running enterprise applications that require high availability.</p><h3>Mobile Friendly Access</h3><p>Mobile friendly access includes two things:</p><h4>AWS Mobile Hub</h4><p>This Amazon Web Services feature is for both Android and IOS. AWS Mobile Hub supports and guides you towards the suitable and compatible feature for your app. It includes a console that helps you to access AWS services which include development, testing, and monitoring of the mobile application. It includes lucid ways to select and configure mobile app features like content delivery and push notifications.</p><h4>AWS Mobile SDK</h4><p>By this AWS feature, your app can directly access Amazon Web Services such as DynamoDB, S3, and Lambda. The Mobile SDK supports IOS, Android, Web, React Native, Unity and many more.</p><p><strong>AWS Pricing:- </strong>Amazon Web Services has you covered when it comes to pricing. Firstly it offers ‘pay as you go model’, that means you pay for resources in volumes and duration you use them for. It charges you on a per-minute basis. Meaning if a resource is used for 30 minutes you be charged only for those 30 minutes and not more. It also offers a calculator that lets you track your expenses.</p><p><strong>Zero Commitment:- </strong>Whether you need to host a website, or even a high traffic hosting content delivery network. Amazon Web Services keeps you covered. You spawn a virtual machine, a database service This happens with you not requiring to be in an upfront commitment. This is because Amazon Web Services charges you on per minute and for some resources per hour basis. This means you are not tied with any yearly, quarterly or even monthly commitments.</p><p><strong>Scalability and Procurement</strong></p><p>If your applications lie on-premise, procuring your servers may take a lot of time. It can be a few hours to even 1- weeks. This holds true for your software licenses. Amazon Web Services paints a very different picture when it comes to procurement. You can launch new virtual machines or instances in a matter of minutes and save a lot of time and effort.</p><p>When it comes to scalability AWS ensures you can scale up and down instantly to adjust to spikes your infrastructure may face. This is something that can be difficult to achieve on your on-premise infrastructure.</p><p><strong>Security</strong></p><p>Amazon Web Services takes Cloud Security to the next level. It ensures your infrastructure is secure physically and also over the network, that consumers use to access it.</p><ul><li>It supports shared security model. This means the consumer can control security at the consumer end and AWS at data centre end.</li><li>Physical security of data centre can be ensured by the fact that there is around the cloud physical security across all the data centres that Amazon Web Services owns</li><li>Its Global infrastructure ensures your data is well distributed and accessible to you across the globe and is highly resilient, available and safe from disasters</li><li>AWS provides firewalls to man your data at the entry points of the network and also ensures encryption of data that moves over the network, ensuring end to end security</li><li>Amazon IAM is a service that lets you identify user who can access your resources and control who get to access what and when</li></ul><p><strong>Flexible</strong></p><p>Not a lot needs to be said about the flexibility, when a platform offers, 200+ services in 245 countries. But to point out few key pointers, Amazon Web Services offers flexibility in terms of pricing, security, and even when it comes to automating the process scaling your devices. It offers, IaaS, PaaS and even serverless computing. This means from configuring everything from a scratch to directly using a platform everything is flexible for a consumer. So much so that a user can just put his code in a serverless computing service and the service takes care of everything else.</p><p><strong>PaaS Offerings</strong></p><p>AWS offers an infrastructure that is scalable and also covers core domains, like compute storage, databases, networking. In the process, it takes care of configuring and managing platforms. Hence it provides good options when it comes to providing PaaS services to people. Meaning people do not have to worry about setting up infrastructures.</p><p><strong>Adaptable</strong></p><p>They say Amazon Web Services is everyone and that is very correct. Because it gives plenty of options when you want to set up your business on the cloud. If you are starting fresh with cloud or even if you have an infrastructure that needs to move to the cloud, AWS takes care of both situations. Amazon Web Services most types of migrations and license support for a smooth transition to AWS cloud</p><p>Your Scaling up and scaling down concerns are also nullified because AWS let us you handle data and applications in different volumes.</p><p><strong>API</strong></p><p>API give us programmatic control over the resources we use. It comes to taking data backup, or even launching instances this all can be done API’s and in short, it gives us more power compared to AWS management console.</p><h3>Industrial Use Cases of Amazon Web Services</h3><p><strong>Repp Health</strong></p><p>We all hate waiting in hospitals for a turn to come up. As a patient, we do not have patience and want to get done with our diagnosis at the earliest. And that is understandable behaviour. However, the number of people visiting a hospital and the staff having to set up all the equipment, are some reasons that cause these situations.</p><p>Amazon Web Services provides some relief here. With the help of AWS Repp has come with cloud-based tracking solutions. It helps keep track of patients and assets that reside in the vicinity and it makes use of IoT to do so. It also updates, electronic health records considering the data from sensors that capture the movements of patients in the room.</p><p>AWS offers Server-less IoT infrastructure to this achieve this and help save as much as it can, for speeding up the overall process at the hospital</p><p><strong>McDonald’s</strong></p><p>It is certain that most of us know what McDonald’s is? McDonald’s is a highly popular Burger and Fast chain across the globe. They have more than 37000 outlets across the globe and serve more than 60 million people every day. This gives you some idea as to the volume of customers they handle. It is no different for home delivery they provide.</p><p>However, having a home delivery platform for such a big vendor. Amazon Web Services ensured their home delivery platform was set up in just 4 months. It is a cloud-native microservices platform. It can scale up to 20000 orders per second and the latency is less than 100 seconds. This platform ensures high integration with delivery platforms and ROI even for minimally charged orders.</p><p><strong>WeWork</strong></p><p>Here is a case study where an application was moved from one service AWS to the other service on AWS. WeWork has built a tool for Project management called FieldLens. Initially, this was set up on Amazon Elastic Cloud Compute. This was a monolith project that functioned well for 2 and a half years. However, it needed expansion and improvement. This came in the form of Docker and AWS Elastic Container Service. On moving this project to containers the performance improved immensely.</p><p>Talking of numbers FieldLens, now hosts 80,000 users and 110,000 projects that use containers, and are deployed through AWS Codepipeline and secured using AWS Service. It offers high integration and scalability.</p><p>There are plenty of use cases and applications that Amazon Web Services offers. And there are many customers that have invested billions in this cloud platform and continue to do so on a monthly basis. That tell you how reliable this cloud platform is. To note a few popular customers, here are some names that you may want to know about:</p><h3>Popular Customers of Amazon Web Services</h3><ol><li>McDonald’s</li><li>Netflix</li><li>Unilever</li><li>Samsung</li><li>MI</li><li>Airbnb</li><li>BMW</li><li>ESPN</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8fdeacb07ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes and its Use-Cases]]></title>
            <link>https://lalita-rajpoot.medium.com/kubernetes-and-its-use-cases-53427034c149?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/53427034c149</guid>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Mon, 14 Feb 2022 15:06:26 GMT</pubDate>
            <atom:updated>2022-02-14T15:06:26.656Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*LRdoXN5Z81XYJxwk.png" /></figure><p><strong>Following are the topics covered in this blog:</strong></p><ol><li>What is Kubernetes?</li><li>Kubernetes Components &amp; Architecture</li><li>How Kubernetes works</li><li>Why use Kubernetes?</li><li>Feature of Kubernetes</li><li>Industry Use-Case Study of Kubernetes</li></ol><h3>What is Kubernetes?</h3><p>Kubernetes is an open source system to deploy, scale, and manage containerized applications anywhere.</p><p>Kubernetes automates operational tasks of container management and includes built-in commands for deploying applications, rolling out changes to your applications, scaling your applications up and down to fit changing needs, monitoring your applications, and more — making it easier to manage applications.</p><ul><li>Containers offer a way to package code, runtime, system tools, system libraries, and configs altogether. This shipment is a lightweight, standalone executable. This way, your application will behave the same every time no matter where it runs (e.g, Ubuntu, Windows, etc.). Containerization is not a new concept, but it has gained immense popularity with the rise of microservices and Docker.</li></ul><h4>Kubernetes Components &amp; Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ltc2_J5YmxlSs4UL.png" /><figcaption>Kubernetes Components &amp; Architecture</figcaption></figure><p>Below are the main components found on the master node:</p><ul><li>etcd cluster — a simple, distributed key value storage which is used to store the Kubernetes cluster data (such as number of pods, their state, namespace, etc), API objects and service discovery details. It is only accessible from the API server for security reasons. etcd enables notifications to the cluster about configuration changes with the help of watchers. Notifications are API requests on each etcd cluster node to trigger the update of information in the node’s storage.</li><li>kube-apiserver — Kubernetes API server is the central management entity that receives all REST requests for modifications (to pods, services, replication sets/controllers and others), serving as frontend to the cluster. Also, this is the only component that communicates with the etcd cluster, making sure data is stored in etcd and is in agreement with the service details of the deployed pods.</li><li>kube-controller-manager — runs a number of distinct controller processes in the background (for example, replication controller controls number of replicas in a pod, endpoints controller populates endpoint objects like services and pods, and others) to regulate the shared state of the cluster and perform routine tasks. When a change in a service configuration occurs (for example, replacing the image from which the pods are running, or changing parameters in the configuration yaml file), the controller spots the change and starts working towards the new desired state.</li><li>cloud-controller-manager –— is responsible for managing controller processes with dependencies on the underlying cloud provider (if applicable). For example, when a controller needs to check if a node was terminated or set up routes, load balancers or volumes in the cloud infrastructure, all that is handled by the cloud-controller-manager.</li><li>kube scheduler — helps schedule the pods (a co-located group of containers inside which our application processes are running) on the various nodes based on resource utilization. It reads the service’s operational requirements and schedules it on the best fit node. For example, if the application needs 1GB of memory and 2 CPU cores, then the pods for that application will be scheduled on a node with at least those resources. The scheduler runs each time there is a need to schedule pods. The scheduler must know the total resources available as well as resources allocated to existing workloads on each node.</li></ul><p>Below are the main components found on a (worker) node:</p><ul><li>kubelet — the main service on a node, regularly taking in new or modified pod specifications (primarily through the kube-apiserver) and ensuring that pods and their containers are healthy and running in the desired state. This component also reports to the master on the health of the host where it is running.</li><li>kube-proxy — a proxy service that runs on each worker node to deal with individual host subnetting and expose services to the external world. It performs request forwarding to the correct pods/containers across the various isolated networks in a cluster.</li></ul><h4>Kubectl</h4><p>kubectl command is a line tool that interacts with kube-apiserver and send commands to the master node. Each command is converted into an API call.</p><h4>How Kubernetes works?</h4><h3>Kubernetes Works Like an Operating System</h3><p>Kubernetes is an example of a well-architected distributed system. It treats all the machines in a cluster as a single pool of resources. It takes up the role of a distributed operating system by effectively managing the scheduling, allocating the resources, monitoring the health of the infrastructure, and even maintaining the desired state of infrastructure and workloads. Kubernetes is an operating system capable of running modern applications across multiple clusters and infrastructures on cloud services and private data center environments.</p><p>Like any other mature distributed system, Kubernetes has two layers consisting of the head nodes and worker nodes. The head nodes typically run the control plane responsible for scheduling and managing the life cycle of workloads. The worker nodes act as the workhorses that run applications. The collection of head nodes and worker nodes becomes a cluster.</p><h4>Why(when) use Kubernetes?</h4><h3>When you should use it</h3><p><strong>If your application uses a microservice architecture<br></strong>If you have transitioned or are looking to transition to a microservice architecture then Kubernetes will suit you well because it’s likely you’re already using software like Docker to containerize your application.</p><p><strong>If you’re suffering from slow development and deployment<br></strong>If you’re unable to meet customer demands due to slow development time, then Kubernetes might help. Rather than a team of developers spending their time wrapping their heads around the development and deployment lifecycle, Kubernetes (along with Docker) can effectively manage it for you so the team can spend their time on more meaningful work that gets products out the door.</p><p>“Our internal teams have less of a need to focus on manual capacity provisioning and more time to focus on delivering features for Spotify.” — Spotify</p><p><strong>Lower infrastructure costs<br></strong>Kubernetes uses an efficient resource management model at the container, pod, and cluster level, helping you lower cloud infrastructure costs by ensuring your clusters always have available resources for running applications.</p><h4>Feature of Kubernetes</h4><ul><li>You can use it to deploy your services, to roll out new releases without downtime, and to scale (or de-scale) those services.</li><li>It is portable.</li><li>It can run on a public or private cloud.</li><li>It can run on-premise or in a hybrid environment.</li><li>You can move a Kubernetes cluster from one hosting vendor to another without changing (almost) any of the deployment and management processes.</li><li>Kubernetes can be easily extended to serve nearly any needs. You can choose which modules you’ll use, and you can develop additional features yourself and plug them in.</li><li>Kubernetes will decide where to run something and how to maintain the state you specify.</li><li>Kubernetes can place replicas of service on the most appropriate server, restart them when needed, replicate them, and scale them.</li><li>Self-healing is a feature included in its design from the start. On the other hand, self-adaptation is coming soon as well.</li><li>Zero-downtime deployments, fault tolerance, high availability, scaling, scheduling, and self-healing add significant value in Kubernetes.</li><li>You can use it to mount volumes for stateful applications.</li><li>It allows you to store confidential information as secrets.</li><li>You can use it to validate the health of your services.</li><li>It can load balance requests and monitor resources.</li><li>It provides service discovery and easy access to logs.</li></ul><h4>Industry Use-Case Study of Kubernetes</h4><p><em>Companies can use Kubernetes to facilitate the versatile application support that can cut down on hardware costs and lead to more efficient architecting. It is one of several choices in new container architectures, for bringing a higher level of innovation to the design of a hardware and software environment.</em></p><p>Almost <strong>25,341 companies</strong> that use Kubernetes. The companies using Kubernetes are most often found in United States and in the Computer Software industry. Kubernetes is most often used by companies with 10–50 employees and 1M-10M dollars in revenue.</p><h3>Vodafone</h3><p>Vodafone Group is one of the world’s leading global telecommunications company that provides technology services. They have expertise in a variety of Internet of Things(IoT) and connectivity products for both consumers and businesses, as well as mobile financial services and digital transformation in emerging markets.</p><p>Vodafone struggled with an old, monolithic architecture that had incurred high levels of complexity, interdependency, and a substantial upgrade deficit. As a result, they could no longer maintain it and needed to start fresh with new technology.</p><blockquote>In 2016, Vodafone launched a new digital strategy to deliver the best customer services. The digital strategy includes implementing cloud-native software and container orchestration platform Kubernetes, to best enable local markets to share assets across different parts in the world.</blockquote><h3>Tinder</h3><p>Tinder’s move to Kubernetes was to drive Tinder Engineering towards container architecture and immutable deployment so engineers could focus more on their code than operation tasks such as infrastructure, application build, and deployment.</p><h3>Potify</h3><p>Launched in 2008, Spotify is one of the largest music streaming subscription service that has grown to over 200 million monthly active users across the world. Spotify aims to empower creators and enable an immersive listening experience for their customers. They have containerized their microservices and managed it through an in-house container orchestration service called Helios in 2014.</p><p>Thanks for your time….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53427034c149" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Research on Case studies of fixed capacity Queue and Changing the Queue capacity using Artificial…]]></title>
            <link>https://lalita-rajpoot.medium.com/research-on-case-studies-of-fixed-capacity-queue-and-changing-the-queue-capacity-using-artificial-abb451bc97a4?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/abb451bc97a4</guid>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Sun, 13 Feb 2022 15:55:55 GMT</pubDate>
            <atom:updated>2022-02-13T15:55:55.859Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Research on Case studies of fixed capacity Queue and Changing the Queue capacity using Artificial Intelligence.</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*3_eTK6ySkFaV4UDt.jpg" /></figure><h4><strong>What is Queue?</strong></h4><p>A <strong>queue</strong> is a data structure that stores the elements in a sequence. A queue uses the FIFO method (First In First Out), by which the first element that is enqueued will be the first one to be dequeued.</p><p>The process to add an element into queue is called <strong>Enqueue</strong> and the process of removal of an element from queue is called <strong>Dequeue</strong>.</p><h3>Basic features of Queue</h3><ol><li>Queue is also an ordered list of elements of similar data types.</li><li>Queue is a FIFO( First in First Out ) structure.</li><li>Once a new element is inserted into the Queue, all the elements inserted before the new element in the queue must be removed, to remove the new element.</li><li>peek( ) function is oftenly used to return the value of first element without dequeuing it.</li></ol><h3>Applications of Queue</h3><p>Queue, as the name suggests is used whenever we need to manage any group of objects in an order in which the first one coming in, also gets out first while the others wait for their turn, like in the following scenarios:</p><ol><li>Serving requests on a single shared resource, like a printer, CPU task scheduling etc.</li><li>In real life scenario, Call Center phone systems uses Queues to hold people calling them in an order, until a service representative is free.</li><li>Handling of interrupts in real-time systems. The interrupts are handled in the same order as they arrive i.e First come first served.</li></ol><h3>Fixed capacity Queue</h3><p>A fixed size queue is one where there is a limit to how many elements can be queued. There can be fewer than the maximum number but there can not be more than this maximum. a queue is to say it simple an array where the data is stored and maintained until something its added or removed.</p><h3>Example:-</h3><p>when you press a key (any key) the keyboard does not do anything except to store the value of such key on a queue, in order so the first that gets in is the first that is processed later by some other computer part.</p><p>this queue cannot just be any size because its made on harware so its “fixed”, and that what it means fixed size, that the number of elements you can put in the queue has a max. it can be empty of course but cannot be more than it size and that&#39;s why computer back in the day started to beep if you typed too fast to the point they could not cope with it. The keyboard queue was full, and you had to wait until it finishes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abb451bc97a4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[K-means clustering and its Real use-cases in the Security Domain.]]></title>
            <link>https://lalita-rajpoot.medium.com/k-means-clustering-and-its-real-use-cases-in-the-security-domain-d44f8aab637e?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d44f8aab637e</guid>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Sun, 13 Feb 2022 05:58:05 GMT</pubDate>
            <atom:updated>2022-02-13T05:58:05.324Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Gdnr-4Etdi1vxdRp" /></figure><p>K-means clustering is the simplest and popular unsupervised machine learning algorithms Used for Solving Classification Problems. K Means segregates the unlabelled data into various groups, called clusters, based on having similar features.</p><blockquote>“A cluster refers to a collection of data points aggregated together because of certain similarities.”</blockquote><h4>What is Unsupervised Learning?</h4><p>Unsupervised Learning is a machine learning technique in which, there are no labels for the training data. A machine learning algorithm tries to learn the underlying patterns or distributions that govern the data.</p><h3>What is clustering?</h3><p>Clustering is one of the most common exploratory data analysis technique used to get an intuition about the structure of the data. It can be defined as the task of identifying subgroups in the data such that data points in the same subgroup (cluster) are very similar while data points in different clusters are very different.<br>Unlike supervised learning, clustering is considered an unsupervised learning method since we don’t have the ground truth to compare the output of the clustering algorithm to the true labels to evaluate its performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*SghvwvG6PpnC2enr" /></figure><h4>What is K-means?</h4><p>K-means is an algorithm that identifies k number of centroids and then allocates every data point to the nearest cluster while keeping the centroids as small as possible.</p><p>Here “K” refers to the number of centroids we need in the dataset. A centroid is the imaginary or real location representing the center of the cluster.</p><h3>Where Can I Apply K-Means?</h3><p>k-means can typically be applied to data that has a smaller number of dimensions, is numeric, and is continuous. think of a scenario in which you want to make groups of similar things from a randomly distributed collection of things; k-means is very suitable for such scenarios.</p><h3>How Does K-Means Clustering Work?</h3><p>The flowchart below shows how k-means clustering works:</p><p>The following stages will help us understand how the K-Means clustering technique works-</p><ul><li><strong><em>Step 1:</em></strong> First, we need to provide the number of clusters, K, that need to be generated by this algorithm.</li><li><strong><em>Step 2:</em></strong> Next, choose K data points at random and assign each to a cluster. Briefly, categorize the data based on the number of data points.</li><li><strong><em>Step 3:</em></strong> The cluster centroids will now be computed.</li><li><strong><em>Step 4:</em></strong> Iterate the steps below until we find the ideal centroid, which is the assigning of data points to clusters that do not vary.</li><li>4.1 The sum of squared distances between data points and centroids would be calculated first.</li><li>4.2 At this point, we need to allocate each data point to the cluster that is closest to the others (centroid).</li><li>4.3 Finally, compute the centroids for the clusters by averaging all of the cluster’s data points.</li></ul><h3>Interesting use cases for k-means</h3><p>1. Document Classification</p><p>Cluster documents in multiple categories based on tags, topics, and the content of the document. this is a very standard classification problem and k-means is a highly suitable algorithm for this purpose. the initial processing of the documents is needed to represent each document as a vector and uses term frequency to identify commonly used terms that help classify the document. the document vectors are then clustered to help identify similarities in document groups.</p><p>2. Insurance Fraud Detection</p><p>Machine learning has a critical role to play in fraud detection and has numerous applications in automobile, healthcare, and insurance fraud detection. utilizing past historical data on fraudulent claims, it is possible to isolate new claims based on its proximity to clusters that indicate fraudulent patterns.</p><p>3. Cyber-Profiling Criminals</p><p>Cyber profiling is the process of collecting data from individuals and groups to identify significant co-relations. the idea of cyber profiling is derived from criminal profiles, which provide information on the investigation division to classify the types of criminals who were at the crime scene.</p><p>4. Call Record Detail Analysis</p><p>Call Detail Record (CDR) is the information captured by the telecom companies during Call, SMS, and Internet activity of a customer. This information provides greater insights about the customer’s needs when used with customer demographics. Most of the telecom companies use CDR information for fraud detection by clustering the user profiles, reducing customer churn by usage activity, and targeting the profitable customers by using RFM analysis.</p><p>5. Behavioral segmentation:</p><ul><li>Segment by purchase history</li><li>Segment by activities on application, website, or platform</li><li>Define personas based on interests</li><li>Create profiles based on activity monitoring</li></ul><blockquote>Thanks for reading my article..</blockquote><blockquote>I hope it will help you to explore the idea of K-mean clustering.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d44f8aab637e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Python Template]]></title>
            <link>https://lalita-rajpoot.medium.com/python-template-64b75598fe08?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/64b75598fe08</guid>
            <category><![CDATA[linuxworld]]></category>
            <category><![CDATA[sharing-is-caring]]></category>
            <category><![CDATA[vimal-daga]]></category>
            <category><![CDATA[arth2]]></category>
            <category><![CDATA[righteducation]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Sun, 16 Jan 2022 15:31:47 GMT</pubDate>
            <atom:updated>2022-01-17T05:55:38.499Z</atom:updated>
            <content:encoded><![CDATA[<h3>Python Template &amp; Concept of Do while loop in Python.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*7x0u_GcpYbmOKvBK" /></figure><h3>What Is Template ?</h3><blockquote>In python, template is a class of String module, allows for data to change without having to edit the application. It can be modified with subclasses. Templates provide simpler string substitutions. substitution is <strong>“$“</strong>-based substitutions, rather than <strong>“%“</strong>-based substitutions.</blockquote><p>Template class provide three methods to create a string from the template −</p><ul><li><strong>Class string.Template(template</strong>) — The constructor takes a single argument, which is the template string.</li><li><strong>substitute(mapping, **keywords) </strong>— Method that substitutes the string values(mapping) for the template string values. Mapping is a dictionary-like object, and its values may be accessed as a dictionary. If the keywords argument is used, it represents placeholders. When both mapping and keywords are used, the keyword takes the precedence. If a placeholder is missing from mapping or keywords, a keyError is thrown.</li><li><strong>safe_substitute(mapping, **keywords) </strong>— Functions similarly to the substitute(). However, if a placeholder is missing from mapping or keywords, the original placeholder is used by default, thus avoiding the KeyError. Also, any occurrence of ‘$’ returns a dollar sign.</li></ul><h3>How It Works ?</h3><ul><li>Template class takes a string as a template, within the string use placeholder variable name with preceding the <strong>Dollar($)</strong> sign to depict there is the placeholder.</li><li>Then substitute value into the template with <strong>substitute()</strong> method using a dictionary. Where key is in the dictionary match with placeholder name. The returned string is the template with all the values rather than the placeholder</li><li>It should also be noted that, the placeholder variable name should also be follow the same naming convention as variable naming in python.</li></ul><h3>Substitution Rules For Python</h3><p>For performing substitution we should have to follow the following rules –</p><ul><li><strong>“$$“</strong> is an escape ; it is replaced with a single<strong> “$“.</strong></li><li><strong>“$identifier“</strong> names a substitution placeholder matching a mapping key of “identifier”. By default, “identifier” must spell a Python identifier. The first non-identifier character after the “$” character terminates this placeholder specification.</li><li><strong>“${identifier}“</strong> is equivalent to <strong>“$identifier“</strong>. It is required when valid identifier characters follow the placeholder but are not part of the placeholder, such as <strong>“${noun}ification”</strong>.</li></ul><h3>Implement Template:-</h3><pre>from string import Template</pre><pre>my_template = Template(&#39;My Name is $x&#39;)</pre><pre>print (my_template.substitute({&#39;x&#39; : &quot;Lalita Rajpoot&quot;}))<br></pre><ul><li>First of all import Template class from string module.</li><li>Then create a template that has placeholder for value of x.</li><li>And finally Substitute value of x in above template.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01wmgZs0bB863oqzeVgDOw.png" /></figure><h3>Why Use Custom Templates ?</h3><ul><li>It saves typing and reduces code size.</li><li>Easy to implement custom templates from command line.</li><li><strong>For eg. — MyPhoto_$n$ext = MyPhoto_0.jpg, MyPhoto_1.jpg etc.</strong></li><li>Custom templates are extremely useful for <strong>webpages</strong>, as a webpage generally always follows the same template but with different data.</li></ul><h3>Do while loop:-</h3><p>Do While Loop conditional statement is used for an exit level control flow of code implementation that ensures the code block is executed at least once before the control reaches the while condition. In Python, there is no dedicated do while conditional loop statement, and so this function is achieved by creating a logical code from the while loop, if statement, break and continue conditional statements. When the logic of the program is done correctly, depending on the requirement provided, the Do While loop can be imitated perfectly.</p><p><strong>Syntax of do-while:-</strong></p><pre>do<br>{<br>Statement(statement)</pre><h4>There are two scenarios in which a loop terminates:</h4><ul><li>The loop condition is no longer true/false (depending on the type of loop).</li><li>A break statement is executed from within the code in the loop body.</li></ul><p>Code :-</p><pre>i = 1</pre><pre>while True:<br>print(i)<br>i = i + 1<br>if(i &gt; 3):</pre><pre>break</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXgTZNt7FDfPojx5FJB97Q.png" /></figure><p><strong>T</strong>hanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64b75598fe08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Face Detect, Blur in Live Video using OpenCV and Python]]></title>
            <link>https://lalita-rajpoot.medium.com/face-detect-blur-in-live-video-using-opencv-and-python-d870a3d24b5e?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/d870a3d24b5e</guid>
            <category><![CDATA[opencv-python]]></category>
            <category><![CDATA[vimal-daga]]></category>
            <category><![CDATA[sharing-is-caring]]></category>
            <category><![CDATA[righteducation]]></category>
            <category><![CDATA[linuxworld]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Thu, 13 Jan 2022 16:52:04 GMT</pubDate>
            <atom:updated>2022-01-13T16:52:04.696Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kx4BRS6UDmQjroIo.jpg" /></figure><h3>What is Computer Vision?</h3><p>Computer Vision is a field of study which enables computers to replicate the human visual system. It’s a subset of artificial intelligence which collects information from digital images or videos and processes them to define the attributes. The entire process involves image acquiring, screening, analysing, identifying and extracting information. This extensive processing helps computers to understand any visual content and act on it accordingly.</p><p>Computer vision projects translate digital visual content into explicit descriptions to gather multi-dimensional data. This data is then turned into a computer-readable language to aid the decision-making process.</p><p><strong><em>“The main objective of this branch of artificial intelligence is to teach machines to collect information from pixels”</em></strong><em>.</em></p><blockquote><strong>How does a computer read an image?</strong></blockquote><p>Humans have different skills and one of the skills is to identify an object in an image , computers have machine learning models, which can be thought of as a skill, to perform the same task. As humans need to be trained to perform a particular skill, computers need to train the machine learning model as well.</p><p>A computer sees an image as 0s and 1s. Pixel is the smallest unit in an image. When we take a digital image, it is stored as a combination of pixels. Each pixel contains a different number of block. If it a grayscale image, it has only one pixel, whereas if it is a coloured image, it contains three channels: red, green and blue.</p><h3><strong>What is OpenCV?</strong></h3><p>OpenCV Originally developed by Intel, OpenCV was later supported by Willow Garage then Itseez, in turn later acquired by Intel</p><p>OpenCV is a Python library which is designed to solve computer vision problems. OpenCV supports a wide variety of programming languages such as C++, Python, Java etc. Support for multiple platforms including Windows, Linux, and MacOS.</p><p>OpenCV Python is nothing but a wrapper class for the original C++ library to be used with Python. Using this, all of the OpenCV array structures gets converted to/from NumPy arrays.</p><h3>Use Cases for OpenCV library</h3><p>There are many ideal use cases for OpenCV :</p><p>1. Automated inspection and surveillance</p><p>2. Tracking the number of people in a place (for instance, the foot traffic in a mall)</p><p>3. Vehicle count on highways along with their speeds</p><p>4. Street view image stitching</p><p>5. Defect detection in manufacturing processes</p><p>6. Interactive art installations</p><p>7. Video/image search and retrieval</p><p>8. Object recognition</p><p>9. TV Channels advertisement recognition</p><p>10. Robot and driver-less car navigation and control</p><p>11. Analyzing medical images</p><p>12. Figuring out 3D structure from motion captured in videos/ films</p><h3>Advantages of using OpenCV</h3><p><em>Easy of use:</em> OpenCV is easy and simple to learn</p><p><em>Availability of many tutorials</em>: The fact that there are lots of tutorials available is a big plus as one can access many learning resources.</p><p><em>Compatibility with leading coding languages</em>: OpenCV works with almost all the leading programming languages today, including Python, C++ and Java.</p><p>Here, We’re going to develop a OpenCV program that will detect human face, blur it and get position where we click on image..</p><p>So let’s Start….</p><p>I have used cv2 module from python-OpenCV library and haarcascade file to detect frontal faces.</p><pre>import cv2<br>cap = cv2.VideoCapture(0)<br># Haar Cascade to detect frontal faces<br>face_cascade = cv2.CascadeClassifier(&quot;haarcascade_frontalface_default.xml&quot;)<br># Setting position when click on image at anywhere <br>def lw(event , x , y, i,j):<br>    if event == cv2.EVENT_LBUTTONDOWN:<br>        print(&quot;x :&quot;, x , &quot;y :&quot; , y)<br>        cv2.circle(image , (x,y) , 50 , [0,255,0], -1 )<br>    <br>#cv2.imshow(photo)<br>cv2.namedWindow(winname=&quot;mywin1&quot;)<br>cv2.setMouseCallback( &quot;mywin1&quot; , lw  )</pre><pre>while True:<br>    ret, image = cap.read()<br>    # Detect faces in the live Video Stream<br>    faces = face_cascade.detectMultiScale(image, 1.3,5)<br>    for (x,y,w,h) in faces:<br>        # Enclose inside a blue rectangular box<br>        cv2.rectangle(image,(x,y),(x+w,y+h),(255,140,200),3)<br>        # Select only detected face portion for Blur <br>        face_color = image[y:y + h, x:x + w]<br>        # Blur the Face with Gaussian Blur of Kernel Size 51*51<br>        blur = cv2.GaussianBlur(face_color, (51, 51), 0)<br>        image[y:y + h, x:x + w] = blur<br>    cv2.imshow(&#39;mywin1&#39;, image)<br>    if cv2.waitKey(100) &amp; 0xFF == ord(&#39;q&#39;):<br>        break <br>cap.release()<br>cv2.destroyAllWindows()</pre><p>Here, This is my code which is detecting face properly and blur the image . It is also showing the cursor position where we click on image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*fq9l_nmqohU7h2sbz3eHvQ.png" /><figcaption>Blurred Face after detecting My Face</figcaption></figure><p>Now, It’ll show position of the blur image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9hYt7h7vTccRyLTymuROg.png" /><figcaption>Blurred Image with it’s Position</figcaption></figure><p>I hope this article will help you to get more knowledge about Python-OpenCV.</p><p>Thanks for your valuable time , Stay Happy :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d870a3d24b5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SIEM Tools]]></title>
            <link>https://lalita-rajpoot.medium.com/siem-tools-3c1aa36ea084?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c1aa36ea084</guid>
            <category><![CDATA[vimal-daga]]></category>
            <category><![CDATA[arth2]]></category>
            <category><![CDATA[righteducation]]></category>
            <category><![CDATA[sharing-is-caring]]></category>
            <category><![CDATA[siem]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Wed, 12 Jan 2022 08:41:45 GMT</pubDate>
            <atom:updated>2022-01-12T18:38:45.357Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*lBxmBVUqBijOMpRt.jpg" /></figure><p>SIEM is a tool that allows us to monitor our network traffic and provide real time analysis of security alerts generated by the applications.</p><h3><strong>What is SIEM Security?</strong></h3><p>A Security information and event management system is the foundation of most security processes in the modern security operations center (SOC). A SIEM saves security analysts the effort of monitoring many different systems and brings together their vast amounts of log data to form a coherent picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*pZKNvK8NxRaoeIe0.png" /><figcaption>SIEM Processing</figcaption></figure><p>SIEM combines security information management (SIM), a first generation system that uses long term storage, analysis, and reports of log data; and security event management (SEM), a second generation system that includes correlation of events, notifications, real-time monitoring, and console views.</p><p>SIEM tools use correlation rules and statistical techniques to convert events and log entries into useful and actionable information.</p><p><strong>Key features of a SIEM security solution includes:</strong></p><ul><li><strong>Near-real time visibility</strong> — of an organization’s security system through dashboards and other visual aids.</li><li><strong>Data consolidation</strong> — from various sources through event log management</li><li><strong>Events correlation</strong> — using boolean logic rules to add intelligence to raw data</li><li><strong>Automating security event notifications</strong> — analyzes security events and sends alerts to notify issues in real time.</li></ul><h3>The Importance of SIEM</h3><p>Organizations use SIEM technologies for:</p><ul><li>Log management and retention</li><li>Continuous security monitoring and incident response</li><li>Case management</li><li>Policy enforcement and violations.</li></ul><h3>How do SIEM tools work?</h3><p>The SIEM collects and analysis log data to detect suspicious activity that may indicate the presence of a threat. This process works in three stages:-</p><ul><li><strong>Data</strong> <strong>Collection</strong>— SIEM tools start by collecting and aggregating log data from the network of an organization, including security devices, systems, and applications.</li><li><strong>Consolidate and categorize</strong> — the system consolidates the logs into categories, separates successful and failed logins, malware activity, exploit attempts, and port scans.</li><li><strong>Data Analysis</strong> — categorized data is analyzed and compared to rules defining accepted behavior. If an event is deemed suspicious, an alert is sent to your security team.</li></ul><h3>Value of Next-Gen SIEM Solutions :-</h3><h4><strong>U</strong>EBA in Modern SIEM Security</h4><p>User and entity behaviour analytics (UEBA) is a new category of security solutions that can identify behavioural baselines and spot anomalies which might indicate security incidents. UEBA can detect security incidents that other tools can’t see, because they rely on predefined patterns or static correlation rules. Third-generation SIEM solutions come with UEBA capabilities built in.</p><p>Here are some common use cases of SIEMs with UEBA technology:</p><ul><li><strong>Malicious insider</strong> — A user account with privileged access to IT systems that is abused by the account owner for personal gain. Insider attacks can be devastating and are invisible to most security tools. UEBA establishes a baseline for each user’s behaviour and can detect suspicious events that might indicate malicious intent.</li><li><strong>Compromised insider</strong> — An attacker who gains control of a user account and uses it to perform reconnaissance, plan, or actually attack organizational systems. UEBA can identify that the user account is behaving differently from normal and alert security staff.</li><li><strong>Incident and alert prioritization (alert triage)</strong> — SIEM security alerts are a huge burden on security analysts and alert fatigue is a challenge. UEBA can help reduce the burden of prioritizing alerts. It does this by combining alerts and signals from many tools, ranking alerts and incidents based on the amount of anomalous behaviour (their risk score), and adding layers of contextual data about the organization, for example, services or user accounts that access sensitive data.</li><li><strong>Data loss prevention (</strong><a href="https://www.exabeam.com/dlp/data-loss-prevention-policies-best-practices-and-evaluating-dlp-software/"><strong>DLP</strong></a><strong>)</strong> — DLP tools, like traditional SIEMs, create a high volume of alerts about every unusual event related to an organization’s sensitive data. UEBA tools can prioritize and consolidate DLP alerts by calculating risk scores using data from multiple tools, indicating which events represent anomalous behaviour.</li></ul><h3>SOAR in Modern SIEM Security</h3><p>Security Orchestration, Automation and Response systems, another new technology bundled with third-generation SIEM solutions, have the following key capabilities:</p><ul><li><strong>Orchestration</strong> — SOAR integrates with other security solutions, allowing them to retrieve data and also proactively perform actions. For example, it can investigate whether an email sender has a bad reputation by using a DNS tool to confirm the origin of the message.</li><li><strong>Automation</strong> — SOAR enables users to define security playbooks, which are codified workflows of security operations. When a known type of security incident occurs, the playbook can be activated and mitigation action can be taken automatically, such as scanning a file identified as malware and detonating it in a sandbox.</li><li><strong>Incident management and collaboration</strong> — When a SIEM generates a security alert, the SOAR component of the SIEM can add contextual information and evidence to help analysts investigate the issue, and organize this information in an incident timeline to make it easier to understand. They also allow analysts to collaborate and add insights or additional data that they discover as part of their investigation.</li></ul><h3>Conclusion</h3><p>SIEM addresses the key processes of cybersecurity, establishing an all-in-one solution to detect advanced threats. SIEM functions include automating log monitoring, correlating data, recognizing patterns, alerting, and providing data for compliance and forensics. With cyber attacks becoming more numerous and sophisticated, SIEM tools provide a safety net that can catch threats left undetected by other solutions.</p><p>Here, By using this link you can read my article on Confusion matrix..</p><p><a href="https://www.linkedin.com/posts/lalita-rajpoot-3168221a0_worldrecordholder-training-internship-activity-6807241214019166208-_RHE">https://www.linkedin.com/posts/lalita-rajpoot-3168221a0_worldrecordholder-training-internship-activity-6807241214019166208-_RHE</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c1aa36ea084" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Run Docker Inside Docker?]]></title>
            <link>https://lalita-rajpoot.medium.com/how-to-run-docker-inside-docker-c64e6986c9d2?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c64e6986c9d2</guid>
            <category><![CDATA[righteducation]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[sharing-is-caring]]></category>
            <category><![CDATA[linuxworld]]></category>
            <category><![CDATA[vimal-daga]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Wed, 05 Jan 2022 13:21:47 GMT</pubDate>
            <atom:updated>2022-01-05T13:21:47.366Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*TcCP6cqF5gF_xLxT.jpg" /></figure><p>Hello Everyone, In this blog I’m going to explain you “How to run docker inside docker “ in very easy and efficient method…</p><h3>What is a container?</h3><p>A <strong>container</strong> collects code and all its dependencies to ensure a smooth and quick transition of applications from one computing environment to another. A container image contains everything that is required to run any application (i.e., the code, system tools, system libraries, and settings).</p><p>There are many methods achieve docker inside docker. Here, I’m run docker inside run by mounting docker.sock method.</p><h3>About /var/run/docker.sock</h3><p>Docker.sock is a Unix socket that enables the Docker server-side daemon to communicate with its command-line interface. Sockets are meant for communication between processes on the same host.If you are on the same host where Docker daemon is running, you can use the /var/run/docker.sock to manage containers.</p><p>The socket appears as the <em>/var/run/docker.sock</em> file. Because it is a file, admins can share and run docker.sock within a container and then use it to communicate with that container. A container that runs docker.sock can start or stop other containers, <a href="https://searchitoperations.techtarget.com/tutorial/Get-started-with-your-first-Docker-container-build">create images</a> on the host or write to the host file system.</p><p>With this approach, a container, with Docker installed, does not run its own Docker daemon but connects to the Docker daemon of the host system. That means, you will have a Docker CLI in the container, as well as on the host system, but they both connect to one and the same Docker daemon. At any time, there is only one Docker daemon running in your machine, the one running on the host system.<br>To achieve this, you can start a Docker container, that has Docker installed.</p><p>So, Let’s move on to our main point</p><p>First we’ll start docker and check its status in our VM using given below command:</p><pre>systemctl start docker<br>system status docker</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FL7ybAHENoa-Vnnx9XdFew.png" /></figure><p>And, now we will run docker with default Unix socket docker.sock as volume.</p><p>Use following command :-</p><pre>docker run -it -v /var/run/docker.sock:/var/run/docker.sock docker</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Rqi_1ryJ_76IrrV40AdyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VNfJMzSqph7yBBOGqbAXw.png" /></figure><p>Now , Here we ran docker with the default Unix socket docker.sock and then we are in Docker container that we just started.</p><p>Let’s try to run some Docker commands(e.g- docker pull centos:latest)</p><pre>docker pull centos:latest</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJ3t86J3zuA9-uRipKPztg.png" /><figcaption>successfully image pulled</figcaption></figure><p>Successfully this command also run ,Now move forward..</p><p>We’ll launch another container inside already launched container using following command:-</p><pre>docker run -it --name d1 ubuntu:latest</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDRvLZBKEWriqkRAmoOPhQ.png" /><figcaption>Successfully launched docker inside docker</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bNVywTAdoB0YqqeuyMLuDA.png" /></figure><p>So, we have done our task … It was so easy. I hope this is very clear to you all</p><p>Thanks for your time …. Stay Happy &amp; Healthy :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c64e6986c9d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build and Deploy Machine Learning Model In Docker]]></title>
            <link>https://lalita-rajpoot.medium.com/build-and-deploy-machine-learning-model-in-docker-4eb38021361a?source=rss-17a51fa63d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eb38021361a</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[predictions]]></category>
            <category><![CDATA[righteducation]]></category>
            <category><![CDATA[dokcer]]></category>
            <category><![CDATA[python3]]></category>
            <dc:creator><![CDATA[Lalita Rajpoot]]></dc:creator>
            <pubDate>Fri, 24 Dec 2021 13:21:41 GMT</pubDate>
            <atom:updated>2021-12-24T13:21:41.793Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*256g_mfTFsJUnHAhieF-hg.png" /><figcaption>Python ML Model in Docker</figcaption></figure><p>In this article, we will deploy and build a simple linear regression Machine learning model in docker container and further build a docker image that will predict values using the model that we created.</p><h3>Why Containers for Machine Learning?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*uqEQ5NvZpWhJWKkQ6W7bug.jpeg" /></figure><p>Docker allows to easily reproduce the working environment that is used to train and run the machine learning model anywhere. Docker allows packaging the code and dependencies into containers that can be ported to different servers even if it’s a different hardware or operating system. A training model can be developed on a local machine and be easily ported to external clusters with additional resources such as GPUs, more memory or powerful CPUs. It’s easy to deploy and make your model available to the globe by wrapping it into an API in a container.</p><p>Now, lets start..</p><p>Here, I’m using my RHEL-8 operating system.</p><p>As on my system Docker(community edition) already installed so I&#39;ll start docker service using following command.</p><pre>systemctl start docker</pre><p>To check the status of docker use given command:</p><pre>systemctl status docker</pre><p>Here, I’m going to create a simple python code for predicting the salary based on years of experience using simple linear regression algorithm in machine learning. I will be using a salary dataset (csv file), which you can get it from my GitHub repository mentioned in bottom:</p><p><a href="https://github.com/lalita-rajpoot/Python-ML-Model-in-Docker.git">https://github.com/lalita-rajpoot/Python-ML-Model-in-Docker.git</a></p><p>Here we use some python dependencies to run our code. To install it we use</p><pre>pip3 install pandas<br>pip3 install sklearn</pre><p>salary_pred.py</p><pre>import pandas</pre><pre>#extract content of dataset in an array<br>ds=pandas.read_csv(&#39;salaryData.csv&#39;)</pre><pre>#separate feature and target<br>x=ds[&#39;YearsExperience&#39;].values.reshape(30,1)<br>y=ds[&#39;Salary&#39;]</pre><pre>from sklearn.linear_model import LinearRegression</pre><pre>#train the model<br>model=LinearRegression()<br>model.fit(x,y)</pre><pre>while True:</pre><pre>exp=float(input( &quot;Enter your years of experience =&quot;))</pre><pre>#exception handling<br>    if(exp==0):<br>        print(&quot;Better earn some experience first!!!&quot;)<br>    else:<br>        #predicting the value<br>        predicted_value=model.predict([[exp]])<br>        print(&quot;Predicted Salary of person with {} yrs of experience is&quot;.format(exp)+&#39;\x1b[4;60;60m&#39;+ &quot; {}&quot;.format(predicted_value[0]) + &quot; INR\n&quot;+&#39;\x1b[0m&#39;)<br>        <br>        term=input(&quot;Type exit to terminate and press enter to continue: &quot;)<br>        if(term==&quot;exit&quot;):<br>            print(&quot;Container exited..&quot;)<br>            break</pre><p>Now, we have to make this python file executable by running using following command:</p><pre>chmod +x pythonfile.py<br>chmod +x salary_pred.py</pre><p>Now we are ready to deploy our code to docker container to train and build linear regression ML model Using Dockerfile to build our own custom image that will predict the salary just by running the image. Dockerfile automates the process of docker image creation.</p><pre>FROM centos<br>RUN yum install python3 -y<br>RUN pip3 install sklearn<br>RUN pip3 install pandas<br>COPY salary_pred.py /salary_pred.py<br>COPY SalaryData.csv /SalaryData.csv<br>RUN chmod +x /salary_pred.py<br>ENTRYPOINT [&quot;python3&quot;, &quot;salary_pred.py&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UVVUsipyLjHIHR-JwnWWTg.png" /></figure><p>This Dockerfile will build the image using centos image as its base image that i have already pulled. It will build image by copying all for required files and install python with all required dependencies.</p><p>To build the image use following command:</p><pre>docker run -t imagename:version .<br>docker run -t model_prediction .</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEh3df-C9vQVYnzLtuWnMg.png" /><figcaption>Built image and container</figcaption></figure><p>Finally, at the end to run our container having trained model inside it, we use following command:</p><pre>docker run -it imagename:version <br>dokcer run -it model_prediction</pre><p>Here, it’ll automatically take latest version of the image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJbl3Wlx2jr7Cdd3aBQyFw.png" /><figcaption>Predicted model</figcaption></figure><p>So we have successfully predicted our model …..</p><p>I hope this article will help you ….</p><p>Thanks for your time to reading this article :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb38021361a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>