<?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[Fnplus Club - Medium]]></title>
        <description><![CDATA[Fnplus’s mission is to create a learning experience that is fun, fruitful and rewarding. - Medium]]></description>
        <link>https://medium.com/fnplus?source=rss----dde7f48b4b5a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Fnplus Club - Medium</title>
            <link>https://medium.com/fnplus?source=rss----dde7f48b4b5a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 08:21:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/fnplus" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[5 Simple Tips to Survive your first Hackathon in India]]></title>
            <link>https://medium.com/fnplus/5-simple-tips-to-survive-your-first-hackathon-in-india-f92f5d750739?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/f92f5d750739</guid>
            <category><![CDATA[packing]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[presentation-tips]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[tips]]></category>
            <dc:creator><![CDATA[Abhishek Uniyal]]></dc:creator>
            <pubDate>Fri, 06 Mar 2026 05:16:44 GMT</pubDate>
            <atom:updated>2026-03-06T05:16:45.826Z</atom:updated>
            <content:encoded><![CDATA[<p>P.S: It’s not the “Hacking” kind of Hacking</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*b92FO6qb4O2z7A84I0pS9Q.jpeg" /></figure><p>For the past couple of years, the world has seen a lot of startups coming up after successfully winning Hackathons, and it’s time to make history repeat itself.</p><p>There is a first time for everything. With the right preparation, you can make your hackathon experience more fun and productive. Whether we are building a website, mobile app, or even a hardware hack, the goal is to start from scratch and end with a working prototype. Generally, these events last from 24–48 or even 72 hours and are filled with food, caffeine, prizes, and more caffeine. After time runs out, teams demo what they’ve built and competed for prizes. Although I didn’t give you an official definition, here it is:</p><p><em>“The word </em><strong><em>hackathon</em></strong><em> is a portmanteau of the words </em><strong><em>hack</em></strong><em> and </em><strong><em>marathon</em></strong><em>, where the </em><strong><em>hack</em></strong><em> is used in the sense of playful, exploratory programming, not its alternate meaning as a reference to computer crime.” — Wikipedia.</em></p><p>Here are some tips to get you started:</p><ol><li><strong>Pack like a Geek</strong></li></ol><p>Make sure you take everything you need, including your laptop, power adapters, power bank, pen drive, etc. Although internet access is almost always available in a hackathon, it is always a good idea to have a backup ready, just in case. FYI: Carrying an extra t-shirt is always a good idea, probably more than anything else on the list.</p><p>2. <strong>Keep some Toiletries Handy</strong></p><p>Although big hackathons provide all the restroom facilities, it may not be the same for small enterprises or your local colleges. It’s a good idea to carry a Hand Wash, Paper Soaps, Face Wash, Deodorant, etc. Keep in mind that keeping your personal hygiene would help in concentrating on your work while feeling fresh.</p><p>3.<strong> Reach the venue on time and network</strong></p><p>Being on time not only makes you look professional but it also gives you the chance to talk to everyone at the venue. Once the Hackathon starts, almost everyone will be too busy with their projects. The best time to network is at the beginning of the Hackathon. Use the opportunity to introduce yourself and connect with people. If you have not formed your team, try to get people on board. Talk to the organizers and sponsors to get some tips. Many hackathons also have company-sponsored booths, fun activities, and workshops.</p><p>4. <strong>Do your homework</strong></p><p>Start by brushing up your programming skills. Go through APIs, open-source libraries, and Hackathon themes, if any. Check out if there are any existing templates that you can use. Practice your introductory pitch at home. Jot down ideas that you can use. Bookmark websites that offer free templates and prototyping tools. Of course, there are some hackathons that provide impromptu topics, but it shouldn’t stop you from doing your homework.</p><p>5. <strong>Present like a boss!</strong></p><p>Hackathons are all about how you present your idea to judges. Yes, it matters what technologies you used, but it’s also about how YOU SEE your idea to be implemented in the wild. The team who can make the judges understand how disruptive or innovative your idea has a great opportunity to win.</p><h3><strong>Happy Hacking!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f92f5d750739" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/5-simple-tips-to-survive-your-first-hackathon-in-india-f92f5d750739">5 Simple Tips to Survive your first Hackathon in India</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Do You Trust AI?]]></title>
            <link>https://medium.com/fnplus/do-you-own-your-data-anymore-cf734a063988?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/cf734a063988</guid>
            <category><![CDATA[offline-first]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[social-media]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[data-privacy]]></category>
            <dc:creator><![CDATA[Adarsh Kumar]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 08:15:15 GMT</pubDate>
            <atom:updated>2025-09-21T10:01:51.188Z</atom:updated>
            <content:encoded><![CDATA[<h3>Do You Trust AI ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0rnVf48OL-GuIWeonbZj3Q.png" /></figure><p>Do you care about your privacy? Do you have digital images or documents you want to safeguard; things you’d hate to lose or have exposed?</p><p><em>If yes, then this is for you.</em></p><p><a href="https://medium.com/@adarshrise20/cf734a063988?source=friends_link&amp;sk=188a234bec425d7c3857c6e8a25ab7cb"><em>Free Access Link to This.</em></a></p><h4>The Problem We Live With</h4><p>Every day, countless people trust their most personal and professional files to online storage: photos, contracts, manuscripts, reports. They upload them to cloud services like Dropbox, Google Drive, and others, believing these platforms will keep everything safe.</p><p>But what happens when that trust breaks?</p><ul><li>In 2012, Dropbox suffered a breach in which <strong>68 million user credentials</strong> (email addresses + hashed and salted passwords) were <a href="https://thehackernews.com/2016/10/dropbox-password-hack.html">exposed</a>.</li><li>In 2023, A <a href="https://www.a-tm.co.jp/en/news/44383/">misconfigured</a> Google Drive links <strong>exposed sensitive</strong> corporate files to the public.</li><li>In 2024, Dropbox Sign (their e‑signature/document signing service) disclosed a <a href="https://thehackernews.com/2024/05/dropbox-discloses-breach-of-digital.html">security incident</a> where a <strong>threat actor accessed</strong> customer data like usernames, emails, phone numbers, authentication tokens, etc.</li></ul><p>These aren’t just distant stories; they’re warnings. Because once data is in the cloud, you lose a lot of control. Even if it’s “encrypted,” you often don’t hold the keys. Even if the service promises safety, policies and access change over time.</p><h4>What About AI?</h4><p>We’re excited about what AI can do like faster writing, better search, creative image generation. But almost all AI systems need <em>data</em>. A lot of data. Often, <strong>your data</strong>.</p><p>Do you want your private work, diary‑style notes, or client documents used as training material without your explicit control?</p><ul><li>Anthropic recently <a href="https://www.theguardian.com/technology/2025/sep/05/anthropic-settlement-ai-book-lawsuit"><em>agreed to a settlement</em> </a>with authors who claimed their books were used to train AI <strong>without proper compensation</strong>.</li><li>Companies like Adobe have also <a href="https://umarcomm.umn.edu/blog/2024/06/11/what-do-adobes-new-rules-about-privacy-mean-creatives">updated privacy policies</a>, giving themselves more <strong>rights over user content</strong> / data usage.</li></ul><p>These are signs that just trusting online services or cloud providers to respect your data forever is risky.</p><p>If you’ve felt uneasy about trusting cloud services, or worried about your data being used or accessed without your consent; you’re not alone. And there can be a better way.</p><h4>Things Don’t Have to Be This Way</h4><p>Remember software 30‑odd years ago? You purchase a activation license. Installed the software. The data lived on your machine. No constant uploads. No big tech scanning everything. That world wasn’t perfect, but it gave you control. It meant your data didn’t move unless <em>you</em> moved it.</p><p>What if that kind of control was available today, made for 2025, not 1995? A tool that gives you modern conveniences <em>minus</em> the loss of privacy.</p><h4>Why A New Approach Matters, Both for Work and Life</h4><p>Imagine this:</p><ul><li><em>At work</em>: You’re dealing with confidential documents like HR files, design drafts, contracts. You want them locked down. No chance they leak via third‑party servers or get exposed if someone hacks the cloud.</li><li><em>At home or personally</em>: You store photos, medical records, personal journals, and you want them private; not feeding into some AI model, not at risk if a cloud provider changes policy, not accessible to prying eyes.</li></ul><p>Imagine bringing that trust back; today’s power, yesterday’s assurance.</p><p>What you need is <em>one unified tool</em> that respects both sides. A toolkit that offers:</p><ul><li><strong>Offline Functionality</strong> <br> Runs 100 percent on your device. No network, no cloud, no surprises.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkwaqqyF6tO7iOn-YC3wkg.png" /></figure><ul><li><strong>Digital Asset Protection</strong> <br> 256-bit encryption for your photos, PDFs, and documents that are unreadable without your key, that you <strong>Own</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZDKlTSm1quVKufMOrAEweQ.png" /></figure><ul><li><strong>Secure Sharing via QR Codes</strong> <br> Secure sharing methods that don’t force you to rely on third‑party cloud interfaces e.g. sharing via trusted QR codes.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1uPKss6C3AEyVW3te39vg.png" /></figure><ul><li><strong>Private Notepad</strong> <br> A secure private journal or draft workspace that never automatically syncing to the internet.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_MgjA51lzeTo_nWYxiHIcQ.png" /></figure><ul><li><strong>Username &amp; Password Generator</strong> <br> One-click creation of unique, strong credentials stored only on your device.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tm9GfF2NKJt6dyqza7DI_w.png" /></figure><h4>There Is A Product That Fits</h4><p>Luckily, there <em>is</em> a product (or there <strong>can be</strong>) that meets both your professional and personal needs; whether you’re a writer, artist, designer, lawyer, creator, or just someone who cares about safeguarding their digital life.</p><p><a href="https://protectaim.com/">ProtectAim</a> isn’t just secure storage. It’s a full security tool‑kit:</p><ul><li>Secure, encrypted storage on your Device.</li><li>Secure sharing without exposure.</li><li>Tools to protect your identity and credentials.</li><li>Work offline, maintain control, avoid relinquishing your data to policies or servers.</li></ul><p>You don’t have to choose between convenience and control. You deserve both. Because in 2025, <strong>privacy isn’t just about hiding things. </strong>It’s about who gets to decide, always.</p><p>Let’s use tools that respect <em>you</em>.</p><p><strong><em>Disclaimer:</em></strong><em> I am directly involved in the development of </em><strong><em>ProtectAim</em></strong><em> — a tool created with the clear Aim to protect digital privacy and security, reflecting my ongoing commitment to these principles.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf734a063988" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/do-you-own-your-data-anymore-cf734a063988">Do You Trust AI?</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event Propagation in JavaScript]]></title>
            <link>https://medium.com/fnplus/event-propagation-in-javascript-79b0e4c73de8?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/79b0e4c73de8</guid>
            <category><![CDATA[event-propagation]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[event-listener]]></category>
            <dc:creator><![CDATA[Vaidhyanathan S M]]></dc:creator>
            <pubDate>Thu, 04 Aug 2022 15:20:44 GMT</pubDate>
            <atom:updated>2022-08-04T15:20:44.325Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we will look into Event Propagation in JavaScript. It is one of the most important concepts to understand in JavaScript when working with Event listeners.</p><h4>Introduction</h4><p>Event propagation refers to how an event travels through the Document Object Model. It can be thought of as electricity passing through a wire until it reaches its destination.</p><p>We are aware that DOM is full of nodes and when referring to event propagation, the event needs to pass through every node present in the DOM until it reaches the end or is forcibly stopped.</p><p>Event Propagation consists of <strong><em>3 phases</em></strong> when dealing with event listeners:</p><ol><li>Event Capturing</li><li>Target</li><li>Event Bubbling</li></ol><p>Event Capturing phase starts from the root and travels all the way to the target and once it’s reached the target, it goes into the bubbling phase which travels back up from the target to the root.</p><p>Let us consider a simple example. First of all, create an <strong>index.html</strong> file as shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c01d775a373289042174cb93f469f232/href">https://medium.com/media/c01d775a373289042174cb93f469f232/href</a></iframe><p>The structure simply consists of a div(div2) which is a parent to a div(div1) that contains a button with the text “Click” as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3PmBajLi3UDRt4jQ9yOMwg.png" /></figure><p>Now let’s add different event listeners to understand the different phases of event propagation. For this, let’s create a new file called <strong>index.js</strong> as shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/52e7c9e607f5711f8d230e7973e85a1a/href">https://medium.com/media/52e7c9e607f5711f8d230e7973e85a1a/href</a></iframe><p>As you can see above, I have added event listeners to the window object, document object, the two divs and the button. Also, there is a third parameter added to the addEventListener() method, which is a boolean value that specifies which phase you want to go through. By default, that parameter is set as <strong><em>false</em></strong> which means it’ll go through the event bubbling phase. If it is set as <strong><em>true</em></strong>, it’ll go through the event capture phase.</p><p>Now, when you click on the button, you can see the following on the console. Since this is the Event capturing phase, it starts from the <strong>window</strong> and goes down and notifies all the other elements it comes across, all the way down to the target, which in this case is the button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*MC_EYficwPx7JRNV6V8Fmg.png" /><figcaption>Event Capturing</figcaption></figure><p>How do we trigger the third phase i.e., Event bubbling? To do that, change the third parameter of the addEventListener() method to <strong>false</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4f170ba25d554f7c6ef1a7067dc5410b/href">https://medium.com/media/4f170ba25d554f7c6ef1a7067dc5410b/href</a></iframe><p>Now, you can see that it started from the button, then it’s going to div1 and then to div2 and so on bubbling upwards until it reaches the window object.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*3dDqAF_4RZOgJLejLQ2UoQ.png" /><figcaption>Event Bubbling</figcaption></figure><p>We come to the end of this tutorial. This tutorial is heavily inspired by the video created by <a href="https://www.youtube.com/watch?v=5fb2aPlgoys">CodeLab</a>. Thanks for reading! Happy Coding!</p><p>If you have any queries please post them in the <strong>comment</strong> section below. Connect with me on <a href="https://www.linkedin.com/in/vaidhyanathansm/">LinkedIn</a>. Also, if you want to look at my fantastic collection of apps developed, don’t forget to check <a href="https://play.google.com/store/apps/developer?id=Programmers+Gateway">Google Play Store</a>.</p><p>Know more about me <a href="http://vaidhyanathansm.netlify.app/">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79b0e4c73de8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/event-propagation-in-javascript-79b0e4c73de8">Event Propagation in JavaScript</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Add Scroll Effects In Your Website]]></title>
            <link>https://medium.com/fnplus/how-to-add-scroll-effects-in-your-website-d2dad010f275?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/d2dad010f275</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Aritra]]></dc:creator>
            <pubDate>Sun, 23 May 2021 11:38:05 GMT</pubDate>
            <atom:updated>2021-05-16T14:38:57.399Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we will discuss about how to add scroll effects in your website.</p><p>If You have designed a website or a portfolio for yourself and you are willing to give scroll effects like fade in or fade out kind of stuff then you are at the right place, we will be dicsussing about how to add scroll effects in your website.</p><p>First of all click on this link and visit this website:</p><p><a href="https://michalsnik.github.io/aos/">AOS</a></p><p>In this website you must have seen a lot of effects like fade,flip,zoom,etc. Okay now scroll down to that website and you will see something written like this:</p><p>CDN Sources</p><p>CSS</p><p>&lt;link href=”https://unpkg.com/aos@2.3.1/dist/aos.css&quot; rel=”stylesheet”&gt;</p><p>JS</p><p>&lt;script src=”https://unpkg.com/aos@2.3.1/dist/aos.js&quot;&gt;&lt;/script&gt;</p><p>Initialize AOS</p><p>&lt;script&gt; AOS.init(); &lt;/script&gt;</p><p>You need to add the CSS link at the top of your HTML file means at the header.</p><p>Then you need to add the JS link at the extreme bottom, means where your code ends and just below it you need to add the AOS script tag.</p><p>After adding all this at each section of your code you need to add an extra &lt;div&gt;&lt;/div&gt; like this:</p><p>&lt;div data-aos=”fade-down” data-aos-duration=”1000&quot;&gt;</p><p>&lt;div class=”d-flex flex-wrap align-items-center”&gt;</p><p>&lt;div class=”bgimage”&gt;&lt;/div&gt;</p><p>&lt;div class=”col-md-5&quot;&gt;</p><p>&lt;h1 style=”color:orangered”&gt;Stay in.&lt;span style=”color: orchid; font-size:30px;”&gt;Stay Safe.&lt;/span&gt;&lt;/h1&gt;</p><p>&lt;br/&gt;</p><p>&lt;br/&gt;</p><p>&lt;p&gt;Welcome To The World Of Health Care. Here You Can Get All The Details Related To Covid &lt;br/&gt; Please Don’t Forget to Wear Double Mask and carry Hand Sanitizers with you whenever you are going out. &lt;/p&gt;</p><p>&lt;/div&gt;</p><p>&lt;/div&gt;</p><p>&lt;/div&gt;</p><p>And don’t forget to add the data-aos-duration=”1000&quot;.</p><p>You can also visit the website (link mentioned above) and check out various other scroll effects and add the respective &lt;div&gt;&lt;/div&gt; required for that scroll effect.</p><p>So thats’s it, it was as simple as that. Now you can add any kind of scroll affects in your website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2dad010f275" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/how-to-add-scroll-effects-in-your-website-d2dad010f275">How To Add Scroll Effects In Your Website</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey as a Computer Science Engineer]]></title>
            <link>https://medium.com/fnplus/my-journey-as-a-computer-science-engineer-79348d3b6a22?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/79348d3b6a22</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Vaidhyanathan S M]]></dc:creator>
            <pubDate>Sun, 22 Nov 2020 03:27:37 GMT</pubDate>
            <atom:updated>2021-06-06T17:11:30.770Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I am going to share my journey as a <strong>Computer Science Engineer</strong>. The aim of this article is to give an idea to you about how the life of a typical Computer Science and Engineering student would be and how can we take actions so as to make the journey more interesting and productive towards achieving our goals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jvBehwDCO7mdrkLjzr8E5Q.jpeg" /></figure><h4>My First Computer 💻</h4><p>I didn’t know much about computers until I got one when I was in 10th grade. It was in the year 2014. I used it for general purposes such as browsing, preparing PPTs, etc. Not having a proper foundation in Computer Science was a reason for my struggle 😔 during the initial days of my 11th and 12th grade. (I will talk in detail about why I took CS Stream in my 11th grade below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*anuvVUBkrJJrRmD6QOM8xA.gif" /><figcaption>Courtesy: Tenor</figcaption></figure><h4>The Inevitable Dilemma</h4><p>I completed my 10th grade with a pretty good CGPA and the next big thing was to decide the stream that I need to opt for in 11th grade. It was really a tough situation. I was sure that I would opt for the science stream because science was my favorite subject. I was in a dilemma to choose between PCM with Computer Science or PCM with Biology. I think everyone would definitely be able to relate to the cause of this situation. Yes! The cause was relatives. Initially, I had set up my mind to go for Biology. My aim was to become a doctor. My parents were really supportive. But, my parents received various comments from my relatives about the cost that they would need to incur if I pursued medicine. At last, after a lot of discussions, I decided to go for Computer Science.</p><h4>The taste of school-level Computer Science <a href="https://emojipedia.org/man-technologist/">👨‍💻</a></h4><p>The initial days of the 11th grade were really tough for me. I struggled a bit in understanding the fundamentals. Fortunately, the CS teacher was really supportive and made sure that students understand and study and don’t just mug up things. The first programming language that we learned was C++. I started loving the language in a few months. I started creating some small projects to get a better understanding and also began to explore various things apart from what was being taught in the class. I was successfully able to submit my final project for 12th grade, in which I created a Payroll Management System. Also, I wasn’t aware of IIT-JEE until I entered the mid-semester of my 11th grade. It was too late for me to join for coaching. But, my mom insisted to join a crash course for a period of one month in an institute in Chennai. I gave the JEE (Mains) exam. After the results were announced, I realized that if I had put even more effort and had joined for coaching during the start of 11th grade itself, I would have definitely qualified. I scored well in a sense that would justify the time and energy spent on the coaching. But was still low to get qualified for advanced, as there is something called the “Caste Reservation System” still prevalent in the society.</p><h4>Yet another critical situation</h4><p>I passed my 12th grade with a good percentage and secured 4th rank across all the streams in my school. It was a celebrating moment for us 🥳. Also, it was a critical moment for us to decide which college should I be admitted to. My cut-off was fairly good. I was determined to take up Computer Science as my field of study. We applied for Anna University counseling and after the process, I got an offer to join a reputed college in Chennai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*yP2pXkNx5rQtGnh9uxBFRg.jpeg" /><figcaption>Courtesy: Reddit</figcaption></figure><h4>College Diaries 📘</h4><p>I entered my first year of college in the month of August 2017. It was a very different experience and after a few days, I got adjusted to the environment. We were taught Python during our first semester. I fell in love with Python and the faculty assigned to our class was simply great! I used to clarify all my doubts and became proficient with Python (Intermediate). Whenever I had some doubts, I also used YouTube which proved to be an excellent resource. I also started exploring many other technologies such as Artificial Intelligence, Machine Learning, and Quantum Computing. I created accounts on <a href="https://www.linkedin.com/in/vaidhyanathansm/">LinkedIn</a> and <a href="https://github.com/smv1999">GitHub</a> and was active on those platforms. Computer Science had had so much impact on me that I started exploring various different fields and also started making side-projects by then. These side-projects helped me immensely during placements as they posed as a plus factor. I also started to practice on platforms such as <a href="https://www.hackerrank.com/vaidhyanathan_sm">HackerRank</a> and it really helped me to have consistent touch in programming. I will share all the resources which were really helpful in improving my knowledge and specifically prepare for my interviews at the end of this article 👇.</p><p>So, moving on, 1st year went well and I had the satisfaction that I didn’t waste much time and used the time productively. I eventually started developing an interest in the field of Android Application Development after attending an Android Workshop conducted in college. I started learning in-depth about android using various online resources and published my very first android app onto the <a href="https://play.google.com/store/apps/details?id=com.programmersgateway.sm1999.chatterbot">Google Play Store</a>. I also got various internship opportunities which helped me to gain industrial exposure and work in a real-world software development environment. After spending almost a year in Competitive Programming, I started focusing more on Development, which at a later stage had serious consequences during my interview preparation.</p><p>Read <a href="https://medium.com/@vaidhyanathan.sm/projects-vs-competitive-programming-f0c997486aeb">this</a> article in which I have explained in detail the trade-off between these two (Projects Vs Competitive Programming).</p><p>Three years went by, I entered into my fourth year. Placement season began and I was in a state of full anxiety about what is gonna happen. My parents were in full hope that I would get placed early and would be on the list of first placed students. But, that didn’t happen. I struggled a lot and got rejected by many companies. Then I started putting a lot of effort and took a leave from social media as it was a major source of distraction. I managed to grab 3 offers from reputed organizations. It was indeed a great experience. Now you might think, “why did this guy end his story of placement journey so shortly ?“ Wait. Probably I think that would be covered in another article in detail! 😉</p><h4>Mistakes and Learnings</h4><p>I highlighted some of the mistakes that I did during this journey. Of course, I learned a lot from those mistakes and tried to improve myself to a large extent. I want to share some tips and some mistakes that you must avoid.</p><ol><li>Start early, you will enjoy the journey. You will get a chance to make mistakes early so that you can improve yourself in a better manner.</li><li>Make friends only with those people that don’t affect your productivity. Don’t be around those people who spread hatred and negativity.</li><li>There is only one formula that you need to keep in your mind.</li></ol><blockquote>If you grind yourself today (work hard towards your goal), you will be happy tomorrow.</blockquote><blockquote>But if you refuse to work hard and yearn for transient happiness, you will suffer for your lifetime.</blockquote><p>My mom’s friend used to say this. It had a great impact on me. These are strong words. This is the ultimate truth of life and the way in which we can perceive what is success in life. 💯</p><p>4. Be good. Do good. But don’t be too good. Because, if you are too good, people will treat you as a doormat.</p><p>Some of the aforementioned points might seem silly. But they will have such a powerful impact on your life.</p><h4>Some other important tips:</h4><ol><li>Maintain a great LinkedIn and GitHub profile</li><li>Try to keep a balance between Competitive Programming and Project Development.</li><li>Be consistent. Consistency is the only key to master Data Structures and Algorithms.</li><li>Start investing some time in contributing to Open Source projects on GitHub.</li></ol><h4>Learning Resources that I used</h4><ol><li><a href="https://www.hackerrank.com/">HackerRank</a> (Recommended for Beginners)</li><li><a href="https://leetcode.com/smv1999/">LeetCode</a> (Interview Preparation)</li><li><a href="https://auth.geeksforgeeks.org/user/vaidhyanathansm/practice/">GeeksforGeeks</a> (Interview Preparation)</li><li><a href="https://www.sololearn.com/Profile/6239916">Sololearn</a> (To learn a new programming language / Technology)</li><li>List of YouTube channels (No promotion):</li></ol><p>5.1 <a href="https://www.youtube.com/channel/UCkw4JCwteGrDHIsyIIKo4tQ">edureka!</a></p><p>5.2 <a href="https://www.youtube.com/channel/UC59K-uG2A5ogwIrHw4bmlEg">Telusko</a></p><p>5.3 <a href="https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ">freeCodeCamp.org</a></p><p>5.4 <a href="https://www.youtube.com/channel/UC4JX40jDee_tINbkjycV4Sg">Tech With Tim</a></p><p>5.5 <a href="https://www.youtube.com/channel/UC9-y-6csu5WGm29I7JiwpnA">Computerphile</a></p><p>5.6 <a href="https://www.youtube.com/channel/UCRPMAqdtSgd0Ipeef7iFsKw">Gaurav Sen</a></p><p>5.7 <a href="https://www.youtube.com/channel/UC9fDC_eBh9e_bogw87DbGKQ">Rachit Jain</a></p><p>As you can see I suffered a bit due to a lack of guidance and support. There were only a few seniors who guided me on this journey. So, please network with a lot of people especially on LinkedIn. So, this was all about my journey as a Computer Science Engineer. I hope you liked it! Dedicated to all the freshers, sophomores, and Juniors. With ❤️ from your Senior!</p><p>If you have any queries please post in the <strong>comment</strong> section below. Connect with me on <a href="https://www.linkedin.com/in/vaidhyanathansm/">LinkedIn</a>. Also, if you want to look at my amazing collection of apps developed, don’t forget to check <a href="https://play.google.com/store/apps/developer?id=Programmers+Gateway">Google Play Store</a>.</p><p>Know more about me <a href="https://vaidhyanathansm.tech/">here</a>.</p><p>With that being said, thanks for reading my article, and <em>Happy Coding!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=79348d3b6a22" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/my-journey-as-a-computer-science-engineer-79348d3b6a22">My Journey as a Computer Science Engineer</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is All About Generative Adversarial Networks (GANs)?]]></title>
            <link>https://medium.com/fnplus/what-is-all-about-generative-adversarial-networks-gans-33faa7b78363?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/33faa7b78363</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[fashion-mnist]]></category>
            <category><![CDATA[generative-adversarial]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Kailash S]]></dc:creator>
            <pubDate>Sun, 18 Oct 2020 09:07:41 GMT</pubDate>
            <atom:updated>2020-10-18T12:00:27.851Z</atom:updated>
            <content:encoded><![CDATA[<h4>A brief overview of GAN architecture and working mechanism</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cxn3bi4pR4DC4NQhtirqFA.png" /><figcaption><a href="https://techcrunch.com/2017/06/20/gangogh/">Source: TechCrunch</a></figcaption></figure><p>This article will give you a fair idea of Generative Adversarial Networks(GANs), its architecture, and the working mechanism. Supporting code snippets are also used to give a brief overview of how GANs can be implemented programmatically.</p><h3>GAN ARCHITECTURE</h3><p><strong>Generative Adversarial Networks (GANs)</strong> are deep-learning-based generative models that use two neural networks, <strong>competing for one against the other</strong> (thus the “adversarial”) in order<strong> </strong>to<strong> generate new, synthetic instances of the real data</strong>. They are used widely in <strong>data augmentation</strong> where data can be images, voice or even videos.</p><p>GAN is made up of 2 neural networks which are <strong>Generator</strong> and <strong>Discriminator.</strong></p><ul><li><strong>The generator </strong>is the model that is used to generate <strong>realistic </strong>(and not real) examples from the problem domain.</li><li><strong>The discriminator </strong>is the<strong> </strong>model that is used to classify examples as<strong> real </strong>(from the domain) or<strong> fake </strong>(generated)</li></ul><p>The generated realistic images will be mixed alongside a stream of images taken from the actual, ground-truth dataset and sent to the discriminator to evaluate each image to be real or fake. The more the discriminator predicts the fake images as real, the better the generator model is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*u64Cuk7zw-sAe2yvhNNw0Q.png" /><figcaption>GAN working model (Source: <a href="http://imatge-upc.github.io/telecombcn-2016-dlcv/slides/D4L1-adversarial.pdf">Slideshare</a>)</figcaption></figure><h4>Steps involved in one epoch of training the Generator model</h4><ol><li>Generate a random sample noise</li><li>From the sample random noise, generate a realistic problem domain image</li><li>Use Discriminator to evaluate the generated image to be ‘real’ or ‘fake’</li><li>Obtain gradients and loss of both generator and discriminator</li><li>Use the discriminator’s gradients to fine-tune the generator model in the following epoch</li></ol><p>Both the models are trained in an <strong>alternative fashion</strong> until the discriminator model is fooled about <strong>half the time</strong>, meaning the generator model is generating more realistic examples.</p><h3>GENERATOR MODEL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*QsYQLn7wfIIeZ49XU7SLuw.png" /><figcaption>Generator Model Architecture (Source: <a href="https://github.com/JadeBlue96/DCGAN-Dog-Generator">Github</a>)</figcaption></figure><p>The generator is basically a neural network model. Neural networks need input in some format to start with. So, for the generator, we begin with a <strong>random noise</strong> (usually normally distributed). This noise will be turned into a meaningful output by the generator model. By using a random noise every time during training, we make sure that a <strong>wide variety of images are being generated to fool the discriminator</strong>. Below is the code snippet to create a simple generator model</p><pre>num_features = 100<br><br>generator = keras.models.Sequential(<br>[<br>    keras.layers.Dense(7*7*128, input_shape = [num_features]),<br>    keras.layers.Reshape([7,7,128]),<br>    keras.layers.BatchNormalization(),<br>    keras.layers.Conv2DTranspose(64, (5,5), (2,2), padding = &#39;same&#39;,      activation = &#39;selu&#39;),<br>    keras.layers.BatchNormalization(),<br>    keras.layers.Conv2DTranspose(1, (5,5), (2,2), padding = &#39;same&#39;, activation = &#39;tanh&#39; )<br>])</pre><p><strong>Transpose convolution</strong> is the core logic used in the Generator model to convert smaller input(noise) to larger input(realistic image). <strong>Scaled Exponential Linear Unit (selu) </strong>is the state of the art activation function used for GANs.</p><p><strong>‘same’ padding</strong> will not drop any elements and adds zeros (zero paddings) evenly in left and right ends (except if the amount of columns to be added is odd, it will add the extra column to the right)</p><h3>DISCRIMINATOR MODEL</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*7CBz01ojXqZKOnsCXD0KKA.png" /><figcaption>Discriminator Model Architecture (Source: <a href="https://github.com/JadeBlue96/DCGAN-Dog-Generator">Github</a>)</figcaption></figure><p>A discriminator model can be considered as a <strong>binary classification neural network model </strong>where the classes are real and fake.</p><p>At the end of each epoch, the <strong>discriminator tells the generator how to reformat the current output</strong> i.e.., generated image to be more realistic. This technically is being done using the gradients returned by the discriminator. These gradients will be added to the weights of each layer in the generator model so that the generator can learn how to generate a more realistic image <strong>for the discriminator&#39;s eyes. </strong>Below is the code snippet to create a simple discriminator model</p><pre>discriminator = keras.models.Sequential(<br>[<br>    keras.layers.Conv2D(64, (5,5), (2,2), padding = &#39;same&#39;, input_shape = [28,28,1]),<br>    keras.layers.LeakyReLU(0.2), <br>    keras.layers.Dropout(0.3),    <br>    keras.layers.Conv2D(128, (5,5), (2,2), padding = &#39;same&#39;),<br>    keras.layers.LeakyReLU(0.2), <br>    keras.layers.Dropout(0.3),<em> </em>  <br>    keras.layers.Flatten(), <br>    keras.layers.Dense(1, activation = &#39;sigmoid&#39;)   <br>])</pre><p>Since the discriminator performs binary classification,<strong> sigmoid activation</strong> is used in the final layer.</p><h3>Why training the Generator and discriminator alternatively?</h3><p>While training the discriminator, the generator will be kept idle, since the discriminator will be figuring out how to distinguish between the real examples and the synthetic data which were generated by the generator. If the generator is allowed to train simultaneously, the <strong>discriminator will not be able to decide the distinguishing features between real and fake images </strong>as the generator’s output features keep on changing simultaneously. This will in return lead to a poor generator model.</p><p>Similarly, while training the generator, the discriminator will be kept idle. Since the generator is fine-tuned by back-propagating the gradients of the discriminator’s output, if the discriminator is allowed to train simultaneously, <strong>the gradients will also keep on changing making the generator model impossible to converge. </strong>Below is the code snippet to illustrate how training of GAN happens.</p><pre><strong>for</strong> epoch <strong>in</strong> tqdm(range(total_epochs)): total_epochs))<br>    <strong>for</strong> x_batch <strong>in</strong> dataset:<br>        noise = tf.random.normal(shape = [batch_size, num_features])<br>        gen_images = generator(noise)<br>        disc_input = tf.concat([gen_images, x_batch], axis = 0)<br>        disc_labels = tf.constant[[0.]]*batch_size + <br>                                 [[1.]]*batch_size)                                                             <br>        discriminator.trainable = <strong>True</strong><br>        discriminator.train_on_batch(disc_input, disc_labels)<br>        gen_labels = tf.constant( [[1.]]*batch_size)<br>        discriminator.trainable = <strong>False</strong><br>        gan.train_on_batch(noise, gen_labels)</pre><p>For each epoch,<strong> the dataset will be divided into batches</strong> as specified. For each batch, some random noise of specified dimensions will be generated. Noise will be converted into meaningful output by passing the random noise into the generator model. Input for the discriminator will be created <strong>by shuffling the real and fake images</strong>. Labels for the same will be defined. Firstly, the discriminator will be trained on the input followed by the generator based on the discriminator gradients/feedback. <br>(NOTE: While training one model, another one will be kept idle by <strong>assigning the trainable attribute of the corresponding model to False</strong>)</p><h3>When to stop the training process of GAN?</h3><p>As the generator improves with training, the discriminator performance gets worse, meaning the discriminator will often be fooled by the generator. If the generator succeeds perfectly, then the <strong>discriminator has a 50% accuracy</strong>.</p><p>If the GAN continues training past the point, the discriminator starts giving <strong>irrelevant feedback to the generator</strong> which will result in the <strong>downfall</strong> of the generator’s performance. Hence, it is impossible to fool the discriminator for all fake images. For a GAN, <strong>convergence is often a fleeting, rather than stable, state.</strong></p><h4>WRAPPING IT UP…</h4><p>Hope this blog post would have enlightened everyone with the underlying concepts of GANs. To help you guys in taking this forward to implementation, I have added the GitHub repository, where GAN has been implemented over the “<strong>Fashion MNIST image dataset” to generate synthetic images of clothing items</strong>. Try implementing this for getting further in-depth understanding.</p><p><a href="https://github.com/SK7here/DCGAN-Fashion-MNIST">SK7here/DCGAN-Fashion-MNIST</a></p><p>Thanks for reading this post until the very end. If you found this blog to be useful, cheer me up with your claps and leave a comment below if you have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33faa7b78363" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/what-is-all-about-generative-adversarial-networks-gans-33faa7b78363">What Is All About Generative Adversarial Networks (GANs)?</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web Development]]></title>
            <link>https://medium.com/fnplus/web-development-51f6e20aa610?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/51f6e20aa610</guid>
            <category><![CDATA[mean-stack]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mern-stack]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Aritra]]></dc:creator>
            <pubDate>Mon, 07 Sep 2020 11:11:00 GMT</pubDate>
            <atom:updated>2020-09-07T11:11:00.056Z</atom:updated>
            <content:encoded><![CDATA[<p>So, for the last one month, I am learning website development. I am done with HTML,CSS,PHP,SQL. I know how to work on google font and font awesome. To be honest, it’s enjoyable. As I belong to IT background learning website development will surely help me to boost my career.</p><p>Now over the last few years, Web development has been in trend. People who belong to the technical background are learning full-stack web development because of two reasons. First, this will help them to get a good job with a good package, and second, they can do freelancing as well which will also give them a good amount of money.</p><p>Now there are three types of web developers front end, backend, and Full-stack. Front End developers are those who develop the client-side of the website, or we can say someone who designs the UI of a website. The programming languages required for front end development is — HTML, CSS, Javascript, Bootstrap. Earlier, javascript was only used for client-side development but these days java script is also used for server-side development. So we can say that java script is the heart of web development. Without javascript website development is not possible.</p><p>Now let&#39;s talk about the frameworks of javascript: -</p><ol><li>Mean stack- Mean stack refers to the collection of javascript-based technologies used for developing web applications. Mean stack includes MongoDB, Express js, Angular js, Node js. Mean is a full-stack javascript that covers the client to the server to the database. Mean stack is mostly used in order to built dynamic and more interactive web applications.</li><li>Little details about these tools:-</li></ol><p>MongoDB- MongoDB is a no-SQL database</p><p>Express js- Express js is mostly used for backend development</p><p>Angular js- Angular js is used for front end</p><p>Node js- It is a javascript run time environment which is used to run javascript on a machine rather than running it in a browser</p><p>2. Mern stack- Mern stack also refers to the collection of javascript-based technologies used for developing web applications. Mern stack includes: -</p><p>MongoDB</p><p>Node js</p><p>Express js</p><p>React js</p><p>React js refers to a library that is used for building UI for a web application.</p><p>Now lets come to the backend of a website. A normal backend developer should know how to work on PHP and MySQL.</p><p>So with HTML, CSS, Google font, Font-Awesome, Bootstrap, Javascript, PHP, MySQL a normal website can easily be built.</p><p>But when it comes to Web Applications Mean stack or Mern stack is used.</p><p>So these are some of the basic ideas which are tried to give regarding web development. I hope this was useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=51f6e20aa610" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/web-development-51f6e20aa610">Web Development</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating, Deploying and Exposing a MySQL Database container on Redhat Openshift]]></title>
            <link>https://medium.com/fnplus/creating-deploying-and-exposing-a-mysql-database-container-on-redhat-openshift-8fda5a81e1a2?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/8fda5a81e1a2</guid>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[red-hat]]></category>
            <dc:creator><![CDATA[Pratik Singhal]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 10:33:57 GMT</pubDate>
            <atom:updated>2020-04-17T10:45:15.658Z</atom:updated>
            <content:encoded><![CDATA[<h4>Creating, deploying and exposing a MySQL container on Openshift</h4><h4>We’ll learn how to deploy a MySQL container on Redhat’s Openshift along with the creation of tables and databases.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*I78HL_ymswqzEEhO7HUVCA.png" /><figcaption>MySQL + Openshift</figcaption></figure><p>In the previous article, we deployed a <strong>spring-boot application </strong>on the Openshift platform. In this article, we’ll understand how to easily create a working <strong>MySQL </strong>container within <strong>2 minutes </strong>without any hassles.</p><h4>Pre-requisite:</h4><ol><li>An account on the Redhat Openshift platform. You can visit the previous article to understand how to create the account.</li><li>A project created in the web-console after logging inside the console.<br>Note: <em>To log in the console, use your RedHat email-id and password as credentials and you can easily log into the web console.</em></li></ol><h4>With the pre-requisites being satisfied, let’s begin.</h4><h3>Deploying a MySQL container:</h3><p>Step- 1: Click on the project you just created. Make sure the role is selected as <strong>Administrator</strong> as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xE-AeGdoGyCx8JuL_BbWw.png" /><figcaption>The red circled part should show the Administrator. If it doesn’t, just click on it and select Administrator.</figcaption></figure><p>Step- 2: After the project opens up in the web console, change the account/user type from <strong>Administrator </strong>to <strong>Developer</strong>,<strong> </strong>from the top-left drop-down button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ognoj3hKXkI-PcJKqJLV4Q.png" /><figcaption>This is how your screen looks like when you select the role as <strong>Developer</strong>.</figcaption></figure><p>Step- 3: Click on <strong>From Catalog</strong>(third)<strong> </strong>tile visible on the dashboard for the developer. It should appear something like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOnsbTznkDlWbaMImvjvQw.png" /><figcaption>The Catalog screen.</figcaption></figure><p>Step- 4: On this page, type <strong><em>mysql</em></strong><em> </em>in <strong>Filter by keyword </strong>search box, and click on Databases in the left side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VurTULL7j6xULuVyVMAk0w.png" /><figcaption>Search for mysql and click on Databases.</figcaption></figure><p>Step- 5: Click on the MySQL tile from the grid of tiles that appears and click on <strong><em>Instantiate Template</em></strong>.<br><em>Note: Do not select </em><strong><em>Ephemeral, </em></strong><em>select the normal one (</em><strong><em>third tile</em></strong><em> in the image above).</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eFHjFl47dk7uU2zRoPnspw.png" /><figcaption>Click on <strong>Instantiate Template</strong>.</figcaption></figure><p>Step- 6: Provide a <strong>connection username</strong>, <strong>connection password</strong>, mysql <strong>root password</strong>(optional, you can leave it empty), and a <strong>database name </strong>of your choice and click on <strong>Create</strong>.<br><em>Note: Connection username and password will be used to connect to mysql service in the terminal. Please remember it or jot it down.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_E2CeE8_ppNCaAqnf2mjWQ.png" /><figcaption>Provide details like username, password, database name and root password.</figcaption></figure><p>Step- 7: On the screen that appears, click on Topology from the left panel. Then click on the big icon that appears at the centre of the screen. It should open up a panel from right-side where you can see a pod being created and running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nrNVY3Fsipj8M5UOz3E9UA.png" /><figcaption>MySQL container is deployed.</figcaption></figure><p>Now, we have successfully deployed a MySQL container, let us create the database and table as per our requirement.</p><h3>Creating Database and Tables:</h3><p>Step-1: Click on the pod that is created under the <strong>Pods</strong> section in the panel.<br><em>Example: For me the pod name is </em><strong><em>mysql-1-jp7rd</em></strong><em>. Pod names are randomly generated by Openshift, hence it can be different for you. Nothing to worry about.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WobK5AhAB7PLkg93_WX1uA.png" /><figcaption>This screen appears after you click on the pod.</figcaption></figure><p>Step- 2: Click on Terminal tab from the Tabbar as visible on the screen. It should display a terminal something like in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*13L45E4tfKYjNPvVNDmWSw.png" /><figcaption>The Terminal tab.</figcaption></figure><p>Step- 3: Type the following commands inside the terminal meanwhile replacing the values of username and password. Replace pratik with the connection username you provided and press enter. It’ll prompt you for a password. Provide the connection password that you entered while creating the container and press enter.<br><em>Note: While typing the password, no characters/ asterisks will be visible since it is a Linux based terminal. Just type the password and press Enter.</em></p><pre>sh-4.2$ mysql -u pratik -p</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kFE0k2IdaJYQqnKWxPc-BQ.png" /><figcaption>Type the password and press Enter.</figcaption></figure><p>Step- 4: If the password is correct, it should display something like in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*512TxORE0qeu57cTuLQxtg.png" /><figcaption>On successful authentication, the mysql terminal becomes accessible.</figcaption></figure><p>Step-5: Now, we will use the database created, and create tables for the database.<br><em>Note: If you forget the name of your database, you can simply type </em><em>show databases; and it’ll display all the databases available in your system.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyeDygT8Bn7kKASxVVYdRA.png" /><figcaption><strong>show databases</strong> command shows the databases available in the system.</figcaption></figure><p>To use the database type use trialdb;. Replace <em>trialdb</em> by the name of your database. This makes sure that the table you create will be inside your desired database.</p><p>I have created a sample table as shown in the image below after changing my database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w3kY6m9CxCPNPu6P6ZOf5Q.png" /><figcaption>Created a sample table inside trialdb.</figcaption></figure><p>After finishing all the SQL queries, type exit to exit from the MySQL console.<br>With this, we have successfully created and deployed a MySQL container on RedHat Openshift Platform.</p><h3>Creating a route to expose the MySQL service:</h3><p>Now, there can be situations when we don’t want to have other containers in the same environment as the database environment. Hence, we need to expose a route through which this database service can be accessed on the internet.</p><p>To expose this service, we need the <strong>OC CLI tool</strong> installed in the system.<br>Here’s the link to download OC CLI tool for <a href="https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-windows.zip">Windows</a>, <a href="https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz">Linux</a>, <a href="https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-mac.zip">Mac</a>.</p><p>Once the OC CLI tool is set up in your path, do the following steps carefully.</p><ol><li>Open the web console, and click at the top right corner where you can see your name and from the drop-down that opens, select <strong><em>Copy Login Command </em></strong>option.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o8bHugCKPI3oUil0RoFTcg.png" /></figure><p>2. A new tab opens up, which displays a hyperlink <strong><em>Display token</em></strong>. Click on the hyperlink, and it displays your API Token and two different commands.<br>Copy the command under the section <strong><em>Login with this token</em></strong>.<br><em>Note: I cannot show the token and the command for security reasons. But the command starts with “oc login ..”</em></p><p>3. Open a terminal/ command line on your local system and just paste the command that you copied. On successful login, it’ll log you in to the web console through CLI. Now select the project using oc project &lt;project-name&gt; command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3tgweo4Fc_QHbrpoTph0Jw.png" /><figcaption>This command is only necessary only if you multiple projects in your web console.</figcaption></figure><p>4. Now after successful login, type the following to expose a route for your service.<br>oc expose service &lt;service-name&gt; <br>To confirm the service name, check under the <strong>Services </strong>section, as shown in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5QKj2kT-G8ck38RsC3uZuA.png" /><figcaption>The service name is <strong>mysql</strong> for my case.</figcaption></figure><p>5. Once the oc expose service command is executed, you can return to the web console, and the route is available to be used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s9wGKwHBQPdeIguUfRyAnw.png" /><figcaption>The URL under the <strong>Routes </strong>section can now be used to access database service outside the container env.</figcaption></figure><p>6. Now to create a communication channel between this container and other containers in the same environment, we need to find the cluster IP for the MySQL container. To get the cluster IP, return to the OC CLI tool, and type the following: oc get svc . This would list down the running services in your Openshift environment. Since we need the MySQL service cluster IP, we’ll find the cluster IP corresponding to the service name of the mysql.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*WQ6u3YJrLJuWH8M1tnvvNw.png" /><figcaption>Cannot show the IP because of security reasons.</figcaption></figure><p>7. Copy the cluster IP and it can be used to access MySQL service from other containers in the same environment.<br><strong><em>Practical example</em></strong><em>: </em>Accessing the MySQL container in Springboot application<em><br>spring.datasource.url=jdbc:mysql://&lt;cluster-ip&gt;:&lt;port&gt;/&lt;database name&gt;</em></p><p>And with this, we have successfully, created, deployed and exposed a MySQL service within a short time.</p><p>Hope this article helps. Feel free to comment on doubts.<br>And hey! Do you know you can clap for an article 50 times? Damn, that’s awesome!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fda5a81e1a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/creating-deploying-and-exposing-a-mysql-database-container-on-redhat-openshift-8fda5a81e1a2">Creating, Deploying and Exposing a MySQL Database container on Redhat Openshift</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying your first Springboot application on Openshift]]></title>
            <link>https://medium.com/fnplus/deploying-your-first-springboot-application-on-openshift-1dd5833aaab9?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1dd5833aaab9</guid>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[openshift-origin]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <dc:creator><![CDATA[Pratik Singhal]]></dc:creator>
            <pubDate>Tue, 17 Mar 2020 11:06:29 GMT</pubDate>
            <atom:updated>2020-04-17T10:21:33.076Z</atom:updated>
            <content:encoded><![CDATA[<h4>Springboot + Redhat Openshift</h4><h4>In this blog, you will be learning to deploy a spring boot app without installing Openshift on your system.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*PVTlyUOgn3_1XtET2W1skw.png" /></figure><p><em>The purpose of writing this article is to save hours of your time searching for the right way to deploy your spring-boot application on the Redhat Openshift Platform. <br>Since I have wasted a lot of time trying to understand, I won’t waste yours… I promise and hence I decided on documenting everything for you at a place.</em></p><p>Pre-requisites:<br>1. Git installed on your local system.<br>2. Basic understanding of using a command-line on your preferred choice of the operating system.</p><h4>Assuming the prerequisites are satisfied, let’s get started!</h4><p><strong>Step- 1</strong>: Create an account on the Openshift platform by visiting <a href="http://www.openshift.com">here</a>. Click on “Log In” at the top right corner of the screen. Openshift Online page gets loaded. Now click on “Log In With Red Hat”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BruaX2CNEL7rYlvpfz50Xw.png" /><figcaption>Click on the grey button.</figcaption></figure><p><strong>Step- 2</strong>: On the page, that opens up, click on the Github symbol from the list of OAuth providers and sign in with your Github account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HmG282egXhxVVL7wpRDVHw.png" /><figcaption>Click on Github icon (first icon in the row of icons)</figcaption></figure><p><strong>Step- 3</strong>: After finishing the authentication, you can see a screen that shows “Active Subscriptions”. Click on the <em>Open Web Console </em>button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkFDMxxHMl6DYI_oYIwS3w.png" /><figcaption>Click on Open Web Console (the blue button)</figcaption></figure><p><strong>Step- 4</strong>: On doing so, it’ll take us to the Redhat Openshift Online Console or we can call it Openshift web console. Make sure it says, <strong>Administrator </strong>on the top left corner of your console, as shown in the image.<br> <br><em>If it doesn’t show any projects for you, don’t panic we are going to make one in the very next step.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_xE-AeGdoGyCx8JuL_BbWw.png" /><figcaption>The red circled part should show the Administrator. If it doesn’t, just click on it and select the Administrator.</figcaption></figure><p><strong>Step- 5</strong>: Making the project: Click on <strong>Create Project</strong> button and give it a <strong>name</strong>, <strong>display name</strong> and <strong>description</strong> as you please. It won’t make much difference right now. So the name of the project for me is <em>“</em><strong><em>trial</em></strong><em>”.</em></p><p>Now, we need to take a little detour from Openshift and make our git repository ready for the Openshift project.</p><ul><li>Create a spring-boot project according to your need using <a href="https://start.spring.io/"><strong><em>spring initializr</em></strong></a><em>.</em></li><li>Unzip it in your local system. Open up a terminal/ command line in that folder. For example, I created a project named <strong>spring-boot-trial </strong>and unzipped it in a folder called “<strong>workspace”</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3KM384r1pID7PzlF2ABcg.png" /><figcaption>This is how the unzipped project looks like. Click on the address bar above and type cmd.</figcaption></figure><p>So, assuming that Git in your system is ready and set up let’s continue.</p><ul><li>Go to your Github account and create a new repository. Name it as you please.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ljsZ2N8cRYqmxNJd9GzxdQ.png" /><figcaption>Create a new repository in your Github account and name it as you please and click on <strong>Create Repository.</strong></figcaption></figure><ul><li>Click on the button circled red in the image below and head back to the file explorer where the command line/terminal is opened.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*co3f9ccnhRyZ0N1Rut8LMA.png" /><figcaption>Click on the red circled button</figcaption></figure><ul><li>In the terminal, type the following commands exactly as shown</li></ul><pre>$ git init</pre><pre>$ git add .</pre><pre>$ git commit -m &quot;any commit message here&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*pZ5KXDhVUx8aniHDl7xiCQ.png" /><figcaption>Execute the commands in the root of your project folder.</figcaption></figure><ul><li>After executing these commands, right-click on the terminal and select <em>paste.</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*93sP4dmF-kloCcb9WY204g.png" /><figcaption>Press enter and wait for a few seconds. Your repository on Github is ready. Just visit the repository page and refresh it.</figcaption></figure><ul><li>Click on <strong>Clone or Download</strong> and copy the link by clicking on the small clipboard button as shown in the image below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qfJA-FJW-ICe5l8-IVNDvw.png" /></figure><ul><li>So, we are now back on the track. Open the Openshift Web Console and click on the project that you created in <strong>Step-5.<br></strong>If you are seeing the screen as below, just log in using the credentials username — <em>account email</em> and password — <em>account password</em>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RXoXayCtcaSkJX2FNUPtSQ.png" /><figcaption>Login using developer/developer as credentials.</figcaption></figure><ul><li><strong>Step- 6</strong>: After clicking on the project, a screen similar to the image below should appear. Just click on the Administrator in the top left corner and select <strong>Developer</strong> from the drop-down menu.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1QbwsYgjYuS-cnj022kN_g.png" /><figcaption>Click on the top left and select <strong>Developer.</strong></figcaption></figure><ul><li><strong>Step- 7</strong>: On the screen that loads, click on <strong>From Git.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fp44LJZWEjJSR1Mg1X2zeg.png" /><figcaption>Click on <strong>From Git </strong>tile.</figcaption></figure><ul><li>In the Git Repo URL section, paste the link we copied from the Github repository. <br><em>Note: Click on </em><strong><em>More Advanced Options </em></strong><em>to specify the branch name(if-any). By default, the branch is master and we do not need to specify it.</em></li></ul><p><strong><em>Context Dir</em></strong><em> is used in case your project is inside another folder. If that’s the case just replace the </em><strong><em>forward slash </em></strong><em>with the </em><strong><em>name </em></strong><em>of your folder which contains your project.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KpkeTSF3grWRaCkMiFzW2A.png" /></figure><ul><li><strong>Step- 8</strong>: Scroll down to select <strong>Builder Image</strong>. It is supposed to be Java in our case. After clicking on <strong>Java</strong>, make sure to change the <strong>Java</strong> <strong>version</strong> to 8 from the drop-down that appears.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DStRw7rITHkBGP2jiA4wxA.png" /><figcaption>Click on Java and the select version as 8.</figcaption></figure><ul><li><strong>Step- 9</strong>: Let other options be as they are, no fiddling with them. Just make sure that the checkbox in the <strong>Advanced Options</strong> section is checked as shown in the image below and then click on <strong>Create</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogigRXhqH3RAXlWO-v0G5A.png" /><figcaption>The last checkbox must be checked.</figcaption></figure><ul><li><strong>Step- 10</strong>: Click on the penguin logo on the screen. We can see that a build is already in progress. Keep a little patience and wait for the build to finish.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lrCilA0fLjoD4KFNl6aQJw.png" /><figcaption>The build is running. Wait for Build #1 to finish.</figcaption></figure><ul><li>As soon as the build is finished, a pod will <strong>automatically</strong> be deployed. Congratulations, you have successfully deployed your spring-boot application on Redhat Openshift nonchalantly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKA8ATPdBzgheVwDyCO67A.png" /><figcaption>Our pod is up and running successfully.</figcaption></figure><ul><li>Now, you might be wondering, how to access this just deployed pod.<br>Well, that’s right in front of you under the <strong>Routes</strong> section.<br>The link in this section is your newly deployed spring-boot application(no more localhost:8080).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2ho0D2PHh29vO8Vq1l1MKg.png" /></figure><ul><li>Since I had <strong>“/” </strong>configured in my spring-boot application, hence it shows the output “<strong>Hello World</strong>” on visiting the link.</li></ul><blockquote>Hope this article helps. Feel free to comment for doubts.<br>I have wasted hours, you shouldn’t. Let me know if this saves your time.<br>And hey! Do you know you can clap for an article <strong>50 </strong>times? Damn, that’s awesome!</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1dd5833aaab9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/deploying-your-first-springboot-application-on-openshift-1dd5833aaab9">Deploying your first Springboot application on Openshift</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating UPI payments inside your Android app]]></title>
            <link>https://medium.com/fnplus/integrating-upi-payments-inside-your-android-app-514d800d5baa?source=rss----dde7f48b4b5a---4</link>
            <guid isPermaLink="false">https://medium.com/p/514d800d5baa</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mobile-payments]]></category>
            <category><![CDATA[mobile-payment-solution]]></category>
            <dc:creator><![CDATA[Abdul Kadir]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 07:24:38 GMT</pubDate>
            <atom:updated>2019-04-12T05:12:56.053Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*ivyo-VJ9iZUczJpe.jpg" /></figure><p>Alright, In this post I’ll walk you guys through a toy app that will allow you to make payments using the Unified Payments Interface(UPI) that has been recently popularized in India.</p><p>For those of you who don’t know UPI (Unified Payments Interface), developed by the National Payments Corporation of India, makes making payments between different bank accounts a hassle-free process. There are many UPI client apps and you can link more than one bank account with your UPI app. You can read more about it <a href="http://cashlessindia.gov.in/upi.html">here</a>.</p><h4>Now let’s start building the app.</h4><p>This is the basic layout file for our Single Activity. You could create your own or just copy-past from here.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78faf08851c45b47b38d3a414239538b/href">https://medium.com/media/78faf08851c45b47b38d3a414239538b/href</a></iframe><p>So we have a bunch of Edit Text Views that take in the person’s name, their UPI ID, the amount to be transferred and a Button that performs the transaction. Simple stuff!</p><h4>Now let’s move to where the real action is happening.</h4><h4>MainActivity.kt</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca29d02639edad90d6c3f8326609c488/href">https://medium.com/media/ca29d02639edad90d6c3f8326609c488/href</a></iframe><p>Our app only has a single screen and hence a single activity file. I’ll skip through all the house-keeping stuff like initializing views et al. Feel free to copy the code of the file as-is or directly jump to the part where we actually integrate UPI. I’ll explain what this particular code snippet does -</p><pre><strong>fun </strong>payUsingUpi(amount: String, upiId: String, name: String, note: String) {<br><br>    <strong>val </strong>uri = Uri.parse(<strong>&quot;upi://pay&quot;</strong>).buildUpon()<br>            .appendQueryParameter(<strong>&quot;pa&quot;</strong>, upiId)<br>            .appendQueryParameter(<strong>&quot;pn&quot;</strong>, name)<br>            .appendQueryParameter(<strong>&quot;tn&quot;</strong>, note)<br>            .appendQueryParameter(<strong>&quot;am&quot;</strong>, amount)<br>            .appendQueryParameter(<strong>&quot;cu&quot;</strong>, <strong>&quot;INR&quot;</strong>)<br>            .build()<br><br><br>    <strong>val </strong>upiPayIntent = Intent(Intent.<em>ACTION_VIEW</em>)<br>    upiPayIntent.<em>data </em>= uri<br><br>    <em>// will always show a dialog to user to choose an app<br>    </em><strong>val </strong>chooser = Intent.createChooser(upiPayIntent, <strong>&quot;Pay with&quot;</strong>)<br><br>    <em>// check if intent resolves<br>    </em><strong>if </strong>(<strong>null </strong>!= chooser.resolveActivity(<em>packageManager</em>)) {<br>        startActivityForResult(chooser, <strong>UPI_PAYMENT</strong>)<br>    } <strong>else </strong>{<br>        Toast.makeText(<strong>this</strong>@UPIActivity, <strong>&quot;No UPI app found, please install one to continue&quot;</strong>, Toast.<em>LENGTH_SHORT</em>).show()<br>    }<br><br>}</pre><p>So this function is responsible for adding UPI to your app. You need to call this function usually after you get all the information required for the transaction. In our app, it’s the four edit text fields. After filling those out, we capture the values in the onClickListnener of the ‘send’ button and pass in all the required information into this function. Let’s take a look at what this function does.</p><p>The code is straightforward. We are building a URI path which will allow us to make the transaction. This is achieved using the buildUpon() method on the ‘uri’ object and adding query parameters to it. The query parameters are key-value pairs which get added to the base URI path. As you can see, we append five query parameters in the following order — pa, pn, tn, am, cu. Each parameter means something in the URI, ‘pa’ is for the UPI id to which you want to transfer some amount, ‘pn’ is for the name, ‘tn’ is the note that is attached at the time of transaction, ‘am’ is the actual amount, and ‘cu’ is the currency. We then create an intent and set this ‘uri’ object as the intent’s data. Then we create another intent that always shows the user a dialog when the chooser intent is thrown. The dialog differs from device to device but it shows a list of apps which is capable of handling the URI path that was passed in the intent.</p><p>After creating both the intents, we ‘startActivityForResult()’ and select the UPI app which we want to use. After finishing the transaction, we return back to our own app and check whether the transaction was successful by overriding the Activity’s onActivityResult() method. These are all the steps required to integrate UPI payments into your app!</p><p>If you have done everything correctly, it should look a little something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*W3Rm7eFh8Tt5IY_l8JY9DA.gif" /><figcaption>App in action</figcaption></figure><p>I hope you enjoyed this post and if you would like to look at the Java version of the project, please head over to this video.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fpoe.shuhuigeng.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fembed%2FgIr_G6MG0pI%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fpoe.shuhuigeng.workers.dev%3A443%2Fhttp%2Fwww.youtube.com%2Fwatch%3Fv%3DgIr_G6MG0pI&amp;image=https%3A%2F%2Fpoe.shuhuigeng.workers.dev%3A443%2Fhttps%2Fi.ytimg.com%2Fvi%2FgIr_G6MG0pI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ee8d3fbb4773d3c6ea98520f3d4aebef/href">https://medium.com/media/ee8d3fbb4773d3c6ea98520f3d4aebef/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=514d800d5baa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fnplus/integrating-upi-payments-inside-your-android-app-514d800d5baa">Integrating UPI payments inside your Android app</a> was originally published in <a href="https://medium.com/fnplus">Fnplus Club</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>