<?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 Rafay Jamal on Medium]]></title>
        <description><![CDATA[Stories by Rafay Jamal on Medium]]></description>
        <link>https://medium.com/@rafayjamal?source=rss-424ea9431d73------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*XDPoa69ZSmgI9ZR9.</url>
            <title>Stories by Rafay Jamal on Medium</title>
            <link>https://medium.com/@rafayjamal?source=rss-424ea9431d73------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 03:11:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafayjamal/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[Apartment Prisoner]]></title>
            <link>https://medium.com/@rafayjamal/apartment-prisoner-ce92e853816c?source=rss-424ea9431d73------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce92e853816c</guid>
            <dc:creator><![CDATA[Rafay Jamal]]></dc:creator>
            <pubDate>Fri, 09 Aug 2019 09:39:21 GMT</pubDate>
            <atom:updated>2019-08-09T09:39:21.062Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oB2y9973Z226WxJ5cApM3w.jpeg" /></figure><p><strong>Today</strong>, I would like to share a thought with all of you guys that came to me a few days back and It’s not going away. So I have decided to share it with the world.</p><p>Today we are so blinded by the materialistic world that we don’t see the beauty of nature that has been gifted to <strong>us</strong> and no one else in the entire universe. Just try to think that the size of the Universe and then the size of the biggest star and then the size of our star and then the size of the earth and then think the size of a human being and you will realize that we are not even bigger than the size of a particle or might be smaller than that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ZltT3rrsEZtYaE3LJmmfTw.jpeg" /><figcaption>Size of the sun as compared to other stars</figcaption></figure><p>Before reading further just read the above paragraph again and try to visualize it again in your mind without giving any other thought.</p><p>We have been a given a precious life but we spend most of our lifetime to buy an apartment in a metropolitan city. Just try to look out from your balcony or driving through the city you will see apartments. Apartments? Really? Don’t they seem like a box of cement placed one above another so that we could be called civilised. I would rather prefer them to call them a prisoner.</p><p>Now let me explain why I called it an Apartment Prisoner.<br>Most of us are earning having a thought that I will buy an Apartment when I save enough or I will take an EMI to buy a house. This is the first stage of becoming a prisoner because then the rest of the life you will end up clearing your debt. After spending millions just to buy a space in the air then you become the prisoner of that few square feet of land. Thinking it to be a house which is not more than walls of brick and mortar, you will spend the rest of your life in that box without even realising that you are not made to be boxed.</p><p>We should realise that the whole world is our play ground. Try not to limit your thoughts. Think about why you have been brought in this world. The one who has created us didn’t just create us. He created the universe, think about its size, He created Earth, He also created Human being and also subatomic particles. So for him, if we spend our precious life in just running around buying a box of cement or finding a better purpose of our life won’t matter. But for us, it really matters. Don’t try to run behind the materialism try to find happiness in life, the real meaning of happiness.</p><p>Hope you like what I wrote. Please share your thoughts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce92e853816c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Easily create portable version of VS Code with Angular CLI and Node.js]]></title>
            <link>https://medium.com/@rafayjamal/easily-create-portable-version-of-vs-code-with-angular-cli-and-node-js-b371efd63ad5?source=rss-424ea9431d73------2</link>
            <guid isPermaLink="false">https://medium.com/p/b371efd63ad5</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[vscode]]></category>
            <dc:creator><![CDATA[Rafay Jamal]]></dc:creator>
            <pubDate>Wed, 27 Jun 2018 10:23:26 GMT</pubDate>
            <atom:updated>2018-06-28T08:55:51.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xVkw-zMhvcvRJnsXtlerYQ.jpeg" /></figure><p>A portable version of VS code comes handy when you don’t have installation rights for a software or when you are on someone else’s machine and do not want to stop coding.</p><p>Few days back, my machine broke down and I wanted to use VS Code for my angular project development. I got a friends machine but didn’t have installation right. Argghhh!</p><p>So, I decided to have portable version which I can have in my flash drive and use it where ever I want.</p><p>If you want to download then you can download it from this <a href="https://drive.google.com/file/d/1jM9_oyDyudVhhXvyxqOYI_uWlM_JYi7_/view?usp=sharing">link</a>, but if you are someone like me who want to do it on there own then follow on.</p><p>This will be the folder structure of our code</p><blockquote>PortabelApp<br> | — node-v10.4.0-win-x64<br> | ` — nodevars.bat<br> | ` — npm.cmd<br> | ` — npx.cmd<br> | — VSCode-win32-x64–1.24.0<br> | ` — Code.exe<br> | ` — setnode.bat</blockquote><ol><li>Create a folder name PortabelApp</li><li>Download and Extract VS Code and Node.js in this folder as mention below</li><li><strong>VS Code</strong>, download a zip version from the <a href="https://code.visualstudio.com/download">Microsoft website</a>. I have downloaded this version. VSCode-win32-x64–1.24.0.zip</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4VeJJuMJYf1lOtudq7A5lg.jpeg" /></figure><p>4. <strong>Node.js</strong>, download a zip version from the <a href="https://nodejs.org/en/download/">download page</a>. I downloaded the following version node-v10.4.0-win-x64.zip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*7Hr3w1WIe46jerLuj6NYQA.jpeg" /></figure><p>5. Extract both the file and move them to the PortableApp folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*xdUdfRscr0jlcWDlUiq8-Q.jpeg" /></figure><p>6. Go ahead and launch the VS Code.</p><p>7. Let’s do some <a href="https://code.visualstudio.com/docs/getstarted/settings">user setting in VS Code</a> to set portable node environment to our editor.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a74e0c36f2e195f190a25f02cb7fd394/href">https://medium.com/media/a74e0c36f2e195f190a25f02cb7fd394/href</a></iframe><p>In the above setting, we are adding CMD as our default shell in line 2. In line 3 current working directory is set to where our code.exe is present and line 4 is running a node batch file when the terminal is launched.</p><p>8. Now open the terminal and it will be set to the Node.js environment for you. If everything went well then you will get this message</p><p><em>Your environment has been set up for using Node.js 10.4.0 (x64) and npm.</em></p><p>9. Now run these command to install the typescript and @angular/cli. I am still not ready for angular 6 so I like to download the specific version of cli.</p><p>`npm i –g typescript @angular/cli@1.7.4`</p><p>10. On success, you will get the ng and tsc in node folder. This will be the folder structure</p><blockquote>PortabelApp<br>| — node-v10.4.0-win-x64<br>| ` — nodevars.bat<br>| ` — npm.cmd<br>| ` — npx.cmd<br>| ` — ng.cmd<br>| ` — tsc.cmd<br>| — VSCode-win32-x64–1.24.0<br>| ` — Code.exe<br>| ` — setnode.bat</blockquote><p>Now you just need to open the folder where your project is and navigate to the folder using the command line and you are good to go.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*AyUKvDmuAvXS0m2Y2JXJ1w.gif" /></figure><p>If you like it then share it with like minded. {•̃_•̃}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b371efd63ad5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop wasting time! Kill CSS bug with Pesticide | Chrome Extension]]></title>
            <link>https://medium.com/@rafayjamal/kill-css-bug-with-pesticide-11271180c781?source=rss-424ea9431d73------2</link>
            <guid isPermaLink="false">https://medium.com/p/11271180c781</guid>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[angularjs]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Rafay Jamal]]></dc:creator>
            <pubDate>Fri, 01 Jun 2018 20:34:37 GMT</pubDate>
            <atom:updated>2018-06-03T20:44:07.712Z</atom:updated>
            <content:encoded><![CDATA[<p>Stop wasting time! Kill CSS bug with Pesticide | Chrome Extension</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ldwd2HSSFRPJWrnCPNoXcg.gif" /></figure><p>You might be wondering, what I mean by Pesticide for CSS. Correct! Don’t be amazed when I tell this is actually a CSS which helps in killing the bug in your layout.</p><p>I have been using it for a while and notice there are very few who are aware of this amazing and wonderful work done by <a href="http://mrmrs.cc/">Adam Morse</a>.</p><p>I searched extensively on the web, hoping people might have written a good article about it but I couldn’t find one. I mostly found only a line or two or a paragraph about it, which I think is not a justice for this really awesome tool.</p><p>So let’s begin….</p><p>It’s pretty simple to configure. Just install it on chrome using the <a href="https://chrome.google.com/webstore/category/extensions">chrome web store</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aoLCHdppbp-gsrAwrm3owg.gif" /></figure><p>To use it on your page, you just need to click on the Pesticide button which just appears in the top right corner of the bar.</p><p>On clicking, every element will be outlined by a different colour which will be very helpful in distinguishing the boundary and overlay of each element. Same is happening in the banner of this story.</p><p>So let’s see an example. Here is a card, which has three buttons on it. They are looking good, but still, there is something missing. They look so cluttered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*aBm9oJYKZJ3TNhdQQWyxtw.jpeg" /></figure><p>So let’s figure out, how we can fix this.</p><p>Option 1: Open the chrome dev tool, navigate to the element and figure out the issue.</p><p>Option 2: Just click on the Pesticide shortcut button and everything will be done for you. You need not travel the whole tree to figure out the issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*bDwEXVMPUEqtw5RCDkNQIQ.gif" /></figure><p>As you can see, how easy it is to use. We can just provide margin to fix the issue. They look much better after the margin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*4S5-k5hiLev2pIHuIffJgw.jpeg" /></figure><p>Go ahead and give it a try. I hope you like it, then please share it with the like-minded. If you want to read more on this, then you can visit <a href="https://github.com/mrmrs/pesticide">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11271180c781" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Paint your code with Bracket Pair Colorizer | VS Code]]></title>
            <link>https://medium.com/@rafayjamal/paint-your-code-with-bracket-pair-colorizer-vs-code-2feca1a287ab?source=rss-424ea9431d73------2</link>
            <guid isPermaLink="false">https://medium.com/p/2feca1a287ab</guid>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Rafay Jamal]]></dc:creator>
            <pubDate>Sat, 26 May 2018 20:21:17 GMT</pubDate>
            <atom:updated>2018-05-27T06:02:00.082Z</atom:updated>
            <content:encoded><![CDATA[<p>I would like to start this blog with this quote to emphasize the importance of color.</p><blockquote>“Color creates, enhances, changes, reveals and establishes the mood of the painting.” — Kiff Holland</blockquote><p>Coding is my life and I have been doing for a while now, as a child, I used to write code in Logo and BASIC where it’s all black background with a white foreground and you can’t do much about it. Totally helpless back then.</p><p>Few years after that, I learn HTML and back in those days we didn’t have any IDE for it or I might be unaware if there is one. I coded mostly in Notepad and formatted them as per my liking. Years passed by and I learned many languages and used many IDE’s and finally ended up using the <a href="https://code.visualstudio.com/">VS Code</a>.</p><p>I get very excited whenever I open up my VS Code because of the endless possibilities it provides. It also gives endless extension to suit the mode and liking of you, thanks to the love of people for VS Code.</p><p>So, here I am today, writing about the <em>Bracket Pair Colorizer </em>which I have fell in love with since the time I installed it.</p><p>Before moving any further, let see how your code will look like with and without this extension</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*EqXxbZ6SNZGrbYNAt2p5cQ.gif" /><figcaption>Without Bracket Pair Colorizer</figcaption></figure><p>Above is a sample of code without any extension install where you can see a bunch of bracket which is very difficult to identify from one another because they all look same. Plain white and boring, without any imagination and life in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*spFXbNe3IsQmdHKZ5VmWNw.gif" /><figcaption>With Bracket Pair Colorizer</figcaption></figure><p>You can make a clear visual distinction between the two images, as this one has the extension installed. Each bracket has there own colour and as you move your cursor inside the bracket, section is highlighted of the corresponding colour.</p><p>I hope, this will make your life little easy and your coding much interesting.</p><p>By default (), [], and {} are matched, however custom bracket characters can also be configured. For settings you can visit the <a href="https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer">Visual Studio | Marketplace</a></p><h3>How to install</h3><p>You can install it using the VS Code extension. Just look for <em>Bracket Pair Colorizer, </em>hit install and reload after installation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*3zk07_Vhbsb_PXMJvOKoXg.gif" /></figure><p>If you have come so far and like reading this, then please share with the like-minded.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2feca1a287ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Language Service | VS CODE]]></title>
            <link>https://medium.com/@rafayjamal/template-saver-angular-language-service-vs-code-5039284be47a?source=rss-424ea9431d73------2</link>
            <guid isPermaLink="false">https://medium.com/p/5039284be47a</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[angular-language-service]]></category>
            <category><![CDATA[template]]></category>
            <category><![CDATA[angular-cli]]></category>
            <dc:creator><![CDATA[Rafay Jamal]]></dc:creator>
            <pubDate>Thu, 17 May 2018 15:36:41 GMT</pubDate>
            <atom:updated>2018-05-18T05:52:11.586Z</atom:updated>
            <content:encoded><![CDATA[<p>Angular team describe Language Service as a way to get <em>completions</em>, <em>errors</em>, <em>hints</em>, and <em>navigation </em>inside your Angular templates. There are number of plugin which help user to provide suggestion while writing the typescript file but it’s very difficult to find anything which improve our coding while writing template. This is where Language Service kicks in. When you use an editor with a language service, there’s an editor process which starts a separate language process/service to which it speaks through an <a href="https://en.wikipedia.org/wiki/Remote_procedure_call">RPC</a>. Any time you type inside of the editor, it sends information to the other process to track the state of your project.</p><p>Let see how thing will differ when we have angular service vs when we don’t have it.</p><h3><strong>1. Navigation</strong></h3><p>Here is an example of <em>Go To Definition</em> || <em>Peek Definition </em>in context menu of VS Code over a property in the template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*upcqJtlqXZqs815utPR_Ig.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*Awh3bmLwyvLnChqJ41cjOQ.gif" /><figcaption>Navigation Without and With Angular Language Service</figcaption></figure><h3><strong>2. Hint</strong></h3><p>It’s a great feature to know about a property in template, just by hovering on it. It save lot of time and help us understand the code easily without jumping over the files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*cNU8a3X11yUfI_k6q3my0Q.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*4D3CGZBAuABvSde6zUJbqw.gif" /><figcaption>Hint Without and With Angular Language Service</figcaption></figure><h3>3. Error Handling in &lt;&lt;Template&gt;&gt;</h3><p>VS Code have many plugin which can show us the possible error in a JavaScript or Typescript file but we do not have plugin or service which can tell us about possible error in a template file. This service will help us avoiding mistake as it show the possible error while writing the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*NAg1CdvB7pp-SXyX-VIATg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*vl7amoNLZIUES7Cm0B1URg.gif" /><figcaption>Error Without &amp; With Angular Language Service</figcaption></figure><h3>4. Auto Complete</h3><p>We already know what it means, so just have a look below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*XVCziNXdACVARgz8xUDIAw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*SlCoBoKzx2t7VZhoBJVSpg.gif" /><figcaption>Auto Complete Without &amp; With Angular Language Service</figcaption></figure><h3>How to install</h3><ol><li>From <a href="https://marketplace.visualstudio.com/items?itemName=Angular.ng-template">Visual Studio | Marketplace</a></li><li>You can download in VS Code using the extension tab. After install just reload the project.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mfn_LgI_VuYTBcWN4xs3pg.gif" /><figcaption>Install Angular Language Service using Extension in VS Code</figcaption></figure><p>You can check this <a href="https://github.com/Microsoft/angular2-in-visual-studio">repo</a> for the support of Angular Language Service in Visual Studio 2017</p><h3><strong>Source</strong></h3><p><a href="https://www.youtube.com/watch?v=ez3R0Gi4z5A">Using the Angular Template Language Service — CHUCK JAZDZEWSKI</a></p><p><a href="https://angular.io/guide/language-service#angular-language-service">Angular Language Service</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5039284be47a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>