<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: twostepdeveloper</title>
    <description>The latest articles on DEV Community by twostepdeveloper (@twostepdeveloper).</description>
    <link>https://dev.to/twostepdeveloper</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F231054%2Fc3d08ce7-0395-41c2-ab17-870cc9dc1b58.png</url>
      <title>DEV Community: twostepdeveloper</title>
      <link>https://dev.to/twostepdeveloper</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/twostepdeveloper"/>
    <language>en</language>
    <item>
      <title>How to Install or Uninstall a Windows Service</title>
      <dc:creator>twostepdeveloper</dc:creator>
      <pubDate>Thu, 19 Nov 2020 08:17:43 +0000</pubDate>
      <link>https://dev.to/twostepdeveloper/how-to-install-or-uninstall-a-windows-service-3gh9</link>
      <guid>https://dev.to/twostepdeveloper/how-to-install-or-uninstall-a-windows-service-3gh9</guid>
      <description>&lt;p&gt;In this article. I will show how to install or uninstall a Windows Service. this Service is written in .NET using C#.&lt;br&gt;
To install or uninstall Windows Service use the utility InstallUtil.exe.&lt;/p&gt;

&lt;p&gt;Follow the steps . &lt;br&gt;
Step 1 : Open the Command Prompt window. (as Administrator)&lt;br&gt;
         Press Windows+R to open the “Run” box. Type “cmd” into &lt;br&gt;
         the box and then press Ctrl+Shift+Enter to run the &lt;br&gt;
         command as an administrator.&lt;br&gt;
         &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rKa68nu---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/rezvv5pqerexzbr3kyj4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rKa68nu---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/rezvv5pqerexzbr3kyj4.png" alt="Alt Text" width="880" height="318"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2 : Open InstallUtil.exe in the directory for Framework 2.0 (it depends on you in which version you want to install).I will install in v4.0&lt;br&gt;
the path is C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sDEXxRlc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0e4qej1bjlauaq2h1qx4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sDEXxRlc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/0e4qej1bjlauaq2h1qx4.png" alt="Alt Text" width="880" height="345"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note: The path will be different for different versions of .NET Framework. You can see on this path (C:\Windows\Microsoft.NET\Framework) or search on your machine where InstallUtil.exe is stored.&lt;/p&gt;

&lt;p&gt;Step 3 :.NET service runs as a command (specify the full path to your service such as (service location C:\Debug\yourServiceName.exe)&lt;br&gt;
type command in cmd InstallUtil.exe C:\Debug\yourServiceName.exe Press enter key as you can see here.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wMJEgZ1z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/de2tm6mou0bhiofj999p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wMJEgZ1z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/de2tm6mou0bhiofj999p.png" alt="Alt Text" width="880" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 4: If you want to see service is where it is installed.&lt;br&gt;
        press window+R and type in run like services.msc&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tPLuZjvG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1yrk0yera18dromteuu3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tPLuZjvG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1yrk0yera18dromteuu3.png" alt="Alt Text" width="398" height="198"&gt;&lt;/a&gt;&lt;br&gt;
as you can see where service is installed . just click to start your service.Now it is ready to work. :)&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NAGI3Gq4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/lw5rx9zs98umk1m7xm1j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NAGI3Gq4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/lw5rx9zs98umk1m7xm1j.png" alt="Alt Text" width="880" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 5: To uninstall service. just type simple command in prompt&lt;br&gt;
just add ‘/u’ between installutil.exe and the path as in the following:&lt;br&gt;
InstallUtil.exe /u C:\Debug\yourServiceName.exe&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Q2uFdKPi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/d2ule3spy270jlpvfy0l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Q2uFdKPi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/d2ule3spy270jlpvfy0l.png" alt="Alt Text" width="836" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this is helpful to you .If you like my post Please follow me on Instagram @twostepdevelopers and share your feedback.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>service</category>
      <category>windowservice</category>
      <category>webdevelopers</category>
    </item>
    <item>
      <title>What is globalThis? ES2020 new features</title>
      <dc:creator>twostepdeveloper</dc:creator>
      <pubDate>Fri, 10 Jan 2020 10:32:59 +0000</pubDate>
      <link>https://dev.to/twostepdeveloper/what-is-globalthis-es2020-new-features-30oc</link>
      <guid>https://dev.to/twostepdeveloper/what-is-globalthis-es2020-new-features-30oc</guid>
      <description>&lt;p&gt;A new property added in es2020 called globalThis. It's cross-platform support to access to the global object in JavaScript. Accessing the global property in JavaScript has always posed some difficulty. This is because different platforms have different ways to access it.&lt;/p&gt;

&lt;p&gt;such as :&lt;br&gt;
Client side uses: windows,frames,this&lt;br&gt;
web workers uses: self&lt;br&gt;
node js uses: global&lt;/p&gt;

