<?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 yash patel on Medium]]></title>
        <description><![CDATA[Stories by yash patel on Medium]]></description>
        <link>https://medium.com/@yp270200?source=rss-be1be5b9f939------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*t5B3GkfThRvSYtyc</url>
            <title>Stories by yash patel on Medium</title>
            <link>https://medium.com/@yp270200?source=rss-be1be5b9f939------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:18:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yp270200/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[Hybrid Monitor Setup for dual OS using KVM]]></title>
            <link>https://medium.com/@yp270200/hybrid-monitor-setup-for-dual-os-using-kvm-7cf64d84b3f0?source=rss-be1be5b9f939------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cf64d84b3f0</guid>
            <category><![CDATA[wfh]]></category>
            <category><![CDATA[kvm-switch]]></category>
            <category><![CDATA[pc-setup]]></category>
            <category><![CDATA[ｍac]]></category>
            <category><![CDATA[windows-10]]></category>
            <dc:creator><![CDATA[yash patel]]></dc:creator>
            <pubDate>Thu, 24 Nov 2022 16:30:23 GMT</pubDate>
            <atom:updated>2022-12-06T03:13:41.568Z</atom:updated>
            <content:encoded><![CDATA[<p>This is simple approach to setup common peripherals usage for two different operating system. In essence I had two conditions I wanted to fulfill:</p><ol><li>I had two monitors of which I wanted to at least share one between two different operating systems, MacBook and Windows 10 PC.</li><li>Having limited space for keyboard area was another issue. At a time I was only able to use it either for laptop or for pc comfortably. I wanted to use same keyboard and mouse for pc and laptop both without switching cables every time.</li></ol><p>These use cases are common for people working from home nowadays. Moving things around or switching cables created a lot of mental resistance and is not really feasible in cases where we want to switch frequently.</p><p>Apart from this I had recently taken note-taking seriously for my personal knowledge management, which is not just for work related things but for every aspect of life. To incorporate efficient note taking I wanted one screen dedicated for note taking most of time.</p><p>Okay, lets get straight to the point now. As title states I eventually used KVM (Keyboard Video Mouse) switch. This device is used to switch keyboard , display device or mouse between difference systems. Which made it perfect for my use case.</p><p>You might have already come across this multiple times while researching for your own hybrid solution. But initially I was not able to take this approach because I wanted a cost effective solution . And If you check content on KVM online, their is not much details about this kind of setup and the recommended ones are generally on expensive side.</p><p>If you are going to use this dual OS setup for long term than my advice for you will be to go for a expensive one like TESmart (<a href="https://amzn.to/3B8Ju9i">link</a>), which will provide more safety measures to protect your machines and provide more useful features.</p><p>But if you are like me and want a solution for short term and willing to accept some level of risk then solutions below might be helpful for you as well. Again, think carefully, before going for any cheap solutions, I am not in anyway encouraging this, it was just fitting for my case.</p><p>If you have decided to go for this, then explore some cheap KVM options like this one which I am using by KCEVE (<a href="https://www.amazon.in/gp/product/B0983KRJ3H?ie=UTF8&amp;psc=1&amp;linkCode=ll1&amp;tag=investro-21&amp;linkId=7ef3b8b9c462a2d7f58252e1ede9f7cf&amp;language=en_IN&amp;ref_=as_li_ss_tl">link</a>), there are some from Tobo (<a href="https://www.amazon.in/Tobo-Switcher-Keyboard-Sharing-Computer/dp/B08R65JDSX?keywords=tobo+kVM&amp;qid=1669307143&amp;qu=eyJxc2MiOiIxLjk1IiwicXNhIjoiMC4wMCIsInFzcCI6IjAuMDAifQ%3D%3D&amp;sr=8-1-spons&amp;sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&amp;psc=1&amp;linkCode=ll1&amp;tag=investro-21&amp;linkId=45c3958a205d90d57a73221a2a6658be&amp;language=en_IN&amp;ref_=as_li_ss_tl">link</a>). In these models you will be able to connect an external monitor, keyboard, mouse and in KCEVE case you will able to connect a headset as well. Along with that you will have to connect HDMI and a USB cables from both machines. Then with the press of a button you will be able to switch these peripherals between these two systems.</p><p>There are some solutions just for switching keyboard and mouse if your use case does not include monitor like this one from UGREEN (<a href="https://www.amazon.in/Ugreen-30767-UGREEN-Switch-Selector/dp/B01MXXQKGM?crid=LMCWQYFAIKHL&amp;keywords=KVM+UGREEN&amp;qid=1669307232&amp;qu=eyJxc2MiOiIyLjIwIiwicXNhIjoiMC44NiIsInFzcCI6IjAuMDAifQ%3D%3D&amp;sprefix=kvm+ugreen%2Caps%2C255&amp;sr=8-1&amp;linkCode=ll1&amp;tag=investro-21&amp;linkId=ffc302ebd751f56d9ae310ae3c6163c7&amp;language=en_IN&amp;ref_=as_li_ss_tl">link</a>).</p><p>As I told you will have to accept some risk. In my case I faced these two issues:</p><ol><li>Current leakage issue through my MacBook’s body when connected to this KVM. I believe this happens because my monitor did not have earthing pin, which is generally the case, and since the KVM itself does not have a separate power delivery there was not earthing point. I fixed it by always keeping MacBook connected to charger and charger to the switch board when using it with KVM, this allowed the leakage current to pass through charger and not on MacBook body.</li><li>Another issue I was facing was sudden disconnection of peripherals when I was using my PC with KVM. I fixed it by switching from USB 2.0 port I was using to connect to KVM to USB 3.0 port and changing the cable I was using to connect with my PC. I believe inefficient power supply or the cable had some problem.</li></ol><p>Below are the images from my setup, the monitor in right side the one I am using in my hybrid flow. First Image is when I am using it with my PC and after on click on the KVM switch , I can use it with my MacBook as shown in second image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEMjOfinROoA0WxvbEB3Ig.jpeg" /><figcaption>Using right monitor with PC</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HcDMuwquh_6_8CH54PPW7Q.jpeg" /><figcaption>After switching to MacBook using KVM</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cf64d84b3f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup Julia with Jupyter notebook on Google Cloud Platform]]></title>
            <link>https://medium.com/@yp270200/setup-julia-with-jupyter-notebook-on-google-cloud-platform-611e676bc522?source=rss-be1be5b9f939------2</link>
            <guid isPermaLink="false">https://medium.com/p/611e676bc522</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[julia]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[yash patel]]></dc:creator>
            <pubDate>Fri, 14 Jun 2019 09:51:29 GMT</pubDate>
            <atom:updated>2019-06-15T05:56:52.579Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RefP5r61NswHavaLP4omtw.png" /></figure><p><a href="https://julialang.org/">Julia</a> is high performance dynamically-typed programming language. It is build especially for scientific and numerical computing. <a href="https://jupyter.org/">Jupyter notebook</a> can run Julia so it becomes a reliable medium to code in Julia on <a href="http://cloud.google.com/%E2%80%8E">Google cloud platform</a> (GCP). GCP is a suite of public cloud computing services provided by Google, it helps us to compute, store or develop our programs or applications on Google hardware.</p><p>Sometimes it becomes difficult to compute things in our local computer. For such situations, GCP becomes a great option. Their are a lot of articles available for other programming languages to setup GCP but for Julia their is lack of articles which become makes hard for Julia users to setup Julia in GCP. I faced the same issue and hence wanted to help people facing similar problem.</p><p>In this blog, I will show to setup things on Ubuntu 16.04 OS, but the for other systems the procedure will be same.</p><p>Procedure:</p><ol><li>Create a GCP VM instance.</li><li>Set external IP address static for created instance.</li><li>Create a firewall rule with a tcp port.</li><li>Open Secure Shell (SSH).</li><li>Install Jupyter notebook and configure it.</li><li>Install Julia and add IJulia library.</li></ol><h4>Create a GCP VM instance:</h4><p>Firstly, you should have a Google account to create instance. After logging into the account, go to Compute Engine &gt;&gt; VM instances &gt;&gt; Create Instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tWYbIBQkZFR4HNB4K5TKYA.png" /></figure><h4>Set External IP address static:</h4><p>In order to use Jupyter notebook on your local machine we need to set external IP address to that instance to static. To do so, go to Networking &gt;&gt; VPC networks &gt;&gt; External IP addresses. There change IP address from Ephemeral to Static for current instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*4eYrvwE2XzNyCRk7qm6GhA.png" /></figure><h4>Creating firewall rule:</h4><p>We need to create a firewall rule to set a tcp port to access Jupyter notebook. Again in VPC networks go to Firewall rules then create a firewall rule with TCP port of your choice (say 5000).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*rrf-2p0_bNaSpSmto29a9w.png" /></figure><h4>Open Secure shell:</h4><p>SSH can be opened direct by clicking on on SSH button in VM instances or can also be opened in third party software like PuTTY, you can also use gcloud cli to open SSH in PuTTY.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*txxmMUvqbBpRsnBNtaRPvA.png" /></figure><h4>Install Jupyter notebook:</h4><p>There are two ways to <a href="https://jupyter.org/install">install Jupyter notebook</a>, either by first installing anaconda package then Jupyter notebook or by first installing pip then Jupyter notebook. This tells us that Python is also needed to install Jupyter notebook. In Ubuntu, Python is there by default so we only need to install pip. In Windows OS as well we need python to be installed and pip or conda. In this blog, I will use pip since it is easier and lighter to install than anaconda.</p><p>In Ubuntu to install pip , first we need to update it:</p><pre>sudo apt-get update</pre><p>Installing pip:</p><pre>sudo apt-get install python-pip</pre><p>After installing to install jupyter it is better to upgrade pip:</p><pre>pip install --upgrade pip</pre><p>Before install Jupyter notebook, install <em>six</em> package (version &gt; = 1.11.0):</p><pre>python -m pip install --user six==1.11.0</pre><p>Then install Jupyter notebook:</p><pre>python -m pip install --user jupyter</pre><p>Now, we need to configure jupyter notebook so that we can access it through local machine in our browser. For that first we have to generate configure file for jupyter notebook:</p><pre>jupyter notebook --generate-config</pre><p>Now, open that configure file using any of favorite editor (nano, vim etc):</p><pre>vim  ~/.jupyter/jupyter_notebook_config.py</pre><p>Then add these line to the file:</p><pre>c = get_config()<br>c.NotebookApp.ip = &#39;0.0.0.0&#39;<br>c.NotebookApp.open_browser = False<br>c.NotebookApp.port = 5000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*CvAVDJ3ZpbhCVNgolhtulw.png" /></figure><p>NOTE: In front of port line, you have to enter the tcp port number which you had set in the firewall rule.</p><p>Now, I would suggest to set password for jupyter notebook, so that you won’t have to give token again and again to open jupyter notebook later. To set password use:</p><pre>jupyter notebook password</pre><p>Now, you are fully set to start jupyter notebook, simply type:</p><pre>jupyter notebook</pre><p>Then go to your favorite browser, and type:</p><p>&lt;external IP address of that instance &gt;:&lt;TCP port number&gt;</p><pre>35.229.156.225:5000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhnPemcWxqlJ-yHMZYHOqw.png" /><figcaption>External IP address</figcaption></figure><h4>Installing Julia:</h4><p>To get install julia go to <a href="https://julialang.org/downloads/">download page</a> of Julia and copy the link of version you wish to download (I am downloading julia 1.1.1). Choose correct link for you OS I am download for Linux with correct architecture of your VM instance (32-bit or 64-bit), mine is 64-bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UymLN-GbDuPiPl5t2VKv6A.png" /></figure><p>To download julia, use wget tool:</p><p>wget &lt;copied link&gt;</p><pre>wget <a href="https://julialang-s3.julialang.org/bin/linux/x64/1.1/julia-1.1.1-linux-x86_64.tar.gz">https://julialang-s3.julialang.org/bin/linux/x64/1.1/julia-1.1.1-linux-x86_64.tar.gz</a></pre><p>For Linux, first extract Julia for tar file:</p><p>tar -xvzf &lt;downloaded file name&gt;</p><pre>tar -xvzf julia-1.1.1-linux-x86_64.tar.gz</pre><p>Now, we need to add the bin folder path to the PATH environment variable and also add that to ~bashrc file:</p><pre>echo &#39;export PATH=$PATH:&lt;path to directory where the julia is extracted&gt;/julia-1.1.1/bin&#39; &gt;&gt; ~/.bashrc</pre><pre>source ~/.bashrc</pre><p>Now, we can open julia by simply tying:</p><pre>julia</pre><p>Now, to use Jupyter Notebook with Julia, we need to install IJulia package by julia package manager:</p><pre>julia&gt; using Pkg<br>julia&gt; Pkg.import(&quot;IJulia&quot;)</pre><p>This finishes all installations and now we can use jupyter notebook with julia:</p><pre>julia&gt; using IJulia<br>julia&gt; notebook()</pre><p>Then go to your browser and again type (in URL section):</p><p>&lt;external IP address&gt;:&lt;TCp port&gt;</p><pre>35.229.156.225:5000</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=611e676bc522" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>