Below are the commands you should run in order to upgrade to PHP 8 You may face issue like In that case simply remove the old extension. For example to resolve above error I had to remove mysql extension by using following command: And now you can check the php version by using following command … Read moreUpgrading PHP 7.4 to PHP 8 on CentOS 8
Today, I was debugging a .net core API. It was taking more than a minute to execute for a simple query which was fetching two-three related entities also. When I started going through the console for the generated SQL, I figured out that the query is split into three parts and each part was taking … Read moreConditional Operator Causing Unoptimized Linq Queries
This is a simple pattern that will provide react hook and react higher component to get the state from redux and register the actions. First create a ts file with an initial state, reducers, and saga effects: In the above code, the namespace must be the first part of the type in effects and reducers … Read moreReact redux and saga pattern.
Right now creat-react-app supports SASS by default. So to add less support we need to eject first and then edit “webpack.config.js” file. To eject configuration run following command: And install less loader and less Now search following: And replace with Now we need to replace SASS loader with less loader. Find the following lines: in … Read moreAdd LESS support in Creat-react-app
A new version of aria2 is now available and I have created the rpm for this version too. It was compiled on centos7. Download link for aria2 1.35.0 rpm is given below: https://www.dropbox.com/s/5qveuq0i3nj4bf1/aria2-1.35.0-0.x86_64.rpm?dl=0 gpgcheck have to be turned off because rpm is not signed. Run following command to install aria2 : Install the rpm using: … Read moreInstall aria2 1.35.0 on CentOS
We expect that on reload the single page apps such as React apps go to the URL that is in the browser but instead a 404 error occurs. Because the browser requests server in case of refresh but in case your app is loaded your app just changes the URL but does not reload the … Read moreFixing the “cannot GET /URL” error on refresh with React Router and Reach Router (Tested On Apache and IIS)
The Microsoft URL for all the steps is: Here. Follow only those steps which you need. If there is any confusion comment on that page or below. (This suggestion is for only newbies.) Backup Of Above Article is: Here Download the target dotnet core runtime from : Here . After selecting the dotnet core version, … Read moreHost a .net core (dotnetcore) Application on CentOS Using Apache as Reverse Proxy