<?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: Dhanraj K</title>
    <description>The latest articles on DEV Community by Dhanraj K (@dhanraj).</description>
    <link>https://dev.to/dhanraj</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%2F474078%2F49cd6d98-ea04-4154-bfb9-f91a3a431145.jpeg</url>
      <title>DEV Community: Dhanraj K</title>
      <link>https://dev.to/dhanraj</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dhanraj"/>
    <language>en</language>
    <item>
      <title>How to Setup a Python Virtual Environment</title>
      <dc:creator>Dhanraj K</dc:creator>
      <pubDate>Mon, 29 Mar 2021 14:02:23 +0000</pubDate>
      <link>https://dev.to/dhanraj/how-to-setup-a-python-virtual-environment-2np4</link>
      <guid>https://dev.to/dhanraj/how-to-setup-a-python-virtual-environment-2np4</guid>
      <description>&lt;p&gt;Virtual Environment is necessary when you have many projects with different requirements, You can use python2 or python3 without worrying about collision and keep then main python folder clean&lt;/p&gt;

&lt;h4&gt;
  
  
  Install python virtual environment
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt;&amp;gt; sudo apt-get install updates
&amp;gt;&amp;gt; sudo apt-get install python3-venv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Create project folder
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt;&amp;gt; mkdir project_folder_name
&amp;gt;&amp;gt; cd project_folder_name/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Initialize a virtual environment
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt;&amp;gt; python3 -m venv virtual_env_name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  To activate virtual_env
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt;&amp;gt; source virtual_env_name/bin/activate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  To deactivate virtual_env
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;gt;&amp;gt; deactivate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>python</category>
      <category>linux</category>
      <category>virtualenv</category>
    </item>
    <item>
      <title>Create and Manage Cloud Resources</title>
      <dc:creator>Dhanraj K</dc:creator>
      <pubDate>Sat, 10 Oct 2020 16:37:39 +0000</pubDate>
      <link>https://dev.to/dhanraj/create-and-manage-cloud-resources-42g5</link>
      <guid>https://dev.to/dhanraj/create-and-manage-cloud-resources-42g5</guid>
      <description>&lt;p&gt;&lt;strong&gt;Virtual machines&lt;/strong&gt;&lt;br&gt;
Dividing a big server into multiple instance where each of them works exactly like a regular server. Each of this divided part is a Virtual machine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is a Compute engine?&lt;/strong&gt;&lt;br&gt;
A google Compute engine is a customizable VM, Google provide both pre-defined and custom-type compute engine.&lt;/p&gt;

&lt;p&gt;Pre-defined machine-types are general(best for web, and small applications), Compute Optimized and Memory Optimized.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Ngnix?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Its a Http and &lt;a href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=&amp;amp;cad=rja&amp;amp;uact=8&amp;amp;ved=2ahUKEwjToZWV2KvsAhXKfH0KHUzRC8gQFjAHegQICBAC&amp;amp;url=https%3A%2F%2Fwww.nginx.com%2Fresources%2Fglossary%2Freverse-proxy-server%2F&amp;amp;usg=AOvVaw24bB3UWQJZLV0OSxtxu66Q"&gt;reverse proxy server&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating a VM using Google Cloud Console&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open cloud Console.&lt;/li&gt;
&lt;li&gt;Navigation menu &amp;gt; Compute Engine &amp;gt; VM Instances.&lt;/li&gt;
&lt;li&gt;Name your VM, and also select Region, Zone, Series, Machine type, Boot-Disk and Firewall&lt;/li&gt;
&lt;li&gt;Click on Create.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Creating a Vm using Command Line&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open Cloud terminal&lt;/li&gt;
&lt;li&gt;Use gcloud command
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gcloud compute instances create &amp;lt;vm_name&amp;gt; --machine-type &amp;lt;machine-type&amp;gt; --zone &amp;lt;your_Zone&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Eg
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gcloud compute instances create gcelab2 --machine-type n1-standard-2 --zone us-central1-c
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;to Ssh into your instance
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gcloud compute ssh gcelab2 --zone us-central1-c
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>googlecloud</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What is Google Cloud ?</title>
      <dc:creator>Dhanraj K</dc:creator>
      <pubDate>Sat, 10 Oct 2020 16:33:35 +0000</pubDate>
      <link>https://dev.to/dhanraj/what-is-google-cloud-14o5</link>
      <guid>https://dev.to/dhanraj/what-is-google-cloud-14o5</guid>
      <description>&lt;p&gt;Google Cloud Platform provides computer resources (servers) which runs on a well optimized infrastructure.&lt;/p&gt;

&lt;p&gt;It helps you in deploying applications(web, mobile app, Ml models, ...)&lt;/p&gt;

