Distributed file storage: simple use and principle analysis of FastDFS
Introduction
FastDFS belongs to the category of distributed storage. The distributed file system FastDFS is very suitable for small and medium-sized projects. When I took over the maintenance of the company's image service, I began to contact it. The purpose of this article is to summarize the knowledge of FastDFS.
Two 2-core 4G alicloud serv ...
Added by DigitalExpl0it on Thu, 12 Dec 2019 15:55:27 +0200
PyQt5 note 7 -- multiple class sharing signals
PyQt5 note 7 – multiple classes sharing signals
1. Signal transmission
Custom signal in main window class and binding slot function in constructor
Pass the object of the main window when instantiating the dialog class
Customize the signal in the dialog box and bind the slot function in the constructor to the signal ...
Added by snowgirl on Wed, 11 Dec 2019 23:29:35 +0200
c language variable parameter list function
In the function prototype, the number of parameters is fixed in general, but what to do if you want to receive an indefinite number of parameters at different times? c language Variable parameter list is provided for implementation.
The variable parameter list is implemented by macros, which are defined in the header file of s ...
Added by shadysaiyan on Wed, 11 Dec 2019 21:02:47 +0200
Introduce the use of ForkJoinPool
ForkJoinPool is the thread pool provided by JDK 1.7. In order to solve the problem of unbalanced CPU load. For example, a large task is executed by one thread while other threads are idle.
ForkJoinTask represents a task. Among the subclasses of ForkJoinTask are RecursiveAction and RecursiveTask. There is no result returned from recursive ac ...
Added by a1ias on Wed, 11 Dec 2019 20:26:36 +0200
New server building - Summary: Download nginx, jdk8, docker compose (install mysql,redis) with installation
Preface
For example, the company bought a new 4-core 16G server and had to rebuild the environment, so it had to do one by one and make a record
1.nginx: manual installation
2.jdk8: manual installation
3. Install docker and docker compose
3. Docker compose encoding, one click docker to install mysql, redis
nginx installation
Available ...
Added by elgoog on Wed, 11 Dec 2019 15:55:03 +0200
[AHOI2009] similar distribution digit dp
Title Description
Give two numbers a,b, and find out the number of numbers whose sum of the numbers in [a,b] can divide the original number by integral.
I / O format
Input format:
One line, two integers a and b
Output format:
An integer indicating the answer
Example of input and output
Input example ා 1: cop ...
Added by phpbrat on Tue, 10 Dec 2019 22:17:49 +0200
Java connects to manage database through JDBC
Third party classes are needed to access MySQL database. These third party classes are all compressed in a file called Jar. In order for the code to use third-party classes, you need to import mysql's special Jar package for the project
Attach the download address link of the download jar package: https://pan.baidu.com/s/16BdVevqO6ezgtVPdwKar0 ...
Added by philspliff on Tue, 10 Dec 2019 22:03:32 +0200
Adjust the array so that all odd numbers are in front of even numbers 2. Young's matrix
1. Adjust the array so that all odd numbers are ahead of even numbers.
Title:
Input an integer array and implement a function to adjust the order of the numbers in the array so that all the odd numbers in the array are in the first half of the array and all the even numbers are in the second half of the array.
#include <stdio ...
Added by jds580s on Tue, 10 Dec 2019 18:45:57 +0200
[NOIP series] discretization
NOIP series
What is discretization in c + +?
Take a look at the example first
Given the number of n (possibly the same), how many times does the most frequent number occur. (n<= 10 ^ 9)
Um... This problem looks like a water problem. Just open a V array to record the number of times each number appears, such as v[a[i]] + + ...
Added by kokomo310 on Tue, 10 Dec 2019 17:39:52 +0200
Using the Specification of Spring Data JPA to build database query
The best feature of Spring Data JPA is that it can easily create query SQL by generating query by custom method name. Spring Data JPA provides a Repository programming model. The simplest way is to extend JPA Repository. We get a bunch of common CRUD methods, such as save, findAll, delete, etc. And many database single table query interfaces c ...
Added by yuws on Tue, 10 Dec 2019 14:00:20 +0200