<?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 Rishi Kumar on Medium]]></title>
        <description><![CDATA[Stories by Rishi Kumar on Medium]]></description>
        <link>https://medium.com/@rishikc?source=rss-435eccdf96c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TCOG0em1fYrIF6WzKsGaBw.png</url>
            <title>Stories by Rishi Kumar on Medium</title>
            <link>https://medium.com/@rishikc?source=rss-435eccdf96c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 05:30:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rishikc/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[Grays and Whites]]></title>
            <link>https://rishikc.medium.com/grays-and-whites-345b4aea4f63?source=rss-435eccdf96c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/345b4aea4f63</guid>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[life]]></category>
            <dc:creator><![CDATA[Rishi Kumar]]></dc:creator>
            <pubDate>Tue, 18 Oct 2022 04:31:41 GMT</pubDate>
            <atom:updated>2023-08-13T06:03:36.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mWNe6tCui1aA5fUGrTekbQ.jpeg" /><figcaption>I also post photographs on <a href="https://www.instagram.com/rishiikc/">https://www.instagram.com/rishiikc/</a></figcaption></figure><p><em>This article was originally posted </em><a href="https://www.rishikc.com/articles/grays-and-whites/"><em>here</em></a><em>.</em></p><p>Sometimes we try to define something and figure out we don’t need to. Or we slap the closest label on it and move on. We don’t want to bother ourselves too much with the grays because the grays demand energy. Nevertheless, some situations need that we describe certain things.</p><h3>Sentiments</h3><p>I’m yet to fully understand the concept of a job in a traditional sense. I have known more than a few people who have had dream jobs, and I guess there are a handful of people and organizations we would never say no to. I used to think I had one too. Until that opportunity came knocking at my door. And then I rejected it.</p><p>We don’t need to sit down and wonder what our job means to us unless we are leaning toward making a choice. Becoming unwillingly comfortable with something is easier and perhaps more common than we realize. When it comes to our jobs, it is unavoidable because it helps in sustenance. So most of the time, we go along until it exemplifies itself as a choice.</p><p>In my fifth year of holding a professional job as a software engineer, I do it for a few hours, five days a week, to keep the finances flowing. So that I have a place to stay, food to eat, and tend to my whims. And then I do whatever I want to do every day.</p><h3>Shades</h3><p>When something holds a significant value in our lives — something that defines the turns in our journey — we spend most of our time labeling things. Returning to my career example, we may ask ourselves, “Is it something I voluntarily want to do because I love what I’m doing?”. Maybe listen to someone tell us that it won’t feel like a job if we love it. Many other notions have also influenced how we define ideal jobs as a society.</p><p>So if we can explain this crucial part of our “five-times-a-week”-day life, then we know how much of our time and energy needs to go there or if something is worth it. In that way, we can agree that definitions are helpful.</p><h3>Shackles</h3><p>There are also things we are bound to and can’t just move on or ignore. In the context of jobs, it’s about money. Money has become such an essential tool that very few ways of living would free us from our habitual and inherited dependency. Moreover, not everyone will renounce the world and live like a hermit in some forest. It is one thing to romanticize about and a whole other endeavor to leave everything behind just like that.</p><p>I remember reading about someone who lived in the woods for seven or more years. They also found someone during that time, married, and continued the lifestyle with their partner. I remember reading about how they made things out of animal hides and whatever they could find in the forest. So, it is within the realm of possibilities. However, they also sold the things they made or produced to earn money because there are still expenses — like an internet connection. Nevertheless, I think it is commendable, and more and more people are moving towards a similar lifestyle in recent years for many reasons.</p><blockquote>On a side note, <a href="https://www.amazon.com/dp/178633089X/ref=cm_sw_em_r_mt_dp_XACXBK63QVVW8QVM1B5J">Ikigai by Héctor García</a> is a book that has been wildly popular in recent time and talks about how you can find something you can enjoy doing. At the same time, you earn money, find your purpose, realize happiness, and all that good stuff. It puts forward a pretty logical system that I feel is, very obviously, a definition-heavy process. If you haven’t read the book, it is worth a shot.</blockquote><h3>Getting comfortable with Grays</h3><p>Life has its share of things way more complicated and exciting than a mundane job. But what I have learned so far is defining things goes a long way toward building a life filled with love, happiness, and, most importantly, peace. It attempts to clear any uncertainty or fear of regret; and provides a foundation we can use to make a decision. Defining something doesn’t mean it instantly becomes all black and white. Not that it needs to be said, but it probably wouldn’t be wise to label something only because it looks gray, and we don’t want gray.</p><p>In those ways, our lives can be colorful and gray simultaneously. None of us would ever really be fond of the gray or of racking our brains, even wrecking it at times, trying to put it into black and white. So I believe the best we can do is define the grays and whites.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=345b4aea4f63" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install, Setup and Use Android Emulator for Mac, Linux and Windows without installing Studio]]></title>
            <link>https://rishikc.medium.com/install-android-emulator-for-react-native-app-without-installing-android-studio-727d7734528?source=rss-435eccdf96c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/727d7734528</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[emulator]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Rishi Kumar]]></dc:creator>
            <pubDate>Sat, 12 Jan 2019 12:40:06 GMT</pubDate>
            <atom:updated>2019-06-09T08:54:55.935Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*7CuAJfeUKMcSXHcQRSIIAg.png" /><figcaption>React Native and Google’s Android Emulator — The better solution.</figcaption></figure><h3>How to Install, Setup and Use Android Emulator for Mac, Linux and Windows without installing Android Studio</h3><h3>— And save yourself a lot of space!</h3><p><a href="https://rishikc.com/articles/native-app-emulator-android-mac-linux-ios-install-command-line"><strong><em>The article was originally posted in this link.</em></strong></a></p><p>So let me ask you first —</p><p>How many of you have installed Android Studio <strong><em>only to use the emulator for your native app</em></strong>? Oh, and don’t forget the way your system struggles when you try to run it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*9mP8ScTFbvC_8Eb_Hjsl0w.jpeg" /><figcaption>Dammit!</figcaption></figure><p>And no, I’m not just talking about any average system — even my Macbook Pro with 8GB of RAM makes a lot of noise!</p><p>A lot of you might have also come across alternatives like <a href="https://www.genymotion.com/">Genymotion</a> , <a href="https://www.bignox.com/">Nox</a> , <a href="https://www.bluestacks.com/">BlueStacks</a> and a lot others. Some are free, while a lot others with really nice features and performance are paid.</p><p>So most of us stick to the free ones or end up downloading Android Studio for the really good and easy to use emulator it provides.</p><p>But it gets worse when you already have <a href="https://code.visualstudio.com/">Visual Studio Code</a> , a few tabs on Google Chrome and your music player running!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*sU3Q_SQ1A1HpwmWiv3EKDg.png" /><figcaption>Scene credits: <a href="https://www.imdb.com/title/tt2442560/">Peaky Blinders</a>. Image editing credits: <a href="https://medium.com/u/435eccdf96c9">Rishi Kumar</a></figcaption></figure><p>Okay enough with the memes, let’s quickly set up Android Studio’s emulator in a better way this time — without actually installing Android Studio! ✊</p><h4><strong>Step 1: Install Java Development Kit 8.</strong></h4><p>First you’ll need to install <a href="https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html">JDK 8</a>. Windows and linux users can directly visit the link and download it after accepting the license.</p><p>For Mac users, I recommend installing via <a href="https://brew.sh/">Homebrew</a> :</p><pre>brew tap caskroom/versions<br>brew cask install java8</pre><p>Windows and Linux users should make sure that they have set-up path to their Java installation.</p><h4><strong>Step 2: Install Android SDK.</strong></h4><p>Once we have installed and set-up Java in our system, we will need to install Android SDK.</p><p>Windows and linux users can download the command line tools <a href="https://developer.android.com/studio/#downloads">here</a>.</p><p>Mac users can install it by running:</p><pre>brew cask install android-sdk</pre><p><strong><em>Note for Mac users: </em></strong>If you run into an error like this while installing android SDK :</p><pre>Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema <br>at com.android.repository.api.SchemaModule$SchemaModuleVersion.&lt;init&gt;(SchemaModule.java:156)<br>at com.android.repository.api.SchemaModule.&lt;init&gt;(SchemaModule.java:75)<br>at com.android.sdklib.repository.AndroidSdkHandler.&lt;clinit&gt;(AndroidSdkHandler.java:81)<br>at com.android.sdklib.tool.SdkManagerCli.main (SdkManagerCli.java:117)</pre><p>Then you simply need to run the below command and try installing android-sdk again :</p><pre>touch ~/.android/repositories.cfg</pre><p>After installing, make sure you have added android-sdk to your system path.</p><p>For Mac and Linux users, you need to add the following line to your <em>.bashrc</em> or <em>.zshrc</em> :</p><pre>export ANDROID_HOME=/path/to/android-sdk</pre><h4>Important note for the next two steps:</h4><p><em>Incase your system complains about not being able to find the command while trying to issue the next set of commands involving </em><strong><em>sdkmanager</em></strong><em> , </em><strong><em>avdmanager</em></strong><em> or </em><strong><em>emulator</em></strong><em> — you can navigate to the directory where it is present inside the android-sdk folder and run them as </em><strong><em>./sdkmanager</em></strong><em> , </em><strong><em>./avdmanager</em></strong><em> and </em><strong><em>./emulator</em></strong><em> respectively.</em></p><p>For those of you who are feeling lazy to find it yourself :</p><p><strong><em>sdkmanager </em></strong><em>and</em><strong><em> avdmanager </em></strong><em>will be located inside </em><strong><em>android-sdk/tools/bin </em></strong><em>whereas</em><strong><em> emulator </em></strong><em>can be found inside</em><strong><em> android-sdk/tools.</em></strong></p><p>Now that we know this, let’s continue towards a better development experience!</p><h4><strong>Step 3: Install platform and build tools required for React Native.</strong></h4><p>Now we can go ahead and set-up platform and build tools to help us in creating and running our virtual device in android emulator.</p><p>To do this, open your terminal and run the following command :</p><pre>sdkmanager &quot;platforms;android-23&quot; &quot;build-tools;23.0.1&quot; &quot;add-ons;addon-google_apis-google-23&quot;</pre><p>Once we have downloaded the above packages, run the following command to list all the tools available :</p><pre>sdkmanager --list</pre><p>This will fetch the complete list of the available packages on remote that you can download to your system. You can download packages from the list by running :</p><pre>sdkmanager &quot;sdk-path-for-package&quot;</pre><p><strong><em>Note:</em></strong> <em>sdk-path is the string in the leftmost column of the generated list. And it must be wrapped in quotes while running the above command. For example, let’s say we want to create a virtual device which requires </em><strong><em>Google APIs Intel x86 Atom System Image</em></strong> <em>package, we can install the package by running :</em></p><pre>sdkmanager &quot;system-images;android-23;google_apis;x86&quot;</pre><p>You can download the packages that you need from the list and if you look closely, you’ll find android emulator package there too! But don’t worry I won’t make you go through the long list in your terminal, here’s the command you need to run in order to download the android emulator package :</p><pre>sdkmanager &quot;emulator&quot;</pre><p>That’s it! We’ve downloaded the android emulator and we’re ready to set-up our Android virtual device!</p><h4><strong>Step 4: Create a new virtual device.</strong></h4><p>Let’s create an android virtual device with the help of <strong><em>Google APIs Intel x86 Atom System Image </em></strong>we downloaded through the previous command, which was :</p><pre>sdkmanager &quot;system-images;android-23;google_apis;x86&quot;</pre><p>Now to create a virtual device, run the following command :</p><pre>avdmanager create avd --force --name myTestDevice --abi google_apis/x86 --package &#39;system-images;android-23;google_apis;x86&#39; --device &quot;myTestDevice&quot;</pre><p>This will create a virtual device named <em>myTestDevice</em> using the <em>Intel x86 Atom system image </em>we downloaded<em>.</em></p><p>To check if your device was created, you can run :</p><pre>emulator -list-avds</pre><p>This will list all the virtual devices present in your system.</p><p>If you followed all the instructions properly, you can see your device listed as well and you must be able to start your virtual device by running :</p><pre>emulator -avd myTestDevice</pre><p>And now your android emulator will start with the device you just created! But this time in a better way just like you always deserved — without wasting your precious storage space! 🎉</p><p><em>And don’t forget to leave a few claps if you liked this post or share it with someone who might need this! </em>😄</p><p><em>Don’t forget, you can leave upto 50 claps!! 👏👏</em></p><p>Happy Hacking! Cheers!</p><p><em>You can also find me on </em><a href="http://www.linkedin.com/in/rkrishi"><em>LinkedIn</em></a><em>, </em><a href="http://www.github.com/rishichawda"><em>Github</em></a><em> and </em><a href="https://twitter.com/rishiikc"><em>Twitter</em></a><em>.</em></p><p><em>Do you have any queries or suggestions? Did you run into some problem while installing or setting up? Leave your comment on the post and I’d love to help you out!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=727d7734528" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shrink your React Native application size dramatically!]]></title>
            <link>https://rishikc.medium.com/reduce-your-react-native-app-size-dramatically-5430d773c92f?source=rss-435eccdf96c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5430d773c92f</guid>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[build]]></category>
            <dc:creator><![CDATA[Rishi Kumar]]></dc:creator>
            <pubDate>Thu, 20 Sep 2018 17:57:36 GMT</pubDate>
            <atom:updated>2019-06-09T08:56:23.878Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lvvJ5Y3OlaCijhrOU4z5Bw.png" /></figure><p><strong><em>This article was originally </em></strong><a href="https://rishikc.com/articles/shrink-react-native-application-build-size-android"><strong><em>posted here.</em></strong></a></p><p>So you made a cool and awesome looking <a href="https://facebook.github.io/react-native/"><strong><em>React Native</em></strong></a> app and now you’re ready to build it and maybe publish it to the store —</p><p>But worried about it if the users would want to install it given its build size? Or maybe you just want to keep it light weight and not take too much memory unnecessarily when it can be packed into a smaller size?</p><p>Or you’re just one of us who are paranoid about build sizes? Don’t worry, we got you covered! 😄 ✔️</p><p>First of all, you’ll need to eject your Native app if you’re using <a href="https://github.com/react-community/create-react-native-app">create-react-native-app</a> for your project (You might have already done this if you’ve built your application before reading this article). This is important since you don’t have access to configurations until you eject, as the build folder is where we have to make changes. If you haven’t , you can simply do this by :</p><pre>npm run eject</pre><p><strong>Note:</strong> Ejecting a native application is a permanent action! ( Unless you’re using a version control system to keep track of previous versions of your app — from where you can recover the ‘unejected’ version of your app later if you need ). <a href="https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md">Learn more about ejecting here</a>.</p><p>Okay so now we’re all set! Let’s get started and get that done fast. Don’t worry it just takes a few minutes and your app size will reduce, as the title says, <em>dramatically!</em></p><p>Now, navigate to the android/app folder from your project root directory where you can find your build.gradle file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wt-TIISbtsZdN-RjDR2dCQ.png" /></figure><p>Here, you’ll find your default build configurations already setup, find the line which looks like this :</p><pre>def enableProguardInReleaseBuilds = false<br>def enableSeparateBuildPerCPUArchitecture = false</pre><p>and change their value to true , like this :</p><pre>def enableProguardInReleaseBuilds = true<br>def enableSeparateBuildPerCPUArchitecture = true</pre><p>So you might be wondering what it does. Well, if you scroll down a bit you’ll see enableProguardInReleaseBuilds and enableSeparateBuildPerCPUArchitecture written at a few more places like here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5-fI2zJWB2FWvALhfcJ8A.png" /></figure><p>As you can see, these variables are being used to enable or disable two build configurations —</p><ul><li>One for generating separate .apks for different device architectures,</li></ul><pre>...<br>splits {<br>    abi {<br>         reset()<br>         enable enableSeparateBuildPerCPUArchitecture<br>...</pre><p><em>Don’t worry about having to handle different </em><em>.apks for each architecture — Google takes care of distributing it to the users! And separating the builds according to architecture removes unnecessary code from your file which is not required on the device it is running.</em></p><ul><li>Another one for compressing the Java bytecode generated while building, as in,</li></ul><pre>...<br>buildTypes {<br>    release {<br>             minifyEnabled enableProguardInReleaseBuilds<br>...</pre><p>Phew, that was pretty easy! <strong><em>But wait, we’re not done yet! </em></strong>There’s one little thing we need to do.</p><p>Now let’s add this line right below the minifyEnabled configuration:</p><pre>...<br>buildTypes {<br>    release {<br>             minifyEnabled enableProguardInReleaseBuilds<br>             shrinkResources true     /* &lt;-- Add this line */<br>...</pre><p>And we’re done! Now build your app again and check the output directory. You’ll find two different .apks of your app which are specified in the configuration by default, i.e., for armebi and x86 architectures.</p><p><em>Oh, and by the way,</em> if you need a universal .apk that supports all device architectures — just set universalApk to true and it’ll generate a universal .apk next time you run build!</p><p>That’s all! Now you’ve setup your build configuration to shrink your code along with resources and create separate .apk for different architectures — thus removing unnecessary code from the final build.</p><p>Thanks for reading! Please support this awesome article with your sweet claps! Don’t forget, you can leave upto 50 claps! 👏👏</p><p>And share so that other members can find this helpful when they need.</p><p>For more resources on how to reduce the application build size, <a href="https://developer.android.com/studio/build/shrink-code">follow this link</a>.</p><p>Happy hacking! Cheers!</p><p><em>You can find me on </em><a href="http://www.linkedin.com/in/rkrishi"><em>LinkedIn</em></a><em> , </em><a href="http://www.github.com/rishichawda"><em>Github</em></a><em> and </em><a href="http://twitter.com/rishiikc"><em>Twitter</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5430d773c92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>