The responsibility chain pattern of Java design pattern

The responsibility chain pattern of Java design pattern Purchase approval project of school OA system: requirements are Traditional solution OA system approval, traditional design solution Basic introduction to responsibility chain mode Responsibility chain mode to solve OA system procurement approval Source co ...

Posted by mwgi2005 on Sun, 05 Apr 2020 07:41:09 -0700

ConcurrentHashMap (1.8) Source Profiling

ConcurrentHashMap(JDK1.8) Learning Records Read the ConcurrentHashMap series that you forgot to read, this article mainly records what you learned by looking at the ConcurrentHashMap source code.There are several main points.The article is a bit long and requires patience. ConcurrentHashMap constructor and related properties 2. ConcurrentHashMa ...

Posted by iandotcom on Sun, 05 Apr 2020 02:03:26 -0700

Using Nginx server to publish front page

As an http server, Nginx can be used as a web page static server. Before deploying static resources, let's learn about the Nginx configuration file user nobody; #Start the process, usually set equal to the number of CPUs worker_processes 1; #Global error log and PID file #error_log logs/error.log; #error_log logs/error.log notice; #error ...

Posted by condoug on Sun, 05 Apr 2020 01:51:52 -0700

Vue implementation of 6-digit password (IOS WebView carton optimization)

In ios system, when the native webview nesting H5 page is used, the completed 6-digit input password is written, and the solution to the password stuck problem is as follows: The following picture: The reason is because of CSS. In short, if the style left is negative, this problem will not appear in android visual i ...

Posted by ppgpilot on Sat, 04 Apr 2020 23:50:03 -0700

[introduction to front end unit testing 04] Karma

Karma Official introduction A simple tool that allows you to execute JavaScript code in multiple real browsers. A simple tool that allows you to execute js code in multiple real browsers. After using karma, we didn't need to use jsdom to simulate the environment required for the mount of Enzyme, because karma will test the execution of js in ...

Posted by pwicks on Sat, 04 Apr 2020 18:59:13 -0700

Game development -- attribute calculator assistant tool -- know that everyone is lazy

Preface Knowing that everyone is lazy and busy, I proposed to provide you with an attribute calculator function, In the game, each scene object has its own attributes, such as movement speed, attack power, defense power, lucky value, three-dimensional and a series of attribute values The most common problems involved in attributes are the gener ...

Posted by aCa on Sat, 04 Apr 2020 11:05:19 -0700

Fast sorting of C ා

Algorithm description 1. Assuming that the first element of the array is pivot, set the index of the first (begin) and last (end) of the array; 2. Compare the corresponding element of the last index with pivot. If the corresponding element of the last index is greater than pivot, subtract one (end -) from the last index until the element is gre ...

Posted by DusterG20 on Fri, 03 Apr 2020 04:49:37 -0700

android version number size comparison

As you all know, the version number generally consists of the following parts: 1. Main version number 2. Minor version number 3. Revision number 4. Compiled version number For example: 2.1.3, 3.7.5, 10.2.0 When comparing version numbers, the correct way is to compare the major version number with the major version numbe ...

Posted by rdimaggio on Thu, 02 Apr 2020 15:39:02 -0700

C Chen's simple number guessing game

Rules of the game: A random number is generated by the system. The player has the chance to guess the number three times. If the number is guessed within three times, the player will get it right. Otherwise, Game Over!   Code design Description: 1. First, design a simple welcome interface, and prompt the player whether to start the game; ...

Posted by MadnessRed on Thu, 02 Apr 2020 15:10:59 -0700

Nginx series tutorials static files on nginx cache server

Using nginx to cache static files on the server 1, Advantages of nginx caching As shown in the figure, nginx caching can reduce the processing pressure of the source server to a certain extent.Because many static files (such as css, js, pictures) are not updated frequently. nginx uses proxy cache to cache users' requests to a local directory. ...

Posted by statrat on Thu, 02 Apr 2020 08:31:58 -0700