<?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: Ahmet Ustun</title>
    <description>The latest articles on DEV Community by Ahmet Ustun (@ahmetustun).</description>
    <link>https://dev.to/ahmetustun</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%2F428358%2Fa258b418-4704-45e3-b9e6-a29240a50cb8.png</url>
      <title>DEV Community: Ahmet Ustun</title>
      <link>https://dev.to/ahmetustun</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ahmetustun"/>
    <language>en</language>
    <item>
      <title>Mixing 2 Colors in CSS with color-mix()</title>
      <dc:creator>Ahmet Ustun</dc:creator>
      <pubDate>Fri, 29 Mar 2024 09:15:43 +0000</pubDate>
      <link>https://dev.to/ahmetustun/mixing-2-colors-in-css-with-color-mix-5bla</link>
      <guid>https://dev.to/ahmetustun/mixing-2-colors-in-css-with-color-mix-5bla</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature.&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  One Byte Explainer:
&lt;/h2&gt;

&lt;p&gt; &lt;br&gt;
Maintaining color palettes with hard-coded values in CSS can be a burden. With &lt;code&gt;color-mix()&lt;/code&gt;, developers can mix 2 colors with different percentages to obtain a new one. It can be handy when lighter, darker, or opaque versions of a brand color are needed.&lt;/p&gt;




&lt;h2&gt;
  
  
  Additional Context:
&lt;/h2&gt;

&lt;p&gt; &lt;br&gt;
The simple usage of &lt;code&gt;color-mix&lt;/code&gt; with percentages:&lt;br&gt;
&lt;code&gt;color-mix(in srgb, green %30, red 70%)&lt;/code&gt;&lt;br&gt;
 &lt;br&gt;
The sum of the percentages gives the alpha value:&lt;br&gt;
&lt;code&gt;color-mix(in srgb, green %30, red %30)&lt;/code&gt;&lt;br&gt;
 &lt;br&gt;
If one of the percentages is omitted, the sum will be 100%:&lt;br&gt;
&lt;code&gt;color-mix(in srgb, green %30, red)&lt;/code&gt;&lt;br&gt;
 &lt;br&gt;
If both the percentages are omitted, each one will be 50%:&lt;br&gt;
&lt;code&gt;color-mix(in srgb, green, red)&lt;/code&gt;&lt;/p&gt;




&lt;p&gt;As of March 2024, &lt;code&gt;color-mix()&lt;/code&gt; works across the latest browser versions.&lt;/p&gt;

</description>
      <category>frontendchallenge</category>
      <category>devchallenge</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Listing the Globally Installed NPM Packages</title>
      <dc:creator>Ahmet Ustun</dc:creator>
      <pubDate>Fri, 21 Apr 2023 09:35:20 +0000</pubDate>
      <link>https://dev.to/ahmetustun/listing-the-globally-installed-npm-packages-5cng</link>
      <guid>https://dev.to/ahmetustun/listing-the-globally-installed-npm-packages-5cng</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--910bXBh5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn-images-1.medium.com/max/10750/1%2AeuyZGDxaNgUcgMFeZc2N-Q.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--910bXBh5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn-images-1.medium.com/max/10750/1%2AeuyZGDxaNgUcgMFeZc2N-Q.jpeg" alt="Photo by [Carl Raw](https://unsplash.com/@carltraw?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/m3hn2Kn5Bns?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText)" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When working with Node.js, you may install various NPM packages globally to use them across multiple projects. Over time, you may forget which global NPM packages are on your system.&lt;/p&gt;

&lt;p&gt;In this article, we’ll explore how to list the global NPM packages on your system with code samples.&lt;/p&gt;




&lt;h2&gt;
  
  
  Listing the Global NPM Packages
&lt;/h2&gt;

&lt;p&gt;To list the installed global NPM packages, you can use the following command in your terminal:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# List the installed global NPM packages
npm list -g --depth 0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This command will display the list of global NPM packages installed on your system.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;-g or --global: The option to list global packages on your system.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;--depth 0: The option to limit the depth of the dependency tree to zero. This will only list the top-level packages without their dependencies.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Listing the Global NPM Packages with Details
&lt;/h2&gt;

