Custom OpenShift s2i image and template -- OracleJDK8
Objective of this paper
Because the image and template (OpenJDK8) officially provided by OpenShift does not fully meet the business needs:
Flight recording function is not included. Only OpenJDK11 and above are open source by Oracle
The generated heap dump is very large and slow (the minimum JVM heap of the company project is 16G and the m ...
Posted by phprocket on Sun, 21 Nov 2021 18:04:51 -0800
HanLP Chinese word segmentation, person name recognition and place name recognition
HanLP Chinese word segmentation, person name recognition and place name recognition
Experimental purpose
Download and install HanLP natural language processing package from the Internet;Familiar with the basic functions of HanLP natural language processing package;Using the information obtained by the web crawler, call the API of HanLP for Ch ...
Posted by Tjorriemorrie on Sun, 21 Nov 2021 18:00:35 -0800
Java must learn tool library to reduce your code by 90%
1. Java's own tools and methods
1.1 the list set is spliced into comma separated strings 1.2 compare whether two strings are equal, ignoring case 1.3 compare whether two objects are equal 1.4 intersection of two List sets 2. apache commons tool class library
2.1 commons Lang, enhanced version of java.lang 2.2 common collections co ...
Posted by kday on Sun, 21 Nov 2021 17:52:03 -0800
Responsive layout
Responsive Web Design- Viewport
Responsive layout is that a website can be compatible with multiple terminals - rather than making a specific version for each terminal.
advantage:
Strong flexibility in the face of different resolution devices
It can quickly solve the problem of multi device display adaptation
Disadvantages: & ...
Posted by hasjem on Sun, 21 Nov 2021 17:26:58 -0800
Usage of template (super detailed)
Suppose we have the following function
int compare(const string &v1,const string &v2)
{
if(v1<v2)return -1;
if(v1>v2)return 1;
return 0;
}
This function compares two values and indicates the greater than, less than, or equal relationship between the two values.
1. Function template
1.
template<typename T>
...
Posted by andyhajime on Sun, 21 Nov 2021 17:12:43 -0800
West Lake argumentative sword 2021 network security skills competition in Hangzhou, China
MISC
Really sign in
DASCTF{welc0m3_t0_9C51s_2021}
YUSA's little secret
Open the adjustment channel with Stegsolve to find the hidden flag; But it can't be seen when disturbed Search engines look up data and find problems. This refers to a color coding model called YCrCb Refer to [ByteCTF2020]Hardcore Watermark 01: https://bytect ...
Posted by teamshultz on Sun, 21 Nov 2021 17:07:13 -0800
Detailed explanation of React project Packaging Optimization
Project packaging and Optimization - Project packaging
Objective: to be able to package projects through commands
Steps:
Open the terminal in the project root directory and enter the packaging command: npm run build Wait until the package is completed, and the packaged content is placed in the build folder under the project root
Project p ...
Posted by zman on Sun, 21 Nov 2021 17:06:28 -0800
Data sharing using Content Provider
The Content Provider is used to share data between different applications. The application uses a ContentResolver object to manipulate the specified data.
1 Content Provider overview
The Content Provider implements a set of general methods to provide data addition, deletion, modification and query functions. The application obtains the Cont ...
Posted by standalone on Sun, 21 Nov 2021 16:58:45 -0800
Self study notes -- Annotation
annotation
Work for about a year. Before reviewing, I found that many basic knowledge learning was not solid enough. From today on, I will start the weekly self-study task and record it. This note is a self-study note, which can also be read and viewed by everyone.
What is annotation? Java Annotation, also known as Java Annotation, is an Anno ...
Posted by haku87 on Sun, 21 Nov 2021 16:49:26 -0800
Some understanding of semaphores, mutexes, mailboxes and message queues in RTOS
1. Semaphore
There are two kinds of semaphores: counting semaphores and binary semaphores. Counting semaphores can be obtained multiple times. Binary semaphores have only two states: 0 and 1, and can only be obtained once.
Semaphores can be used to protect resources and prevent multiple tasks from accessing a resource at the same time. Create ...
Posted by thefarhan on Sun, 21 Nov 2021 16:43:45 -0800