<?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 Raj Prajapat on Medium]]></title>
        <description><![CDATA[Stories by Raj Prajapat on Medium]]></description>
        <link>https://medium.com/@rajprajapat-7?source=rss-97e8bd5152fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*D9yxEatPd9PukHWpGFwGBg.jpeg</url>
            <title>Stories by Raj Prajapat on Medium</title>
            <link>https://medium.com/@rajprajapat-7?source=rss-97e8bd5152fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:43:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rajprajapat-7/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[Why Everyone is Talking About HTML6]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://rajprajapat-7.medium.com/why-everyone-is-talking-about-html6-1f293630aa68?source=rss-97e8bd5152fd------2"><img src="https://cdn-images-1.medium.com/max/1024/1*nLj46XOYRppEaOLj7amVgw.jpeg" width="1024"></a></p><p class="medium-feed-snippet">The web development community is buzzing with questions, rumors, and speculative code snippets about HTML6. Articles claim it will bring&#x2026;</p><p class="medium-feed-link"><a href="https://rajprajapat-7.medium.com/why-everyone-is-talking-about-html6-1f293630aa68?source=rss-97e8bd5152fd------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://rajprajapat-7.medium.com/why-everyone-is-talking-about-html6-1f293630aa68?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f293630aa68</guid>
            <category><![CDATA[html6]]></category>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Wed, 03 Jun 2026 04:39:33 GMT</pubDate>
            <atom:updated>2026-06-03T04:40:42.308Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Unleashing the Power of Quantum Computing]]></title>
            <link>https://rajprajapat-7.medium.com/unleashing-the-power-of-quantum-computing-ca1f3432d473?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca1f3432d473</guid>
            <category><![CDATA[quantum-computing]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[quantum]]></category>
            <category><![CDATA[computing]]></category>
            <category><![CDATA[quantum-computing-india]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Mon, 19 Jun 2023 07:42:00 GMT</pubDate>
            <atom:updated>2023-06-19T07:42:00.849Z</atom:updated>
            <content:encoded><![CDATA[<p>In the realm of computing, a new era is dawning. Quantum computing, a groundbreaking technology harnessing the peculiar principles of quantum mechanics, holds the promise of revolutionizing the world as we know it. While traditional computers have served us well, quantum computers offer unprecedented computational power, capable of solving complex problems that are currently beyond the reach of classical computing. In this article, we delve into the fascinating world of quantum computing, exploring its principles, potential applications, and the challenges that lie ahead</p><h4>Understanding Quantum Computing:</h4><p>Quantum computing is a field of study that focuses on developing computers that exploit quantum phenomena, such as superposition and entanglement, to perform computations. Unlike classical bits, which can represent either a 0 or a 1, quantum bits, or qubits, can exist in a superposition of both states simultaneously. This property enables quantum computers to perform parallel computations and explore multiple possibilities simultaneously, vastly accelerating their processing power.</p><h4>Potential Applications:</h4><p>The potential applications of quantum computing span various fields, including cryptography, optimization problems, drug discovery, materials science, and artificial intelligence. One prominent area where quantum computing excels is cryptography. Quantum algorithms can break classical encryption methods, paving the way for the development of unbreakable quantum cryptography protocols, and ensuring secure communication in an increasingly digital world.</p><p>Quantum computers possess immense potential in optimizing complex systems. From logistics and supply chain management to financial portfolio optimization, these computers can efficiently analyze and find the best solutions from an astronomical number of possibilities, improving efficiency and driving innovation.</p><p>The field of drug discovery is also set to benefit significantly from quantum computing. Quantum algorithms can simulate molecular interactions more accurately, leading to faster and more cost-effective drug development. This breakthrough could revolutionize the pharmaceutical industry, bringing life-saving treatments to patients faster than ever before.</p><h4>Challenges and Future Outlook:</h4><p>While quantum computing holds tremendous promise, it also faces significant challenges. One major hurdle is qubit stability and decoherence. Qubits are incredibly delicate, susceptible to environmental noise, and prone to errors. Scientists and engineers are working tirelessly to develop error-correction techniques and fault-tolerant quantum systems that can maintain the integrity of qubits over longer periods.</p><p>Another challenge lies in scaling up quantum computers. Currently, quantum computers have a relatively small number of qubits, limiting their computational power. Scaling up quantum systems while maintaining coherence is a daunting task that requires breakthroughs in hardware design, materials science, and control systems.</p><h4>Conclusion:</h4><p>Quantum computing is an exciting new frontier in technology that has the potential to revolutionize our world. With its remarkable computational power and applications in cryptography, optimization, drug discovery, and more, it has captured the attention of scientists, researchers, and industry leaders. Although there are challenges to overcome, progress in quantum computing is moving forward rapidly. As we embark on this journey, we are on the brink of a technological revolution that will transform our lives and provide solutions to some of humanity’s most significant challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca1f3432d473" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a React App with Parcel Bundler: A Step-by-Step Guide]]></title>
            <link>https://rajprajapat-7.medium.com/building-a-react-app-with-parcel-bundler-a-step-by-step-guide-32f1ad4b8d29?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/32f1ad4b8d29</guid>
            <category><![CDATA[parcel-bundler]]></category>
            <category><![CDATA[parcel]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[lightweight]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Tue, 16 May 2023 15:09:58 GMT</pubDate>
            <atom:updated>2023-05-16T15:09:58.679Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Lightweight React app with Parcel bundler</strong></p><p>To create a React app with a Parcel bundler, you can follow the steps below. I’ll provide a step-by-step guide along with some explanations. Please note that the provided information is based on the knowledge available up until September 2021, and there may be newer updates or changes to the process since then.</p><p>Step 1: Set up a new project Create a new project directory and navigate into it using the command line. You can use the following command to create a new directory and navigate into it:</p><pre>mkdir my-react-app<br>cd my-react-app</pre><p>Step 2: Initialize a new project Next, you’ll need to initialize a new Node.js project. Run the following command to create a package.json file:</p><pre>npm init -y</pre><p>Step 3: Install React and other dependencies Install React and its dependencies by running the following command:</p><pre>npm install react react-dom<br></pre><p>Step 4: Install Parcel bundler Parcel is a zero-configuration bundler that automatically handles your project’s dependencies. Install Parcel by running the following command:</p><pre>npm install --save-dev parcel-bundler</pre><p>Step 5: Create the React component Create a new file called App.js in your project directory. This file will contain your React component. Add the following code to the App.js file:</p><pre>import React from &#39;react&#39;;<br><br>function App() {<br>  return (<br>    &lt;div&gt;<br>      &lt;h1&gt;Hello, React!&lt;/h1&gt;<br>    &lt;/div&gt;<br>  );<br>}<br><br>export default App;</pre><p>Step 6: Create the entry point file Create another file called index.html in your project directory. This file will serve as the entry point for your application. Add the following code to the index.html file:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;React App&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;div id=&quot;root&quot;&gt;&lt;/div&gt;<br>    &lt;script src=&quot;./index.js&quot;&gt;&lt;/script&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>Step 7: Create the main JavaScript file Create a new file called index.js in your project directory. This file will be the main JavaScript file that sets up and renders your React component. Add the following code to the index.js file:</p><pre>import React from &#39;react&#39;;<br>import { createRoot } from &quot;react-dom/client&quot;;<br>import ReactDOM from &#39;react-dom&#39;;<br>import App from &#39;./App&#39;;<br><br>const rootElement = document.getElementById(&quot;root&quot;)!;<br>const root = createRoot(rootElement);<br>root.render(<br>    &lt;App /&gt;<br>);</pre><p>Step 8: Build and run the application To build and run your React app, use the Parcel bundler. Add the following script to the &quot;scripts&quot; section of your package.json file:</p><pre>&quot;scripts&quot;: {<br>  &quot;start&quot;: &quot;parcel index.html&quot;<br>}</pre><p>Save the changes to package.json, and in the command line, run the following command to start the application:</p><pre>npm start</pre><p>The parcel will compile your code, handle dependencies, and start a development server. You can then access your React app by visiting http://localhost:1234 your web browser.</p><p>That’s it! You have successfully created a React app using Parcel bundler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32f1ad4b8d29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discover the Top 25 Must-Visit Places in Madhya Pradesh]]></title>
            <link>https://rajprajapat-7.medium.com/discover-the-top-25-must-visit-places-in-madhya-pradesh-dbea2a1540cf?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/dbea2a1540cf</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[travel]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Wed, 26 Apr 2023 10:48:32 GMT</pubDate>
            <atom:updated>2023-04-26T10:48:32.845Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A Journey Through Culture, History, and Nature”</strong></p><p>Khajuraho — Khajuraho Group of Monuments, Kandariya Mahadev Temple<br>Sanchi — Sanchi Stupa, Archaeological Museum<br>Pachmarhi — Pachmarhi Biosphere Reserve, Jatashankar Temple<br>Jabalpur — Bhedaghat, Dhuandhar Falls, Chausath Yogini Temple, Kalachuri Archaeological Museum<br>Gwalior — Gwalior Fort, Jai Vilas Palace Museum, Gujari Mahal Archaeological Museum, Tansen Tomb<br>Bhopal — Bhojpur Temple, Baghela Museum, Shahpura Lake, Van Vihar National Park<br>Ujjain — Shri Mahakaleshwar Jyotirlinga, Chintaman Ganesh Temple<br>Mandu (Dhar) — Jahaz Mahal, Hindola Mahal, Jami Masjid<br>Orchha — Orchha Fort, Chaturbhuj Temple, Raja Mahal<br>Chhindwara — Bhanwar Kund<br>Chhatarpur — Chitrakoot Falls, Khajuraho Group of Monuments<br>Hoshangabad — Satpura Tiger Reserve, Tawa Reservoir, Bori Wildlife Sanctuary<br>Vidisha — Betwa River, Udayeshwara Temple<br>Seoni — Pench National Park<br>Ashoknagar — Chanderi<br>Burhanpur — Asirgarh Fort<br>Morena — Chausath Yogini Temple, Kakanmath Temple<br>Khandwa — Shri Omkareshwar Jyotirlinga, Omkareshwar Parikrama, Hanuwantiya<br>Rewa — Baghela Museum<br>Raisen — Bhimbetka Caves, Bhojpur<br>Shivpuri — Madhav National Park<br>Indore — Rajwada Palace, Anand Bhawan Museum and Library, Nahargarh Fort<br>Dindori — Amarkantak<br>Balaghat — Kanha National Park<br>Umaria — Bandhavgarh National Park</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dbea2a1540cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recoil vs Redux: Choosing the Right State Management Library for Your React Application]]></title>
            <link>https://rajprajapat-7.medium.com/recoil-vs-redux-choosing-the-right-state-management-library-for-your-react-application-8fc3730e6ecd?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fc3730e6ecd</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[recoiljs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[recoil]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 07:03:26 GMT</pubDate>
            <atom:updated>2023-04-11T07:03:26.525Z</atom:updated>
            <content:encoded><![CDATA[<p>Recoil and Redux are two popular state management libraries used in React applications. Both of them have their unique features and benefits, and in this article, we’ll explore the differences between them to help you decide which one to use for your project.</p><p>Recoil is a relatively new state management library developed by Facebook that provides a simple and intuitive way to manage the state of your application. It’s based on the concept of atoms, which are individual units of state that can be read and written to. These atoms can be composed into selectors, which derive new values from the atoms.</p><p>Redux, on the other hand, is a more established state management library that has been around for several years. It’s based on the concept of a centralized store, which holds the entire state of the application. Redux provides a set of rules for updating the store, and all state changes must go through these rules.</p><p>One of the main differences between Recoil and Redux is their approach to state management. Recoil provides a more decentralized approach, where state is stored in individual atoms, and components can subscribe to and update these atoms directly. This makes it easier to reason about the state of your application and avoids the need for complex actions and reducers.</p><p>Redux, on the other hand, provides a more centralized approach, where state is stored in a single store, and updates must go through a set of rules defined by actions and reducers. This can make it more difficult to reason about the state of your application, especially in larger applications with complex state.</p><p>Another key difference between Recoil and Redux is their performance. Recoil is designed to be highly performant, with a focus on minimizing unnecessary re-renders of components. It achieves this through a mechanism called selective re-rendering, where only the components that depend on a particular atom or selector are re-rendered when that atom or selector changes.</p><p>Redux, on the other hand, can be less performant, especially in larger applications with complex state. This is because all components that are connected to the store will re-render whenever the store is updated, regardless of whether or not they depend on the specific part of the state that has changed.</p><p>In terms of ease of use, both Recoil and Redux have their strengths and weaknesses. Recoil is generally easier to use and has a shallower learning curve, especially for developers who are already familiar with React hooks. Redux, on the other hand, can be more difficult to learn and use, especially for developers who are new to React and the concept of a centralized store.</p><p>Recoil and Redux have their unique features and benefits, and the choice between them ultimately depends on the specific needs and requirements of your project. Recoil provides a more decentralized approach to state management, with a focus on performance and ease of use, while Redux provides a more centralized approach, with a focus on predictability and maintainability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fc3730e6ecd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GitHub Copilot: The AI-Powered Code Assistant]]></title>
            <link>https://rajprajapat-7.medium.com/github-copilot-1e2624774c98?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e2624774c98</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[github-copilot]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Mon, 10 Apr 2023 13:02:42 GMT</pubDate>
            <atom:updated>2023-04-10T13:04:51.194Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IzL_FwMT00fIrLDk.png" /></figure><p>GitHub Copilot is a new AI-powered code assistant tool that has recently gained a lot of attention from developers around the world. Developed by OpenAI in collaboration with Microsoft, GitHub Copilot uses machine learning models to provide suggestions and auto-completion for code as developers write it.</p><p>The concept behind GitHub Copilot is simple but revolutionary. Developers can use Copilot to help them write code more efficiently, with fewer errors, and in less time. The tool is designed to provide intelligent suggestions based on the code that is being written, as well as the context and the programming language being used.</p><p>Copilot works by analyzing the code that is being written and then making suggestions based on its understanding of the code. The suggestions can range from auto-completion of code snippets to entire functions or classes that can be inserted into the code. Copilot can also provide documentation for APIs and libraries, making it easier for developers to understand how to use them.</p><p>GitHub Copilot has been trained on a massive dataset of code repositories and programming languages, which makes it capable of generating high-quality suggestions that are tailored to the specific context in which they are being used. The tool can be used with a wide range of programming languages, including Python, JavaScript, Ruby, and Go, among others.</p><p>One of the most significant advantages of GitHub Copilot is that it can help reduce the cognitive load that developers experience when writing code. By providing intelligent suggestions and auto-completion, Copilot can help developers focus on the high-level aspects of their code, such as the architecture and design, rather than getting bogged down in the details of syntax and low-level implementation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e2624774c98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is GitHub]]></title>
            <link>https://rajprajapat-7.medium.com/what-is-github-595b2fc0b2b7?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/595b2fc0b2b7</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 09:37:17 GMT</pubDate>
            <atom:updated>2023-03-22T09:37:17.898Z</atom:updated>
            <content:encoded><![CDATA[<p>GitHub is an online platform that is widely used by developers and organizations to host, review, and manage software code. It has become an essential tool for open-source projects, as well as for companies that use it for internal development and collaboration. In this article, we will explore what GitHub is, its key features, and how it has revolutionized the world of software development.</p><p>What is GitHub?</p><p>GitHub is a web-based hosting service that allows developers to store and manage their software code. It was founded in 2008 by Chris Wanstrath, PJ Hyett, and Tom Preston-Werner and has since become the world’s largest open-source community with over 100 million repositories. GitHub provides a collaborative environment for developers to work together, share code, and contribute to open-source projects.</p><p>Key Features of GitHub</p><p>Version Control: GitHub is based on the Git version control system, which allows developers to track changes to their code over time. This makes it easy for developers to work on different versions of their code and collaborate with others on the same project.</p><p>Collaboration: GitHub provides a collaborative environment for developers to work together on code. It allows them to review and merge changes, report and fix bugs, and discuss issues related to the project.</p><p>Pull Requests: Pull requests are one of GitHub’s key features. They allow developers to propose changes to a project and submit them for review by other developers. This makes it easy for developers to contribute to open-source projects and get feedback on their work.</p><p>Code Hosting: GitHub provides hosting for software code, which makes it easy for developers to share their work with others. It also provides a way for organizations to manage their code repositories and collaborate on internal development projects.</p><p>Issues Tracking: GitHub provides an issue-tracking system that allows developers to track bugs, feature requests, and other issues related to their projects. This makes it easy for developers to prioritize and manage their work.</p><p>How GitHub has Revolutionized Software Development</p><p>GitHub has revolutionized the world of software development by making it easier for developers to collaborate on code and contribute to open-source projects. It has become an essential tool for developers and organizations around the world, and its impact on the industry cannot be overstated.</p><p>Open-Source Projects: GitHub has been instrumental in the growth of open-source projects. It has provided a platform for developers to collaborate on code, share their work with others, and contribute to projects that benefit the wider community.</p><p>Code Quality: GitHub has helped improve code quality by providing a way for developers to review and merge changes. This has made it easier for developers to catch bugs and ensure that code is well-written and maintainable.</p><p>Community: GitHub has created a vibrant community of developers around the world who collaborate on code and share their knowledge with others. This has created a culture of learning and innovation in the industry.</p><p>Conclusion</p><p>In conclusion, GitHub has revolutionized software development by providing a collaborative environment for developers to work together, share code, and contribute to open-source projects. Its key features such as version control, collaboration, pull requests, code hosting, and issues tracking have made it an essential tool for developers and organizations around the world. Its impact on the industry has been significant, and its role in shaping the future of software development cannot be ignored.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=595b2fc0b2b7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Chat GPT OpenAI]]></title>
            <link>https://rajprajapat-7.medium.com/what-is-chat-gpt-openai-d588be276952?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d588be276952</guid>
            <category><![CDATA[google]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[chat-gpt-ai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 09:00:07 GMT</pubDate>
            <atom:updated>2023-03-22T09:00:07.967Z</atom:updated>
            <content:encoded><![CDATA[<p>Chat GPT, also known as Generative Pre-trained Transformer 3.5, is a large language model developed by OpenAI. It is one of the most advanced natural language processing models in existence, capable of generating human-like responses to a wide range of prompts.</p><p>At its core, Chat GPT is designed to analyze large amounts of text data and use that analysis to generate new, coherent text. It accomplishes this using a machine learning technique called unsupervised learning, which involves training the model on massive amounts of data without specific instruction or guidance.</p><p>The development of Chat GPT was a significant breakthrough in the field of natural language processing. Previous language models were limited in their ability to generate coherent text and could easily become confused or produce nonsensical responses to prompts. Chat GPT, on the other hand, has demonstrated a remarkable ability to understand and respond to complex language patterns and contexts.</p><p>One of the key features of Chat GPT is its size. The model has been trained on an enormous dataset of over 45 terabytes of text, making it one of the largest language models. This vast amount of data allows Chat GPT to understand and respond to various language patterns, from simple statements to more complex conversations.</p><p>Another feature of Chat GPT is its ability to generate text that is both coherent and contextually appropriate. This is achieved through a process called attention, which allows the model to focus on specific words and phrases in a prompt and use that information to generate a response that makes sense in the context of the conversation.</p><p>The potential applications of Chat GPT are wide-ranging and include chatbots, language translation, and content generation for social media and other platforms. Chat GPT has already been used to create advanced chatbots that can carry on natural-sounding conversations with users, and the model will likely continue to be used in new and innovative ways as natural language processing technology advances.</p><p>However, there are also concerns about the potential misuse of Chat GPT. Because the model is so good at generating coherent and contextually appropriate text, it could be used to create fake news, misleading content, or even impersonate individuals. OpenAI has taken steps to mitigate these risks, such as releasing only a limited version of the model to the public and partnering with organizations to develop responsible AI practices.</p><p>Overall, Chat GPT represents a significant advance in natural language processing and has the potential to revolutionize the way we communicate with machines. As technology continues to evolve, it will be essential to use it responsibly and ethically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d588be276952" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Optimize React Native App Size: two steps]]></title>
            <link>https://rajprajapat-7.medium.com/optimize-react-native-app-size-two-steps-c9a6b536e29a?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9a6b536e29a</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[build]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[optimization]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Mon, 18 Jan 2021 07:23:16 GMT</pubDate>
            <atom:updated>2021-01-18T07:23:16.654Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello Friends,</p><p>Today I’m showing you the two easiest steps to optimize your react native app build with expo or without expo.</p><p><strong>STEP 1:</strong></p><p>if you are not using expo <strong>skip Step 1</strong></p><p>a) Create a new folder.</p><p>b) run command</p><blockquote>react-native init appname</blockquote><p>if the above command not work <a href="https://stackoverflow.com/questions/37189081/react-native-command-not-found">https://stackoverflow.com/questions/37189081/react-native-command-not-found</a></p><p>c) Put/Copy your src folder &amp; App.js in these new folder make sure you update package.json dependencies.</p><p>d) run command:</p><blockquote>npm i or yarn install</blockquote><p>STEP 2:</p><p>open file #android\app\build.gradle</p><p>Change</p><p>def enableSeparateBuildPerCPUArchitecture = true</p><p>by making this true you create two separate APKs instead of one:</p><p>* - An APK that only works on ARM devices</p><p>* - An APK that only works on x86 devices</p><p>&amp;</p><p>def enableProguardInReleaseBuilds = true</p><p>by making this true it will Run Proguard to shrink the Java bytecode in release builds.</p><p>Done!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9a6b536e29a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Weather App: Progressive Web App]]></title>
            <link>https://rajprajapat-7.medium.com/weather-app-progressive-web-app-4c43fb284a67?source=rss-97e8bd5152fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c43fb284a67</guid>
            <category><![CDATA[progressive-web-app]]></category>
            <category><![CDATA[weather-apps]]></category>
            <category><![CDATA[weather]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Raj Prajapat]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 17:54:35 GMT</pubDate>
            <atom:updated>2020-11-25T18:01:45.968Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Weather App: Progressive Web App</h3><p>Hello friends,</p><p>Today I’m going to show you How to create a <strong>Progressive Web APP </strong>with <strong>React JS.</strong></p><p>Today,<strong> </strong>We are creating a Weather App first let&#39;s see how its looks like after completion <a href="https://weather-app-raj.netlify.app/">https://weather-app-raj.netlify.app/</a></p><p>You can see all the code here <a href="https://github.com/rajprajapat7/weather-app">https://github.com/rajprajapat7/weather-app</a></p><p>Lets Start Coding</p><p>First, we have to create a react app</p><pre>npx create-react-app weather-app<br>cd weather-app</pre><p>To get weather data we use RapidApi (it is free of cost)</p><p><a href="https://rapidapi.com/community/api/open-weather-map">https://rapidapi.com/community/api/open-weather-map</a></p><p>Create a Text Box which takes input for the city name. In the demo, I’m using a material-ui autocomplete-combo box. It is your choice how you are selecting the city.</p><p>After selecting the city you just need to call API with authorized rapidapi-key you will get this on the link given above.</p><p>You will get JSON data, render this data as per your choice.</p><p>Let&#39;s Come to our main focus point: Progressive web APP.</p><p>So First What is Progressive web APP?</p><p>In the simple term, We can say. An Application built with web technologies like HTML, CSS, JS &amp; intended to work on any platform that uses a standards-compliant browser, including both (Mobile or Desktop).</p><p>Open up Chrome Dev Tools in your browser and toggle to the <strong>Lighthouse </strong>tab.</p><p>If there is no tab like a lighthouse you can get chrome extension easily from chrome store</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2rF0UWKgptVbeLKbTPeXg.png" /></figure><p>Select option progressive web App and mobile and Generate Report.</p><p>Now we need to create a Service worker it will help load your application from the cache if slow network at mobile.</p><p>Create a new <strong>worker.js</strong> file in the public folder (<strong>public/worker.js</strong>) and add the following code:</p><pre>var CACHE_NAME = &#39;weather-app&#39;;</pre><pre>var urlsToCache = [</pre><pre>&#39;/&#39;,</pre><pre>&#39;/completed&#39;</pre><pre>];</pre><pre>// Install a service worker</pre><pre>this.addEventListener(&#39;install&#39;, event =&gt; {</pre><pre>// Perform install steps</pre><pre>event.waitUntil(</pre><pre>caches.open(CACHE_NAME)</pre><pre>.then(function(cache) {</pre><pre>console.log(&#39;Opened cache&#39;);</pre><pre>return cache.addAll(urlsToCache);</pre><pre>})</pre><pre>);</pre><pre>});</pre><pre>// Cache and return requests</pre><pre>this.addEventListener(&#39;fetch&#39;, event =&gt; {</pre><pre>event.respondWith(</pre><pre>caches.match(event.request)</pre><pre>.then(function(response) {</pre><pre>// Cache hit - return response</pre><pre>if (response) {</pre><pre>return response;</pre><pre>}</pre><pre>return fetch(event.request);</pre><pre>}</pre><pre>)</pre><pre>);</pre><pre>});</pre><pre>// Update a service worker</pre><pre>this.addEventListener(&#39;activate&#39;, event =&gt; {</pre><pre>var cacheWhitelist = [&#39;pwa-weather-app&#39;];</pre><pre>event.waitUntil(</pre><pre>caches.keys().then(cacheNames =&gt; {</pre><pre>return Promise.all(</pre><pre>cacheNames.map(cacheName =&gt; {</pre><pre>if (cacheWhitelist.indexOf(cacheName) === -1) {</pre><pre>return caches.delete(cacheName);</pre><pre>}</pre><pre>})</pre><pre>);</pre><pre>})</pre><pre>);</pre><pre>});</pre><p>Also, create a file <strong>(src/serviceWorker.js) </strong>and add the following code:</p><pre>// This optional code is used to register a service worker.</pre><pre>// register() is not called by default.</pre><pre>// This lets the app load faster on subsequent visits in production, and gives</pre><pre>// it offline capabilities. However, it also means that developers (and users)</pre><pre>// will only see deployed updates on subsequent visits to a page, after all the</pre><pre>// existing tabs open on the page have been closed, since previously cached</pre><pre>// resources are updated in the background.</pre><pre>// To learn more about the benefits of this model and instructions on how to</pre><pre>// opt-in, read http://bit.ly/CRA-PWA</pre><pre>const isLocalhost = Boolean(</pre><pre>window.location.hostname === &#39;localhost&#39; ||</pre><pre>// [::1] is the IPv6 localhost address.</pre><pre>window.location.hostname === &#39;[::1]&#39; ||</pre><pre>// 127.0.0.1/8 is considered localhost for IPv4.</pre><pre>window.location.hostname.match(</pre><pre>/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/</pre><pre>)</pre><pre>);</pre><pre>export function register(config) {</pre><pre>if (process.env.NODE_ENV === &#39;production&#39; &amp;&amp; &#39;serviceWorker&#39; in navigator) {</pre><pre>// The URL constructor is available in all browsers that support SW.</pre><pre>const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);</pre><pre>if (publicUrl.origin !== window.location.origin) {</pre><pre>// Our service worker won&#39;t work if PUBLIC_URL is on a different origin</pre><pre>// from what our page is served on. This might happen if a CDN is used to</pre><pre>// serve assets; see https://github.com/facebook/create-react-app/issues/2374</pre><pre>return;</pre><pre>}</pre><pre>window.addEventListener(&#39;load&#39;, () =&gt; {</pre><pre>const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;</pre><pre>if (isLocalhost) {</pre><pre>// This is running on localhost. Let&#39;s check if a service worker still exists or not.</pre><pre>checkValidServiceWorker(swUrl, config);</pre><pre>// Add some additional logging to localhost, pointing developers to the</pre><pre>// service worker/PWA documentation.</pre><pre>navigator.serviceWorker.ready.then(() =&gt; {</pre><pre>console.log(</pre><pre>&#39;This web app is being served cache-first by a service &#39; +</pre><pre>&#39;worker. To learn more, visit http://bit.ly/CRA-PWA&#39;</pre><pre>);</pre><pre>});</pre><pre>} else {</pre><pre>// Is not localhost. Just register service worker</pre><pre>registerValidSW(swUrl, config);</pre><pre>}</pre><pre>});</pre><pre>}</pre><pre>}</pre><pre>function registerValidSW(swUrl, config) {</pre><pre>navigator.serviceWorker</pre><pre>.register(swUrl)</pre><pre>.then(registration =&gt; {</pre><pre>registration.onupdatefound = () =&gt; {</pre><pre>const installingWorker = registration.installing;</pre><pre>if (installingWorker == null) {</pre><pre>return;</pre><pre>}</pre><pre>installingWorker.onstatechange = () =&gt; {</pre><pre>if (installingWorker.state === &#39;installed&#39;) {</pre><pre>if (navigator.serviceWorker.controller) {</pre><pre>// At this point, the updated precached content has been fetched,</pre><pre>// but the previous service worker will still serve the older</pre><pre>// content until all client tabs are closed.</pre><pre>console.log(</pre><pre>&#39;New content is available and will be used when all &#39; +</pre><pre>&#39;tabs for this page are closed. See http://bit.ly/CRA-PWA.&#39;</pre><pre>);</pre><pre>// Execute callback</pre><pre>if (config &amp;&amp; config.onUpdate) {</pre><pre>config.onUpdate(registration);</pre><pre>}</pre><pre>} else {</pre><pre>// At this point, everything has been precached.</pre><pre>// It&#39;s the perfect time to display a</pre><pre>// &quot;Content is cached for offline use.&quot; message.</pre><pre>console.log(&#39;Content is cached for offline use.&#39;);</pre><pre>// Execute callback</pre><pre>if (config &amp;&amp; config.onSuccess) {</pre><pre>config.onSuccess(registration);</pre><pre>}</pre><pre>}</pre><pre>}</pre><pre>};</pre><pre>};</pre><pre>})</pre><pre>.catch(error =&gt; {</pre><pre>console.error(&#39;Error during service worker registration:&#39;, error);</pre><pre>});</pre><pre>}</pre><pre>function checkValidServiceWorker(swUrl, config) {</pre><pre>// Check if the service worker can be found. If it can&#39;t reload the page.</pre><pre>fetch(swUrl)</pre><pre>.then(response =&gt; {</pre><pre>// Ensure service worker exists, and that we really are getting a JS file.</pre><pre>const contentType = response.headers.get(&#39;content-type&#39;);</pre><pre>if (</pre><pre>response.status === 404 ||</pre><pre>(contentType != null &amp;&amp; contentType.indexOf(&#39;javascript&#39;) === -1)</pre><pre>) {</pre><pre>// No service worker found. Probably a different app. Reload the page.</pre><pre>navigator.serviceWorker.ready.then(registration =&gt; {</pre><pre>registration.unregister().then(() =&gt; {</pre><pre>window.location.reload();</pre><pre>});</pre><pre>});</pre><pre>} else {</pre><pre>// Service worker found. Proceed as normal.</pre><pre>registerValidSW(swUrl, config);</pre><pre>}</pre><pre>})</pre><pre>.catch(() =&gt; {</pre><pre>console.log(</pre><pre>&#39;No internet connection found. App is running in offline mode.&#39;</pre><pre>);</pre><pre>});</pre><pre>}</pre><pre>export function unregister() {</pre><pre>if (&#39;serviceWorker&#39; in navigator) {</pre><pre>navigator.serviceWorker.ready.then(registration =&gt; {</pre><pre>registration.unregister();</pre><pre>});</pre><pre>}</pre><pre>}</pre><p>Then Update <strong>(src/Index.js) </strong>and add this code:</p><pre>import * as serviceWorker from &#39;./serviceWorker&#39;;</pre><pre>serviceWorker.register();</pre><p>Then Update (public/index.html) Add this code in HTML body</p><pre>&lt;script&gt;</pre><pre>if (&#39;serviceWorker&#39; in navigator) {</pre><pre>window.addEventListener(&#39;load&#39;, function() {</pre><pre>navigator.serviceWorker.register(&#39;worker.js&#39;).then(function(registration) {</pre><pre>console.log(&#39;Worker registration successful&#39;, registration.scope);</pre><pre>}, function(err) {</pre><pre>console.log(&#39;Worker registration failed&#39;, err);</pre><pre>}).catch(function(err) {</pre><pre>console.log(err);</pre><pre>});</pre><pre>});</pre><pre>} else {</pre><pre>console.log(&#39;Service Worker is not supported by browser.&#39;);</pre><pre>}</pre><pre>&lt;/script&gt;</pre><p>The last thing create a new <strong>images</strong> folder in the public folder (<strong>public/images</strong>). Add the Splash icon image to the folder (named“logo<strong><em>512.png</em></strong>”). To handle its configuration you can see <strong>manifest.json </strong>but you don’t need to worry about it. It will automatically manged. Image size should be 512*512.</p><pre>{</pre><pre>&quot;src&quot;: &quot;logo512.png&quot;,</pre><pre>&quot;type&quot;: &quot;image/png&quot;,</pre><pre>&quot;sizes&quot;: &quot;512x512&quot;</pre><pre>}</pre><p><strong>menifest.json </strong>having code something like this</p><p><strong>Done: Just Restart an app turn of the internet and reload you see the an working app page without internet.</strong></p><p>Re-Generate Lighthouse report. May be you will found error for HTTPS connection but don’t think about it now it will automatically removed then we deploy and add SSL.</p><p>Congratulations, You have created a Working Progressive React Weather app!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c43fb284a67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>