<?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: Dylan Lopez</title>
    <description>The latest articles on DEV Community by Dylan Lopez (@locvfx).</description>
    <link>https://dev.to/locvfx</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%2F138307%2F7ba15ea1-99d4-4551-a38d-19a2ea81dc07.jpeg</url>
      <title>DEV Community: Dylan Lopez</title>
      <link>https://dev.to/locvfx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/locvfx"/>
    <language>en</language>
    <item>
      <title>How to remove all WordPress thumbnails using shell command line</title>
      <dc:creator>Dylan Lopez</dc:creator>
      <pubDate>Sun, 03 Sep 2023 08:03:33 +0000</pubDate>
      <link>https://dev.to/locvfx/how-to-remove-all-wordpress-thumbnails-using-shell-command-line-3ncg</link>
      <guid>https://dev.to/locvfx/how-to-remove-all-wordpress-thumbnails-using-shell-command-line-3ncg</guid>
      <description>&lt;p&gt;Wordpres site consumes too much storage, here is how we clean up thumbnail. Assuming you're are in current root of wordpress site,&lt;/p&gt;

&lt;p&gt;List the files&lt;br&gt;
&lt;code&gt;find . -iname '*-*x*.jpg' | xargs ls&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Change &lt;em&gt;x&lt;/em&gt; to the thumbnail's size accordingly &lt;br&gt;
example : &lt;code&gt;find . -iname '*-300x300.jpg' | xargs ls&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Delete them, WARNING: There is no going back, please backup first!&lt;br&gt;
&lt;code&gt;find . -iname '*-300x300.jpg' | xargs rm -f&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Got error while you build docker image using Apple M1 ?</title>
      <dc:creator>Dylan Lopez</dc:creator>
      <pubDate>Thu, 31 Aug 2023 13:32:42 +0000</pubDate>
      <link>https://dev.to/locvfx/got-error-while-you-build-docker-image-using-apple-m1--3j09</link>
      <guid>https://dev.to/locvfx/got-error-while-you-build-docker-image-using-apple-m1--3j09</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This warning message indicates that there is a platform mismatch between the requested image and the host platform. The requested image was likely built for the Linux/amd64 platform, but the host platform where the image is being executed is Linux/arm64/v8.&lt;/p&gt;

&lt;p&gt;This can cause compatibility issues and may result in errors or unexpected behavior. To resolve this issue, you may need to obtain a version of the image that is compatible with the host platform, or update the host platform to match the platform for which the image was built. But before that, let us understand the problem statement more deeply.&lt;/p&gt;

&lt;p&gt;Here is the quick fix: Under the “Feature in development section”, enable Rosetta.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1z1qkflfp5m52v9mrh16.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%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1z1qkflfp5m52v9mrh16.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run x86 containers with Rosetta&lt;br&gt;
If you want to build and run x86 container images using Rosetta, use the platform flag as in the following commands:&lt;/p&gt;

&lt;p&gt;example:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;docker build --platform linux/amd64 -t nginx:latest .&lt;br&gt;
docker run --platform linux/amd64 nginx:latest&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>How To Install PHP 8.1 on CentOS 7</title>
      <dc:creator>Dylan Lopez</dc:creator>
      <pubDate>Wed, 30 Aug 2023 23:30:49 +0000</pubDate>
      <link>https://dev.to/locvfx/how-to-install-php-81-on-centos-7-c3h</link>
      <guid>https://dev.to/locvfx/how-to-install-php-81-on-centos-7-c3h</guid>
      <description>&lt;p&gt;What’s New in PHP 8.1?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Enums have been integrated&lt;/li&gt;