&lt;p&gt;now all environment can use simple globalThis .&lt;br&gt;
Also you can watch my video on this topic.&lt;br&gt;
&lt;a href="https://youtu.be/yn3J6KfMqBw"&gt;https://youtu.be/yn3J6KfMqBw&lt;/a&gt;&lt;/p&gt;

</description>
      <category>es2020</category>
    </item>
    <item>
      <title>Variable Shadowing in JavaScript</title>
      <dc:creator>twostepdeveloper</dc:creator>
      <pubDate>Thu, 03 Oct 2019 07:04:45 +0000</pubDate>
      <link>https://dev.to/twostepdeveloper/variable-shadowing-in-javascript-2fhn</link>
      <guid>https://dev.to/twostepdeveloper/variable-shadowing-in-javascript-2fhn</guid>
      <description>&lt;p&gt;If you declare a variable within a certain scope (decision block, function, or inner class).It has the same name as a variable declared in an outer scope. This is called variable shadowing. How it works. let's start...&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hT2ML6rK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/c35mgvuutkqdigx05t6t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hT2ML6rK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/c35mgvuutkqdigx05t6t.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also You can understand more about it. &lt;br&gt;
Click here &lt;a href="https://jsbin.com/cupixak/edit?js,console"&gt;https://jsbin.com/cupixak/edit?js,console&lt;/a&gt;&lt;br&gt;
&lt;a href="https://youtu.be/nzSGIzgbv9U"&gt;https://youtu.be/nzSGIzgbv9U&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this is useful javascript tips. if you like please follow, share,comments and like. (Muhammad Rizwan Alam)&lt;br&gt;
also please don't forget to subscribe my youtube channel&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>variableshadowing</category>
      <category>csharp</category>
      <category>css</category>
    </item>
    <item>
      <title>Difference between varchar, nvarchar in sql server ?</title>
      <dc:creator>twostepdeveloper</dc:creator>
      <pubDate>Tue, 17 Sep 2019 07:01:23 +0000</pubDate>
      <link>https://dev.to/twostepdeveloper/what-is-difference-between-varchar-nvarchar-4bki</link>
      <guid>https://dev.to/twostepdeveloper/what-is-difference-between-varchar-nvarchar-4bki</guid>
      <description>&lt;p&gt;In this article i will differentiate between varchar, nvarchar data type.&lt;/p&gt;

&lt;p&gt;About the Varchar: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It is a variable that has a length data type.&lt;/li&gt;
&lt;li&gt;It is use to store non-Unicode characters.&lt;/li&gt;
&lt;li&gt;It Occupy 1 byte of space for each character.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;example :&lt;br&gt;
         DECLARE &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt; VARCHAR(20)&lt;br&gt;&lt;br&gt;
         SET &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt; = 'Rizwan'&lt;br&gt;&lt;br&gt;
         SELECT &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt; AS 'Name', DATALENGTH(&lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;) AS 'Occupied Length' , &lt;br&gt;
         LEN(&lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;) AS 'Name Length'&lt;br&gt;
Result : Name     Occupied Length   Length&lt;br&gt;
         Rizwan   6(6*1 byte=6bytes)    6 &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fpvydum30l3w5pinf13b8.png" alt="Alt Text"&gt;
&lt;/h2&gt;

&lt;p&gt;About the NVARCHAR data:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It is a variable that has length data type.&lt;/li&gt;
&lt;li&gt;It is use to store Unicode characters.&lt;/li&gt;
&lt;li&gt;It Occupy 2 bytes of space for each character.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;example :&lt;br&gt;
         DECLARE &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt; NVARCHAR(20)&lt;br&gt;&lt;br&gt;
         SET &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt; = 'Rizwan'&lt;br&gt;&lt;br&gt;
         SELECT &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt; AS 'Name', DATALENGTH(&lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;) AS 'Occupied Length' , &lt;br&gt;
         LEN(&lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;) AS 'Name Length'&lt;br&gt;
Result : Name     Occupied Length    Length&lt;br&gt;
         Rizwan   12(6*2 byte=12 bytes)  6 &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fle97yeeby0w8ofi7z2ho.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fle97yeeby0w8ofi7z2ho.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;This tiny article is just to make you aware of the basic differences between the  VARCHAR and NVARCHAR data types they are used to store characters, numbers or special characters. &lt;br&gt;
This is my first article&lt;br&gt;
I hope you all will like and that will be helpful to you most of developers confuse about varchar ,nvarchar when we should use varchar,nvarchar. &lt;br&gt;
Please Leave your comments about your opinion good or bad.&lt;br&gt;
Sharing is caring :)&lt;/p&gt;

</description>
      <category>sql</category>
      <category>database</category>
      <category>bestpractice</category>
      <category>datatype</category>
    </item>
  </channel>
</rss>
