I faced a problem when I had to attach an event listener to many elements rendered through the loop. When rendered, the click event was only attached to the first element and all the other elements didn’t have the listener attached. So, I solved this by passing an additional argument to the listener which was … Read moreVue loop binding event listener only binds with the first few elements.
I had a simple dotnet core application, and I wanted it to be hosted on a linux machine with litespeed as reverse proxy. So, if you also want that then follow the given steps: You need to have a virtual host setup using WebAdmin panel with follow symbolic link off. (It’s easy through webadmin panel … Read moreEasiest Way to Use OpenLiteSpeed Server as Reverse Proxy Server
As I have been trying to move to litespeed server from apache, I have faced an issue with subroutes i.e. pages and posts. WordPress uses .htaccess for URL rewriting, but OpenLitespeed is not a drop-in replacement for Apache web server (yeah I know, it’s drop-in replacement for enterprise edition). So, after I tried updating .htaccess … Read moreWordPress OpenLitespeed Server 404 on any Link (pages, posts)
You can configure your virtual host using WebAdmin. But if you prefer, the terminal way, then follow the following steps. The virtual host configuration is mainly kept in directory: In the above directory you can see a file named: ‘httpd_config.conf’. Which is the main configuration file for the litespeed server. Every virtual configuration file has … Read moreOpenLiteSpeed Server vHost cofiguration using terminal (With Let’s Encrypt SSL)
LiteSpeedServer is better then Apache server in terms of handling high visitor count. So today I will posting how I installed the ListSpeedServer, PHP 8 and Maria DB (MySQL) server on CentOS 8. Sit tight as it would not take long as long as you have terminal access to a CentOS server and a good … Read moreInstall LiteSpeed Server, PHP 8, Mysql on CentOS 8
I have created a rpm with latest source of aria2. This rpm is built for centos 8 and may not work on other versions of CentOS. You can download the latest rpm from link below: https://dl.dropboxusercontent.com/s/cxzijq4dwaxxg4o/aria2-1.35.0-0.x86_64_centos8.rpm If you have CentOS 7 then please visit: Install on CentOS 7 To install use the following command: The … Read moreInstall aria2 1.35.0 on CentOS 8
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.