<?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: Alfa Riza</title>
    <description>The latest articles on DEV Community by Alfa Riza (@alfariza).</description>
    <link>https://dev.to/alfariza</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F670879%2F7bc6c3b4-7213-4de0-b403-fa4da8166057.jpeg</url>
      <title>DEV Community: Alfa Riza</title>
      <link>https://dev.to/alfariza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alfariza"/>
    <language>en</language>
    <item>
      <title>Creating a car rental admin using Laravel 9 part 1: Setup database, model, migration, seeder.</title>
      <dc:creator>Alfa Riza</dc:creator>
      <pubDate>Sun, 28 Aug 2022 08:20:15 +0000</pubDate>
      <link>https://dev.to/alfariza/creating-a-car-rental-admin-using-laravel-9-part-1-setup-database-model-migration-seeder-k80</link>
      <guid>https://dev.to/alfariza/creating-a-car-rental-admin-using-laravel-9-part-1-setup-database-model-migration-seeder-k80</guid>
      <description>&lt;p&gt;Hello everyone, in this article we will create a car rental application using Laravel and bootstrap 5.&lt;/p&gt;

&lt;h2&gt;
  
  
  Database
&lt;/h2&gt;

&lt;p&gt;for the database architecture I’ve made it on dbdiagram&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dbdiagram.io/d/622e260f61d06e6eadf298a6"&gt;DbDiagram&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;we have a users table, user_details to store user data, cars table to store car data and transactions table to store transaction data. In the .env file, don’t forget to set the database&lt;/p&gt;

&lt;p&gt;&lt;code&gt;DB_CONNECTION=mysql&lt;br&gt;
DB_HOST=127.0.0.1&lt;br&gt;
DB_PORT=3306&lt;br&gt;
DB_DATABASE=rental_mobil&lt;br&gt;
DB_USERNAME=root&lt;br&gt;
DB_PASSWORD=&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Instalation
&lt;/h2&gt;

&lt;p&gt;the next step we will install laravel 9, here i use composer for installation. Run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;composer create-project laravel/laravel rental-mobil&lt;br&gt;
cd rental-mobil&lt;br&gt;
php artisan serve&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;then, the initial appearance of our application as follows:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--hNg4Q8tn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qfskqkqxtm9qelkebug.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--hNg4Q8tn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2qfskqkqxtm9qelkebug.png" alt="Image description" width="880" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Migration
&lt;/h2&gt;

&lt;p&gt;Our next step will be setting migration according to the database architecture that we created earlier. In the migration create table user change it to like this&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Schema::create('users', function (Blueprint $table) {&lt;br&gt;
$table-&amp;gt;id();&lt;br&gt;
$table-&amp;gt;string('name');&lt;br&gt;
$table-&amp;gt;string('email')-&amp;gt;unique();&lt;br&gt;
$table-&amp;gt;timestamp('email_verified_at')-&amp;gt;nullable();&lt;br&gt;
$table-&amp;gt;string('password');&lt;br&gt;
$table-&amp;gt;string('image')-&amp;gt;nullable();&lt;br&gt;
$table-&amp;gt;boolean('is_admin')-&amp;gt;default(0);&lt;br&gt;
$table-&amp;gt;rememberToken();&lt;br&gt;
$table-&amp;gt;timestamps();&lt;br&gt;
});&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next we create a migration for the cars table by running the command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:migration create_cars_table&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next on the migration cars file, change it to&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Schema::create('cars', function (Blueprint $table) {&lt;br&gt;
$table-&amp;gt;id();&lt;br&gt;
$table-&amp;gt;string('name');&lt;br&gt;
$table-&amp;gt;string('plat');&lt;br&gt;
$table-&amp;gt;text('description');&lt;br&gt;
$table-&amp;gt;boolean('status')-&amp;gt;default(1);&lt;br&gt;
$table-&amp;gt;double('price');&lt;br&gt;
$table-&amp;gt;timestamps();&lt;br&gt;
});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next we create a user details table that will be directly related to the users table. Run the following command to create a user_details migration.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:migration create_user_details_table&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In user_details migration, change to&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Schema::create('user_details', function (Blueprint $table) {&lt;br&gt;
$table-&amp;gt;id();&lt;br&gt;
$table-&amp;gt;foreignId('user_id')-&amp;gt;references('id')-&amp;gt;on('users')-&amp;gt;onDelete('cascade');&lt;br&gt;
$table-&amp;gt;string('nik')-&amp;gt;nullable();&lt;br&gt;
$table-&amp;gt;string('ktp')-&amp;gt;nullable(); //image&lt;br&gt;
$table-&amp;gt;text('alamat')-&amp;gt;nullable();&lt;br&gt;
$table-&amp;gt;timestamps();&lt;br&gt;
});&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Next we create a migration for table transactions, run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:migration create_transactions_table&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Pada table transactions ubah menjadi berikut :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Schema::create('transactions', function (Blueprint $table) {&lt;br&gt;
$table-&amp;gt;id();&lt;br&gt;
$table-&amp;gt;foreignId('user_id')-&amp;gt;references('id')-&amp;gt;on('users')-&amp;gt;onDelete('cascade');&lt;br&gt;
$table-&amp;gt;foreignId('car_id')-&amp;gt;references('id')-&amp;gt;on('cars')-&amp;gt;onDelete('cascade');&lt;br&gt;
$table-&amp;gt;date('date_start');&lt;br&gt;
$table-&amp;gt;date('date_end');&lt;br&gt;
$table-&amp;gt;date('date_due');&lt;br&gt;
$table-&amp;gt;string('status');&lt;br&gt;
$table-&amp;gt;double('total');&lt;br&gt;
$table-&amp;gt;text('note');&lt;br&gt;
$table-&amp;gt;timestamps();&lt;br&gt;
});&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Model
&lt;/h2&gt;

