Java Description Design Patterns (19): Template Method Patterns

Source code for this article: GitHub. Click here || GitEE. Click here 1. Life Scene Usually the development process for an Internet application is as follows: business requirements, planning products, program development, test delivery.This process is now described based on the template method pattern. public class C01_InScene { public sta ...

Posted on Thu, 14 Nov 2019 20:08:44 -0500 by LacOniC

LNMP Architecture Builds Discuz Forum (Actual!)

What is an LNMP architecture LNMP platform is the combined architecture of Linux, Ngnix, MySQL and PHP. It requires Linux server, MySQL database, PHP parsing environment MySQL Installation Configuration For consistency with Nginx, PHP environments, here is the option to install MySQL components as source code compilation MySQL Deployment Metho ...

Posted on Thu, 14 Nov 2019 19:12:34 -0500 by j3rmain3

nginx depth optimization - Hide version number, log split, cache processing

Main points: Hide version number Web Cache Log Split Hide version number Two configurations: Modify Profile Method Modify Source Code Method 1. Modify the Profile Law: [root@localhost init.d]# curl -I http://192.168.13.140/ ##View Nginx information HTTP/1.1 200 OK Server: nginx/1.12.2    ##Display version number Date: Tue, 12 Nov 2019 14: ...

Posted on Thu, 14 Nov 2019 16:21:01 -0500 by mapexdrum

C ා WinForm to get the mouse click position

Note: the code content of this essay is not from me, it is searched in other websites, and I can't remember the origin. This essay is only for recording, to help myself and others. The principle of implementation is also not described in detail, directly on the code.   The first class is the required Windows API public class Win32Api { ...

Posted on Thu, 14 Nov 2019 15:35:54 -0500 by rupertbj

Linux basic command -- slabtop display kernel strip information

slabtop slabtop displays detailed kernel strip cache information in real time. It displays a list of top-level caches sorted by one of the listed sort criteria. It also displays a statistics header filled with slab layer information. The application scope of this command: RedHat, RHEL, Ubuntu, CentOS, Fedora, SUSE, openSUSE. 1. Grammar ...

Posted on Thu, 14 Nov 2019 15:29:46 -0500 by studgate

Apache and LNMP architecture do dynamic and static separation

Apache and LNMP architecture do dynamic and static separation nginx has strong static processing ability and insufficient dynamic processing ability, so we need to give the dynamic page to Apache to realize dynamic and static separation. Install apache service first [root@localhost ~]# yum install httpd httpd-devel -y ##Installing the Apach ...

Posted on Thu, 14 Nov 2019 15:07:31 -0500 by karnegyhall

Asible Learning Notes--Common Modules

Ansible Common Modules You can find the module you want from ansible-doc-l | grep module_name.Then use ansible-doc-s module_name to see the usage of this module. Official module list and description: https://docs.ansible.com/ansible/latest/modules_by_category.html One thing to note about how modules are used is state.Many modules will have thi ...

Posted on Thu, 14 Nov 2019 15:00:11 -0500 by emceej

python foundation - process oriented programming

Process oriented programming Process oriented programming is actually a mechanical way of thinking, and its core is "process". Process refers to a problem-solving step, that is, what to do first, then what to do, and finally what to do. Advantage: it can simplify the complicated problems. Ha ha ha ha ha, this kind of moment, don't tal ...

Posted on Thu, 14 Nov 2019 14:48:47 -0500 by toovey

Gin framework - data binding and validation

SummaryThe previous article shared that the Gin framework uses Logrus for logging, and this article shared the data binding and validation of the Gin framework.Some readers asked me a question, how to make the running logs of the framework not output to the console?Solution:    engine := gin.Default() //Amend to read engine := gin.New( ...

Posted on Thu, 14 Nov 2019 14:31:41 -0500 by Hillary

Jedis of Redis client operation

Jedis Jedis Client is a java client recommended by redis official website. The library file implements the encapsulation and calling of various APIs of redis. Through these APIs, we can easily operate our redis database. Modify the redis configuration file 1. Comment out the binding information   the bind configuration information in the r ...

Posted on Thu, 14 Nov 2019 14:29:26 -0500 by Pha