Fading Coder

One Final Commit for the Last Sprint

Defining and Configuring Filters in Web Applications

Implementing filters in web applications follows a three-phase approach: Create backend resources including static assets (HTML, CSS, etc.) and dynamic components (Servlets, JSPs). Implemetn the Filter interface. Register the filter in web.xml to specify which resources it should intercept. Creating...

Integrating Emoji Support in FastAdmin Summernote Editor

Clone the repository from GitHub: https://github.com/trinhtam/summernote-emoji.git Copy the downloaded folder into the project directory: project/public/assets/libs/ Edit the file project/public/assets/js/require-frontend.js: // Under paths section add: 'emoji-tam': '../libs/tam-emoji/js/tam-emoji.m...

Redis Configuration Essentials (redis.conf)

Redis Configuration File Overview The Redis configuration file resides in the Redis installation directory with the filename redis.conf. Configuration Methods Method 1: Direct modification of the redis.conf file content. Method 2: Using the CONFIG command to view or modify settings. CONFIG Command U...

Nginx Rate Limiting and Access Control Configuration Guide

Rate Limiting Nginx provides two distinct types of rate limiting mechanisms: Connection frequency control via limit_conn_module Request frequency control via limit_req_module HTTP Connection vs Request Behavior HTTP operates over TCP, requiring a three-way handshake before data transfer begins. Once...

Essential Nginx Configuration Recipes for Web Servers

Virtual Host Setup Each server block in Nginx represents a virtual host. Valid configurations include same port/different domain or same domain/different port. Nginx’s default main configuration includes all .conf files under conf.d via include /usr/local/nginx/conf.d/*.conf;. Create a new file ther...

Installing and Configuring Redis on Ubuntu

Installing Redis Server To install Redis on Ubuntu, use the following command: sudo apt-get install redis-server After installation, the Redis server will start automatically. Verify that the Redis server is running by checking its process: ps -aux | grep redis You should see output similar to: redi...

Installing and Configuring Redis on Linux

Installing Redis from Source on Linux To install Redis on distributions like CentOS 7 or Ubuntu 18.04: Download the source archive: wget http://download.redis.io/releases/redis-4.0.0.tar.gz Extract the archive: tar -xvf redis-4.0.0.tar.gz Compile the source: cd redis-4.0.0 make If compilation fails...

Docker Installation and Mirror Configuration

Switching to Root User su Removing Previous Docker Versions If Docker is already installed on the system, first remove the existing version: yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine Configuri...

Reading and Writing Configuration Files in Java

Loading Configuration Data Configuration files can be accessed using the class loader to obtain an input stream directly: username=admin password=secret123 public class ConfigReader { public static void main(String[] args) throws IOException { ConfigReader app = new ConfigReader(); InputStream confi...

Loading Configuration Parameters from XML in Java Applications

Creating XML Configuration File Begin by defining an XML file to store application parameters. Below is a sample structure: <configuration> <setting1>data1</setting1> <setting2>data2</setting2> </configuration> Java Implementation for XML Parsing To process the XM...