<?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>Forem: Indra Wahyu</title>
    <description>The latest articles on Forem by Indra Wahyu (@bukanspot).</description>
    <link>https://forem.com/bukanspot</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%2F563995%2F2363f35e-3abb-44e7-a5a9-7ab6dc959a7c.jpeg</url>
      <title>Forem: Indra Wahyu</title>
      <link>https://forem.com/bukanspot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/bukanspot"/>
    <language>en</language>
    <item>
      <title>VM cannot access internet via NAT VirtualBox</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Wed, 12 Jun 2024 16:44:30 +0000</pubDate>
      <link>https://forem.com/bukanspot/vm-cannot-access-internet-via-nat-virtualbox-27f4</link>
      <guid>https://forem.com/bukanspot/vm-cannot-access-internet-via-nat-virtualbox-27f4</guid>
      <description>&lt;h2&gt;
  
  
  My Problem
&lt;/h2&gt;

&lt;p&gt;My Ubuntu Virtual Machine can`t access internet using NAT interface&lt;/p&gt;

&lt;h2&gt;
  
  
  My Solution
&lt;/h2&gt;

&lt;p&gt;check IP address configuration&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;bash&lt;br&gt;
sudo nano /etc/netplan/00-installer-config.yaml&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztnu8ad70x3oi28s9b6g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fztnu8ad70x3oi28s9b6g.png" alt="netplan" width="528" height="262"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;remove gateway and save&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnf41ekv8qov6if78kwoe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnf41ekv8qov6if78kwoe.png" alt="remove gateway" width="528" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;finally apply the configuration&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;bash&lt;br&gt;
sudo netplan apply&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnwmtc3lz52qxohvjlra.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnwmtc3lz52qxohvjlra.png" alt="ping" width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>virtualbox</category>
    </item>
    <item>
      <title>The uploaded file exceed the upload_max_filesize directive in php.ini</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Sat, 08 Jun 2024 19:19:46 +0000</pubDate>
      <link>https://forem.com/bukanspot/the-uploaded-file-exceed-the-uploadmaxfilesize-directive-in-phpini-5735</link>
      <guid>https://forem.com/bukanspot/the-uploaded-file-exceed-the-uploadmaxfilesize-directive-in-phpini-5735</guid>
      <description>&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;My programmer has this error while uploading file in wordpress&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyrlwd4wzap7qikokmsu5.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyrlwd4wzap7qikokmsu5.jpg" alt="The Uploaded file exceed the upload_max_filesize directive in php.ini" width="800" height="158"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;p&gt;Find php.ini file location&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;php &lt;span class="nt"&gt;-i&lt;/span&gt; | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="s1"&gt;'php.ini'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change this value inside in &lt;code&gt;php.ini&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="py"&gt;upload_max_filesize&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;12M&lt;/span&gt;
&lt;span class="py"&gt;post_max_size&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;13M&lt;/span&gt;
&lt;span class="py"&gt;memory_limit&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s"&gt;15M&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or add this code to first line of &lt;code&gt;.htaccess&lt;/code&gt; file &lt;em&gt;(is located in WordPress installation directory)&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php_value upload_max_filesize 12M
php_value post_max_size 13M
php_value memory_limit 15M
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Change the file size with your case study&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Reference
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/8684609/where-can-i-find-php-ini"&gt;https://stackoverflow.com/questions/8684609/where-can-i-find-php-ini&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kinsta.com/knowledgebase/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini/"&gt;https://kinsta.com/knowledgebase/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>php</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>ERROR 1130 (HY000): Host '123.32.23.12' is not allowed to connect to this MySQL server</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Wed, 01 May 2024 16:19:03 +0000</pubDate>
      <link>https://forem.com/bukanspot/error-1130-hy000-host-123322312-is-not-allowed-to-connect-to-this-mysql-server-1o7h</link>
      <guid>https://forem.com/bukanspot/error-1130-hy000-host-123322312-is-not-allowed-to-connect-to-this-mysql-server-1o7h</guid>
      <description>&lt;h3&gt;
  
  
  My Problem
&lt;/h3&gt;

&lt;p&gt;I want to connect to mysql server using my personal computer but I have this error.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ERROR 1130 &lt;span class="o"&gt;(&lt;/span&gt;HY000&lt;span class="o"&gt;)&lt;/span&gt;: Host &lt;span class="s1"&gt;'123.32.23.12'&lt;/span&gt; is not allowed to connect to this MySQL server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  My Solution
&lt;/h3&gt;

&lt;p&gt;Make sure your IP have access to database server&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;SELECT host FROM mysql.user WHERE User &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'root'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you only see results with localhost and 127.0.0.1, you cannot connect from an external source. If you see other IP addresses, but not the one you're connecting from - that's also an indication.&lt;/p&gt;

&lt;p&gt;You will need to add the IP address of each system that you want to grant access to, and then grant privileges:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;CREATE USER &lt;span class="s1"&gt;'root'&lt;/span&gt;@&lt;span class="s1"&gt;'ip_address'&lt;/span&gt; IDENTIFIED BY &lt;span class="s1"&gt;'some_pass'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
GRANT ALL PRIVILEGES ON &lt;span class="k"&gt;*&lt;/span&gt;.&lt;span class="k"&gt;*&lt;/span&gt; TO &lt;span class="s1"&gt;'root'&lt;/span&gt;@&lt;span class="s1"&gt;'ip_address'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you see %, well then, there's another problem altogether as that is "any remote source". If however you do want any/all systems to connect via root, use the % wildcard to grant access:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;CREATE USER &lt;span class="s1"&gt;'root'&lt;/span&gt;@&lt;span class="s1"&gt;'%'&lt;/span&gt; IDENTIFIED BY &lt;span class="s1"&gt;'some_pass'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
GRANT ALL PRIVILEGES ON &lt;span class="k"&gt;*&lt;/span&gt;.&lt;span class="k"&gt;*&lt;/span&gt; TO &lt;span class="s1"&gt;'root'&lt;/span&gt;@&lt;span class="s1"&gt;'%'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Finally, reload the permissions, and you should be able to have remote access:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;FLUSH PRIVILEGES&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Reference
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/19101243/error-1130-hy000-host-is-not-allowed-to-connect-to-this-mysql-server"&gt;https://stackoverflow.com/questions/19101243/error-1130-hy000-host-is-not-allowed-to-connect-to-this-mysql-server&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mariadb</category>
      <category>mysql</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The uploaded file exceeds the upload_max_filesize directive in pnp.ini (wordpress)</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Wed, 01 May 2024 07:06:34 +0000</pubDate>
      <link>https://forem.com/bukanspot/the-uploaded-file-exceeds-the-uploadmaxfilesize-directive-in-pnpini-wordpress-284b</link>
      <guid>https://forem.com/bukanspot/the-uploaded-file-exceeds-the-uploadmaxfilesize-directive-in-pnpini-wordpress-284b</guid>
      <description>&lt;h3&gt;
  
  
  My Problem
&lt;/h3&gt;

&lt;p&gt;I want to upload files in WordPress with large file size, but have error "The uploaded file exceeds the upload_max_filesize directive in pnp.ini"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Febb97d8yg46vrfd39z3a.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Febb97d8yg46vrfd39z3a.jpg" alt="upload_max_filesize" width="800" height="158"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  My Solution
&lt;/h3&gt;

&lt;p&gt;Go to wordpress directory. for e.g:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd /var/www/html/wordpress
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open file &lt;code&gt;.htaccess&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano .htaccess
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add the following line at the bottom of the file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php_value upload_max_filesize 256M
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then Save the changes.&lt;/p&gt;

&lt;p&gt;That’s it! Increasing the upload_max_filesize value should automatically fix the error.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;if not work, try to restart your web server (e.g. apache/nginx)&lt;/em&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  Reference
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.hostinger.com/tutorials/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress"&gt;https://www.hostinger.com/tutorials/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>wordpress</category>
      <category>php</category>
    </item>
    <item>
      <title>Run Docker Without sudo in Ubuntu 22.04 Jammy</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Thu, 14 Mar 2024 08:18:32 +0000</pubDate>
      <link>https://forem.com/bukanspot/run-docker-without-sudo-in-ubuntu-2204-jammy-hmn</link>
      <guid>https://forem.com/bukanspot/run-docker-without-sudo-in-ubuntu-2204-jammy-hmn</guid>
      <description>&lt;p&gt;My problem is, when run docker has a problem 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;permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.44/containers/json": dial unix /var/run/docker.sock: connect: permission denied
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I solve with this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  Reference
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/bukanspot/run-docker-without-sudo-in-wsl2-4kfl"&gt;dev.to&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/64710480/docker-client-under-wsl2-doesnt-work-without-sudo"&gt;stackoverflow.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>docker</category>
    </item>
    <item>
      <title>Run Docker Without sudo in WSL2</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Thu, 01 Feb 2024 23:13:35 +0000</pubDate>
      <link>https://forem.com/bukanspot/run-docker-without-sudo-in-wsl2-4kfl</link>
      <guid>https://forem.com/bukanspot/run-docker-without-sudo-in-wsl2-4kfl</guid>
      <description>&lt;p&gt;My problem is, when run docker has a problem 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;permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I solve with this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker
sudo chown root:docker /var/run/docker.sock
sudo chmod g+w /var/run/docker.sock
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  reference
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/64710480/docker-client-under-wsl2-doesnt-work-without-sudo"&gt;stackoverflow.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>docker</category>
      <category>devops</category>
    </item>
    <item>
      <title>Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled.</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Fri, 19 Jan 2024 05:56:24 +0000</pubDate>
      <link>https://forem.com/bukanspot/composer-is-operating-significantly-slower-than-normal-because-you-do-not-have-the-php-curl-extension-enabled-5ap6</link>
      <guid>https://forem.com/bukanspot/composer-is-operating-significantly-slower-than-normal-because-you-do-not-have-the-php-curl-extension-enabled-5ap6</guid>
      <description>&lt;p&gt;I want to run &lt;code&gt;composer update&lt;/code&gt; but I have this problem&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlxr6erggxl11x6kf8p6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhlxr6erggxl11x6kf8p6.png" alt="Composer is operating significantly slower than normal because you do not have the PHP curl extension enabled." width="800" height="47"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And I solved it with just install PHP curl extension.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt-get install php-curl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Mon, 02 Oct 2023 16:48:41 +0000</pubDate>
      <link>https://forem.com/bukanspot/port-5000-is-in-use-by-another-program-either-identify-and-stop-that-program-or-start-the-server-with-a-different-port-33dn</link>
      <guid>https://forem.com/bukanspot/port-5000-is-in-use-by-another-program-either-identify-and-stop-that-program-or-start-the-server-with-a-different-port-33dn</guid>
      <description>&lt;h1&gt;
  
  
  Problems
&lt;/h1&gt;

&lt;p&gt;I accidentally pressed &lt;code&gt;ctrl + z&lt;/code&gt; on the terminal so that the previously running flask stopped abnormally and the port was still used&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1hm44wonar8zkx3p37.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqg1hm44wonar8zkx3p37.png" alt="problem" width="741" height="166"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I can't run flask again because the port is being used&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2l11cov1v8rvlpgzolx5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2l11cov1v8rvlpgzolx5.png" alt="can't run flask" width="800" height="62"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Solution
&lt;/h1&gt;

&lt;p&gt;Check what ports are being used&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo ss -tulpn
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1s4fa9vqh2ql0m6j6v9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fg1s4fa9vqh2ql0m6j6v9.png" alt="used port" width="800" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Kill pid from the port being used&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kill -9 4837
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Try to run flask again&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;python3 app.py
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>python</category>
      <category>flask</category>
      <category>linux</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Error: Cannot find module 'libnpx'</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Thu, 21 Sep 2023 07:43:48 +0000</pubDate>
      <link>https://forem.com/bukanspot/error-cannot-find-module-libnpx-2dp</link>
      <guid>https://forem.com/bukanspot/error-cannot-find-module-libnpx-2dp</guid>
      <description>&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;create-react-app fails with error "Cannot find module 'libnpx' after update nodejs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error: Cannot find module 'libnpx'
Require stack:
- /usr/share/npm/bin/npx-cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.&amp;lt;anonymous&amp;gt; (/usr/share/npm/bin/npx-cli.js:3:13)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/share/npm/bin/npx-cli.js' ]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Solution
&lt;/h2&gt;

&lt;p&gt;Just restart your terminal after updating node version (close and open again your terminal).&lt;/p&gt;




&lt;h2&gt;
  
  
  Reference
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/70402406/react-create-react-app-fails-with-error-cannot-find-module-libnpx"&gt;stackoverflow.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A dev...</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Thu, 25 May 2023 16:55:02 +0000</pubDate>
      <link>https://forem.com/bukanspot/a-fatal-esptoolpy-error-occurred-cannot-configure-port-something-went-wrong-original-message-permissionerror13-a-dev-1iba</link>
      <guid>https://forem.com/bukanspot/a-fatal-esptoolpy-error-occurred-cannot-configure-port-something-went-wrong-original-message-permissionerror13-a-dev-1iba</guid>
      <description>&lt;p&gt;I have this error when upload code in Arduino IDE to ESP8266&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;. Variables and constants in RAM (global, static), used 28104 / 80192 bytes (35%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ DATA     1496     initialized variables
╠══ RODATA   920      constants       
╚══ BSS      25688    zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 59667 / 65536 bytes (91%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ ICACHE   32768    reserved space for flash instruction cache
╚══ IRAM     26899    code in IRAM    
. Code in flash (default, ICACHE_FLASH_ATTR), used 232148 / 1048576 bytes (22%)
║   SEGMENT  BYTES    DESCRIPTION
╚══ IROM     232148   code in flash   
esptool.py v3.0
Serial port COM8

A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I solved with install CH340 Driver.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download CH340 driver from &lt;a href="https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all"&gt;sparkfun.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Install driver, I use &lt;code&gt;CH340SER.EXE&lt;/code&gt; file &lt;em&gt;(just next and next and finish)&lt;/em&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  reference
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all"&gt;sparkfun.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>arduino</category>
      <category>ino</category>
    </item>
    <item>
      <title>Save ssh login info to make easy remote ssh</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Sun, 21 May 2023 18:11:04 +0000</pubDate>
      <link>https://forem.com/bukanspot/save-ssh-login-info-214i</link>
      <guid>https://forem.com/bukanspot/save-ssh-login-info-214i</guid>
      <description>&lt;p&gt;Define ~/.ssh/config file with the following contents&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Host meh
    HostName meh.example.com
    User admin
    Port 1234
    IdentityFile ~/.ssh/id_rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use &lt;code&gt;ssh [host]&lt;/code&gt; to connect to the host using the config file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh meh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  reference
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://askubuntu.com/questions/1118136/how-to-save-a-frequently-used-ssh-host-for-access-via-terminal"&gt;askubuntu.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>linux</category>
      <category>ssh</category>
    </item>
    <item>
      <title>Function to Create New Directory and Jump Into it Immediately</title>
      <dc:creator>Indra Wahyu</dc:creator>
      <pubDate>Sun, 23 Apr 2023 11:58:25 +0000</pubDate>
      <link>https://forem.com/bukanspot/function-to-create-new-directory-and-jump-into-it-immediately-1903</link>
      <guid>https://forem.com/bukanspot/function-to-create-new-directory-and-jump-into-it-immediately-1903</guid>
      <description>&lt;p&gt;I want to create command to create new directory and jump into it immediately and I found this solution. Just add &lt;code&gt;md () { mkdir "$1" &amp;amp;&amp;amp; cd "$1" ; }&lt;/code&gt; function to &lt;code&gt;.bashrc&lt;/code&gt;. Oke this is my intruction.&lt;/p&gt;

&lt;p&gt;Go to home directory&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;Open and edit &lt;code&gt;.bashrc&lt;/code&gt; file with vim or nano&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano .bashrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add function to end of command. Exit with ctrl+x y and enter&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;md () { mkdir "$1" &amp;amp;&amp;amp; cd "$1" ; }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reopen your terminal or restart it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exec bash -l
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can create new directory and jump into it immediately with&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;md directory_name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  reference
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://stackoverflow.com/questions/14136635/one-command-to-create-and-change-directory"&gt;stackoverflow.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://unix.stackexchange.com/questions/9123/is-there-a-one-liner-that-allows-me-to-create-a-directory-and-move-into-it-at-th"&gt;unix.stackexchange.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://askubuntu.com/questions/927463/how-can-i-have-mkdir-cd-into-the-newly-created-directory"&gt;askubuntu.com&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

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