<?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 Naveen Kumar M N on Medium]]></title>
        <description><![CDATA[Stories by Naveen Kumar M N on Medium]]></description>
        <link>https://medium.com/@mnnk?source=rss-a4167ca02150------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DaVeeN2taXoptB5iL79lDQ.jpeg</url>
            <title>Stories by Naveen Kumar M N on Medium</title>
            <link>https://medium.com/@mnnk?source=rss-a4167ca02150------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:51:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mnnk/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[When to Say No to a Feature]]></title>
            <link>https://medium.com/the-practical-cto/when-to-say-no-to-a-feature-7cbcfe1866c8?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cbcfe1866c8</guid>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[software-bugs]]></category>
            <category><![CDATA[product-development]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[product-design]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Sun, 15 Feb 2026 18:18:49 GMT</pubDate>
            <atom:updated>2026-02-15T18:18:49.845Z</atom:updated>
            <content:encoded><![CDATA[<p>A team proposes adding bulk actions to their admin panel. Makes sense. Users manage hundreds of records. Doing them one by one is painful.</p><p>They spend two days sketching designs. Then someone asks: “How often do users actually need this?”</p><p>Turns out, rarely. Most manage 10–20 records at a time. The painful workflow happens maybe twice a month for the heaviest users.</p><p>They almost build it anyway.</p><h2>💰 The Real Cost</h2><p>A feature isn’t just code. It’s tests you’ll maintain. Docs you’ll write. Edge cases you’ll debug at 2 AM. UI complexity your users will navigate forever.</p><p>That bulk action feature? It would’ve added:</p><ul><li>Selection state management</li><li>Conflict resolution UI</li><li>Error handling for partial failures</li><li>Permission checks across multiple records</li><li>Migration path for existing code</li></ul><p>Three weeks of work. For a problem that barely existed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j94hzCFOUc2Yfqe-" /><figcaption>Photo by <a href="https://unsplash.com/@markstos?utm_source=medium&amp;utm_medium=referral">Mark Stosberg</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h2>🚩 When the Answer Should Be No</h2><p><strong>One user keeps asking for it.</strong> Some users file 20 feature requests a week. Their workflow is real, but it’s rarely representative. Building for the loudest user optimizes for the wrong thing.</p><p><strong>The explanation takes three sentences.</strong> If you can’t explain why this matters in one breath, it probably doesn’t matter enough. Complexity in the pitch usually means complexity in the implementation.</p><p><strong>It’s a workaround for a broken core flow.</strong> Users requesting elaborate filters often means your default view is wrong. A request for “undo” usually means your confirmation flow is missing. Fix the root problem.</p><p><strong>You’re matching a competitor feature-for-feature.</strong> They have their reasons. You have yours. Copying features without understanding the underlying problem is how you end up with a Frankenstein product.</p><p><strong>No one can articulate who it’s for.</strong> “Power users might need this” isn’t a user. “Sarah in accounting who processes refunds” is a user. Vague beneficiaries mean vague value.</p><h2>❓ Questions That Actually Help</h2><p>Before building anything, ask:</p><p>What problem does this solve that we can’t solve now? How many users hit this problem weekly? What’s the simplest version that works? What are we not building if we build this?</p><p>That last one matters most. Every team has limited time. Every yes is a no to something else.</p><h2>💬 How to Say No Without Being a Idiot</h2><p>The person requesting the feature usually has a real problem. The job isn’t to dismiss it. It’s to understand what they’re actually trying to do.</p><p>“Help me understand the workflow. What are you trying to accomplish?”</p><p>Sometimes they want feature X, but really need feature Y. Sometimes they need better documentation. Sometimes they found a legitimate gap.</p><p>When you’re genuinely not building it: “We’re not prioritizing this because [reason]. Here’s what we’re focused on instead: [actual priorities]. If that changes, I’ll let you know.”</p><p>No false hope. No “we’ll consider it” that means nothing. Just clarity.</p><h2>🎯 The Hardest Part</h2><p>Saying no feels like pessimism. Like you’re blocking progress. Like you’re the person who always finds problems.</p><p>But shipping isn’t about building everything someone asks for. It’s about building the right things well.</p><p>The best code I’ve written is code I deleted. The best features I’ve shipped are features I said no to, then found a simpler solution for.</p><p>Next time someone proposes a feature, don’t ask if it’s good. Ask if it’s necessary. Ask what breaks if you don’t build it.</p><p>Most features are nice-to-haves. The ones worth building are the ones users can’t work without.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cbcfe1866c8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-practical-cto/when-to-say-no-to-a-feature-7cbcfe1866c8">When to Say No to a Feature</a> was originally published in <a href="https://medium.com/the-practical-cto">The Practical CTO</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Biryani and ChatGPT]]></title>
            <link>https://mnnk.medium.com/biriyani-and-chatgpt-7afda7efa23c?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/7afda7efa23c</guid>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[biriyani]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Sun, 12 Feb 2023 10:40:53 GMT</pubDate>
            <atom:updated>2023-02-12T18:37:04.528Z</atom:updated>
            <content:encoded><![CDATA[<p>A night-out in Bangalore to ChatGPT Biriyani. TLDR, the biriyani didn&#39;t meet our expectations.</p><p>It was just a typical weekend after countless meetings, scratching the why the logic does not work, scratching again why it works, and hoping QA will not raise issues for the same. And then there comes the quiet 2 days Saturday and Sunday. And below I share my experience of using AI for my night-out plan, and how did it turn.</p><h3>The Biriyani Story</h3><p>After countless google search queries for night-out plan at Bangalore all it showed me was bunch of resto-bars and nothing much, so after carefully think for a minute of what I doing with my life ( What’s wrong with me, ahh don’t open the door), an idea sparked in me, hey why cant I ask ChatGPT to suggest me the same. Surprise surprise it landed me the usual <em>‘ChatGPT is at capacity right now’ </em>and I remembered about that <a href="https://www.buildai.space/app/dae3da25-888e-448f-b15c-5a20ca4ca961">Trip Planning AI</a>, but when I checked it was behind the paywall after the first 1000 free users for a day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0P8dOpVPjI9pE1ExXq68AQ.png" /></figure><p>Finally I gave up and ciao with friends not sure where we are going. After careful consideration, it boiled down to famous Mani’s Hoskote 4AM biriyani which is roughly 40 KM’s from us.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.google.com%2Fmaps%2Fembed%2Fv1%2Fplace%3Fcenter%3D13.0752152%252C77.80243%26key%3DAIzaSyD9HrlRuI1Ani0-MTZ7pvzxwxi4pgW0BCY%26zoom%3D17%26q%3DMani%2BBiryani%2BCentre%2C%2BHoskote&amp;display_name=Google+Maps&amp;url=https%3A%2F%2Fwww.google.com%2Fmaps%2Fplace%2FMani%2BBiryani%2BCentre%2C%2BHoskote%2F%4013.0752152%2C77.80243%2C17z%2Fdata%3D%213m1%214b1%214m6%213m5%211s0x3bae058f1b6914d1%3A0x576c57269a649546%218m2%213d13.0752152%214d77.804624%2116s%252Fg%252F11ckqsy712%3Fcoh%3D164777%26entry%3Dtt&amp;image=http%3A%2F%2Fmaps-api-ssl.google.com%2Fmaps%2Fapi%2Fstaticmap%3Fcenter%3D13.0752152%2C77.80243%26zoom%3D15%26size%3D250x250%26sensor%3Dfalse&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=google" width="600" height="450" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8f19a17b5d5434efb14fcdd1b7bef2a/href">https://medium.com/media/e8f19a17b5d5434efb14fcdd1b7bef2a/href</a></iframe><p>Feel of the gushing wind, countless street dog encounters, not sure should we take the bridge or lay low while navigating with google maps and one long tea break and With all the hype for the late night Biriyani and a army of food bloggers from Youtube stating that there will be queue for 1 KM’s for Biriyani ar Hoskote, we packed in all early and reached there by 2:00 AM, not knowing what to do, we continued the same loop of little office talks, awkward silences, and there it is, the aroma of Biriyani, those damn spices, there we heard a voice, a group of strangers disusing about ChatGPT, the introvert me was not ready to pop a hi. After a final wave of aroma and wait, it’s biriyani time. As I mentioned, the Biriyani was not what we expected it to be and we didn&#39;t feel any difference in taste and felt same as the Biriyani we would usually order from a local Restaurant. I know its all in the experience and the thrill but still we stepped in with lot of hype. Again thinking about my life decisions, not to the same rabbit hole — There came an moment of realization, how much AI has contributed, came in handy to solve some weird questions, how it is being used by us indirectly in day to day life, how it is shaping the world. Out of the blue we didn’t expect ChatGPT name to pop up there at 3:00 AM. This shows its potential and how it will become an integral part of human king and then comes phoenix out of the ashes, the Bing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*o6YZJzXzx1qy8VJMw18wWw.gif" /></figure><h3>Bing — Adding fuel to the fire. The AI Search Engine war.</h3><p>I came across some articles about Bing integrating ChatGPT model in it, and just with no hype and expectations I registered in for the waitlist. But I was sure of one thing, I will not switch from my Google to Bing even with added spice of prometheus and ChatGPT.</p><p>Boy ohh boy, I was so wrong, after seeing the new bing in action at The WAN Show Live from Linus Tech Tips (<a href="http://lttstore.com/">lttstore.com</a>)</p><p><a href="https://www.youtube.com/live/AxAAJnp5yms?feature=share&amp;t=2648">Our Biggest Sponsor Pulled Out - WAN Show February 10, 2023</a></p><p>Wow, the new bing blew me away, I was screaming along with Linus and Luke and was like what in the world is this. After the show, there was <a href="https://youtu.be/rOeRWRJ16yY">Youtube recommendation</a> (Youtube Algorithm knows me very well), for the Bing Event showcasing the same and as I was watching it, I was like if this is what new bing is bringing to the table, I will for sure, wave a byeeeee to Google as default search Engine and give Microsoft edge a shot.</p><p>End of the story, I hope the hype and expectation of the new bing is not the same as that of Biriyani we had.</p><p>Later the next day, when I asked ChatGPT to suggest me some places for night-out in Bangalore, this is what it came up with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*4in5juyb2Lo6pimnWQ9ylQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7afda7efa23c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s on my Raspberry-Pi]]></title>
            <link>https://mnnk.medium.com/whats-on-my-raspberry-pi-67c1054b4141?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/67c1054b4141</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Sat, 27 Aug 2022 21:39:16 GMT</pubDate>
            <atom:updated>2022-08-27T21:39:16.570Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqphCEXBJyS8cIU9LKl8pw.jpeg" /></figure><p>Raspberry PI is slowly crawling its way up to top of things you should own as a Software Developer. All because of its low-power-consumption, configurable, open-source and the biggest one of all, you can own a server toooooo. I get it, its not like what is being offered by big players like <em>Azure, AWS, GCLOUD</em>, come on guys saying that you own a server would be a great ice-breaker when you are in a party, talking to your non-techie friend’s or you can brag about it on your first-date (Dating advice 101).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fd3mlE7uhX8KFgEmY%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fd3mlE7uhX8KFgEmY%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExYXphNzhjMXNtOGdheWZuZ2RwenIwa3ZyYzJxOXR3cDRvd2F6d2cxbSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fd3mlE7uhX8KFgEmY%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/de4f41134477bc8196d4522bc44a3969/href">https://medium.com/media/de4f41134477bc8196d4522bc44a3969/href</a></iframe><p>Jokes apart, it has become part of my daily-developer-cycle. So here are some the services I run in my Raspberry-PI along with docker.</p><ol><li><a href="https://www.docker.com/">Docker</a></li><li><a href="https://pi-hole.net/">Pi-hole</a> — A simple Network Wide Ad-Blocker.</li><li>MySQL Server</li><li>ElasticSearch and Kibana.</li><li><a href="https://www.portainer.io/">Portainer</a> — to manage the docker.</li><li><a href="https://www.firefly-iii.org/">Firefly</a> — to manage finances.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67c1054b4141" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telegram Bot in JAVA]]></title>
            <link>https://mnnk.medium.com/telegram-bot-in-java-612fd88bb36?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/612fd88bb36</guid>
            <category><![CDATA[telegram]]></category>
            <category><![CDATA[telegram-bot]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[telegram-messenger]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Mon, 29 Mar 2021 02:42:14 GMT</pubDate>
            <atom:updated>2021-03-29T02:42:14.361Z</atom:updated>
            <content:encoded><![CDATA[<p>App stores are filled with hundreds of Instant Messaging 📝apps and services but Telegram stands out with its huge Bot Collection ranging from Weather to Movie Update bots. It’s time to build one in Java.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*44nLLL_wu3JB99to" /><figcaption>Photo by <a href="https://unsplash.com/@christianw?utm_source=medium&amp;utm_medium=referral">Christian Wiediger</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Hello-World! 🔥</h3><p>After scratching my head for 2 long minutes I decided to develop the <em>sacred Hello-World</em> bot which would greet the user with a username.</p><blockquote>Check out the complete <a href="https://github.com/NaveenKumarMN20/hello-telegram-bot/">GitHub</a> code. 💻</blockquote><h3>Bot-Father ✋</h3><p>Search for <strong><em>BotFather </em></strong>in search and send the <strong><em>/start</em></strong> command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*rOfa4hOyM-NaM7MPIW0m8A.png" /></figure><p>Next <strong><em>/newbot</em></strong> command will create new bot and will ask for name for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*n138fsp6D-kMcOwvj4uFiw.png" /></figure><p>If the name of the bot is unique, next we will be provided with the access token.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*ZotUUm-Fzy_P2ssf7UXF_g.png" /></figure><h3>Its Maven Time ⏰</h3><p>Create a simple maven project and add Telegram-Bot and Logging jars to it. <em>Checkout </em><a href="https://github.com/rubenlagus/TelegramBots"><em>Telegram Bots</em></a><em> repo for the latest jars.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1968adf76e384001b10a60a4e6fb9d78/href">https://medium.com/media/1968adf76e384001b10a60a4e6fb9d78/href</a></iframe><h3>Bot Session and TelegramLongPollingBot 🌎</h3><p>Create a new bot session with Default Bot Session class which would configure the listener so that it handles the token, callBack, and state of App.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f5f180ccb7ee6dd580057e55f7075297/href">https://medium.com/media/f5f180ccb7ee6dd580057e55f7075297/href</a></iframe><p>Extend a class with TelegramLongPollingBot by implementing the following methods.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc64ffbaae791e3d89b3a04fce329a27/href">https://medium.com/media/cc64ffbaae791e3d89b3a04fce329a27/href</a></iframe><p>onUpdateReceived() would be called when an user sends a message or command to the bot, getBotUsername() returns the name of the bot and getBotToken() returns the token.</p><h3>Update Object 🍧</h3><p>This object holds the message along with user details and we can send message based on it.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1124c4b97b858f6b42036c2b1e6c4f4f/href">https://medium.com/media/1124c4b97b858f6b42036c2b1e6c4f4f/href</a></iframe><p>If the message from the user is of type /hello we log it and create a new SendMessage object which can be used to respond back. 💁 Every user is Identified with a chat Id which are fetched from the Update Object. Finally the execute method would send the message back to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*tQ-i1jJlXc7dZ02eCGE3_w.png" /></figure><p>Run the main method and we have the bot. The updates would be flooded with messages if the user sends commands when the bot is not running or offline and will be processed once its online(running). Finally we can package it as jar and host the same. I run all my bots as service in Raspberrypi 4. 💻</p><blockquote>Check out the complete <a href="https://github.com/NaveenKumarMN20/hello-telegram-bot/">GitHub</a> code. 💻</blockquote><ul><li><a href="https://core.telegram.org/">Telegram APIs</a></li><li><a href="https://github.com/rubenlagus/TelegramBots">rubenlagus/TelegramBots</a></li><li><a href="https://github.com/NaveenKumarMN20">NaveenKumarMN20 - Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=612fd88bb36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dynamic query with Spring Data JPA and Search by Example of]]></title>
            <link>https://mnnk.medium.com/dynamic-query-with-spring-data-jpa-and-search-by-example-of-53bcdc845c18?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/53bcdc845c18</guid>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[dynamic-query]]></category>
            <category><![CDATA[hibernate]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[jpa]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 10:26:37 GMT</pubDate>
            <atom:updated>2020-11-25T10:32:12.624Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Search all around!</em></p><h3>The Problem 😠</h3><p>The problem was simple, the query to the database should be based on the values supplied from the front-end. Sometimes the user would select or enter all the values or it is search based on certain values. Child’s play right 😎. Then without second thought created a repository and was stuck when its time to type in the query method. Wait what how would write the query methods.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cbf1a4ffb257072f58e426ffe3c4787/href">https://medium.com/media/5cbf1a4ffb257072f58e426ffe3c4787/href</a></iframe><p>I know i was doomed when the google forced me to head to the 2nd page of its search results 😯 and criteria api was the appropriate solution. It would do wonders for small set of vales to be queried on.</p><h4><strong><em>Checkout the complete code @ </em></strong><a href="https://github.com/NaveenKumarMN20/cars-catalogue"><strong><em>GitHub</em></strong></a><strong><em> 💻</em></strong></h4><h3>The Situation 😕</h3><p>Lets consider a car catalog database with Make, Model and year of release.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bc112481f42187d2a531c262416cc3a3/href">https://medium.com/media/bc112481f42187d2a531c262416cc3a3/href</a></iframe><p>So implementing criteria api will be easy with with few CriteriaObjects methods and <em>done!, add!, commit!, push!</em>. Ready for prod ⏳.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*lnhJ_xOEtHGAK760prQKcw.png" /></figure><p>Lets spice it up, the POJO is added with some more properties lets say <em>Horse Power, Turning Radius and lot more stuff</em> which are to stored in database and we are again making up the changes with CriteriaObjects and its results in cycle for every new change.</p><h3>To the rescue 👍</h3><p>Here comes Query by Example to save us. It allows dynamic query building at runtime without specifying query fields. Just pass in the POJO, let JpaRepository handle it for you and problem solved.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5f8de29993e3721cd8eecac21e2bab7/href">https://medium.com/media/e5f8de29993e3721cd8eecac21e2bab7/href</a></iframe><p>Example.of also takes an matcher object where in we can specify to which columns we can ignore the case and search.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ba7eb801cdc544b124e79bc58ba91d48/href">https://medium.com/media/ba7eb801cdc544b124e79bc58ba91d48/href</a></iframe><h3>Time to Search ⏰</h3><p>Let say we wanna search all the cars from the year 2015, all we have to do is pass the json with parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*eAQhCOA5xeGzXii_9rVTdA.png" /></figure><p>Next search is by make and year</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*rpKw4On-MQqKgQ09fh3qEA.png" /></figure><h4>Limitations 🔐</h4><blockquote>We cannot query for conditions like between two ranges, example car make year between years 2010 to 2020.</blockquote><h3>Reference and Documentations 📕</h3><ul><li><a href="https://dimitr.im/writing-dynamic-queries-with-spring-data-jpa">Writing dynamic queries with Spring Data JPA</a></li><li><a href="https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#query-by-example">Spring Data JPA - Reference Documentation</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53bcdc845c18" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS S3 file Operations with JAVA]]></title>
            <link>https://mnnk.medium.com/aws-s3-file-operations-with-java-b5908ecaf401?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5908ecaf401</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[s3]]></category>
            <category><![CDATA[s3-bucket]]></category>
            <category><![CDATA[synchronous]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Tue, 18 Aug 2020 16:48:39 GMT</pubDate>
            <atom:updated>2020-08-29T08:02:47.672Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloud, it’s just someone else computer.</p><figure><img alt="Buckets" src="https://cdn-images-1.medium.com/max/1024/0*boSie8u1k_lp8-Vi" /><figcaption>Photo by <a href="https://unsplash.com/@sixteenmilesout?utm_source=medium&amp;utm_medium=referral">Carolyn V</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Storage is the key factor for every business model and yes its easy to design a reliable storage service on our own without <em>stack overflow</em>. 😵 <strong><em>(I must stop day dreaming)</em></strong></p><h3>What is AWS S3?</h3><p>It stands for <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/Welcome.html">Simple Storage Service</a> where we can store and retrieve data anytime. Its a part of Amazon Web Services which gives developers fast and affordable data storage infrastructure (<em>Well</em> <em>you can smile at your credit card bill</em>).</p><h3>Why S3?</h3><p><a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/Introduction.html">S3</a> has an user-friendly UI and supports various languages SDK which makes development a piece of cake(<em>still dreaming </em>😴). It provides us with containers (<em>known as buckets</em>), manageable authorization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fev-aMD7vdIXre2Cu4jXfg.png" /></figure><p>Time to fire up Intellij. We are sticking with Java 8 and maven project (<a href="https://medium.com/u/509de2699132">Sugavaneshwar S</a> was lazy enough to download the jar)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/12fb1c8645096f8dd301f4c62fe86e44/href">https://medium.com/media/12fb1c8645096f8dd301f4c62fe86e44/href</a></iframe><p>Supplying credentials to access the bucket.</p><p>The <a href="https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html"><strong><em>BasicAWSCredentials </em></strong></a>method takes in access key ID and secret access key for authentication and authorization with an client object.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebc96678fb61ea3bebf5367b725ffe5a/href">https://medium.com/media/ebc96678fb61ea3bebf5367b725ffe5a/href</a></iframe><p><strong>Create new bucket</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c881fe840f75569a8f923d2036de3e91/href">https://medium.com/media/c881fe840f75569a8f923d2036de3e91/href</a></iframe><p><strong>Push a object to S3 bucket</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f006947d5964b5a1e4f1674abc98ef46/href">https://medium.com/media/f006947d5964b5a1e4f1674abc98ef46/href</a></iframe><p><strong>Download a object from from S3</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b14ecaaf0d1be170fa4aaf2cced15a25/href">https://medium.com/media/b14ecaaf0d1be170fa4aaf2cced15a25/href</a></iframe><p><strong>Delete a file from bucket.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2359b1e42d92d2f3ecef02d8689b8d37/href">https://medium.com/media/2359b1e42d92d2f3ecef02d8689b8d37/href</a></iframe><p><strong>Delete a bucket</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/61953fa9a3ed9c76b6d1ad2792b0d047/href">https://medium.com/media/61953fa9a3ed9c76b6d1ad2792b0d047/href</a></iframe><p>Pat on the shoulder!!!!!!! ☁️</p><p>To view the complete code, checkout our <a href="https://github.com/Tofts/S3_Services">repo</a>. 💻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5908ecaf401" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spring Boot and MongoDB Atlas]]></title>
            <link>https://mnnk.medium.com/spring-boot-and-mongodb-atlas-a2df466e8949?source=rss-a4167ca02150------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2df466e8949</guid>
            <category><![CDATA[application]]></category>
            <category><![CDATA[spring-boot]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[spring]]></category>
            <category><![CDATA[heroku]]></category>
            <dc:creator><![CDATA[Naveen Kumar M N]]></dc:creator>
            <pubDate>Sat, 11 Jul 2020 16:45:59 GMT</pubDate>
            <atom:updated>2020-07-12T06:59:58.570Z</atom:updated>
            <content:encoded><![CDATA[<p>Being a Developer and holding a PhD in Googling (<em>I Wish</em>) i was low-spirited out when i couldn’t find a forum or post or for god’s sake an article to have an introduction or overview about connecting MongoDB’s <a href="http://atlas.mongodb.com/">Atlas</a> with Spring boot app and then getting it to work with <a href="http://heroku.com/">heroku</a>.</p><p>Have a look at the app before jumping. <a href="https://thequotesapp.herokuapp.com/"><strong><em>Link</em></strong></a></p><p>The Repo Link is in <a href="https://github.com/NaveenKumarMN20/QuoteApp">GitHub</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yMg7Hfi4vrWHokoe" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;utm_medium=referral">Kevin Ku</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>After <em>(coffeeCups &lt;10) &amp;&amp;(days &lt; 2)</em> i was finally able to get it to work. Whoosh! that was quite some time.</p><p>Lets dig in then. This is a simple REST app with basic operations like <em>adding a new quote, getting all quotes, finding quotes with specific word and getting quotes by authors</em>. You can view it right over <a href="https://thequotesapp.herokuapp.com/">here</a>.</p><p>The Project runs on QuotesModel, QuotesController and MongoRepository classes doing all the magic.</p><p>Lets look into the POJO. The document is “Quotes” with Quote and Author as fields.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f09d95c379506a244bcc47d6a2dc4332/href">https://medium.com/media/f09d95c379506a244bcc47d6a2dc4332/href</a></iframe><p>To the controller method which <em>adds a new quote, gets all quotes, finding quotes with specific word and getting quotes by authors</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8585006202327a3181e2ba387daa11d6/href">https://medium.com/media/8585006202327a3181e2ba387daa11d6/href</a></iframe><p>Now to the DB side. Create a free <a href="https://www.mongodb.com/cloud/atlas">account</a> (thank god) and hola we have a cluster with 512MB to 5GB storage. Cool as a cucumber this would be abundant for the quotes.</p><p>Its time to create organisation and cluster. Create a organisation and then you would land in the organisation page. Lets name our project something like QuotesApp. Its time to spin up our cluster.</p><p>Head to create cluster page and select the cloud provider and the region. We can spin up a single cluster per project for free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*6mZ6t7fu_u6Fd97yOnR5gA.png" /></figure><h3>Creating a Cluster</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jhafkSm9neftgKdaHsc10g.png" /></figure><p>M0 is the free cluster for backup we need M2 or higher. Pick a name and hit create cluster</p><p>We have a cluster yippee.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*YnqxTyKfKb-pABlsGUOCsA.png" /></figure><p>The connection and size are real time stats. Its time to connect our Spring Boot app. Hit on connection and we have a basic connection IP and DB user page. Fill in your connection IP with <strong><em>0.0.0.0/0 </em></strong>cause heroku free deployment assigns dynamic IP address when deployed we open up all the incoming traffic from all IP’s. Create a DB username and password along with access controls.</p><h3>Choosing Connection Type</h3><p>Head to next Choose a Connection Method and click on connect your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*zcNbHfLx44k-hPQhP_Eiow.png" /></figure><p>Select the JAVA driver and latest version. We are provided with a connection string which we are gonna use to connect to the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*ayY-IoKhRyql5otPEJX3kg.png" /></figure><p>Replace the username and password which we created in previous step in application.properties file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad12b726ba9d45f54f0ec4940eac3fa5/href">https://medium.com/media/ad12b726ba9d45f54f0ec4940eac3fa5/href</a></iframe><h3>Data Base Time</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*XLXN2QzaJTXZKjumUSWZeQ.png" /></figure><p>Head to your clusters collection and its time to create and load a data. <em>Click on Add My Own Data </em>and choose a Database name and Collection name. Voila!!!!!!.</p><p>We have a DB. <strong><em>Finally!!</em></strong></p><h3>Its Then Heroku</h3><p>Create a app and give it a good name (best of luck in finding one). One of the best way is to connect github with it and</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1NcNjkAv9irsBO6kFkQMA.png" /></figure><p>Deploy the master branch it would take up to 2–3 minutes and it would run the maven build and after successful deployment its time to open the app.</p><h3>Finally, the App</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ptp-ONgpK7LbclSsJddCiQ.png" /><figcaption>Home page with swagger.</figcaption></figure><h3><strong><em>There you go, the very own quotes app with Spring Boot and Mongo DB.</em></strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2df466e8949" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>