&lt;p&gt;Every migration that we have made, we will also create a model so that we can use Eloquent ORM. The model we will create is User, UserDetail, Car, Transaction. Create a model by running the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:model Car&lt;br&gt;
php artisan make:model UserDetail&lt;br&gt;
php artisan make:model Transaction&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In User model add fillable image and is_admin, and function&lt;/p&gt;

&lt;p&gt;&lt;code&gt;public function detail(){&lt;br&gt;
    return $this-&amp;gt;hasOne(UserDetail::class);&lt;br&gt;
}&lt;br&gt;
public function transactions(){&lt;br&gt;
    return $this-&amp;gt;hasMany(Transaction::class);&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In the UserDetail model, add the following code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;protected $guarded = [];&lt;br&gt;
public function user(){&lt;br&gt;
   return $this-&amp;gt;belongsTo(User::class);&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;in the Transaction model add code like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;protected $guarded = [];&lt;br&gt;
public function user(){&lt;br&gt;
    return $this-&amp;gt;belongsTo(User::class);&lt;br&gt;
}&lt;br&gt;
public function car(){&lt;br&gt;
    return $this-&amp;gt;belongsTo(User::class);&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;on the Car model add the following code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;protected $guarded = [];&lt;br&gt;
public function transactions(){&lt;br&gt;
   return $this-&amp;gt;hasMany(Transaction::class);&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Seeder
&lt;/h2&gt;

&lt;p&gt;We will create 1 user for admin by creating a seeder, run the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan make:seeder UserSeeder&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In the UserSeeder add code like this:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$user = User::create([&lt;br&gt;
'name'  =&amp;gt;  'admin',&lt;br&gt;
'email' =&amp;gt;  'admin@admin.com',&lt;br&gt;
'password'  =&amp;gt;  Hash::make('12345678'),&lt;br&gt;
'is_admin'  =&amp;gt;  1,&lt;br&gt;
]);&lt;br&gt;
UserDetail::create([&lt;br&gt;
'user_id'   =&amp;gt;  $user-&amp;gt;id,&lt;br&gt;
]);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Don’t forget to call UserSeeder on DatabaseSeeder&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$this-&amp;gt;call([&lt;br&gt;
   UserSeeder::class&lt;br&gt;
]);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;And run the migrate command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php artisan migrate --seed&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In the next article, we will create auth for our application, thank you :)&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>database</category>
    </item>
    <item>
      <title>Complete List in Python</title>
      <dc:creator>Alfa Riza</dc:creator>
      <pubDate>Sun, 29 Aug 2021 23:34:28 +0000</pubDate>
      <link>https://dev.to/alfariza/complete-list-in-python-21j8</link>
      <guid>https://dev.to/alfariza/complete-list-in-python-21j8</guid>
      <description>&lt;p&gt;Assalamualaikum warahmatullahi wabarakatuh. Hello everyone, on this occasion we will discuss about lists in python.&lt;br&gt;
List is a data type in python for storing variable items. In the list we can store several types of variables at once. This list is sorted from index 0 and can be changed, added, deleted.&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Gpt7vjjV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ml4uhwyno6tko7ouc2md.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Gpt7vjjV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ml4uhwyno6tko7ouc2md.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Make a List
&lt;/h1&gt;

&lt;p&gt;How to make a list, by creating open and closed brackets and to separate one variable from another with a comma.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;angka = [1,2,3,4]
list1 = ["satu", 2, True]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Reading List
&lt;/h1&gt;

&lt;p&gt;We can read the list by accessing its index. For example, we have a list like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Dosen", "Mahasiswa", "Satpam", "Driver"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to be able to print Students, we can access list1 with index 1.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print(list1[1])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we want to print all the data in the list, we can use loops.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for l in list1:
   print(l)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Changing List
&lt;/h1&gt;

&lt;p&gt;We can change the value in the list by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1[1] = "Golang"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the code above, we change PHP to Golang&lt;/p&gt;

&lt;h1&gt;
  
  
  Add List
&lt;/h1&gt;

&lt;p&gt;We can also add to the list we have with the append() and insert() functions, both of which have differences.&lt;br&gt;
In the append() function, the data we enter will automatically be added to the last index.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1.append("Golang")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code above adds “Golang” to list1, where “Golang” will be added to the end. So that&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby", "Golang"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whereas in the insert() function, we need 1 more parameter, where this parameter is a specific index that we want to put. For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1.insert(1, "Golang")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code above, adds "Golang" to list1 with index to 1. So that list1 becomes&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "Golang", "PHP", "Ruby"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Delete List
&lt;/h1&gt;

&lt;p&gt;To delete a list, we can delete one or all data. We will discuss how to delete a single data first, to remove specific data, we can use the remove() function&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1.remove("Python")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above code will delete list1 which has "Python" data, so list1&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["PHP", "Ruby"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In addition to specific data, we can also delete specific indexes using the pop() function and the del keyword. the pop() function has an index parameter which we will remove.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1.pop(1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above code removes list1 with index 1, so list1.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "Ruby"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the pop() function does not have an index parameter, then the data to be deleted is the last data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1.pop()
list1 = ["Python", "PHP"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As for the del keyword how to use it as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
del list1[0]
list1 = ["PHP", "Ruby"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Deleting all data lists we can also use the del keyword and the clear() function. How to use the del keyword, namely:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
del list1
list1 = []
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;while the use of the clear() function&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list1.clear()
list1 = []
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Sort List
&lt;/h1&gt;

&lt;p&gt;If we have a list whose data is not sorted, we can sort it with the sort() function. This function can be used as a string or number data type. The sort function will automatically sort from small to large or ascending.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list2 = [1,9,4,28,17]
list2.sort()
list2 = [1,4,9,17,28]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we want to sort from largest to smallest or descending, we can add the reverse = True parameter.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list2 = [1,9,4,28,17]
list2.sort(reverse = True)
list2 = [28,17,9,4,1]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Copy List
&lt;/h1&gt;

&lt;p&gt;If we want to copy list then we can't use code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list2 = list1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because list2 will reference list1, if list1 changes, list2 will automatically change as well. To overcome this, we can use the copy() and list() functions.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list2 = list1.copy()
list2 = ["Python", "PHP", "Ruby"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or we can add list()&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list2 = list(list1)
list2 = ["Python", "PHP", "Ruby"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Merge List
&lt;/h1&gt;

&lt;p&gt;If we have 2 lists, then we want to combine them. Then the simplest way is to use the + operator.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list2 = ["Golang", "Vue", "React"]
list3 = list1 + list2
list3 = ["Python", "PHP", "Ruby", "Golang", "Vue", "React"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or we can also use the extend() function.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list1 = ["Python", "PHP", "Ruby"]
list2 = ["Golang", "Vue", "React"]
list1.extends(list2)
list1 = ["Python", "PHP", "Ruby", "Golang", "Vue", "React"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's enough for us to discuss the list, thank you :)&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>How to install python 3.9 on windows</title>
      <dc:creator>Alfa Riza</dc:creator>
      <pubDate>Sun, 29 Aug 2021 07:18:55 +0000</pubDate>
      <link>https://dev.to/alfariza/how-to-install-python-3-9-on-windows-900</link>
      <guid>https://dev.to/alfariza/how-to-install-python-3-9-on-windows-900</guid>
      <description>&lt;p&gt;Assalamualaikum warahmatullahi wabarakatuh, hello everyone, on this occasion, we will learn together how to install python 3.9 on windows 10.&lt;/p&gt;

&lt;p&gt;First, we visit python.org, we will download python through this website, because the official python site. The initial appearance of python.org is as follows:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ALVhTPuY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7abvtmkx3tua45y35p16.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ALVhTPuY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7abvtmkx3tua45y35p16.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click downloads, it will be directed to the download page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lvW98wdP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgkm2sgolnn3ij4nkc6n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lvW98wdP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vgkm2sgolnn3ij4nkc6n.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select the python 3.9.6 download button, because it is the latest version of python.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3AaVxZpa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gu9xkz1qei9jr9mzk9un.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3AaVxZpa--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gu9xkz1qei9jr9mzk9un.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click double click, it will appear&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nfe6e5jP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p88c8ko0vhk84sdbg92o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nfe6e5jP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p88c8ko0vhk84sdbg92o.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;make sure you check add python to path, this is useful so you can use python in cmd. While installing the launcher for all users is free, you want to check it or not, but my advice is to just tick it so that all users on the computer can use python. After that, click install now.&lt;br&gt;
Wait until the installation process is complete&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--z7bbD0if--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqszbim79yqqloehwca3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--z7bbD0if--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/uqszbim79yqqloehwca3.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;after python is successfully installed, we need to check whether python is successfully installed or not. Open cmd then type python command and enter.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9TluJqMw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0ijh1v3aib2mh9ukicc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9TluJqMw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q0ijh1v3aib2mh9ukicc.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Enough of this article, thank you so much.     &lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Resolved error: Unable to use proxy: URL http_proxy formatted incorrectly, in composer</title>
      <dc:creator>Alfa Riza</dc:creator>
      <pubDate>Sat, 28 Aug 2021 13:31:37 +0000</pubDate>
      <link>https://dev.to/alfariza/resolved-error-unable-to-use-proxy-url-httpproxy-formatted-incorrectly-in-composer-2n9f</link>
      <guid>https://dev.to/alfariza/resolved-error-unable-to-use-proxy-url-httpproxy-formatted-incorrectly-in-composer-2n9f</guid>
      <description>&lt;p&gt;Assalamualaikum warahmatullahi wabarakatuh, hello everyone, this time I will share my experience with the composer error, which is Unable to use a proxy: malformed http_proxy URL.&lt;/p&gt;

&lt;p&gt;If you are experiencing the same problem, you can check out this article. So I haven't coded Laravel for 6 months and my laptop had Windows reinstalled. When I install laravel via composer there is an error.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tjapaXAB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ifnv2ieo38ber07tg3kj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tjapaXAB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ifnv2ieo38ber07tg3kj.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This problem arises because on our laptop / computer there is an environment variable http_proxy which contains the code http_proxy, the way to solve this is to delete the environment variable.&lt;/p&gt;

&lt;p&gt;Open the control panel on our laptop / computer.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Bmf7Zkp8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j14bc7vx132m00qkdn9l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Bmf7Zkp8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j14bc7vx132m00qkdn9l.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then select system and security, then select system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---oVKTPle--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vkw7b372yb257drlt11.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---oVKTPle--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vkw7b372yb257drlt11.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5aq7b2D_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yamzdyhjvtloplrg3p7q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5aq7b2D_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yamzdyhjvtloplrg3p7q.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select advanced system settings&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--maPOz-m3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxfb9cja84r5wu9fql1x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--maPOz-m3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gxfb9cja84r5wu9fql1x.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select environment variables&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Vm_jCQ6B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7jbxyzsyc5c8098qlgsr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Vm_jCQ6B--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7jbxyzsyc5c8098qlgsr.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If there are user variables with the name http_proxy, click and delete. Then your problem is solved.&lt;br&gt;
So many articles, hopefully useful and thank you.     &lt;/p&gt;

</description>
      <category>composer</category>
      <category>laravel</category>
    </item>
  </channel>
</rss>
