How to Update PHP from PHP 7.x to PHP 7.4 on CentOS 7?

Here is the way how I upgrade the PHP from PHP 7.3 to PHP 7.4 on CentOS. The first and most important thing is to backup snapshot of your server before updating PHP Currently, PHP had updated to Current Stable PHP 8.1.13, however, there are many WordPress website-run environments are still keep using PHP 7.3. … Read more

How to fix “yup validation one of two fields required…”

When using Ractjs to develop a project, I got a problem “yup validation one of two fields required”, here is the solution to the error Yup validate either one of two fields is required… Solutions to Yup validation one of two fields required There are a few solutions to the Yup validation with two fields … Read more

Import error: cannot import name force_text from django.utils.encoding

Here are a few solutions to fix the import error: cannot import name force_text from django.utils.encoding. It’s a common import error in Django project development. import terror: cannot import name force_text from django.utils.encoding I’m implementing a graphql solution using python, graphene, and Django and I get the following import error: However, I’m not sure about … Read more

Dive into Spring MVC @ModelAttribute Annotation

Dive into Spring MVC @ModelAttribute Annotation

In Spring MVC, the @ModelAttribute annotation can be applied to methods or method parameters. The @ModelAttribute method is usually used to fill in some public required attributes or data, such as several preset states of a drop-down list, several types of pets, or to obtain a command object required for HTML form rendering. A method … Read more

How to Upload Images to Cloudinary in Node.js Projects?

As we mentioned in the previous post, we usually store the uploaded image on some storage servers, such as AWS S3, and Cloudinary… However, wow to upload images to Cloudinary in Node.js projects? By the way, Cloudinary also with a free forever solution for developers, it is NO credit card required. It includes: 25k Monthly Transformations … Read more