Compile time annotation AbstractProcessor practice

Annotation in Java is a very amazing thing, especially now there are many Android libraries that are implemented by annotation. We don't talk about annotations that are processed at Runtime through reflection, but rather at Compile time. Let's start with Java annotation processor. Simple practice: 1. Create annotation @Target({E ...

Posted by rd321 on Tue, 10 Dec 2019 14:14:31 -0800

GIL and cooperation

I. GIL global interpreter lock Demonstration ''' python interpreter: -Cpython c language - Jpython java 1. GIL: global interpreter lock -For multiple threads opened in the same process, only one thread can execute at the same time, because Cpython's memory management is not thread safe. -GIL global interpreter lock is essent ...

Posted by jorgep on Mon, 09 Dec 2019 17:14:00 -0800

springboot ElasticSearch simple full text search highlights

I talked with Zhang Sanfeng about es a few days ago. This is a chance to learn and use Introduce dependency first <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-elasticsearch</artifactId> </dependency> configuration file spring.data.elasti ...

Posted by infernon on Mon, 09 Dec 2019 00:44:19 -0800

Install request Library

Environmental description [root@localhost Python-3.6.6]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (Maipo) [root@localhost Python-3.6.6]# uname -a Linux localhost.localdomain 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux [root@localhost Python-3.6.6]# getenforce Disabled [ ...

Posted by paul_20k on Sun, 08 Dec 2019 03:14:22 -0800

Using uwolfer Gerrit rest java client to get Gerrit information

When using Gerrit to do code management tools, it is inevitable to call Gerrit's API. Gerrit rest api Let's take a look at an example and experience the interaction process of the gerrit rest api: The requests are as follows: changes is an API, the q string must be familiar to gerrit users, and n is the number of restrictions: GET /changes/?q=s ...

Posted by Reef on Thu, 05 Dec 2019 19:32:55 -0800

Sharing graph of wechat friend circle in pure Java

Sharing graph of wechat friend circle in pure Java 1. Realize the effect of sharing chart 2. Development environment 2.1 JDK *oracle's JDK above 1.8 2.2 font *If you choose Microsoft YaHei font and the code is deployed to Linux, you need to install Microsoft YaHei font, and google the font installation mode 3. Loading background 3.1 loading ba ...

Posted by aarchaic on Thu, 05 Dec 2019 00:47:32 -0800

psutil learning notes

psutil introduction psutil is a cross platform library( http://code.google.com/p/psutil/ )It can easily obtain the process and system utilization (including CPU, memory, disk, network, etc.) information of the system. It is mainly used in system monitoring, analysis and limitation of system resources and process management. It implements the ...

Posted by interrupt on Wed, 04 Dec 2019 11:32:29 -0800

k8s advanced learning 1:kubectl config command

1. Strengthen the understanding of kubectl config command in combination with kubectl deployment kubectl config command generates cluster information, cluster users and user permissions and writes these contents to the configuration file read by kubectl The kubectl config command executed when deploying kubectl is as follows [root@k8s-master a ...

Posted by stevel on Wed, 04 Dec 2019 09:09:02 -0800

Sao operation! Once loved! Using Python to clean up invalid websites in favorites

Preface The text and pictures of this article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Author: Xiaozhan & Arbor PS: if you need Python learning materials, you can click the link ...

Posted by motofzr1000 on Wed, 04 Dec 2019 04:04:56 -0800

Get abstract by calling Abstract list API

Copyright notice: This is the original article of the blogger. It can't be reproduced without the permission of the blogger. https://blog.csdn.net/u010741376/article/details/45055657 Abstract is obtained by calling the abstract list API: After c ...

Posted by Nommy on Tue, 03 Dec 2019 21:13:52 -0800