&lt;li&gt;Readonly properties (Class properties can be marked as read-only and thus can only be written once.&lt;/li&gt;
&lt;li&gt;Never keyword (A new return type hint named Never was added in PHP 8.1)&lt;/li&gt;
&lt;li&gt;DNS over HTTPS (DoH) support.&lt;/li&gt;
&lt;li&gt;Support AVIF Image format.&lt;/li&gt;
&lt;li&gt;Added support for Fibers (Low-level mechanism for parallel management).&lt;/li&gt;
&lt;li&gt;The PHP Curl extension now supports HTTP(S) requests with File upload.&lt;/li&gt;
&lt;li&gt;Support for new fdatasync() and fsync() functions.&lt;/li&gt;
&lt;li&gt;PHP 8.1 adds array_is_list as a built-in function.&lt;/li&gt;
&lt;li&gt;Speed ​​efficiency improved from 5% to 8% compared to the old version&lt;/li&gt;
&lt;li&gt;Unpack the array using string keys.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Add EPEL and REMI Repository&lt;/strong&gt;&lt;br&gt;
Run the commands below to add required repositories.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Install PHP 8.1 on CentOS 7&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yum -y install yum-utils
yum-config-manager --enable remi-php81
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use the next command to install additional packages:&lt;/p&gt;

&lt;p&gt;yum install php-xxx&lt;/p&gt;

&lt;p&gt;// Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yum install php  php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The current PHP version should be 8.1.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;php -v&lt;/code&gt;&lt;br&gt;
Now you have PHP 8.1&lt;/p&gt;

</description>
      <category>php</category>
    </item>
    <item>
      <title>What is disadvantage of Caprover</title>
      <dc:creator>Dylan Lopez</dc:creator>
      <pubDate>Wed, 30 Aug 2023 22:46:30 +0000</pubDate>
      <link>https://dev.to/locvfx/what-is-disadvantage-of-caprover-1e51</link>
      <guid>https://dev.to/locvfx/what-is-disadvantage-of-caprover-1e51</guid>
      <description>&lt;p&gt;CapRover is a great platform for deploying and managing applications, but it does have some disadvantages. Here are a few of them:&lt;/p&gt;

&lt;p&gt;Limited support for persistent data: CapRover only supports persistent data on disk, which means that it cannot be scaled horizontally. This can be a problem for applications that need to store large amounts of data.&lt;br&gt;
Scaling on multiple nodes can be difficult: CapRover does not have a built-in way to scale applications across multiple nodes. This can be a challenge for applications that need to handle a lot of traffic.&lt;br&gt;
Not as mature as some other platforms: CapRover is a relatively new platform, so it is not as mature as some of the other options available. This means that there may be fewer features and documentation available.&lt;br&gt;
Can be complex to set up: CapRover can be complex to set up, especially if you are not familiar with Docker Swarm.&lt;br&gt;
Overall, CapRover is a great platform for deploying and managing applications. However, it is important to be aware of its limitations before you use it.&lt;/p&gt;

&lt;p&gt;Lastly, &lt;strong&gt;in Front-end of Caprover, we are unable to limit resources of a container&lt;/strong&gt;. Therefore sometime the App got bugs, it consumes all the resources of our Host! Docker get crashed!, what the heck. (However, you can manually adjust resources with caption config file. They call it 'Service Update Override &lt;a href="https://caprover.com/docs/service-update-override.html"&gt;https://caprover.com/docs/service-update-override.html&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Here are some alternatives to CapRover that you may want to consider (but they are not Free! :):&lt;/p&gt;

&lt;p&gt;Heroku: Heroku is a cloud-based platform that makes it easy to deploy and scale applications. It is a good option for applications that need to be highly available and scalable.&lt;br&gt;
AWS Elastic Beanstalk: AWS Elastic Beanstalk is a service that makes it easy to deploy and manage web applications on Amazon Web Services (AWS). It is a good option for applications that need to be hosted on AWS.&lt;br&gt;
Google App Engine: Google App Engine is a service that makes it easy to deploy and manage web applications on Google Cloud Platform (GCP). It is a good option for applications that need to be hosted on GCP.&lt;br&gt;
The best platform for you will depend on your specific needs and requirements.&lt;/p&gt;

</description>
      <category>caprover</category>
    </item>
    <item>
      <title>Hetzner Cloud: My honest review</title>
      <dc:creator>Dylan Lopez</dc:creator>
      <pubDate>Wed, 30 Aug 2023 22:39:18 +0000</pubDate>
      <link>https://dev.to/locvfx/hetzner-cloud-my-honest-review-562e</link>
      <guid>https://dev.to/locvfx/hetzner-cloud-my-honest-review-562e</guid>
      <description>&lt;p&gt;Hetzner Online GmbH is a German hosting provider that offers a wide range of services, including shared, cloud, and dedicated server hosting. Hetzner is known for its affordable prices and high-performance infrastructure.&lt;/p&gt;

&lt;p&gt;Hetzner was founded in 1997 and is headquartered in Gunzenhausen, Germany. The company has two data centers, one in Falkenstein and one in Nuremberg. Hetzner has over 1 million customers worldwide.&lt;/p&gt;

&lt;p&gt;Hetzner's shared hosting plans start at €1.60 per month and include features such as unlimited traffic, cPanel, and SSH access. Hetzner's cloud hosting plans start at €3.90 per month and include features such as SSD storage, KVM virtualization, and DDoS protection. Hetzner's dedicated server hosting plans start at €34.00 per month and include features such as Intel Xeon processors, ECC RAM, and 1 Gbps networking.&lt;/p&gt;

&lt;p&gt;Hetzner is a good choice for businesses and individuals who are looking for affordable and reliable hosting services. The company offers a wide range of features and plans to suit all needs.&lt;/p&gt;

&lt;p&gt;I have been using Hetzner's services for more than 5 years and it is getting better and better, at a very affordable price.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here is a my ref. link. You can claim your 20 Euro when you sign up new account : &lt;a href="https://tapthislink.com/hetzner"&gt;https://tapthislink.com/hetzner&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here are some of the pros and cons of Hetzner:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pros:&lt;/strong&gt;&lt;br&gt;
Affordable prices&lt;br&gt;
High-performance infrastructure&lt;br&gt;
Good customer support&lt;br&gt;
Wide range of features and plans&lt;br&gt;
The control panel is very easy to use&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cons:&lt;/strong&gt;&lt;br&gt;
Some plans have limited resources&lt;/p&gt;

&lt;p&gt;The data centers are located in Germany, which can be a disadvantage for businesses with international customers&lt;br&gt;
Overall, Hetzner is a good value for money hosting provider. If you are looking for affordable and reliable hosting services, Hetzner is a good option to consider.&lt;/p&gt;

&lt;p&gt;Here are some additional things to know about Hetzner:&lt;/p&gt;

&lt;p&gt;Hetzner offers a 99.9% uptime guarantee for all of its hosting plans.&lt;br&gt;
Hetzner has a good reputation for customer support.&lt;br&gt;
Hetzner is a popular choice for developers and businesses that need high-performance hosting services.&lt;br&gt;
If you are considering using Hetzner, I recommend reading some reviews from other customers to get a better idea of the company's strengths and weaknesses.&lt;/p&gt;

</description>
      <category>hetzner</category>
      <category>cloud</category>
    </item>
    <item>
      <title>CapRover has just released a new version 1.11.0 - and yet they added PRO version !</title>
      <dc:creator>Dylan Lopez</dc:creator>
      <pubDate>Wed, 30 Aug 2023 21:48:33 +0000</pubDate>
      <link>https://dev.to/locvfx/caprover-has-just-released-a-new-version-1110-and-yet-they-added-pro-version--49o2</link>
      <guid>https://dev.to/locvfx/caprover-has-just-released-a-new-version-1110-and-yet-they-added-pro-version--49o2</guid>
      <description>&lt;p&gt;&lt;strong&gt;What Is Caprover ?&lt;/strong&gt;&lt;br&gt;
Homepage: &lt;a href="https://caprover.com" rel="noopener noreferrer"&gt;https://caprover.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you managed a server on your own you know that configuring everything correctly is a very hard job to do.&lt;br&gt;
Handling Nginx configuration, issuing SSL Certifications securing the services, etc. I remember back then I had to memorized all the SSL certificate expiry date, renew it manually, hell no.... i hate that. It's all automatically get renewed with Caprover.&lt;/p&gt;

&lt;p&gt;Now imagine if you want to run more than one service on a server or you want to load balance your incoming requests between multiple servers and spin up more than one instance of a service on your servers. That's a hard job, right?&lt;/p&gt;

&lt;p&gt;With Caprover, You can manage multiple services like your NodeJS, Python, PHP, ASP.NET, and Ruby Apps or your Databases like MySQL, MongoDB, Postgres, etc. on a single server or a cluster of servers.&lt;br&gt;
It will load balance your app using a customizable Nginx proxy server and it can create free SSL certifications using Let's Encrypt.&lt;/p&gt;

&lt;p&gt;CapRover has a nice WEB GUI that helps you manage your services. you can also manage your services using the CLI of the CapRover.&lt;/p&gt;

&lt;p&gt;Another awesome feature of CapRover is the rollback feature if you shipped a bad version on production you can easily roll back to any version of your APP with a single click.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does it work?&lt;/strong&gt;&lt;br&gt;
Under the hood, CapRover uses Docker to containerize your applications. An Nginx Reverse Proxy will manage your load balancing, the Reverse Proxy will also route the incoming requests to the specified services in your server(s).&lt;br&gt;
And for clustering, Caprover uses Docker Swarm.&lt;br&gt;
In the picture below you can see how CapRover works:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Is It Safe?&lt;/strong&gt;&lt;br&gt;
Yes, it is safe. I have used it for more than three years and it is very stable, plus it is open source.&lt;/p&gt;

&lt;p&gt;CapRover might not be a good option for big teams and companies but it's a really good option for individuals or small to medium teams that want to reduce expenses.&lt;/p&gt;

</description>
      <category>caprover</category>
      <category>paas</category>
      <category>nginx</category>
      <category>https</category>
    </item>
  </channel>
</rss>