&lt;p&gt;To list the installed global NPM packages with details, such as the version number and location, you can use the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# List the installed global NPM packages with details
npm list -g --depth 0 --long
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This command will display the list of global NPM packages installed on your system along with their version number and installation location.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;--long: The option to display additional information about each package, including its version and the location of its files on disk.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Checking the Version of a Global NPM Package
&lt;/h2&gt;

&lt;p&gt;To check the version of a specific global NPM package, you can use the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Check the version of a specific global NPM package
npm list -g &amp;lt;package_name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Replace  with the name of the global NPM package you want to check.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm list -g create-react-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Listing the global NPM packages on your system is a simple process that can help you keep track of the NPM packages installed on your system.&lt;/p&gt;

&lt;p&gt;Remember to periodically check the list of global NPM packages to keep your system up-to-date and avoid any conflicts or issues with your projects.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>node</category>
      <category>npm</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Changing Remote in Git Repositories</title>
      <dc:creator>Ahmet Ustun</dc:creator>
      <pubDate>Wed, 19 Apr 2023 21:08:59 +0000</pubDate>
      <link>https://dev.to/ahmetustun/changing-remote-in-git-repositories-11o9</link>
      <guid>https://dev.to/ahmetustun/changing-remote-in-git-repositories-11o9</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--m6lF0Q3q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn-images-1.medium.com/max/12096/1%2AeNiQG0u2bcQsciKS8zCw-w.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--m6lF0Q3q--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://cdn-images-1.medium.com/max/12096/1%2AeNiQG0u2bcQsciKS8zCw-w.jpeg" alt="Photo by [Lorenzo Herrera](https://unsplash.com/@lorenzoherrera?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText) on [Unsplash](https://unsplash.com/photos/p0j-mE6mGo4?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText)" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Git is a powerful version control system that allows developers to collaborate on code and track changes made to a project over time.&lt;/p&gt;

&lt;p&gt;Sometimes, you may need to change the remote URL associated with a Git repository. In this article, we’ll explore how to change the remote URL of a Git repository with code samples.&lt;/p&gt;




&lt;h2&gt;
  
  
  Checking the Current Remote URL
&lt;/h2&gt;

&lt;p&gt;Before changing the remote URL, it’s essential to verify the current remote URL associated with your Git repository.&lt;/p&gt;

&lt;p&gt;You can do this by using the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Verify the current remote URL
git remote -v
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This command will display the current remote URL associated with your Git repository.&lt;/p&gt;




&lt;h2&gt;
  
  
  Adding a New Remote URL
&lt;/h2&gt;

&lt;p&gt;To add a new remote URL to your Git repository, you can use the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Add a new remote URL
git remote add &amp;lt;name&amp;gt; &amp;lt;URL&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Replace  with a name for your new remote and  with the URL of your new remote repository.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote add newRemote https://github.com/user/newrepo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Removing an Old Remote URL
&lt;/h2&gt;

&lt;p&gt;To remove an old remote URL from your Git repository, you can use the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Remove an old remote URL
git remote rm &amp;lt;name&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Replace  with the name of the old remote repository, you want to remove.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote rm oldRemote
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Setting a New Remote URL as Default
&lt;/h2&gt;

&lt;p&gt;To set a new remote URL as the default for your Git repository, you can use the following command:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Set a new remote URL as default
git remote set-url origin &amp;lt;URL&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Replace  with the URL of your new remote repository.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git remote set-url origin https://github.com/user/newrepo.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;




&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Changing the remote URL of a Git repository can be done easily with the right commands without losing any of your existing code.&lt;/p&gt;

&lt;p&gt;Make sure to check the current remote URL before making any changes, and set the new remote URL as default to avoid any confusion in the future.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>git</category>
      <category>github</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
