<?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 Kavita Gupta on Medium]]></title>
        <description><![CDATA[Stories by Kavita Gupta on Medium]]></description>
        <link>https://medium.com/@kavitagupta972?source=rss-42613e30e3d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*YnFVRfwBrMYzIKPS.</url>
            <title>Stories by Kavita Gupta on Medium</title>
            <link>https://medium.com/@kavitagupta972?source=rss-42613e30e3d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 15:02:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kavitagupta972/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[My AI Learning Journey — Day 2]]></title>
            <link>https://medium.com/@kavitagupta972/my-ai-learning-journey-day-2-eaee2db12470?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaee2db12470</guid>
            <category><![CDATA[ai-genai]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[writing-prompts]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 07:58:56 GMT</pubDate>
            <atom:updated>2026-03-31T08:02:47.746Z</atom:updated>
            <content:encoded><![CDATA[<p>DAY 2 — Prompt Engineering</p><h3>🎯 Goal:</h3><p>Learn structured prompting</p><h3>📚 Learn:</h3><ul><li>OpenAI Prompt Engineering Guide → <a href="https://platform.openai.com/docs/guides/prompt-engineering">https://platform.openai.com/docs/guides/prompt-engineering</a></li></ul><h3>🧪 Practice:</h3><p>Use ChatGPT and try:</p><ul><li>Role-based prompts</li><li>Step-by-step instructions</li><li>10 min → Basic prompt vs structured prompt</li><li>15 min → Practice:</li><li>Generate code</li><li>Generate email</li><li>10 min → Create 3 reusable prompts</li><li>Output formatting</li></ul><h3>✅ Output:</h3><p>Create 3 reusable prompts (for training demo)</p><p>Your first <strong>prompt library (very useful for training)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaee2db12470" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My AI Learning journey — Day 1]]></title>
            <link>https://medium.com/@kavitagupta972/my-ai-learning-journey-day-1-5d2a97a48e89?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d2a97a48e89</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[sharetoolearn]]></category>
            <category><![CDATA[corporate-training]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Mon, 30 Mar 2026 14:05:52 GMT</pubDate>
            <atom:updated>2026-03-30T16:59:06.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>📅 DAY 1 — AI Foundations (Business Use Cases)</h3><h3>🎯 Goal:</h3><p>Understand how companies use AI</p><h3>📚 Learn (pick 1–2 only):</h3><ul><li>OpenAI Platform Docs → <a href="https://platform.openai.com/docs/introduction">https://platform.openai.com/docs/introduction</a></li><li><a href="https://developers.openai.com/api/docs/guides/prompt-engineering">https://developers.openai.com/api/docs/guides/prompt-engineering</a></li><li><a href="https://developers.openai.com/api/docs/guides/text">https://developers.openai.com/api/docs/guides/text</a></li><li>YouTube: “Generative AI in 10 minutes” (any top video)<br>Learnt through <a href="https://www.youtube.com/watch?v=NRmAXDWJVnU">https://www.youtube.com/watch?v=NRmAXDWJVnU</a>.</li></ul><h3>🧠 Focus:</h3><ul><li>Chatbots</li><li>Content generation</li><li>Automation</li></ul><h3>✅ Output:</h3><p>Write 5 <strong>corporate AI use cases</strong></p><p>AI-Powered Customer Support Chatbots</p><p>Code Generation &amp; Developer Productivity</p><p>Intelligent Document Processing</p><p>Sales &amp; Marketing Personalization</p><p>Workflow Automation &amp; Internal Productivity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d2a97a48e89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hackerrank coding challenge]]></title>
            <link>https://medium.com/@kavitagupta972/hackerrank-coding-challenge-11beeba233c9?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/11beeba233c9</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Thu, 01 Sep 2022 08:06:52 GMT</pubDate>
            <atom:updated>2022-11-03T11:29:34.483Z</atom:updated>
            <content:encoded><![CDATA[<p>Yesterday, I came across one problem in Hackerrank platform, which needs to be solved as part of pair programming challenge.<br>Sharing the problem and solution with all of you.</p><p><strong>A friend of Alex has gifted a movie collection, and Alex is excited to watch them all as quickly as possible. The duration of the movies is given in array durations[n], where n is the number of movies, and each movie duration lies between 1.01 and 3.00 units of time (up to two decimal places). Every day, Alex wants to spend no more than 3.00 units of time watching the movies but also wants to complete the movies in the least number of days possible. Alex does not leave a movie in between. That is, if Alex has picked up a movie, Alex watches the complete movie on the same day. Find the minimum number of days needed to watch all the movies.</strong></p><p>I hope, most of us will have more optimized solution.</p><p><em>Seeking to hear from all of you on the same.</em></p><p><strong><em>Link</em></strong> : <a href="https://github.com/kavitagupta972/coding-challenges/blob/main/1_heckerrank_challenge">https://github.com/kavitagupta972/coding-challenges/blob/main/1_heckerrank_challenge</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11beeba233c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Callbacks in JavaScript]]></title>
            <link>https://medium.com/@kavitagupta972/callbacks-in-javascript-b7e64282e2ca?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b7e64282e2ca</guid>
            <category><![CDATA[javascript-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Tue, 16 Aug 2022 11:13:44 GMT</pubDate>
            <atom:updated>2022-09-01T08:07:59.289Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi All,</p><p>I started with season2 of Namaste Javascript Series.<br>Hope, most of us are already aware of this free series on youtube by @akshaysaini.</p><p>Today, I have completed first chapter of season2, and here are my learnings for the same.</p><p>What are callbacks.<br>What are the problems with callbacks.</p><p>Callbacks are the functions in JavaScript, which are heavily used to perform async operations. It can be passed as an argument to other function. Since, JavaScript is a synchronous single threaded language. To perform async operations, callbacks play a vital role.</p><p>Callbacks are powerful way to achieve async behavior, but there are some limitations with it.</p><ol><li>Callback Hell</li><li>Inversion of control</li></ol><p><strong>0. Callback Hell :</strong> In case of callbacks, if there are multiple callbacks hierarchy i.e. nested callbacks. which leads to callback hell. And, sometime, it becomes difficult to manage, read such codes.</p><p><strong>1. Inversion of control :</strong> When we pass our function to other function, we lose the control of our function. We don’t know, how other function is going to use our function.</p><p>Hope this article makes sense to all the JavaScript developers.<br>Please provide your inputs in comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b7e64282e2ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git commands]]></title>
            <link>https://medium.com/@kavitagupta972/git-commands-478580a74ee8?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/478580a74ee8</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[git]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Sat, 24 Jul 2021 06:27:15 GMT</pubDate>
            <atom:updated>2021-07-24T06:27:15.706Z</atom:updated>
            <content:encoded><![CDATA[<p>git log — all — decorate — oneline — graph — to see structure</p><p>git branch -a</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=478580a74ee8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eclipse Shortcuts]]></title>
            <link>https://medium.com/@kavitagupta972/eclipse-shortcuts-fe6f82790fae?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe6f82790fae</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[eclipse]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Wed, 21 Jul 2021 10:35:26 GMT</pubDate>
            <atom:updated>2021-07-22T05:20:32.081Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many ways to work on a system. But, it is good practice if we know about the shortcuts or I would say keyboard shortcuts to operate on a system.</p><p>As being a corporate trainer, I am working on different assignments, work with different sets of people. I came to know that, shortcuts are very valuable and everyone wants to learn about them.</p><p>In my current training assignment, working on eclipse. Most of the students are asking about eclipse shortcuts.</p><p>Here, I am listing down the shortcuts of eclipse that I am using currently.</p><p>Below is the list :</p><ol><li>ctrl+D — to remove a line.</li><li>ctrl+shift+t — to open an already existing resource or APIecli or utility class. e.g. String class, Comparator, Comparable</li><li>ctrl+shift+r — to open any resource file that you have created, or that is there in your workspace</li><li>ctrl+shift+o — to organize your imports in the existing current file.</li><li>ctrl+o — to see the existing list of variables, constants, and methods in the current file.</li><li>ctrl+alt+up arrow, ctrl+alt+down arrow — to make a copy of the existing line on which cursor exists currently.</li><li>ctrl+f — to find/replace in current file</li><li>ctrl+h — to search in the workspace or a specific project depend on configuration.</li><li>alt+up arrow, alt+down arrow — to move the current selection up and down.</li><li>alt+shift+r — to refactor rename. This means the name will be renamed in every reference.</li><li>ctrl+1 — a quick fix. will give you suggestions if there is an error in your file.</li></ol><p>There are other shortcuts as well, I will update this list accordingly.</p><p>There is a path is to see all the keyboard shortcuts, eclipse has provided. Go to eclipse and follow the below path to know :</p><p><strong>See Help &gt; Help Contents &gt; Java Development User Guide &gt; Reference &gt;</strong><a href="http://127.0.0.1:61810/help/topic/org.eclipse.jdt.doc.user/reference/ref-keybindings.htm?cp=1_4_16"><strong>List of JDT Key Bindings</strong></a><strong>.</strong></p><p>Hope you find this article useful. Stay tuned for more articles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe6f82790fae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Axios — API Integration]]></title>
            <link>https://medium.com/@kavitagupta972/axios-api-integration-860c427a7622?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/860c427a7622</guid>
            <category><![CDATA[axios]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Mon, 14 Oct 2019 10:39:06 GMT</pubDate>
            <atom:updated>2021-04-19T07:26:22.201Z</atom:updated>
            <content:encoded><![CDATA[<h3>Axios — API Integration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*DPzHzRkAFrr-1UVPL59sag.png" /></figure><p>To fetch data from a REST API, we send the AJAX request to server through some protocol, to get the requested response. There are different ways of doing this, by basic way of creating a <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest"><em>XHRequest</em></a><em> as well.</em></p><p>Few of the other ways are:</p><ol><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API">fetch</a></li></ol><p><a href="https://github.com/axios/axios">2. axios</a></p><p><a href="https://github.com/visionmedia/superagent">3. superagent</a></p><p>In this article, we will discuss about Axios.</p><p>Axios is a Promise-based HTTP client for JavaScript which can be used in your front-end application and node.js. It makes it easy to send http request to server, to perform CRUD operations.</p><p><strong>Features of Axios :</strong></p><p>Axios supports operations in variety of ways and provide so many features to make a easy task for developers to use this library.</p><h3>Features</h3><ul><li>Make <a href="https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest">XMLHttpRequests</a> from the browser</li><li>Make <a href="http://nodejs.org/api/http.html">http</a> requests from node.js</li><li>Supports the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a> API</li><li>Intercept request and response</li><li>Transform request and response data</li><li>Cancel requests</li><li>Automatic transforms for JSON data</li><li>Client side support for protecting against <a href="http://en.wikipedia.org/wiki/Cross-site_request_forgery">XSRF</a></li><li>Better error handling</li></ul><p><strong>Axios methods to support http protocol</strong></p><ol><li>axios.request(config)</li></ol><p>2. axios.get(url[, config])</p><p>3. axios.delete(url[, config])</p><p>4. axios.head(url[, config])</p><p>5. axios.options(url[, config])</p><p>6. axios.post(url[, data[, config]])</p><p>7. axios.put(url[, data[, config]])</p><p><strong>What will we built using axios?</strong></p><p>We will perform CRUD operation on a table using reactjs javascript library for UI. We will integrate axios with react to fetch and transform table.</p><p><strong>Getting started with axios</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*P2E9Sfd1KN3WH7ZTpEL49A.png" /></figure><h3>Installing</h3><p>Using npm:</p><pre>$ npm install </pre><p>Using bower:</p><pre>$ bower install axios</pre><p>Using yarn:</p><pre>$ yarn add axios</pre><p>Using cdn:</p><pre>&lt;script src=&quot;https://unpkg.com/axios/dist/axios.min.js&quot;&gt;&lt;/script&gt;</pre><p>Then use the axios in react component</p><p>import axios from ‘axios’;</p><p>Then we can use it depends on our requirement.</p><p>For intial load, we put the axios calls in componentDidMount method of react component lifecycle, which executes just after the render method. We can also use react hooks for axios calling.</p><p>Sample call for axios :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*kcfZFLV-QP8Qm-XTlmKj-g.png" /></figure><p>In above structure, we call one of the operation, then there is callback function to handle the response data. If any error occurs, it is being executed in catch block. It also has finally block, which got executed in both the cases.</p><p>Structure of response object might help you to use the required information from response object.</p><ol><li>data — the payload returned from the server</li></ol><p>2. status — the HTTP code returned from the server</p><p>3. statusText — the HTTP status message returned by the server</p><p>4. headers — headers sent by server</p><p>5. config — the original request configuration</p><p>6. request — the request object</p><p>status and statusText of response object can be used to handle the response in variety of ways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*6_X4z3fu-tjnULXekbYJXg.png" /></figure><p>Why Axios ???</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*YK6alC5l3d3YRsjNSn0Iqw.png" /><figcaption>Why???????????</figcaption></figure><p>Please follow this <a href="https://medium.com/@kavitagupta972/why-axios-17ebdaa1db44">link</a> for detail <a href="https://medium.com/@kavitagupta972/why-axios-17ebdaa1db44">https://medium.com/@kavitagupta972/why-axios-17ebdaa1db44</a></p><p>Reference to give it a try for CRUD.</p><p><a href="https://github.com/kavitagupta972/axios-api-integration/tree/develop/axios-demo">kavitagupta972/axios-api-integration</a></p><p>Hope this article adds knowledge to your dictionary. Connect with me for any query.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=860c427a7622" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Axios ???]]></title>
            <link>https://medium.com/@kavitagupta972/why-axios-17ebdaa1db44?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/17ebdaa1db44</guid>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Mon, 14 Oct 2019 10:19:41 GMT</pubDate>
            <atom:updated>2019-10-14T11:24:12.994Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Axios ???</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*EiQa2-XP8PJpa_bjqPclrg.png" /></figure><p>When i started using react, i was wondering, how to connect to Rest API from UI. I started searching library which can be used to fulfill this purpose.</p><p>Then, i turn towards fetch api and axios api. I started studying about both the libraries before actually using it.</p><p>Then, i decided to use the axios library, and try to compare both the libraries.</p><p><strong>Below are the some features, which makes axios more powerful :</strong></p><ol><li>Making simultaneous requests using axios.all</li></ol><p>2. Sending custom headers</p><p>3. Automatically transforming requests and responses in json data</p><p>4. Cancelling request</p><p>5. Axios Is More Secure, Featuring Built In Cross Site Forgery (XSRF) Protection</p><p>6. Monitor POST Request Progress</p><p>7. Axios Has A Wider Range Of Supported Browsers</p><p>8.Better error handling</p><p>Stay tuned for more updates !!!!</p><p>Happy reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17ebdaa1db44" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generally, we sort the values by using keys.]]></title>
            <link>https://medium.com/@kavitagupta972/easy-way-to-sort-map-by-value-using-java-8-78cfb12445d6?source=rss-42613e30e3d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/78cfb12445d6</guid>
            <category><![CDATA[java8]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[maps]]></category>
            <dc:creator><![CDATA[Kavita Gupta]]></dc:creator>
            <pubDate>Mon, 16 Jul 2018 12:45:33 GMT</pubDate>
            <atom:updated>2018-07-16T12:53:03.322Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Easy way to sort map by value using java 8</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*LvaZgwWrDH-Hl7glzlHgaw.jpeg" /></figure><p>Generally, we sort the values by using keys. In case of map in java, we have a habit to sort keys, not values. But, there can be some scenarios , where we need to sort data based on values in map.</p><p>I faced this challenge while working on one of my projects, where i need to do sorting based on values in hashmap. Then, i try to search easy way to achieve that, and found the api in java to do this job.</p><p>I am excited to share with everyone , feature of java8 which makes my life easy, infact my coding life easy.</p><p>I will show you both the code, before using java 8 features, and along with java 8 features. You will see the difference.</p><p><strong><em>Before java 8, code was like:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*U21uhXShpV4LqHlyj6GbNQ.jpeg" /><figcaption>sort unsortedFruits map with comparator</figcaption></figure><p><strong><em>Using java 8 features :</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*FjkH2lfc4lbcQ3ulboBc4g.jpeg" /><figcaption>sorting using java 8 features</figcaption></figure><p>Code is clean and one liner to sort the map by values, not keys.</p><p>You can download and run the complete code by downloading from my github link <a href="https://github.com/kavitagupta972/MyWork/blob/master/Sorting%20Map.zip">https://github.com/kavitagupta972/MyWork/blob/master/Sorting%20Map.zip</a></p><p>Hope you find this article helpful. For more java 8 features, stay tuned….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78cfb12445d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>