<?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 ARUN RAJ KUMAR on Medium]]></title>
        <description><![CDATA[Stories by ARUN RAJ KUMAR on Medium]]></description>
        <link>https://medium.com/@arunrkfullstack?source=rss-1190bee1bc89------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*nxyD_XBat-cWvvMmwOJSKg.png</url>
            <title>Stories by ARUN RAJ KUMAR on Medium</title>
            <link>https://medium.com/@arunrkfullstack?source=rss-1190bee1bc89------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 21:48:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arunrkfullstack/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[Angular Tutorial (Day -2)]]></title>
            <link>https://medium.com/@arunrkfullstack/angular-tutorial-day-2-69fa861e1ea5?source=rss-1190bee1bc89------2</link>
            <guid isPermaLink="false">https://medium.com/p/69fa861e1ea5</guid>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[angular-cli]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <dc:creator><![CDATA[ARUN RAJ KUMAR]]></dc:creator>
            <pubDate>Sat, 28 Dec 2019 18:38:42 GMT</pubDate>
            <atom:updated>2019-12-28T18:40:41.953Z</atom:updated>
            <content:encoded><![CDATA[<h3>Angular Tutorial (Day — 2)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GsAZPz-h7jVvmTV0PX192g.jpeg" /></figure><p>In previous tutorial we are learned about what is Angular and how to setup in your local machine. This is a continuation of the last tutorial. If you didn’t know how to setup angular project please refer my previous tutorial it’s helpful for you.</p><p><a href="https://medium.com/@arunrkfullstack/angular-tutorial-day-1-678eeb44cf98">Angular Tutorial ( Day — 1)</a></p><p>In this tutorial we are going to learn about</p><p>A. Basic commands</p><p>B. Project structure</p><p><strong>A. Basic Commands</strong></p><p>&gt;<strong>ng new</strong> [your-project-name] — Create a new Angular project</p><p>&gt;<strong>ng generate class</strong> [Your-class-name] — Create a new Typescript class</p><p>&gt;<strong>ng generate component</strong> [component-name] — Create a new component</p><p>&gt;<strong>ng generate service</strong> [service-name] — Create a new service</p><p>&gt;<strong>ng generate module</strong> [module-name] — Create new module</p><blockquote>* you can use <strong>ng g</strong> instead of<strong> ng generate</strong></blockquote><p><strong>B. Project structure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*IVNA4ZcPt6xj0rT3Q5F9mg.png" /></figure><p><strong>1. app.component.css</strong></p><p>It is a css style sheet for app.component.html.</p><p><strong>2. app.component.html</strong></p><p>It is a html file for the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*ei6IBOTsbPMzOWHe_HtTDg.png" /></figure><p><strong>3. app.component.spec.ts</strong></p><p>writing test cases for the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*6du1qLux9GJHhXOV1ln3nA.png" /></figure><p><strong>4. app.component.ts</strong></p><p>It is a Angular component file and components are main building blocks of the Angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*-6zRdnm1rTi7mtVzuxieEw.png" /></figure><p><strong>5. app.module.ts</strong></p><p>It is an important file in Angular project structure. Every angular application must contain at least one module file. Here @NgModule decorator is used to define the Angular module class. we must declare all the components which we are used in our application inside the declaration section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*l_MH4fZOx2D3uJ3d5haPGA.png" /></figure><p><strong>6. assets</strong></p><p>It is a repository of keeping all the resources going to use like images, fonts…</p><p><strong>7. index.html</strong></p><p>It is a root file to start our angular application. Here we can add common style sheets for entire application like bootstrap, google fonts etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*ETH54FyCTNfKigc6zSHIEA.png" /></figure><p><strong>8. main.ts</strong></p><p>It is a main entry point of the application and it contain some configurations.</p><p><strong>enableProdMode </strong>— To enable production mode and disable developer mode.</p><p><strong>AppModule </strong>— Mention which module going to set as root module of the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*83AtlETLMVeq6gq9UvbOTQ.png" /></figure><p><strong>9. styles.css</strong></p><p>It is a normal style sheet file and it’s a common style sheet for entire application.</p><p><strong>10. package.json</strong></p><p>It contain all signature information and related to the dependent package and library which are downloaded in node_modules folder. Here we keeping the name of the application and version etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*eAcf5SPCGNPuDh6HCQ1r1Q.png" /></figure><p><strong>11. node_modules</strong></p><p>It contain all the libraries and packages which are used in angular application.</p><p>Next tutorial we will discuss about the components and binding types.</p><p>Thanks for giving your valuable time to read this document and waiting for your valuable feedback. If you feel in this document is useful for you please hit up claps button.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69fa861e1ea5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Angular Tutorial ( Day — 1)]]></title>
            <link>https://medium.com/@arunrkfullstack/angular-tutorial-day-1-678eeb44cf98?source=rss-1190bee1bc89------2</link>
            <guid isPermaLink="false">https://medium.com/p/678eeb44cf98</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[single-page-applications]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[ARUN RAJ KUMAR]]></dc:creator>
            <pubDate>Thu, 26 Dec 2019 06:21:45 GMT</pubDate>
            <atom:updated>2019-12-26T07:11:16.426Z</atom:updated>
            <content:encoded><![CDATA[<h3>Angular Tutorial ( Day — 1)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KCB3rG4xxP7_iwZzZVxbA.jpeg" /></figure><p><strong>Introduction</strong></p><p>In this tutorial we are going to learn about what is angular and how to setup environment in your local machine.</p><p>Angular is an open source java script based web application framework. Initially it was created by two developers, Misko Hevery and Adam Abrons as a side project in 2009 and call it as GetAngular. Afterthat Google took this project, renamed it AngularJS. The first release of AngularJs 1.0 in May 2011. Afterwards version 2.0 Google renamed AngularJs to <strong>Angular</strong>.</p><p>Every six months google release the Angular updated version. Currently October/November 2019 Google released the verion 9.0. It is a one of best frameworks for developing SPA (Single Page Application) like Vue and React.</p><p>Angular used Type Script, HTML5, CSS/SASS for developing web application. Typescript is a open source programming language build and maintained by Microsoft.</p><p><strong>Setup Environment</strong></p><p>Perquisites for Angular</p><ul><li>NodeJs</li><li>Angular CLI</li><li>Typescript</li><li>IDE Visual Studio Code (Recommended) / Intellij</li></ul><p>Lets install nodejs on your machine. Go to the following website and install nodejs</p><p><a href="https://nodejs.org/en/">Node.js - Run JavaScript Everywhere</a></p><p>Once installed check the current version of node. If your are using Linux / Mac Os check through Terminal, If windows check through Command-prompt and type the command</p><blockquote>node — version (or) node -v</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*tf7hnNx65HDvWVMSny2v_w.png" /></figure><p>Current version of nodejs is 10.18.0 at time of creating this document.</p><p>Check the npm (node package manager) version using following command. npm will install automatically at the time of installing node.</p><blockquote>npm -v (or) npm –version</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*iW3KnH1u4y1M8vChOWjtQA.png" /></figure><p>Current version on npm 6.13.4 at time of creating this document.</p><h3>Install the Angular CLI</h3><p>To install the CLI using npm, open a terminal/console window and enter the following command:</p><blockquote>npm install -g @angular/cli</blockquote><p>If we want to install latest version of Angular using following command :</p><blockquote>npm install -g @angular/cli@latest</blockquote><p>For more detail please check following official site</p><p><a href="https://angular.io/guide/setup-local">https://angular.io/guide/setup-local</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*4SYrjOYtoOqIpYQYhbm3KQ.png" /></figure><p>Check the current version of Angular CLI using following command :</p><blockquote>ng v (or) ng version</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*n02TqWzRWS7Z9D6K_DM0Pg.png" /></figure><p>Now we successfully completed setup the environment for developing Angular application. 😀😀😀</p><p>Lets create our first Angular application. Open your terminal/ Command-Prompt and type the following command.</p><blockquote>ng new [your-project-name]</blockquote><p>Ex: ng new firstapp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*pXmAKRUFBRSs98otB4Uudw.png" /></figure><p>At the time of creating project it will asking would you like to add angular routing. we will discuss about routing upcoming tutorial series. Now just enter N.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*Kr8FnuS1fmNgOceMCDtAtA.png" /></figure><p>Now it will asking for which style-sheet format would you like to use. Select as your wish which you know. Now i selecting CSS. Just hit the enter button. Now your project is created it will take some time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*WOiOxUp-tbDqRN0idDurUg.png" /></figure><p>Open the project On IDE here we are using Visual Studio Code Editor. If you didn’t installed on your machine Please install from following website.</p><p><a href="https://code.visualstudio.com/download">Download Visual Studio Code - Mac, Linux, Windows</a></p><p>Shortcut to open the project on your Visual Code Studio command is</p><blockquote>code .</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*-0TFvp0X4z3CzgYp04f2XQ.png" /></figure><p>From the IDE your project look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GY5nb55cK-XHXyqPfJjt_Q.png" /></figure><p>Now just run the project using following command</p><blockquote>ng serve</blockquote><p>The project default host is localhost and the port is 4200</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4e90WIaVbbLZ_5qoUoWLOA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0slTJqr1k5993xFF3ogvmQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2AeozwpuCNNFDsTQ4IZqlg.png" /></figure><p>Finally we got our first angular application from the url</p><p><a href="http://localhost:4200/">http://localhost:4200/</a></p><p>Next tutorial we will discuss about the project structure and more.</p><p>Thanks for giving your valuable time to read this document and waiting for your valuable feedback. If you feel in this document is useful for you please hit up claps button.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=678eeb44cf98" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Handler in Android (PART — I)]]></title>
            <link>https://medium.com/@arunrkfullstack/handler-in-android-part-i-f86f52ec1412?source=rss-1190bee1bc89------2</link>
            <guid isPermaLink="false">https://medium.com/p/f86f52ec1412</guid>
            <category><![CDATA[threading]]></category>
            <category><![CDATA[background-task]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[android-handler]]></category>
            <dc:creator><![CDATA[ARUN RAJ KUMAR]]></dc:creator>
            <pubDate>Tue, 24 Dec 2019 07:03:34 GMT</pubDate>
            <atom:updated>2019-12-24T07:07:43.111Z</atom:updated>
            <content:encoded><![CDATA[<h3>Handler in Android (PART — I)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUOknyEHrQ6wGqynmp__Eg.jpeg" /></figure><p>In Android we want to perform long running task using background thread with the help of Thread class.</p><p>Basically android application have two type of thread.</p><ul><li>Main Thread(UI Thread).</li><li>Background Thread.</li></ul><p>Lets took one example, We want to download file from a remote server and update the UI progress bar for showing the file downloading status. For that we use background thread to download file from remote server, otherwise if we run a long running task in Main Thread (UI Thread) the UI will slow down.</p><p>Now we achieve task with the help of background thread but the problem is we want to update the UI from background thread that is not possible that is Background Thread will not allow to communicate directly to the Main Thread.</p><h3><strong>Handler</strong></h3><p>So we want to communicate Main Thread from Background Thread with the help of Handler.</p><p>Handler act as a mediator between Background Thread and Main Thread.</p><p>The main uses of Handler is:</p><ul><li>To schedule messages and runnables to be executed at some point in the future.</li><li>To enqueue an action to be performed on a different thread than your own.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*F6wR_gIqVlT7VofxG2AZ5g.png" /><figcaption>Handler</figcaption></figure><p>Lets see the following example</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/58aa56e9d1d8f299002091bd4fcb430b/href">https://medium.com/media/58aa56e9d1d8f299002091bd4fcb430b/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9281327d17fff069057761b2fd0feaf4/href">https://medium.com/media/9281327d17fff069057761b2fd0feaf4/href</a></iframe><p>From the above example we are trying to update UI Thread from the Background thread Using Handler.</p><p>Thanks for giving your valuable time to read this document and waiting for your valuable feedback. If you feel in this document is useful for you please hit up claps button.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f86f52ec1412" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>