<?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 Akshat Srivastava on Medium]]></title>
        <description><![CDATA[Stories by Akshat Srivastava on Medium]]></description>
        <link>https://medium.com/@adaksh5?source=rss-d6a501059a44------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TVRZWYScx6PKahZPW25APQ.jpeg</url>
            <title>Stories by Akshat Srivastava on Medium</title>
            <link>https://medium.com/@adaksh5?source=rss-d6a501059a44------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:08:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adaksh5/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[Kafka message that refuses to die: The poison pill problem]]></title>
            <link>https://codeburst.io/kafka-message-that-refuses-to-die-the-poison-pill-problem-1750a44a4ad3?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/1750a44a4ad3</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 12:17:08 GMT</pubDate>
            <atom:updated>2026-07-25T14:42:46.342Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gmJmuS4M-wgkbXTO78lLLA.png" /></figure><p>Imagine a Kafka consumer processing millions of events every day. Everything runs smoothly until a single malformed message arrives. Suddenly, your consumer crashes, restarts, reads the same message, crashes again, and the cycle repeats indefinitely. No new messages are processed and now your system is in standstill state :(</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*rxnMACez3cCvi5zfWfWfKg.png" /></figure><h4>Common cause of this problem</h4><p>This problem comes typically at the time of serialization and de-serialization of the messages. Where the producers serialize the message and the consumer deserializes it to process it further.</p><p>Before going deep into the problem, let’s understand serialization and de-serialization.</p><p><strong>Serialization </strong>is the process of converting an object into a format that can be transmitted or stored, such as JSON, Avro schema etc. In Kafka, producers serialize messages before publishing them to a topic.</p><p>Example: Java object</p><pre>User user = new User(101, &quot;Akshat&quot;);</pre><p>can be serialized into Json or Avro respectively.</p><pre>{<br>  &quot;id&quot;: 101,<br>  &quot;name&quot;: &quot;Akshat&quot;<br>}</pre><pre>{<br>    &quot;name&quot;: &quot;AvroSchema&quot;,<br>    &quot;namespace&quot;: &quot;com.group.AvroSchema&quot;,<br>    &quot;doc&quot;: &quot;User Data&quot;,<br>    &quot;type&quot;: &quot;record&quot;,<br>    &quot;fields&quot;: [<br>        {<br>            &quot;name&quot;: &quot;id&quot;,<br>            &quot;type&quot;: &quot;int&quot;<br>        },<br>        {<br>            &quot;name&quot;: &quot;name&quot;,<br>            &quot;type&quot;: &quot;string&quot;<br>        }<br>    ]<br>}</pre><p>Note :- Kafka stores and transfers messages as <strong>bytes</strong>, so serialization converts your object into a byte stream before sending it.</p><p><strong>Deserialization</strong> is the reverse process. When a consumer reads a message from Kafka, it converts the <strong>byte</strong> stream back into an object that the application can use.</p><p>If deserialization succeeds, the consumer processes the message normally.</p><p>At this point, you might wonder: <strong>Why do we need serialization and deserialization?</strong></p><p>Think of serialization and deserialization as the packing and unpacking process of a package respectively. As Kafka does not understand the Java objects, dictionaries, maps or any other programming language data structures, as Kafka is designed to be language independent that’s why it only stores and transfer bytes.</p><p>Now coming back to the problem.</p><p>So, when the the producer serializes the data and sends to the broker so that the Kafka consumer can consume it and process it further, this is where the error comes at the time of deserialization if the consumer cannot deserialize the message for example, because the JSON is malformed, the schema has changed unexpectedly, or the consumer is expecting a different data format it throws an exception before your business logic even starts executing.</p><p>This is where the poison pill problem occurs, since the offset is never committed, the consumer reads the same message again after restarting or retrying and this converts it to the endless loop and the system becomes standstill.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*0lkQGiamyQaN-RlNZgUGPw.png" /></figure><h4>How to tackle the Poison Pill problem?</h4><ol><li>Error handling using try-catch block</li></ol><pre>try {<br>    processMessage(message);<br>} catch (Exception ex) {<br>    retryOrPublishToDLQ(message);<br>}<br><br>// Retry logic<br>void retryOrPublishToDLQ(Message message) {<br>  // Retry for x times and if it fails.<br>  // put it in the DLQ or DLT<br>  // commit offset<br>}<br><br>// Note: This is the simplified illustration of the flow.</pre><p><strong>What is a Dead Letter Queue (DLQ)?</strong></p><p>A <strong>Dead Letter Queue (DLQ)</strong>, or <strong>Dead Letter Topic (DLT)</strong> in Kafka, is a special topic where messages that <strong>cannot be processed successfully</strong> are sent after all retry attempts have been exhausted.</p><p>Instead of allowing a faulty message to block the consumer forever, the message is moved to the DLQ, enabling the consumer to continue processing the remaining valid messages.</p><p>2. Early message validation</p><p>Validate the message before processing it, check for valid fields, null values, some business constraints, etc.</p><p>3. Monitoring and alerts</p><p>Keep the monitoring and alerts in place, whenever the DLQ count &gt; 1, or retry rate, processing failures, deserialization exceptions etc are increasing, there should be an alert for the team to look into it and do the next set of actions.</p><p>4.Use Schema Validation</p><p>One of the best ways to prevent poison pills is to use <strong>Avro</strong> or <strong>Protocol Buffers</strong> with a <strong>Schema Registry</strong>.</p><p>Benefits include:</p><ul><li>Detecting incompatible messages before consumers process them</li><li>Enforcing producer-consumer contracts</li><li>Supporting safe schema evolution</li><li>Reducing deserialization failures</li></ul><p>This significantly lowers the chances of malformed or incompatible messages entering your Kafka topics.</p><p>So, with this we came to the end of this article and remember the <strong>Poison Pill Problem</strong> is one of those issues that every developer eventually encounters. It often starts with something as simple as a malformed JSON payload, an incompatible schema, or an unexpected data type, but its impact can be far-reaching.</p><p>If you have found this article interesting or helpful consider giving it a clap 👏.</p><p>Happy Coding🚀.</p><p>Let’s connect @ <a href="https://github.com/akshat-fsociety">Github</a> and <a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/">Linkedin</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1750a44a4ad3" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/kafka-message-that-refuses-to-die-the-poison-pill-problem-1750a44a4ad3">Kafka message that refuses to die: The poison pill problem💊</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Dynamic Programming with Java — Part I]]></title>
            <link>https://medium.com/geekculture/demystifying-dynamic-programming-with-java-part-i-9e501d94bfe6?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e501d94bfe6</guid>
            <category><![CDATA[competitive-programming]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[dynamic-programming]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Fri, 17 Sep 2021 11:33:03 GMT</pubDate>
            <atom:updated>2021-09-18T08:58:35.005Z</atom:updated>
            <content:encoded><![CDATA[<h3>Demystifying Dynamic Programming with Java — Part I</h3><p><em>If you can’t remember the past, you are condemned to repeat it. ~Dynamic Programming</em></p><p><em>Hold Tight, Let’s get started.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-WAJOlC1a2O0VOeU-mJQA.png" /><figcaption>Dynamic Programming</figcaption></figure><p>Before starting, read this quote to boost up your motivation.</p><blockquote>If you can’t fly, then run, if you can’t run, then walk, if you can’t walk, then crawl, but by all means, keep moving. :– Martin Luther King Jr.</blockquote><p>Now, let’s start :)</p><h4>What is recursion?</h4><p>It is the process of repeating itself similarly for smaller problems, or you can say, calling the same function in a code for a smaller subproblem <strong>till the base condition hits.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*__jhoWXEa_INM44V5jx30w.jpeg" /></figure><p>The above pictorial representation can help you to understand recursion.</p><p><em>So, you must be thinking what does recursion do in dynamic programming??</em></p><h4>What is Dynamic Programming?</h4><p>Dynamic programming is nothing but an optimization over plain recursion. Whenever we see a repeated recursive call for a smaller subproblem we can optimize that recursive call with the help of dynamic programming. The idea is simply to store the result so that we don’t have to re-compute that subproblem again and again.</p><p><strong>Dynamic programming = recursion + memoization.</strong></p><p>Let’s understand with the help of an example</p><p>Fibonacci Number: 1, 1, 2, 3, 5, 8, 13, 21, 34, 55….</p><p>It is simply the summation of the previous number and the current number.</p><p><strong>Return the n-th Fibonacci Number using the recursive method:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9f0232a7c912bd4256c8e00019ca278/href">https://medium.com/media/f9f0232a7c912bd4256c8e00019ca278/href</a></iframe><p>You can see we are calling the function for (n-1) and (n-2) till the base conditions are hit and adding to get another new number. <strong>It has exponential time complexity.</strong></p><p><strong>Return the n-th Fibonacci Number using DP method:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/495c56d00747d5fc89b438fd01e59514/href">https://medium.com/media/495c56d00747d5fc89b438fd01e59514/href</a></iframe><p>In the above gist, you can see that I have saved the previous value in the dp array. <strong>It has linear time complexity.</strong></p><h4>Types of Knapsack:</h4><ol><li><strong>Fractional Knapsack:-</strong> Requires Greedy paradigm to solve the questions.</li><li><strong>0/1 Knapsack:-</strong> Requires Dynamic Programming.</li><li><strong>Unbounded Knapsack:-</strong> Requires Dynamic Programming with minor changes.</li></ol><h4>Bottom-Up Approach aka Tabulation Method</h4><p>In this method, we initialize the first row and the first column of the 2d matrix, and the answers get accumulated in every cell and eventually, at the last cell of the 2d matrix you will get the required answer, the values getting stored at every cell is nothing but the values of the smaller subproblem which are getting stored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBgjk86C9D6bejkVEz1PEw.png" /></figure><p>We will be solving the question with the help of tabulation (bottom up) approach.</p><h3>0/1 Knapsack</h3><p><strong>Q)</strong> You are given weights and values of <strong>N</strong> items, put these items in a knapsack of capacity <strong>W</strong> to get the maximum total value in the knapsack. Note that we have only <strong>one quantity for each item</strong>.<br>In other words, given two integer arrays <strong>val[0..N-1]</strong> and <strong>wt[0..N-1]</strong> which represent values and weights associated with <strong>N</strong> items respectively. Also given an integer W which represents knapsack capacity, find out the maximum value subset of <strong>val[]</strong> such that the sum of the weights of this subset is smaller than or equal to <strong>W.</strong> You cannot break an item, <strong>either pick the complete item or don’t pick it (0–1 property)</strong>.</p><h4>Input</h4><p>val[] = {60, 100, 120}</p><p>wt[] = {10, 20, 30}</p><p>W = 50</p><h4>Output</h4><p>220</p><p><strong>Breakdown:</strong></p><ul><li>You have <strong>N</strong> items.</li><li>The total Capacity of the knapsack is<strong> W</strong>.</li><li><strong>val[0…N-1]</strong> array depicts the value array,<strong> wt[0…N-1]</strong> array depicts the weights of the item.</li><li>You have to <strong>maximize the profit</strong> also you can only have <strong>one quantity of each item.</strong></li></ul><p><strong>Approach to solve the question:</strong></p><p>Make a 2d array dp matrix — dp[N+1][W+1], +1 because we will start initializing from the 0th row and 0th column.</p><p>X-axis (rows) of the dp matrix will denote the capacity of the knapsack 0,1,2…..W, because we will be storing the answer of smaller subproblems.</p><p>Y-axis (columns) of the dp matrix will denote the length of the arrays 0,1,2…..N</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*UaWxjuXAB3AvQPxRYSUMrw.png" /></figure><p>We will initialize the 0th row and 0th column with 0 because if the val array or wt array is empty then the max profit will be 0 as we cannot any thing to the knapsack and if the W is 0 then we cannot add anything to the knapsack therefore the profit will be 0.</p><p>At last, your answer will be stored at<strong> dp[n][W].</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bfc4f360dbe499bfdcc4ef23ba8c4b7d/href">https://medium.com/media/bfc4f360dbe499bfdcc4ef23ba8c4b7d/href</a></iframe><p><strong>Try out the problem here</strong> <a href="https://practice.geeksforgeeks.org/problems/0-1-knapsack-problem0945/1"><strong>0/1 Knapsack</strong></a><strong>.</strong></p><h3>Unbounded Knapsack</h3><p>Unbounded knapsack is also known as Knapsack with duplicate items. Here duplicity is allowed, unlike 0/1 knapsack.</p><p>We will tackle this problem with the Tabulation Method</p><p><strong>Q)</strong> Given a set of N items, each with a weight and a value, and a weight limit W. Find the maximum value of a collection containing any of the <strong>N items any number of times</strong> so that the total weight is less than or equal to W.</p><h4>Input</h4><p>val[] = {1,4,5,7}</p><p>wt[] = {1,3,4,5}</p><p>W = 8</p><h4>Output</h4><p>11</p><p><strong>Breakdown:</strong></p><ul><li>You have <strong>N</strong> items.</li><li>The total Capacity of the knapsack is<strong> W</strong>.</li><li><strong>val[0…N-1]</strong> array depicts the value array,<strong> wt[0…N-1]</strong> array depicts the weights of the item.</li><li>You have to <strong>maximize the profit</strong> also you can <strong>select one item multiple times.</strong></li></ul><p><strong>Approach</strong></p><p>We will initialize the 0th row and 0th column with 0 because if the val array or wt array is empty then the max profit will be 0 as we cannot any thing to the knapsack and if the W is 0 then we cannot add anything to the knapsack therefore the profit will gain be 0.</p><p>At last, your answer will be stored at<strong> dp[n][W].</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/183c53545d9ddf2330ab49b48b17231a/href">https://medium.com/media/183c53545d9ddf2330ab49b48b17231a/href</a></iframe><p>The only minor change in Unbounded Knapsack is in line number 17 of the above code.</p><p>In 0/1 Knapsack we cannot select 1 item multiple time therefore we were reducing the size of the array because we don’t want to include it. Hence the code line was :</p><p>dp[i][j] = Math.max(val[i-1]+<strong>dp[i-1]</strong>[j-wt[i-1]],dp[i-1][j])</p><p>In Unbounded Knapsack we can select 1 item multiple times therefore we are not reducing the size of an array.</p><p>dp[i][j] = Math.max(val[i-1]+<strong>dp[i]</strong>[j-wt[i-1]],dp[i-1][j])</p><p><strong>Try out the problem here</strong><a href="https://practice.geeksforgeeks.org/problems/knapsack-with-duplicate-items4201/1"><strong> Unbounded Knapsack</strong></a></p><h3>Closing Notes:</h3><p>Thank you for reading this article so far, also all the best for your future endeavors. I hope this article helped you in understanding this concept, also I hope you all will also become the optimized version of yourself.</p><p>Stay tuned for more articles.</p><p><strong>In the next part we will solve more interesting problems on String and much more :)</strong></p><blockquote>An investment in knowledge pays the best interest.</blockquote><p><strong>View Gist on GitHub :-</strong> <a href="https://gist.github.com/akshat-fsociety">https://gist.github.com/akshat-fsociety</a></p><p>You all can contact me, in case of doubts:-</p><p><strong>LinkedIn:- </strong><a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/">https://www.linkedin.com/in/akshat-srivastava-4812271a9/</a></p><p><strong>GitHub:-</strong> <a href="https://github.com/akshat-fsociety">https://github.com/akshat-fsociety</a></p><p><strong>Data-Structure-Algorithms repository:-</strong> <a href="https://github.com/akshat-fsociety/Data-Structures-Algorithms">https://github.com/akshat-fsociety/Data-Structures-Algorithms</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e501d94bfe6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/geekculture/demystifying-dynamic-programming-with-java-part-i-9e501d94bfe6">Demystifying Dynamic Programming with Java — Part I</a> was originally published in <a href="https://medium.com/geekculture">Geek Culture</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Brief Introduction to Cloud Computing]]></title>
            <link>https://aws.plainenglish.io/a-brief-introduction-to-cloud-computing-e74d215650f0?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/e74d215650f0</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Tue, 03 Aug 2021 09:13:06 GMT</pubDate>
            <atom:updated>2021-08-03T09:13:06.381Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Let’s explore the definition of cloud in the world of computers.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/846/1*gQbJEwf7x1Vqv36AmFZmnQ.png" /></figure><p><strong>What is Cloud Computing?</strong></p><p>Google definition - Cloud Computing is an on-demand availability of computer system resources, applications, servers, data storage, development tools, networking capabilities, and much more hosted at a remote data center provided by various IT firms over the internet.</p><p><strong>I am sure you all must be thinking “<em>then what is the use of cloud computing?”</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T1JauiYac_ScHSnfDp2QjQ.jpeg" /><figcaption>unsplash.com</figcaption></figure><p>Cloud computing plays a vital role in many aspects like if you are an ambitious internet entrepreneur or a hardcore gamer or you have an online business etc..</p><p>Here you require a place where you can store a large amount of data, backup setup, servers you require high-end infrastructure which is not possible for an early startup or an organization, here cloud computing comes to the rescue.</p><h3>Cloud in different sectors</h3><h3>Cloud for Gaming</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*WYdgn778seHX_qCIMOcXmg.png" /></figure><p>If you are a hardcore gamer or E-sport player then you must be needing some high-end RAMs, memory, storage, graphics card, processors, and whatnot.</p><p>Here cloud comes to rescue you from this situation you just need to load one application and it will connect you to the remote machine owned by the IT firms, where you can play any game smoothly without worrying about the configuration of your setup/system.</p><p>Recently, Google launched its Cloud Gaming Service is known as <a href="https://stadia.google.com/">Google Stadia</a> it’s an amazing platform do check it out :D</p><h3>Cloud in Healthcare</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*WJTDZ6-mq2ESH7I64OBrxA.png" /></figure><p>Cloud computing lets medical practitioners share information quickly from anywhere in the world, by allowing them to share reports and large data files instantly. Here cloud technology ensures patients get the best possible treatment without any delay. The patient’s report can also be updated in seconds with the help of cloud computing.</p><h3><strong>Cloud for Startups</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*neb7GK9l8s7ivSVUyyOWoQ.jpeg" /></figure><p>If you are an internet entrepreneur or you have any business online then you must need a high end fully furnished infrastructure for the betterment of your company you must be needing a big storage setup, servers, Software Licenses, Development Environment, Big Data Analytics, and much more and it will be very costly if one tries to own these facilities.<br>With the cloud, you can spend a decent amount of money and can enjoy all these features at a low cost.</p><h3>Cloud in Education</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jSWd6szN7E4IreUvkTLpsA.png" /></figure><p>During this pandemic period, every sector in the market is digitalized so is education. Teachers and students are connecting through many online meeting platforms and the lectures are recorded and then uploaded in the cloud for students for future reference. Many websites are hosted on the cloud for the students for extracurricular activities and their scores are updated there which are then monitored by the teachers.</p><h3>Cloud in DevSecOps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2P2kwwnyh_FL6UX7HbejuQ.jpeg" /></figure><p>Recently, DevSecOps became a hot keyword in devOps ecosystem.</p><p>DevSecOps is devOps+security built-in.</p><p>Cloud provides devOps a standard platform for testing, deployment, and production.</p><h3>Deployment Models of Cloud</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Ln9jCFqyaZSsMI9RLnSsew.png" /></figure><h4>Public cloud:</h4><p>The services are generally free and then it works based on pay-as-you-go. The main aim is to provide maximum facility to the user.</p><h4>Private cloud:</h4><p>It is generally more secure and flexible as it is private so only a single company or an organization can access the facilities.</p><h4>Hybrid cloud:</h4><p>It is the combination of both public and private cloud. The workload is shared between the two models and it has more data deployment options.</p><h4>Community cloud:</h4><p>Cloud services shared among the various organizations and companies in the same sector of the market that is handled by the third party or internally is known as community cloud.</p><h3>Different Models of Cloud</h3><h4>Software as a Service (SaaS)</h4><p>In software as a service, the cloud services are provided by a third party over the internet.<br>The vendors of the SaaS manage and develop their software.</p><h4>Platform as a Service (PaaS)</h4><p>It is a type of service which allows the clients to develop, run, and manage the applications by providing them with the platform and reducing the complexities of maintenance.</p><h4>Infrastructure as a Service (IaaS)</h4><p>It is an instant computing infrastructure that serves, manages, and monitors over the internet. The client has to pay only for that service which they have used.</p><h4>Network as a Service (NaaS)</h4><p>The network as a service provides the networking infrastructure to the customers, who don’t want to build their application. The third-party can deliver the network infrastructure.</p><h3>Some famous cloud providers</h3><ol><li><strong>Google Cloud Platform</strong></li></ol><p><a href="https://cloud.google.com/">https://cloud.google.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w-w1ReD3Lf6LTQXTcvcrIw.png" /></figure><p><strong>2. Amazon Web Services</strong></p><p><a href="https://aws.amazon.com/">https://aws.amazon.com/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*C2off4tuplEUfCntGYC5qw.png" /></figure><p><strong>3. Microsoft Azure</strong></p><p><a href="https://azure.microsoft.com/en-in/">https://azure.microsoft.com/en-in/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*ZPf-jrDzpmR8zzlBwIxfag.png" /></figure><p><strong>4. IBM Cloud</strong></p><p><a href="https://www.ibm.com/in-en/cloud">https://www.ibm.com/in-en/cloud</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*VheWr4sIYojiyPBU-dxnQw.png" /></figure><h3>Closing Notes</h3><p>Now with this, we come to an end of our discussion, and if you have read this article so far kudos to you and get ready to explore the opportunities in cloud computing.</p><p>Connect with me:</p><p><strong>LinkedIn:- </strong><a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/">https://www.linkedin.com/in/akshat-srivastava-4812271a9/</a></p><p><strong>GitHub:-</strong> <a href="https://github.com/akshat-fsociety">https://github.com/akshat-fsociety</a></p><p>Image resources: <a href="https://www.google.com/">https://www.google.com/</a></p><p><em>More content at </em><a href="http://plainenglish.io/"><strong><em>plainenglish.io</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e74d215650f0" width="1" height="1" alt=""><hr><p><a href="https://aws.plainenglish.io/a-brief-introduction-to-cloud-computing-e74d215650f0">A Brief Introduction to Cloud Computing</a> was originally published in <a href="https://aws.plainenglish.io/">AWS in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reducing Complexities with Sliding Window Algorithm.]]></title>
            <link>https://javascript.plainenglish.io/reducing-complexities-with-sliding-window-algorithm-6fc3fb083abf?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fc3fb083abf</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 05:32:51 GMT</pubDate>
            <atom:updated>2021-01-10T09:12:55.556Z</atom:updated>
            <content:encoded><![CDATA[<h3>Reducing complexities with The Sliding Window Algorithm</h3><p><em>In this short and precise article, I’ll steer you, how you can slide down the complexity of the program with the help of the sliding window algorithm.</em></p><p><em>Hold Tight, Let’s get started.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFy2xa9ZLJh3ZoDpQODOVA.png" /><figcaption>Sliding Window</figcaption></figure><blockquote>If you can’t fly, then run, if you can’t run, then walk, if you can’t walk, then crawl, but by all means, keep moving. :– Martin Luther King Jr.</blockquote><p><strong>What is an Algorithm?</strong></p><p>An algorithm can be defined as the set of rules/instructions to achieve some goal in an efficient time.</p><p>When you make tea, you follow a certain algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/1*GVIoPgZ3k-IcR4asVLq2Fw.png" /></figure><ul><li>Put the teabag in a cup.</li><li>Fill the kettle with water.</li><li>Boil the water in the kettle.</li><li>Pour some of the boiled water into the cup.</li><li>Add sugar (if you prefer).</li><li>Add milk (again if you prefer).</li></ul><p><strong><em>Tea is now ready, so grab the cup and continue learning ;D</em></strong></p><p>In <strong>programming,</strong> algorithm plays an important role in reducing the time consumption of the program and to give the optimized solution. A single <strong>algorithm</strong> has the potential of reducing the time that a <strong>program</strong> takes to solve a problem.</p><p><strong>Importance of Time Complexity in Competitive Programming?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*srhdKtO60Gj6n8ZSco281Q.png" /><figcaption>Big O notation cheat Sheet.</figcaption></figure><p>Time complexity plays a crucial role in CP. Half of the problem you can crack just by seeing the constraints provided in the questions. The complexity of algorithms will decide whether you will get <strong>AC</strong> or <strong>TLE</strong>.<strong> </strong>When your code is less complex and takes less time to execute for all the test cases, you will get AC otherwise you will end up with TLE (Time Limit Exceeded). To rescue you from this situation many optimized techniques and algorithms are there and today we will discuss one of those technique/ algorithm which is known as The Sliding Window Technique.</p><p><strong>What is Sliding Window Algorithm/Technique?</strong></p><p>This technique shows you how the nesting of two loops can be converted to a single loop and one can reduce the time complexity drastically. In other words, you can say that the <strong>sliding window technique can convert the journey of an algorithm from O(n²) to O(n).</strong></p><p>There are 2 variations in the technique:-</p><ul><li>Fixed size window.</li><li>Variable size window.</li></ul><p>Now analyze this technique with an example.</p><p><strong>Q.) </strong>You are given an array of size <strong>’n’</strong> and we aim to calculate the sum of <strong>‘k’ consecutive</strong> elements in the array.</p><p>Note: To identify the sliding window questions the word <strong>Consecutive/Contiguous </strong>is the biggest clue to crack the problem.</p><p>Consecutive/Contiguous means one after the other, or you can say elements sharing the common border in an array.</p><p>Coming back to the question, you are given an array of size let’s say 5.</p><p>Input Array:- arr[]={10, 20, 30, 40, 50}</p><p>k=3</p><p>Output:- 120</p><p>Explanation:</p><p>10+20+30 = 60</p><p>20+30+40 = 90</p><p>30+40+50 = 120</p><p>so the contiguous array [30, 40, 50] of k=3 elements is 120. Hence 120 is the output of the program.</p><p>Let’s analyze the program with the <strong>Naïve</strong> or <strong>Brute Force Approach.</strong></p><p>We start with the first index and sum till the <strong>kth</strong> element. We do it for all possible consecutive blocks or groups of k elements. This method requires nesting of for loop, the outer for loop starts with the starting element of the block of k elements, and the inner or the nested loop will add up till the<strong> kth</strong> element.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/704f4fb1565ea388f029fa716f602593/href">https://medium.com/media/704f4fb1565ea388f029fa716f602593/href</a></iframe><p>The time complexity of the above code is<strong> O(k*n) </strong>which will be slow when the input is large.</p><p>Now we will discuss the <strong>Sliding Window Approach </strong>for an optimized solution.</p><ul><li>We will compute the sum of array value till the size of the window is reached i.e. k.</li><li>When the window size is achieved we will update the maximun_sum value.</li><li>After updating the value we will subtract the left end of the window (left most element) and increase the right and left pointer.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/590fbb958db6eb61445be49a7e1db3a5/href">https://medium.com/media/590fbb958db6eb61445be49a7e1db3a5/href</a></iframe><p>The time complexity of the approach is <strong>O(n).</strong></p><p><em>You can consider a sliding window as the windowpane of the bus where you can slide the pane left and right.</em></p><p>The below picture will help you to analyze the concept and can help you to imagine is that line.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*2HsMuCLdIY9jQLsHQfph_Q.png" /><figcaption>Sliding Window Concept</figcaption></figure><p>So, you can see how a sliding window can save you from the nesting of loops and can make your code fast. We will discuss one example on the Fixed Size Window.</p><p><strong>Q)</strong> First negative of every window of size<strong> ‘k’</strong> in an array of size<strong> ‘n’</strong>?</p><p>Example:-</p><p>arr[] = {12, -1, -7, 8, 9, -14, 13, 14, 15, -65} size of an array is 10</p><p>k = 3</p><p>Output:- [ -1, -1, -7, -14, -14, -14, 0, -65 ]</p><p>Explanation:-</p><p>First Window:-<strong> [ 12, -1, -7 ]</strong>, 8, 9, -14, 13, 14, 15, -65 <strong>=</strong> <strong>-1</strong></p><p>Second Window:- 12, <strong>[ -1, -7, 8 ]</strong>, 9, -14, 13, 14, 15, -65 <strong>= -1</strong></p><p>Third Window:- 12, -1, <strong>[ -7, 8, 9 ]</strong>, -14, 13, 14, 15, -65 <strong>= -7</strong></p><p>Fourth Window:- 12, -1, -7,<strong> [ 8, 9, -14 ]</strong>, 13, 14, 15, -65 <strong>= -14</strong></p><p>Fifth Window:- 12, -1, -7, 8,<strong> [ 9, -14, 13 ]</strong>, 14, 15, -65 <strong>= -14</strong></p><p>Sixth Window:- 12, -1, -7, 8, 9, <strong>[ -14, 13, 14 ]</strong>, 15, -65 <strong>= -14</strong></p><p>Seventh Window:- 12, -1, -7, 8, 9, -14, <strong>[ 13, 14, 15 ]</strong>, -65 <strong>= 0</strong></p><p>Eighth Window:- 12, -1, -7, 8, 9, -14, 13, <strong>[ 14, 15, -65 ] = -65</strong></p><p><strong>Hence the output:-</strong> <strong>[ -1, -1, -7, -14, -14, -14, 0, -65 ]</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ec67589eeafa0e1a066b1d02b4e98c23/href">https://medium.com/media/ec67589eeafa0e1a066b1d02b4e98c23/href</a></iframe><p>The Time Complexity of the above code is<strong> O(n) </strong>i.e. Linear Time Complexity<strong>.</strong></p><p>Explanation of above code:-</p><ul><li>Accepting the size of an array <strong>‘n’</strong>, window size <strong>‘k’</strong>, array elements.</li><li>Defining <strong>Queue </strong>Data Structure which works on the principle of <strong>First In First Out</strong>.</li><li>Traversing an array till the window size and if we get -ve value, offer it to the queue.</li><li>Now traversing the array from ‘k’ till the end of the array.</li><li>If our queue is (!empty) then it means we have a -ve number, display it, else display 0.</li><li>Check for the overflow and start offering other -ve values in an array to the queue.</li><li>Lastly, display the contents.</li></ul><p><em>Note:-</em> For the <strong>Brute Force Approach</strong> the outer loop will run from <strong>0 to (n-k+1)</strong>, and the inner loop will run from <strong>0</strong> to <strong>k</strong>. hence the time complexity will be <strong>O((n-k+1)*k)</strong> which can also be written as <strong>O(n*k).</strong></p><p>You can see how the sliding window algorithm/ technique slides down the complexity to linear time.</p><p>Now coming on to the 2nd variation of the sliding window technique i.e. <strong>Variable Size Sliding Window.</strong></p><p><strong>What is a Variable Size Sliding Window?</strong></p><p>In the above 2 examples we have seen that the size of the window is already provided in the question, but in this method size of the window will not be given rather we have to find something related to it.</p><p>Let’s explore these types of questions.</p><p><strong>Q)</strong> Find the<strong> largest subarray</strong> with the<strong> sum equal to ‘k’</strong>?</p><p><em>Observation:-</em> If you read this question carefully you are provided with two hints.</p><p><em>Not able to figure it out yet?</em></p><p>Don’t worry, See the first hint is <strong>SUBARRAY</strong> which means contiguous/ consecutive, and the other hint is <strong>SUM EQUAL TO k.</strong></p><p><em>So Akshat, how these two hints will help us to solve this question with the sliding window technique?</em></p><p>The <strong>largest subarray will be the size of the largest window of sum k </strong>which we have to find and the question is over.</p><p>Example:-</p><p>arr[] = {4, 1, 1, 1, 2, 3, 5} size of the array is n=7</p><p>k = 5 the sum for which we have to find the largest subarray.</p><p>Output:- 4</p><p>Explanation:-</p><p>4+1 = 5 (size = 2)</p><p>1+1+1+2 = 5<strong> (size = 4)</strong></p><p>3+2 = 5 (size = 2)</p><p>5 = 5 (size = 1)</p><p><em>Note:- All values are contiguous in an array.</em></p><p><strong>Hence the output is 4</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c040f760a6859d91b64721e66484e893/href">https://medium.com/media/c040f760a6859d91b64721e66484e893/href</a></iframe><p>Explanation of above code:-</p><ul><li>Summing up the value from the right end till we get the required condition.</li><li>When the condition is reached we will update the max value with the size of the window.</li><li>if the sum exceeds ‘k’ we will reduce the value by subtracting the values from the left side/pane of the window.</li><li>Increase the left and right pointers to move the window till the end of an array.</li></ul><p>The time complexity of the above code is<strong> O(n)</strong> i.e. Linear Time Complexity.</p><p>In <strong>Brute Force Approach</strong> you have to again apply nesting loops which will have the time complexity of <strong>O(n²). </strong>(You can try it and then compare it with an optimized solution).</p><p>By now you must have realized how the sliding window algorithm/ technique will help you, also it is very easy to code there are different questions where you have to apply different data structures along with sliding window for more efficient solutions, one is with Queue Data Structure which I’ve shown to you in the above example.</p><p>I’ll be adding some questions resources at the end of the article for you to practice if you are preparing for an interview or any CP competition like ICPC, IOI.</p><h3>Closing Notes:</h3><p>Thank you for reading this article so far, also all the best for your future endeavors. I hope this article helped you in understanding this concept, also I hope you all will also become the optimized version of yourself ;).</p><p>Stay tuned for more articles.</p><blockquote>An investment in knowledge pays the best interest.</blockquote><p><strong>View Gist on GitHub :-</strong> <a href="https://gist.github.com/akshat-fsociety">https://gist.github.com/akshat-fsociety</a></p><p>You all can contact me, in case of doubts:-</p><p><strong>LinkedIn:- </strong><a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/">https://www.linkedin.com/in/akshat-srivastava-4812271a9/</a></p><p><strong>GitHub:-</strong> <a href="https://github.com/akshat-fsociety">https://github.com/akshat-fsociety</a></p><p><strong>Data-Structure-Algorithms repository:-</strong> <a href="https://github.com/akshat-fsociety/Data-Structures-Algorithms">https://github.com/akshat-fsociety/Data-Structures-Algorithms</a></p><h4>Questions (Resources)</h4><ul><li><a href="https://www.geeksforgeeks.org/tag/sliding-window/">https://www.geeksforgeeks.org/tag/sliding-window/</a></li><li><a href="https://leetcode.com/problemset/all/?topicSlugs=sliding-window">https://leetcode.com/problemset/all/?topicSlugs=sliding-window</a></li><li><a href="https://www.codechef.com/tags/problems/sliding-window">https://www.codechef.com/tags/problems/sliding-window</a></li></ul><p>These are some links to practice Sliding Window Technique.</p><p>Good Bye!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fc3fb083abf" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/reducing-complexities-with-sliding-window-algorithm-6fc3fb083abf">Reducing Complexities with Sliding Window Algorithm.</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Ultimate Guide to GIT and Github]]></title>
            <link>https://medium.com/analytics-vidhya/an-ultimate-guide-to-git-and-github-2de760a840ee?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/2de760a840ee</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Tue, 11 Aug 2020 08:20:10 GMT</pubDate>
            <atom:updated>2020-08-17T13:46:45.749Z</atom:updated>
            <content:encoded><![CDATA[<h3>An Ultimate Guide to Git and GitHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DS4llfnDIsAyKTBJS1gyIQ.png" /></figure><p>If you are a developer then you must be aware of GIT and GITHUB, as it is a place where developers live, where many developers around the world contribute to an open-source projects every day and night and many more.</p><p><strong><em>Read this full article there is one bonus tip for you at the end ;)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*6HzmAH7jkFGklP2kkaqqIA.png" /></figure><h3>What is GIT?</h3><p>GIT is a<em> Version Control System (VCS).</em></p><h4>So what is Version Control System?</h4><p>If you are a developer then you must be working on many projects so at this time Version Control System comes into play, it is used for file management, keeping tracks of changes overtime of your projects which is one of the most primary things, also it keeps the entire history of things that you are working on.</p><p>This is helpful for those developers who first made their basic version then adding new features in future without affecting the original version.</p><p>Another amazing feature offered by GIT is, it allows many developers around the globe to work together on the same project at the same time without disturbing each other’s files, by working on different branches. Collaboration is easy in GIT and team members can work on different features in same project.</p><h3>GITHUB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6QWMn0DApM4jmbubKuCmNA.png" /></figure><h3>What is Github?</h3><p><a href="http://www.github.com/">GitHub</a> is a world’s leading software development platform, it is a web-based service for version control using Git. It builds collaboration directly into the development process. Work is organized into repositories, where developers can outline requirements or direction and set expectations for team members.</p><h3>1) Basic terms you must know..</h3><p><strong>a) Repository:- </strong>A Repository, or a repo, or a git project, encompasses the entire collection of files and folders associated with a project, along with each file’s revision history.</p><p><strong>b) Fork:- </strong>Fork is basically a copy of other user’s repository that lives on your personal Github account, main reason behind this this is to customize others repository according to your need.</p><p><strong>c) Master:-</strong> “Master” is a default development branch, when you create a brand new repository. After creating a repository you can make further more branches to work on.</p><p><strong>d) README.md:- </strong>README.md file<strong> </strong>is the descriptive and the basic file of the projects which contains the extract/description of the project.</p><blockquote><strong>With this we are all set to dive into the world of Git and Github, and to collaborate with the world’s leading developers :)</strong></blockquote><h3><strong>2) Installation process</strong></h3><h4>a) For Linux users:</h4><p>Use your Linux package management system to install Git.</p><pre><strong>&gt; sudo apt-get install git</strong></pre><h4>b) For Windows Users:</h4><p>It’s recommended to download GitHub for Windows, which includes Git and has an easier install: <a href="http://windows.github.com/"><strong>windows.github.com</strong></a>. Use the <strong>Git Shell</strong> for your terminal.</p><h4>c) For Mac users:</h4><p>M<a href="http://mac.github.com/">ac.github.com</a> (from Preferences, select the command line tools install), or download Git by itself at: <a href="http://git-scm.com/downloads">git-scm.com/downloads</a> and follow the installation instructions.</p><p>Or, install <a href="http://brew.sh/">Homebrew</a> and run the following to install an up to date version of Git on your Mac:</p><pre><strong>&gt; brew install git</strong></pre><p>To update your Git install, use Homebrew’s upgrade option:</p><pre><strong>&gt; brew upgrade git</strong></pre><h3>3) Configure Git</h3><p>Once Git is installed, open <strong>terminal/shell/command prompt/bash</strong></p><p>Run the following commands:</p><pre>#<em>This command will return the latest version of your git version<br></em><strong>&gt;$ git --version</strong></pre><pre><em>#Set your name<br></em><strong><em>&gt;</em>$ git config --global user.name &quot;&lt;Your Name&gt;&quot;</strong></pre><pre><em>#Set your email<br></em><strong>$ git config --global user.email &quot;&lt;youremail@example.com&gt;&quot;</strong></pre><pre><em>#verify with<br></em><strong>&gt;$ git-it verify</strong></pre><h3>4) Basic GIT commands.</h3><p><strong>a)</strong> <strong>$ git init</strong>:- initializes a brand new Git repository and begins tracking it.</p><p><strong>b)</strong> <strong>$git clone</strong>:- copy of a repository which is hosted on Github, into a folder on your local machine.</p><p><strong>c)</strong><strong>$git add</strong>:- tracks your file and changes in GIT.</p><p><strong>d)</strong><strong>$git commit</strong>:- saves your files in GIT.</p><p><strong>e)</strong><strong>$git status</strong> :- shows the status of changes as untracked, modified, or staged.</p><p><strong>f)</strong> <strong>$git branch &lt;new branch-name&gt;</strong>:- creates new branch for your project.</p><p><strong>g)</strong><strong>$git checkout &lt;branch-name&gt;</strong>:- <em>“checkout” </em>switches between the branches in a project.</p><p><strong>h) </strong><strong>$git merge</strong> :- merges lines of development together.</p><p><strong>i)</strong> <strong>$git pull</strong> :-updates the local line of development with updates from its remote counterpart. Developers use this command if a teammate has made commits to a branch on a remote</p><p><strong>j)</strong><strong>$git push</strong>:- upload git commits to a remote repository like Github.</p><blockquote><strong>There are many more commands to learn but these are some basic and most used GIT commands that will make your developer’s life hustle free. Learn these commands to take a head start :)</strong></blockquote><h3>Developers now its your turn to contribute for the future generation!!</h3><h3>5) Demonstration for reference</h3><pre><strong>#Create new folder example: demo</strong></pre><pre><strong>&gt;cd demo</strong> #change directory</pre><pre>#create README.md file</pre><pre><strong>&gt;git init</strong> #initialize a new repository</pre><pre><strong>&gt;git status</strong> #you can see untracked README.md file</pre><pre><strong>&gt;git add README.md</strong> #adds README.md file</pre><pre><strong>&gt;git status</strong> #now you can see README.md file is tracked</pre><pre><strong>&gt;git commit -m &quot;initial commit&quot;</strong></pre><pre><strong>&gt;git remote add origin master &lt;link of repository&gt;</strong></pre><pre><strong>&gt;git remote -v </strong>#to check the working of repo</pre><pre><strong>&gt;git push -u origin master</strong></pre><h3>6) BONUS TIP!!!</h3><p>I’m sure that you must be waiting for this<em> “BONUS TIP”, </em>so without wasting any time let’s get started ;)</p><p>The bonus tip is that Github offers you to personalize your own profile in a more visually appealing way…..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wDIZ3TBS8_F5rhqD_A8qXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*adCcStHZ8JeQmfqvTD6j-w.png" /></figure><h4>So, how to make this awesome repository?</h4><p>It is simple just make a new repository with the name same as your username, then it will show you this green box with a message <strong>“You found a secret! &lt;your name&gt;/&lt;your repository name&gt; is a special repository that you can use to add a README.md to your Github profile. <em>Make sure it is public</em> and initialize it with a README to get started”</strong></p><p>Just simply check my Github account and fork my repository, edit it and personalize it according to your need.</p><p><a href="https://github.com/akshat-fsociety/akshat-fsociety">akshat-fsociety/akshat-fsociety</a></p><h3>Closing Notes</h3><p>Now with this we come to an end of our discussion and if you have read this article so far kudos to you, now you can contribute, collaborate with world’s leading developers.</p><p>I hope you liked this article.</p><p>And if you want to start your Web Development journey you can check this out.</p><p><a href="https://medium.com/dev-genius/simplified-approach-to-web-development-1699c523f5e0">Simplified approach to Web Development.</a></p><blockquote>An investment in knowledge pays the best interest.</blockquote><p>Again thanks a lot and all the best for your future!</p><p>You can contact me anytime in case of doubts and assistance.</p><blockquote>Email:- adaksh5@gmail.com</blockquote><blockquote>Web:- http://www.akshatsrivastava.tk/</blockquote><blockquote>LinkedIn:- <a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/">https://www.linkedin.com/in/akshat-srivastava-4812271a9/</a></blockquote><blockquote>Github:- <a href="https://github.com/akshat-fsociety">https://github.com/akshat-fsociety</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2de760a840ee" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/an-ultimate-guide-to-git-and-github-2de760a840ee">An Ultimate Guide to GIT and Github</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplified approach to Web Development.]]></title>
            <link>https://blog.devgenius.io/simplified-approach-to-web-development-1699c523f5e0?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/1699c523f5e0</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Sat, 18 Jul 2020 09:22:37 GMT</pubDate>
            <atom:updated>2020-08-02T14:57:15.957Z</atom:updated>
            <content:encoded><![CDATA[<p><em>In this short and precise article, I’ll steer you through the complete process of learning Web Development and to become a better version of yourself.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iWI52K0JW2bh1vA7cRbcFw.png" /><figcaption>“It always seems impossible, until it’s done” ~ Nelson Mandela</figcaption></figure><p>So,2020 is a weird time to begin your Web Development journey. It’s an interesting duality wherein you both have more resources available to you than at any time in history, and paradoxically, the sheer magnitude of the information on offer can be completely overwhelming.</p><p>You are a beginner and you don’t have any prior knowledge of this great field. So<strong><em> “No Worries”,</em></strong> I’m here to help you out with this condition. This article is written in an easy and non-complex language.</p><blockquote><strong>“The secret to getting ahead is getting started.”<br>― Mark Twain</strong></blockquote><p>Hold Tight, and let’s start this awesome journey.</p><h3>Web Developer in 2020–21</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBHjn4dbTsauNhW3DilhGA.png" /></figure><h3>1) Basic Requirements.</h3><p>Before starting with Web Development some basic Toolkit is required to make your coding life hustle free. These are some basic software and hardware.</p><ol><li><strong>A Laptop or A Desktop</strong>:- Basic necessity to start with coding.</li><li><strong>Pickup a Text Editor</strong>:- The text editor is where you will write all your code, and the terminal is where you execute it. As a developer, this is where you live. For instance <a href="https://code.visualstudio.com/">VS Code</a>,<a href="https://atom.io/"> Atom</a>, <a href="https://www.sublimetext.com/">Sublime</a>, <a href="https://notepad-plus-plus.org/downloads/">Notepad++</a>. Personally, I use VS Code :)</li><li><strong>Web browser</strong>:- Chrome, Mozilla Firefox, Yahoo, etc.</li><li><strong>Git and Version Control</strong>:- Git is the tool used to save code and create different versions. It will allow you to collaborate with other developers. The top place to preserve your code.</li></ol><h3>2) Website Anatomy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*x4NrY8ZZRj6jfi836DDuoQ.png" /><figcaption>Refer to this image you’ll get to know the website’s anatomy.</figcaption></figure><h3>3) Let’s Code!</h3><p>Web Development is divided into 2 domains:-</p><p>a) Frontend Web Development. (Web Designers)</p><p>b) Backend Web Development. (Web Developers)</p><h3>3 a) Frontend Development.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*-j10bSUKiuNdWVdZ8frMXQ.png" /><figcaption>Complete road-map for the front-end journey.</figcaption></figure><h3>i) HTML5 and CSS3</h3><p>HTML5 and CSS3 are the backbones of any website. HTML5 provides the structure while CSS3 (Cascading Style Sheets) provides the style and helps them to look better and more visually appealing. If you want to become a frontend developer then you must master these two.</p><h3>ii) Basics of any designing software</h3><ol><li>Photoshop.</li><li>GIMP.</li><li>PaintShop pro.</li></ol><p>It’ll help you a lot.</p><h3>iii) JavaScript</h3><p>Four pillars of object-oriented programming are Data Abstraction, Polymorphism, Encapsulation, and Inheritance, just like that there are three main pillars of web development also, namely HTML5, CSS3, and JavaScript. JavaScript will give life to your web page and makes your website more interactive and dynamic.</p><p>~Basic JS (No frameworks right now.)<br>~Datatypes<br>~Functions<br>~Event handling<br>~JSON<br>~jQuery</p><p>After this, you can read about the 7 best libraries offered by JavaScript.</p><p><a href="https://medium.com/@adaksh5/7-best-libraries-offered-by-javascript-450ed0b73600">7 Best Libraries offered by JavaScript</a></p><p><strong>Once you are comfortable with basic JavaScript then start with a JavaScript front-end framework (any one).</strong></p><ul><li><em>Angular</em></li><li><em>React JS</em></li><li><em>Vue JS</em></li></ul><h3>iv) Park your Website!</h3><p>Congratulations, Web Designers you now have the basic knowledge of HTML5, CSS3 ,and JavaScript ,and also you have a soft skill too (design software). Just go on and create some awesome websites, and before going further learn these too.</p><ol><li>Learn about GIT.</li><li>Basic terminal command.</li><li>SSH.</li><li>Get a hosting account. (000webhost, Hostinger, etc)</li><li>Learn about Cpanel.</li><li>Upload your project.</li><li>Register domain name and park it.</li></ol><h3>v) Web Designers! Grab some Opportunities.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLZ3LjuJrjNpNO7Tcd0bIw.jpeg" /><figcaption>Picture from Unsplash</figcaption></figure><ul><li>Make simple websites for startups.</li><li>Build UI Web Applications.</li><li>Do Internships.</li><li>Work for a company.</li><li>Become a freelancer.</li></ul><h3>vi) Going further with the front-end?</h3><p>Try learning</p><ul><li>Bootstrap</li><li>Pure</li><li>Zurb Foundation</li><li>Materialize CSS</li><li>MUI</li><li>Skeleton</li></ul><h3>3 b) Backend Development</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJk1w0S20ALNhJXmnJDxSg.png" /><figcaption>Complete road-map for the back-end journey.</figcaption></figure><p><strong>i)</strong> Choosing backend development is surely a good option. For that, you’ve to learn <strong>server-side scripting language.</strong></p><p><strong>PHP:- </strong>Forget about negative things people say about PHP. It is still the simplest way to write the server side code.</p><p><strong>Ruby on Rails:- </strong>Ruby is another powerful language best for web development. It has got an awesome framework called Rails which makes creating Web applications easy and fast.</p><p><strong>Python:-</strong> Another awesome language, full of powerful framework and libraries.</p><p><strong>Node.JS:- </strong>Powerful and amazing framework.</p><p><strong>JAVA:- </strong>High-performance server-side language.</p><h3>ii) Companies and their server-side scripting language.</h3><p><strong>1.PHP</strong></p><ul><li>Facebook</li><li>Vox Media</li><li>Tesla Motors</li></ul><p><strong>2. Ruby on Rails</strong></p><ul><li>Airbnb</li><li>Bloomberg</li><li>Github</li></ul><p><strong>3. Python</strong></p><ul><li>Instagram</li><li>Google</li><li>Netflix</li></ul><p><strong>4. Node.JS</strong></p><ul><li>Paypal</li><li>Uber</li><li>LinkedIn</li></ul><p><strong>5. JAVA</strong></p><ul><li>Accenture</li><li>Zalando</li><li>Intuit</li></ul><h3>iii) Since you chose back-end, start learning..</h3><p><strong>Relational Databases</strong></p><ul><li>MySQL</li><li>PostgreSQL</li><li>MSSQL</li><li>MariaDB</li></ul><p><strong>NoSQL databases</strong></p><ul><li>MongoDB</li><li>CouchDB</li><li>Cassandra</li><li>RethinkDB</li></ul><p><strong>Caching</strong></p><ul><li>Memcached</li><li>Redis</li></ul><p><strong>Up your game further!!</strong></p><ul><li>Search Engines</li><li>GOF Design Patters</li><li>Architectural Patterns</li><li>Learn different testing techniques</li></ul><h3>iv) Park your application!</h3><p>Now you all have a good grasp on the topic and more knowledge than before, so use these technologies to get your app online.</p><ol><li>Dedicated Server/VPS</li><li>App hosting — Heroku, Digital Ocean, AWS</li><li>Deploy tools</li><li>Linux command line</li><li>Maintenance &amp; Updates</li></ol><h3>v) Web Developers! Grab some Opportunities.</h3><p>Congratulations, Web Developers you’ve some great opportunities waiting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*MMNGundUE00HR9bp6LkSHA.jpeg" /><figcaption>Picture from Unsplash</figcaption></figure><ol><li>Create web applications</li><li>Build backend API’s (Application Programming Interface)</li><li>Work with network security</li><li>Manage servers and databases</li><li>Apply for job</li><li>Start your own Startup/Business</li><li>Become a freelancer</li></ol><h3>4) Further more you can..</h3><ol><li>Practice and explore more.</li><li>Build up your profile.</li><li>Learn new stacks (MEAN, MERN , etc)</li><li>Help and guide a beginner (this will increase your knowledge also).</li><li>Do some researches.</li><li>Be productive and learn every day.</li></ol><h3>5) Basic projects to practice</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WtLNt0zMWmf3IB18YOgNSg.jpeg" /><figcaption>Picture from Unsplash</figcaption></figure><ul><li>A Tribute page</li><li>Personal portfolio</li><li>Landing page</li><li>Music store website</li><li>Make a restaurant website</li><li>Parallax website</li><li>Technical documentation and many more….</li></ul><h3>Closing Notes:</h3><p>Thank you for reading this article so far. You might be thinking that there is so much stuff to learn, but believe me, once you start learning Web development you’ll love it.</p><blockquote>An investment in knowledge pays the best interest.</blockquote><p><em>Again thanks a lot and all the best for your future!</em></p><p><em>You can contact me anytime in case of doubts and assistance.</em></p><blockquote>Email:- adaksh5@gmail.com</blockquote><blockquote>LinkedIn:- <a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/">https://www.linkedin.com/in/akshat-srivastava-4812271a9/</a></blockquote><blockquote>Github:- <a href="https://github.com/akshat-fsociety">https://github.com/akshat-fsociety</a></blockquote><h3>#FRONT-END</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*FXIdvreqftZltAYtcfWB_A.png" /></figure><h3>#BACK-END</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*fBu9kIOlrmz-QqIDOpr7HQ.png" /></figure><p>Images resource:</p><ul><li><a href="https://github.com/kamranahmedse/developer-roadmap"><em>https://github.com/kamranahmedse/developer-roadmap</em></a></li><li><a href="https://www.instagram.com/"><em>https://www.instagram.com/</em></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1699c523f5e0" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/simplified-approach-to-web-development-1699c523f5e0">Simplified approach to Web Development.</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[15 basic Linux commands to get started.]]></title>
            <link>https://adaksh5.medium.com/15-basic-linux-commands-to-get-started-74870c172055?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/74870c172055</guid>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Mon, 13 Jul 2020 13:52:47 GMT</pubDate>
            <atom:updated>2020-07-13T13:52:47.315Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGiErynhxM9XkzzBMUd1Vw.jpeg" /></figure><p>Unix is a family of multitasking, multiuser computer operating systems that derive from the original AT&amp;T Unix, development starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.</p><p>At present every Cyber security Experts and Hackers whether they are White hat or Black hat hackers, they all use UNIX as an Operating System and the most famous kernel according to Cyber security Experts and Hackers is <strong>Kali Linux.</strong></p><p><strong>What is Kali Linux?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*IlcwLnoX7ep1g7uC" /></figure><p>Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security. The man behind Linux is <strong>Linus Torvalds.</strong></p><p>Kali Linux is very famous among Pentesters and Vulnerability analyst, it is open source software and completely free for any user.</p><p>So now without wasting any time, let’s dive into this great topic.</p><p><strong>Command №1 </strong><strong><em>mkdir</em></strong></p><p>mkdir is the command which is use to create the directory through terminal.</p><p>Example: mkdir [option] [directories]</p><p>mkdir test-dir</p><p><strong>Command №2 </strong><strong><em>rmdir</em></strong></p><p>rmdir command is used remove empty directories from the filesystem in Linux. The rmdir command removes each and every directory specified in the command line only if these directories are empty. Example: rmdir [option] [directories]</p><p>rmdir test-dir</p><p><strong>Command №3 </strong><strong><em>ifconfig</em></strong></p><p>The utility is a command-line interface tool and is also used in the system startup scripts of many operating systems.This command is used to give the details of Network settings like IP address, version etc.</p><p>Example: simply type <strong>ifconfig</strong> and hit enter.</p><p><strong>Command №4 </strong><strong><em>uname</em></strong></p><p>Displays Linux system information.</p><p><strong>Command №5 </strong><strong><em>uname -r</em></strong></p><p>Displays kernel release information.</p><p><strong>Command №6 </strong><strong><em>uptime</em></strong></p><p>Displays how long the system has been running including load average.</p><p><strong>Command №7 </strong><strong><em>whoami</em></strong></p><p>Displays who you are logged in as.</p><p><strong>Command №8<em> </em></strong><strong><em>last reboot</em></strong></p><p>Shows system reboot history.</p><p><strong>Command №9<em> </em></strong><strong><em>iwconfig</em></strong></p><p>It is used to set the parameters of the network interface which are specific to the wireless operation.</p><p><strong>Command №10 </strong><strong><em>grep</em></strong></p><p>Grep is a command-line utility for searching plain-text data sets for lines that match a regular expression.</p><p><strong>Command №11 </strong><strong><em>touch</em></strong></p><p>The touch command is a standard command used in UNIX/Linux operating system which is used to create, change and modify timestamps of a file.</p><p><strong>Command №12 </strong><strong><em>sudo</em></strong></p><p>The sudo command allows you to run programs with the security privileges of another user (by default, as the superuser). It prompts you for your personal password and confirms your request to execute a command by checking a file, called sudoers , which the system administrator configures.</p><p><strong>Command №13 </strong><strong><em>chmod</em></strong></p><p>In Unix-like operating systems, the chmod command is used to change the access mode of a file. The name is an abbreviation of change mode. It is used to change the permissions of the file using 3 digit numbers, each number has it own permission.</p><p>To find out the file’s permissions in numeric mode simply calculate the totals for all users classes. For example, to give read, write and execute permission to the file’s owner, read and execute permissions to the file’s group and only read permissions to all other users you would do the following:</p><ul><li>Owner: rwx=4+2+1=7</li><li>Group: r-x=4+0+1=5</li><li>Others: r-x=4+0+0=4</li></ul><p><strong><em>Example:</em></strong> Give the file’s owner read and write permissions and only read permissions to group members and all other users:</p><p>$chmod 644 dirname</p><p>Below image will help you a lot!! :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/0*evx97gAKqJxkeTBn" /></figure><p><strong>Command №14 </strong><strong><em>chown</em></strong></p><p>The chown command changes user ownership of a file, directory, or link in Linux. Every file is associated with an owning user or group. It is critical to configure file and folder permissions properly.</p><p><strong><em>And last but not the least!</em></strong></p><p><strong>Command №15 </strong><strong><em>cd</em></strong></p><p>cd command is the most used command in terminal it is used to change one directory to other. In other words this command is used to jump from one directory to other directory.</p><h3>Conclusion</h3><p>I hope you all have gained a lot of knowledge.With this, we come to an end of our discussion. Although there are many many other commands that we have not discussed in this article, now I leave on you to explore them and implement them according to your own requirement.</p><p>Thank you for reading this article and my best wishes are with you.</p><p>Happy Hacking :)</p><p>You can contact me on various other platform for more assistance.</p><p><em>Github: </em><a href="https://github.com/akshat-fsociety"><em>https://github.com/akshat-fsociety</em></a><em>.</em></p><p><em>My portfolio: </em><a href="http://www.akshatsrivastava.tk/"><em>www.akshatsrivastava.tk</em></a></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/"><em>https://www.linkedin.com/in/akshat-srivastava-4812271a9/</em></a></p><p><em>Instagram: </em><a href="https://www.instagram.com/akshat._.srivastavaa/"><em>https://www.instagram.com/akshat._.srivastavaa/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74870c172055" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Best Libraries offered by JavaScript]]></title>
            <link>https://codeburst.io/7-best-libraries-offered-by-javascript-450ed0b73600?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/450ed0b73600</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Sat, 27 Jun 2020 12:43:05 GMT</pubDate>
            <atom:updated>2020-07-20T09:05:31.465Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript’s 7 Best Libraries</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDmeWi-xnFxzfwbsTrxunQ.jpeg" /><figcaption>JavaScript</figcaption></figure><p>In this short, to the point article, I’ll walk you through the 7 best libraries that JavaScript has on offer.</p><h4>What is JavaScript?</h4><p>JavaScript is an object-oriented programming language used primarily for creating interactive elements on websites and applications. It had been initially only used for browsers and websites, but it’s spread to several other environments and applications. JavaScript as an online technology can be determined by the fact that it is currently used by 90%+ of all websites. As a client-side programming language, JavaScript helps web developers to create web content dynamic and interactive by implementing custom client-side scripts. At the same time, the developers may use cross-platform runtime engines like Node.js to write down server-side code in JavaScript. They’ll even combine JavaScript, HTML5, and CSS3 to form websites that look good across browsers, platforms, and devices.</p><p>We have now discussed the basics of JavaScript. With this basic knowledge, we can discuss the seven best libraries offered by JavaScript.</p><h3><strong>Algolia Places</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*b0h01jedFP6XuyuFwZVbXg.png" /></figure><p>Algolia Places is a JavaScript library that will facilitate your autocomplete forms, and it makes a specialty of addresses. You’ll even be able to add a map to the search and display the function, which is incredibly useful. It’s wonderfully accurate and super fast, which will definitely increase the user experience on your site.</p><h4>visit: <a href="https://community.algolia.com/places/documentation.html">https://community.algolia.com/places/documentation.html</a> to know more.</h4><h3>Anime.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*wwQrAumdqHXR-v0WJxmCBg.jpeg" /></figure><p>Animation and micro-interactions are all the rage these days, and anime.js is a flexible JavaScript library that can help you add some dashes of motion to your site. It works with CSS, Individual Transforms, SVG, DOM attributes, and JavaScript Objects, making it super versatile and perfect for almost any project.</p><h4>code example:</h4><pre>anime({<br>  targets: &#39;.css-selector-demo .el&#39;,<br>  translateX: 250<br>});</pre><h3>Choreographer.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*uxjDpegUoBttKdutTKdx9g.jpeg" /></figure><p>Choreographer-js is a simple JavaScript library for animating CSS. It’s easy to use, but it can really help you achieve some cool and complex CSS animations on your site for a colorful example and to learn how to get started.</p><h4>visit <a href="https://github.com/christinecha/choreographer-js">https://github.com/christinecha/choreographer-js</a> to learn more.</h4><h3>popper.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*BtcdW001CxgawQilDeBIAg.jpeg" /></figure><p>This JavaScript library will help you to create delightful poppers on your site. If you’re wondering what a popper is, consider it sort of a little thought bubble bursting from an element! Popper.js gives you some fantastic ways to rearrange them, make them follow elements, and keep them operating smoothly on any screen size.</p><h4>code example:</h4><pre>import { createPopper } from &#39;@popperjs/core&#39;;</pre><pre>const popcorn = document.querySelector(&#39;#popcorn&#39;);</pre><pre>const tooltip = document.querySelector(&#39;#tooltip&#39;);</pre><pre>createPopper(popcorn, tooltip, {</pre><pre>placement: &#39;top&#39;,</pre><pre>});</pre><h3>Chart.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*WhcmUi39kso3cT-iod6MxQ.jpeg" /></figure><p>Chart.js is a delightful JavaScript library for designers and developers to add beautiful charts to a site. It offers lots of different types of charts, plus the ability to mix them in a single space to provide a really interesting data set. It also has some animation capabilities, which instantly makes data a lot more fun to consume.</p><h3>Tween.js</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*bLyrPFlLct8wO4HQP4EZRw.jpeg" /></figure><p>This simple JavaScript library is incredibly powerful for tweening and animating HTML5 and JavaScript, and can help you add some really fun interactions to your site. It’s part of the CreateJS suite, which offers even more nifty JavaScript tools that you can use on your site.</p><h3>Voca</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*adoCYyLBQJ-GyDrvNtHoeg.jpeg" /></figure><p>Working with strings in JavaScript can really be a pain sometimes, but the Voca JavaScript library can help you easily manipulate them to simplify things. It offers helpful functions like change case, trim, truncate, and so much more. Plus it was built with a modular design, giving you the freedom to load the entire library or just individual functions</p><h3>Conclusion</h3><p>With this, we come to the end of our discussion on various Libraries offered by JavaScript. Although there are many more Libraries that we have not discussed in this article, I now leave you to go on and explore them so that you can implement them according to your own requirements!</p><p>Thank you for reading this article and my best wishes are with you.</p><p>Keep Coding.</p><p>You can contact me on various other platform for more assistance.</p><p><em>Github: </em><a href="https://github.com/akshat-fsociety"><em>https://github.com/akshat-fsociety</em></a><em>.</em></p><p><em>LinkedIn: </em><a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/"><em>https://www.linkedin.com/in/akshat-srivastava-4812271a9/</em></a></p><p><em>Instagram: </em><a href="https://www.instagram.com/akshat._.srivastavaa/"><em>https://www.instagram.com/akshat._.srivastavaa/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=450ed0b73600" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/7-best-libraries-offered-by-javascript-450ed0b73600">7 Best Libraries offered by JavaScript</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Symmetric and Asymmetric Encryption]]></title>
            <link>https://adaksh5.medium.com/symmetric-and-asymmetric-encryption-cde40384a332?source=rss-d6a501059a44------2</link>
            <guid isPermaLink="false">https://medium.com/p/cde40384a332</guid>
            <category><![CDATA[cyberattack]]></category>
            <category><![CDATA[decryption]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Akshat Srivastava]]></dc:creator>
            <pubDate>Sun, 31 May 2020 11:18:47 GMT</pubDate>
            <atom:updated>2020-07-17T09:35:01.055Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xyvTGCiIYHqNd7MHTfxHQw.png" /></figure><h3>What is Encryption?</h3><p>According to Cryptography,encryption is the process of encoding information. This process converts the original representation of the information, known as plaintext, into an alternative form known as ciphertext. Only authorized parties can decode a ciphertext back to plaintext and access the original information. <strong>In other words encryption is the method to encode a data/plaintext in such a way that only an authorized person can access that data. it is used to secure the confidential data from others.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azi-m7m0wf5yfuVWEEzQ6w.jpeg" /></figure><h3>Symmetric Key Algorithm</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*w4EmE01y0zk3lqpUBHaWHg.png" /><figcaption>above figure will help you to think more efficiently</figcaption></figure><p><strong>What is symmetric key algorithm?</strong></p><p>Symmetric key algorithm,is a type of encryption where only one key (a secret key) is used to both encrypt and decrypt electronic information. The entities communicating via symmetric encryption must exchange the key so that it can be used in the decryption process. This encryption method differs from asymmetric encryption where a pair of keys, one public and one private, is used to encrypt and decrypt messages.</p><h4>Need of Symmetric key algorithm?</h4><p>symmetric key algorithm is the oldest method to encrypt data,it is faster and more efficient than asymmetric encryption, which takes a toll on networks due to performance issues with data size and heavy CPU use.</p><p>Uses:</p><ul><li>Payment applications, such as card transactions where PII needs to be protected to prevent identity theft or fraudulent charges.</li><li>Validations to confirm that the sender of a message is who he claims to be.</li><li>Random number generation or hashing.</li></ul><h3>Traditional Symmetric Ciphers</h3><p>The two types of traditional symmetric ciphers are <strong>Substitution Cipher</strong> and <strong>Transposition Cipher</strong>. The following flowchart categories the traditional ciphers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*JmLIbvKtB8ZMk4dbjYN4EQ.png" /><figcaption>Table of distribution of traditional ciphers.</figcaption></figure><p><strong>Substitution Cipher:</strong><br>Substitution Ciphers are further divided into <strong>Mono-alphabetic Cipher</strong> and <strong>Poly-alphabetic Cipher</strong>.</p><p><strong>Mono-alphabetic Cipher –</strong><br>In mono-alphabetic ciphers, each symbol in plain-text (eg; ‘o’ in ‘follow’) is mapped to one cipher-text symbol. No matter how many times a symbol occurs in the plain-text, it will correspond to the same cipher-text symbol. For example, if the plain-text is ‘follow’ and the mapping is :</p><ul><li>f -&gt; g</li><li>o -&gt; p</li><li>l -&gt; m</li><li>w -&gt; x</li></ul><p>The cipher-text is ‘gpmmpx’.</p><p>Types of mono-alphabetic ciphers are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*3kA4enldYdC2QthpUftYZQ.png" /></figure><p>Mono-alphabetic ciphers a thus divided in three as shown above in the flowchart:</p><p><strong>Additive Cipher (Shift Cipher / Caesar Cipher) –</strong><br>The simplest mono-alphabetic cipher is additive cipher. It is also referred to as ‘Shift Cipher’ or ‘Caesar Cipher’. As the name suggests, ‘addition modulus 2’ operation is performed on the plain-text to obtain a cipher-text.</p><p>C = (M + k) mod n<br>M = (C — k) mod n</p><p>where,<br>C -&gt; cipher-text<br>M -&gt; message/plain-text<br>k -&gt; key</p><p>The key space is 26. Thus, it is not very secure. It can be broken by brute-force attack.<br>For more information and implementation see <a href="https://www.geeksforgeeks.org/caesar-cipher/">Caesar Cipher</a></p><p><strong>Multiplicative Cipher –</strong><br>The multiplicative cipher is similar to additive cipher except the fact that the key bit is multiplied to the plain-text symbol during encryption. Likewise, the cipher-text is multiplied by the multiplicative inverse of key for decryption to obtain back the plain-text.</p><p>C = (M * k) mod n<br>M = (C * k-1) mod n</p><p>where,<br>k-1 -&gt; multiplicative inverse of k (key)</p><p>The key space of multiplicative cipher is 12. Thus, it is also not very secure.</p><p><strong>Affine Cipher –</strong><br>The affine cipher is a combination of additive cipher and multiplicative cipher. The key space is 26 * 12 (key space of additive * key space of multiplicative) i.e. 312. It is relatively secure than the above two as the key space is larger.<br>Here two keys k1 and k2 are used.</p><p>C = [(M * k1) + k2] mod n<br>M = [(C — k2) * k1–1 ] mod n</p><p>For more information and implementation, see <a href="https://www.geeksforgeeks.org/implementation-affine-cipher/">Affine Cipher</a></p><p>Now, let’s study about poly-alphabetic cipher.</p><p><strong>Poly-alphabetic Cipher –</strong><br>In poly-alphabetic ciphers, every symbol in plain-text is mapped to a different cipher-text symbol regardless of its occurrence. Every different occurrence of a symbol has different mapping to a cipher-text. For example, in the plain-text ‘follow’, the mapping is :</p><p>f -&gt; q<br>o -&gt; w<br>l -&gt; e<br>l -&gt; r<br>o -&gt; t<br>w -&gt; y</p><p>Thus, the cipher text is ‘qwerty’.</p><p>Types of poly-alphabetic ciphers are:</p><blockquote>auto-key cipher</blockquote><blockquote>playfair cipher</blockquote><blockquote>hill cipher</blockquote><blockquote>one time pad</blockquote><blockquote>rotor cipher</blockquote><blockquote>vigenere cipher</blockquote><p><strong>Transposition Cipher:</strong><br>The transposition cipher does not deal with substitution of one symbol with another. It focuses on changing the position of the symbol in the plain-text. A symbol in the first position in plain-text may occur in fifth position in cipher-text.</p><p>Two of the transposition ciphers are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*2fQ3ZjH-HA3kHejSj2R49A.png" /></figure><h3>Asymmetric key algorithm</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*6-ToYq24lvIcfLjgDG_AUA.png" /><figcaption>above figure will help you to think more efficiently</figcaption></figure><h4>What is asymmetric key algorithm?</h4><p>Asymmetric cryptography is a branch of cryptography where a secret key can be divided into two parts, a public key and a private key.The public key can be given to anyone, trusted or not, while the private key must be kept secret (just like the key in symmetric cryptography).</p><p><strong>Decryption:</strong><br>The process of changing the ciphertext to the plaintext that process is known as decryption.<br>Asymmetric is a form of Cryptosystem in which encryption and decryption are performed using different keys-Public key (known to everyone) and Private key (Secret key). This is known as <strong>Public Key Encryption</strong>.</p><p><strong>Example:</strong><br>Public keys of every user are present in the Public key Register. If B wants to send a confidential message to C, then B encrypt the message using C Public key. When C receives the message from B then C can decrypt it using its own Private key. No other recipient other than C can decrypt the message because only C know C’s private key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*5zBRJvg9O-2kUqtDIoXi3w.jpeg" /><figcaption>box type example of the asymmetric key algorithm.</figcaption></figure><p><strong>Components of Public Key Encryption:</strong></p><ul><li><strong>Plain Text:</strong><br>This is the message which is readable or understandable. This message is given to the Encryption algorithm as an input.</li><li><strong>Cipher Text:</strong><br>The cipher text is produced as an output of Encryption algorithm. We cannot simply understand this message.</li><li><strong>Encryption Algorithm:</strong><br>The encryption algorithm is used to convert plain text into cipher text.</li><li><strong>Decryption Algorithm:</strong><br>It accepts the cipher text as input and the matching key (Private Key or Public key) and produces the original plain text</li><li><strong>Public and Private Key:</strong><br>One key either Private key (Secret key) or Public Key (known to everyone) is used for encryption and other is used for decryption</li></ul><p><strong>Weakness of the Public Key Encryption:</strong></p><ul><li>Public key Encryption is vulnerable to Brute-force attack.</li><li>This algorithm also fails when the user lost his private key, then the Public key Encryption becomes the most vulnerable algorithm.</li><li>Public Key Encryption also is weak towards man in the middle attack. In this attack a third party can disrupt the public key communication and then modify the public keys.</li><li>If user private key used for certificate creation higher in the PKI(Public Key Infrastructure) server hierarchy is compromised, or accidentally disclosed, then a “man-in-the-middle attack” is also possible, making any subordinate certificate wholly insecure. This is also the weakness of Public key Encryption.</li></ul><p><strong>Applications:</strong></p><ul><li>Confidentiality can be achieved using Public Key Encryption. In this the Plain text is encrypted using receiver public key. This will ensures that no one other than receiver private key can decrypt the cipher text.</li><li>Digital signature is for senders authentication purpose. In this sender encrypt the plain text using his own private key. This step will make sure the authentication of the sender because receiver can decrypt the cipher text using senders pubic key only.</li><li>This algorithm can use in both Key-management and securely transmission of data.</li></ul><h3>Difference Between Symmetric and Asymmetric Encryption</h3><ul><li>Symmetric encryption uses a single key that needs to be shared among the people who need to receive the message while asymmetrical encryption uses a pair of public key and a private key to encrypt and decrypt messages when communicating.</li><li>Symmetric encryption is an old technique while asymmetric encryption is relatively new.</li><li>Asymmetric encryption was introduced to complement the inherent problem of the need to share the key in symmetrical encryption model, eliminating the need to share the key by using a pair of public-private keys.</li><li>Asymmetric encryption takes relatively more time than the symmetric encryption.</li></ul><h3>Conclusion</h3><p>When it comes to encryption, the latest schemes may necessarily the best fit. You should always use the encryption algorithm that is right for the task at hand. In fact, as cryptography takes a new shift, new algorithms are being developed in a bid to catch up with the eavesdroppers and secure information to enhance confidentiality. Hackers are bound to make it tough for experts in the coming years, thus expect more from the cryptographic community!</p><p>……………………………………………………………………………………….</p><p><em>Ref : </em><a href="https://www.geeksforgeeks.org/"><em>https://www.geeksforgeeks.org/</em></a></p><p>Connect with me :)</p><p>Web: <a href="http://www.akshatsrivastava.tk/"><em>http://www.akshatsrivastava.tk/</em></a></p><p>LinkedIn: <a href="https://www.linkedin.com/in/akshat-srivastava-4812271a9/"><em>https://www.linkedin.com/in/akshat-srivastava-4812271a9/</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cde40384a332" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>