<?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 Nanda Kishor M Pai on Medium]]></title>
        <description><![CDATA[Stories by Nanda Kishor M Pai on Medium]]></description>
        <link>https://medium.com/@nandakishormpai?source=rss-6cc2a5ace133------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*23-1K8l7X3kab_bJ</url>
            <title>Stories by Nanda Kishor M Pai on Medium</title>
            <link>https://medium.com/@nandakishormpai?source=rss-6cc2a5ace133------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:15:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nandakishormpai/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[Can money really buy happiness and love?]]></title>
            <link>https://nandakishormpai.medium.com/can-money-really-buy-happiness-and-love-cc6b45cfbf15?source=rss-6cc2a5ace133------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc6b45cfbf15</guid>
            <category><![CDATA[poor]]></category>
            <category><![CDATA[hariharan]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[rich]]></category>
            <category><![CDATA[happiness]]></category>
            <dc:creator><![CDATA[Nanda Kishor M Pai]]></dc:creator>
            <pubDate>Tue, 18 Jan 2022 17:24:10 GMT</pubDate>
            <atom:updated>2022-01-18T17:24:10.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*KI88zp6t6duu6JqIDig5Dg.jpeg" /><figcaption>First image appeared on google when I searched the topic</figcaption></figure><p>What is happiness? What is love? What is money? Now that’s the best way to start an article where you just question the words given in the topic and expect the reader to find meaning when you are also confused about how to start this. A quote in this section of the article about happiness by a rich entrepreneur saying that money doesn’t matter would be the best way I can lie. Happiness is relative and subjective. Those two aspects make it sound like it’s accessible to all depending on what they find as a source of happiness and what gestures or behaviors towards them they find as a token of love. Let’s explore what it really takes to get both of these things which most find as the purpose of life.</p><p>Materialism and Money can be correlated and are things that enlightened people ask us to get rid of. Materialistic happiness which can be only achieved through money is always portrayed in a negative shade, which is understandable by the fact that making it normal might make a huge section of have nots in the society devoid of purpose to live. One simple piece of advice you get is to meditate for being happy or calm which might look like something opposite to materialism. But if you really try to meditate, you realize that your house is in a noisy city and there is nothing like a room dedicated to meditation that is soundproof. You decide to travel to some calm area outside the city. You are about to travel and realize that you need to buy a ticket which becomes materialistic ironically.</p><p>Love can be free from money right? Let’s explore that part. It is cost-free to love someone or something, but it is costly to gesture your love. Even the simple things like telling the person you love require you to either have a 4G connection or a vehicle that eats up the bitcoin competitor Petrol. Even if the person you love is in your house, that itself is an expensive thing to look after someone even if you enjoy every part of it, it is money that catalyzes your gestures be it in minor or grand ways.</p><p>Love can bring happiness to your life and a happy person can love others wholeheartedly. This was not a cynical view on money and happiness or love. It is high time we acknowledge the privilege it takes to be happy and be loved in an era of unemployment, calamities, pandemic, and social media. It is totally fine to acknowledge that you are able to be happy by seeing all those feel-good movies at 1080p on Netflix because you can afford it. It is okay if you are able to meditate with noise cancellation headphones and it is totally fine if you love your dog that eats food that costs more than India’s average per capita income a year. It is important that you don’t force or influence others to have these as their way of accessing love or happiness, neither should you disgrace someone else’s way of enjoying life. Let us at least be more kind and accepting as that is a free thing I believe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc6b45cfbf15" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solution for SSD not shrinkable beyond a point even though you have free space for dual boot]]></title>
            <link>https://nandakishormpai.medium.com/solution-for-ssd-not-shrinkable-beyond-a-point-even-though-you-have-free-space-for-dual-boot-77c1ec7d9881?source=rss-6cc2a5ace133------2</link>
            <guid isPermaLink="false">https://medium.com/p/77c1ec7d9881</guid>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[partition]]></category>
            <category><![CDATA[windows-10]]></category>
            <category><![CDATA[shrink]]></category>
            <category><![CDATA[ssd]]></category>
            <dc:creator><![CDATA[Nanda Kishor M Pai]]></dc:creator>
            <pubDate>Thu, 08 Jul 2021 11:09:09 GMT</pubDate>
            <atom:updated>2021-07-08T11:28:31.087Z</atom:updated>
            <content:encoded><![CDATA[<p>I have Hybrid storage of 1TB HDD and 256 GB SSD and as always Windows residing in SSD. I had tried out Ubuntu by partitioning HDD which turned out good in terms of things I could do in the OS. But It was a bad experience considering the slow boot time in HDD and other things that brought me to the experiment of giving SSD space to Linux to test its true potential. I tried shrinking SSD which had 100 GB of free space but when I tried shrinking it showed only 9GB as shrinkable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*69Bis8vFSLboOyjp9YPVVw.jpeg" /><figcaption>sample image of the issue discussed here</figcaption></figure><p>I hope this image will help you understand the problem we are facing here. We have 43ish GB free but we can shrink only 3014 MB (less than 3 GB). Now that the problem is clear, let’s understand how to go around this.</p><h4>Obstacles Here</h4><p>Let us visualize our memory arrangement for which I am using <a href="https://www.ccleaner.com/defraggler"><strong>Defraggler</strong></a><strong>. </strong>It can give us a visual representation and it will help us get better insights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*ReUWiGK31OsKQz_7_ykZ3g.jpeg" /></figure><p>Here you can see that a single block of memory is blocking the continuous flow which happens to be a page looking at the color indicators. This block might be a page file as mentioned or there are chances of more such things being there which are hindering the shrinking process.</p><h3>Solution</h3><p>First, go to C drive and enable showing hidden files and protected operating system files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8SRkBi9tHNzlwNBmvnL6rA.jpeg" /><figcaption>choose show hidden files option and uncheck Hide protected OS files</figcaption></figure><p>You would see pagefile.sys and others like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*_xhEFGEGkThpBu-yjA6Brg.jpeg" /></figure><p>You can either go to Event viewer and choose defrag activities in windows applications to see exactly what is causing the error or try out 2 of these. I had to disable pagefile.sys and System Volume Information.</p><h4>pagefile.sys</h4><p>disabling: Go to the Performance option in windows and select Change..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*tVnbBGpurDVtNcHEPnJcMg.jpeg" /></figure><p>First Uncheck the automatic option, then choose No paging file and click Set. Then apply changes by pressing Ok and close. This will disable pagefile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*mEhM0Q77BkSop2P4TjkC4w.png" /></figure><h4>System Volume Information</h4><p>This can be another reason which I had.</p><p>disabling: Go to Control Panel\All Control Panel Items\Recovery and choose Configure System Restore option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*q3r_OAiLZSYOqCQjwzgdbw.png" /></figure><p>Choose Configure option. Then select Disable System option and then Apply and press OK.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*rOA4Ty4cAztf0dVNuyRTPg.png" /></figure><p>These 2 steps will solve the major issues. Now you should carefully restart and Try again to shrink and mostly you will get to shrink all the space available. If not try disabling hyberfil.sys.</p><h3>Enabling Everything</h3><p>I hope you have successfully shrunk and don&#39;t restart before enabling everything we disabled.</p><h4>pagefil.sys</h4><p>enabling: Go to the Performance option in windows and select Change… Then check the Automatically option like below and press OK. This should enable the pagefile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*76dMWb3-opdXyiJiiOEuZA.png" /></figure><h4>System Volume Information</h4><p>enabling: Go to Control Panel\All Control Panel Items\Recovery and choose Configure System Restore option. Select C and click Configure.. option below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*DzPVNVZd57jL-1PQ8GC1yQ.png" /></figure><p>After choosing it, click Turn on system protection and then select OK to enable it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/444/1*LH2_FT2kR99SkiX2oHlYpw.png" /></figure><p>We have successfully partitioned SSD which was not possible earlier due to limitations in shrinking. If you had disabled hyberfil.sys, enable it. Reboot your system after enabling everything. Every step should be done safely and do backup your files if needed. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77c1ec7d9881" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reducing PyTorch dependency size and using PyTorch Models for Flask apps]]></title>
            <link>https://nandakishormpai.medium.com/reducing-pytorch-dependency-size-and-using-pytorch-models-for-flask-apps-9a79271c9d6e?source=rss-6cc2a5ace133------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a79271c9d6e</guid>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[heroku]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[flask]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Nanda Kishor M Pai]]></dc:creator>
            <pubDate>Thu, 03 Jun 2021 15:52:07 GMT</pubDate>
            <atom:updated>2021-06-03T15:52:07.628Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5AX5kN8fNwO0-LsJjCaY2g.jpeg" /></figure><p>While participating in a hackathon I was stuck with Deploying a Flask app that used PyTorch as one of the dependencies. Reason was the size of PyTorch. Pip installing it costed above 700 MB which was unacceptable given Heroku allows total app size of only 512 MB in the free tier. I had to figure out a way to reduce PyTorch size, but even the older versions were larger than 500MB. I have explained how to use PyTorch with reduced size along with using Models trained on it in this blog.</p><p>Coming directly to the solution. Use PyTorch CPU only versions. Does this answer the whole question? NO. If it would have I won’t be writing a blog on it right?.</p><h4>How to use it precisely?</h4><p>To use CPU only PyTorch as one of the requirements in your app, add these 2 lines in the requirements.txt.</p><pre><strong>-f https://download.pytorch.org/whl/torch_stable.html                                                                                                                                                             torch==1.8.0+cpu</strong></pre><p>Then pip install requirements before you start training or testing the model.</p><pre><strong>pip install -r requirements.txt</strong></pre><p><strong>How to save the model ?</strong></p><p>Training is pretty much same by providing x as argument for the model object. But after that you must save the model as a <strong>.pth</strong> file like this.</p><pre><strong>torch.save(model.state_dict(), &quot;PATH/MODEL-NAME.pth&quot;)</strong></pre><p>Here <strong>model.sate_dict()</strong> saves the model weights instead of the whole model architecture. Advantage is that this method helps us include PyTorch and model in apps that can’t afford huge size while deploying and the disadvantage is that you will have to carry the model architecture to the flask app or wherever you wish to use the model. Let’s see how it works.</p><h4>How to use the model ?</h4><p>You must have the Model/Network class and load the model as follows</p><pre><strong># Network Class example</strong></pre><pre>class <strong>Network</strong>(nn.Module):<br>    def __init__(self):<br>        super(Network,self).__init__()<br>        # CNNs for rgb images <br>        self.conv1= nn.Conv2d(in_channels=3,out_channels=6,kernel_size=5)<br>        self.conv2= nn.Conv2d(in_channels=6,out_channels=12,kernel_size=5)<br>        .<br>        .<br>        .<br>        <br>    def forward(self,t):<br>        t = t<br>        <br>        t=self.conv1(t)<br>        t=F.relu(t)<br>        t=F.max_pool2d(t,kernel_size = 2, stride = 2)<br>        .<br>        .<br>        .<br>        <br>        return t</pre><p>Loading the saved model in Flask app</p><pre># Create an object from the class above<br><strong>model = Network()</strong> </pre><pre># Loading the saved model state (.pth)<br>model.<strong>load_state_dict</strong>(<strong>torch.load</strong>(&quot;path/model_name.pth&quot;))<br>model.eval()</pre><pre>y_pred = model(x)</pre><p>I hope the blog has helped you to understand how to use PyTorch in a way that it doesn’t take up too much space in your dependencies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a79271c9d6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Politically Aware or Active ?]]></title>
            <link>https://nandakishormpai.medium.com/politically-aware-or-active-7f5ea2d66fa0?source=rss-6cc2a5ace133------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f5ea2d66fa0</guid>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[elections]]></category>
            <category><![CDATA[india]]></category>
            <dc:creator><![CDATA[Nanda Kishor M Pai]]></dc:creator>
            <pubDate>Mon, 22 Jun 2020 17:54:58 GMT</pubDate>
            <atom:updated>2020-06-22T17:54:58.240Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Politically Aware or Active ?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*T-NQoyeH_wPXNk-veW9T3g.png" /></figure><p>Living in India without hearing the word politics is as difficult as running a code without error in the first execution.I still remember how I supported a person in a particular issue at the time of its occurrence and had changed my stand after 2 years. So What exactly is politics? To be precise it is not an X or Y party. It is just the things a person or a group does to be better or make themselves the major power. You might have heard words like office politics and all. A lot of my friends wanted to leave India after graduation. The reason was that “In India, everything is in the hands of politicians, they can turn things upside-down in a day. So life here is not stable and the scope for Corporates is less”. Fun fact is that they also admire IIT’s. So the big question is Should I understand national or regional politics? If yes, should I be Politically aware or active?</p><p>As a person about to start a career as an engineer, does the politics of this country affect me? Yes. It affects me the same way corona affects maskless adventurers. Supporting a party is not necessary, but understanding what a party supports is. Keeping track of issues and responses to them in our country makes you politically aware, Responding to them makes you politically active. You should be well known about what the government did in 5 years. Your ignorance just makes you a lab rat in the long term as each decision the authorities take directly or indirectly affects you in a good or bad way. I know that most of us don’t even read the election manifestos. The major reason is that our focus during the election is on prime ministerial candidates. In reality, the PM is not elected by us, so we have to concentrate more on our ward’s candidates.</p><p>I know, you might be wondering, why am I bothered about this topic even though I don’t have an ID card to vote as I have just become 18? I have great concern about the upcoming youth in India as we don’t seem to be much aware of what is happening right now In our country. Social media has either made people politically ignorant (Tiktok) or politically hyperactive (Twitter). Outrage at things you see is not important, But listening to what they have to say is important. They might be suffering or they might just be outraged for attention. Use your brains to Understand who is politically correct instead of focusing on Youtube vs TikTok. We can make sure that our government supports the working class and the decisions it makes are for the people only if we know what has happened and is happening right now. If you found this a bit serious, Politicians are doing the comedy part leaving me with no other options. Stay alert and be aware.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f5ea2d66fa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[IF cars could SPEAK !]]></title>
            <link>https://nandakishormpai.medium.com/if-cars-could-speak-73a2c086e65a?source=rss-6cc2a5ace133------2</link>
            <guid isPermaLink="false">https://medium.com/p/73a2c086e65a</guid>
            <category><![CDATA[hypotheticals]]></category>
            <category><![CDATA[cars]]></category>
            <dc:creator><![CDATA[Nanda Kishor M Pai]]></dc:creator>
            <pubDate>Mon, 22 Jun 2020 12:05:13 GMT</pubDate>
            <atom:updated>2020-06-22T12:05:13.107Z</atom:updated>
            <content:encoded><![CDATA[<h3>IF cars could SPEAK !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*ufzpjmysepDeFWFQKuhusw.jpeg" /><figcaption>Don’t talk while driving. okay?</figcaption></figure><p>If cars could speak ,we would be making noises. Hypothetical questions are fun thinking about the answers until technology strikes off the word hypothetical by inventing talking cars that can understand human emotions and customize the ride according to our situation and talking to us when we feel down and depressed by our own talking species ‘Human Beings’. Cars will be more politically active and outrageous in petrol hike debates as petrol is a fuel for us and ‘Water’ for them to stay alive. Water scarcity is more important than petrol hikes at every angle only if both are considered by authorities. Cars can be easy to handle if they start disturbing us by talking illogical, misogynist things as we can pull out the key. I wish some people were cars with talking feature, rather than humans with transporting features. At this point, I am talking as weird as this topic. So I guess it makes sense when you are asked about things that don’t.</p><p>Cars can be dangerous as it is okay to say bad things to Alexa as she/he can’t harm you, but cars can. So it’s better to buy an ordinary car with Alexa inside. Cars with talking skills can even solve the issue of being alone and single. Now I can see Salman khan promoting it in my mind and the car will still hit pedestrians, but for a change now it’s not Bhai’s mistake as the car was driven by ‘The car itself’. I can even imagine cars calling cuss words to each other in Mumbai roadblocks when one car hits another instead of drivers saying bad words to each other. Then it will turn into a Pokemon situation where every driver owns cars with skills in screaming at other cars and this can even turn into a game as our roadblocks are as stagnant as COVID-19 situation now. Jokes apart talking cars can help the driver in understanding the issues in it and can Repair itself using IoT as it can communicate with the mechanic. I am excited to see talking cars in the future and to release this write up in Youtube as “I predicted this in 2020 itself” if Tiktok vs Youtube issue is over by then.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73a2c086e65a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Thin Line of Feminism]]></title>
            <link>https://nandakishormpai.medium.com/the-thin-line-of-feminism-15c523107eb5?source=rss-6cc2a5ace133------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c523107eb5</guid>
            <category><![CDATA[neha-dhupia]]></category>
            <category><![CDATA[misandry]]></category>
            <category><![CDATA[feminism]]></category>
            <category><![CDATA[sexism]]></category>
            <dc:creator><![CDATA[Nanda Kishor M Pai]]></dc:creator>
            <pubDate>Sun, 07 Jun 2020 11:34:29 GMT</pubDate>
            <atom:updated>2020-06-07T11:41:14.627Z</atom:updated>
            <content:encoded><![CDATA[<p>What is Feminism?<br>Feminism in simple terms means equality among the genders,which does not abide by the patriarchal construct.</p><p>This is what google says. Feminism has more to do with equality than it has to do with “not being girlish”, or “crazy about women”</p><p>Nowadays it has a lot of definitions like “a word to impress girls”, “a license to abuse Men”, “ A source of gaining followers” and “ a right to have 5 boyfriends “. Do we know what feminism is? <br>Yes, we know..we all know what it is and why is it relevant now. I am not spending time on explaining it. Why are we still stuck in patriarchy? The Answer is we are stuck in the word feminism without implementing the concept of feminism. We all shared posts of Mithali Raj, Mary Kom, and many others on women’s day. Major reason being, we will look “cool” and “woke” in front of others. If we want to make a change we should start respecting all human beings irrespective of their gender. My point of view also includes to behave equally with all in every emotional situation. if a girl does something bad to you, you should respond. If you don’t react just because of her gender, that’s also sexism. This reminds me of that scene in Deadpool where he asks the audience whether or not to kill his enemy who is a girl. It is so funny as he asks if I kill her won’t that be sexism? And then he pauses and asks if I don’t kill her won’t that also be sexism? if you find me sexist just because I didn’t give a female superhero reference let me ask you. Did all of you who saw Black panther watched captain marvel in theaters? Most of you might have gone. But not all. The reason being we are skeptical when it comes to women-centric films. But I am not against that, it is your money, your choice as Neha Dhupia said. Do not watch any women-centric movies to promote feminism. That is not feminism, instead spend money on the education of a girl child. I guess you got my point. No need to promote women in places where it is not needed. And same with men. Qualifications and skills should decide results, not gender. I know, no matter how much you try to explain this fact, you will be labeled as sexist or pseudo-feminist. I know this is a controversial topic. But what to do? I like controversies.</p><p>Thank you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*Si33_fFGQLr297WfJDoHLQ.png" /><figcaption>EQUAL-ity</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c523107eb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>