&lt;p&gt;By using Cloud Solutions many top companies solve their business problems like hosting, managing traffic load, security and analytics. &lt;/p&gt;

&lt;p&gt;To get started - &lt;a href="https://cloud.google.com/"&gt;Gcloud&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google Cloud provides 100+ products.&lt;/p&gt;

&lt;p&gt;Few Best courses to get started with Cloud Computing - &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://www.coursera.org/learn/introduction-to-cloud#about"&gt;Introduction to Cloud Computing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.coursera.org/learn/cloud-computing-basics#about"&gt;Cloud Computing Basics (Cloud 101)&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Books -&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Cloud Computing: Concepts, Technology &amp;amp; Architecture
by &lt;em&gt;Thomas Erl&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Cloud Computing: From Beginning to End
by &lt;em&gt;Ray Rafaels&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;Cloudonomics: The Business Value of Cloud Computing
by &lt;em&gt;Joe Weinman&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In upcoming posts I'll Blog my learning process with key points to remember from Google Qwiklabs Cloud Engineering Track&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cloud Engineering Track&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Getting Started: Create and Manage Cloud Resources&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Perform Foundational Infrastructure Tasks in Google Cloud&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Setup and Configure a Cloud Environment in Google Cloud&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deploy and Manage Cloud Environments with Google Cloud&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Build and Secure Networks in Google Cloud&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Deploy to Kubernetes in Google Cloud&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;These are the Skill badges required to finish Cloud Engineering track, around 54hr of practice is required.&lt;/p&gt;

&lt;p&gt;I'm a Complete beginner trying to learn cloud engineering,If you find anything wrong or improvements in my posts, let me know in the comments &lt;/p&gt;

&lt;p&gt;thank you&lt;/p&gt;

</description>
      <category>googlecloud</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Installing MySQL and MySQL Workbench on Linux</title>
      <dc:creator>Dhanraj K</dc:creator>
      <pubDate>Wed, 23 Sep 2020 16:55:36 +0000</pubDate>
      <link>https://dev.to/dhanraj/installing-mysql-and-mysql-workbench-on-linux-200m</link>
      <guid>https://dev.to/dhanraj/installing-mysql-and-mysql-workbench-on-linux-200m</guid>
      <description>&lt;p&gt;Simple Guideline on installing MySQL and Workbench on Ubuntu , Pop_OS or any Debian Linux.&lt;/p&gt;

&lt;p&gt;Install MySQL&lt;/p&gt;

&lt;p&gt;Update apt to ensure you get the latest packages and install mysql-server&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo apt-get update
$ sudo apt-get install mysql-server
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Next to setup and Configure MySQL&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Selecting Y ('yes') for all the setting is reasonabe.&lt;/p&gt;

&lt;p&gt;To access MySQL&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo mysql -u root -p
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Install MySQL Workbench&lt;/p&gt;

&lt;p&gt;Download the installer which is compatable for your system and Linux version .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.mysql.com/downloads/workbench/"&gt;click here to download&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just click on the deb file and install or use dpkg command to install&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo dpkg -i path_to_deb_file
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To Uninstall MySQL and MySQL Workbench&lt;/p&gt;

&lt;p&gt;If u want to remove both this softwares completely from your system use the following commands&lt;/p&gt;

&lt;p&gt;To remove MySQL&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
$ sudo apt-get autoremove -y
$ sudo apt-get autoclean
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To remove MySQL Workbench&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo apt-get remove mysql-workbench-community
or
$ sudo dpkg -r mysql-workbench-community
$ sudo dpkg --purge mysql-workbench-community
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To Start, Stop, Restart or check Status of MySQL Service&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo service mysql start 
$ sudo service mysql stop
$ sudo service mysql restart
$ sudo service mysql status
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;To Access MySQL without SUDO&lt;/p&gt;

&lt;p&gt;When we try to access MySQL without sudo ERROR 1045 (28000): Access denied for user 'username'@'localhost' (using password: NO)&lt;/p&gt;

&lt;p&gt;this error pops up&lt;/p&gt;

&lt;p&gt;Follow this steps to overcome this error&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ sudo mysql  -u root -p
Enter password:
mysql&amp;gt; show databases;
mysql&amp;gt; use mysql
mysql&amp;gt; select user, host, plugin from mysql.user;
mysql&amp;gt; update user set plugin="mysql_native_password" where User="root";
mysql&amp;gt; flush privileges;
mysql&amp;gt; exit;
$ mysql -u root
mysql&amp;gt; SET GLOBAL validate_password.policy=LOW;
mysql&amp;gt; ALTER USER 'root'@'localhost' IDENTIFIED BY 'Enter_password';
mysql&amp;gt; exit
$ sudo service mysql restart
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;now we can access MySQL by using&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ mysql  -u root -p
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>mysql</category>
    </item>
  </channel>
</rss>
