Old learning programming - Cgroup plug-in

cgroup cgroup introduction cgroup, a control group, provides a mechanism for controlling the use of resources by a specific group of processes. cgroup binds a process set to one or more subsystems. Why cgroup Group the processes uniformly, monitor the processes and manage the resources on the basis of grouping. subsystem cgroup is a mechanism t ...

Posted by logicopinion on Wed, 06 May 2020 05:29:32 -0700

Python testing: beware of the pitfalls behind simplicity

Many friends will ask why the code they write is so slow? I remember when I was a graduate student, my tutor went to Taiwan for a visit and told me about his personal experience. He said that the algorithm he wrote would work out in half an hour. Moreover, it was on a personal computer, and the students in Taiwan couldn't work out in 2-3 days. ...

Posted by Codewarrior123 on Wed, 06 May 2020 00:11:36 -0700

Spring verification annotation exception unified processing class

@ControllerAdvice This annotation is the core of unified exception handling Is an Advice that acts on the control layer. This annotation can collect common @ ExceptionHandler, @ InitBinder and @ ModelAttributes methods into one type and apply to all controllers Design ideas in this category: Use the @ ExceptionHandler annotation to c ...

Posted by niekos on Tue, 05 May 2020 12:04:34 -0700

Exploring the functions of Go type parameters

In go language, the definition of a function can be different from the caller of the function. In other words, the lack of runtime type security allows parameters at the call end of a function to be inconsistent with those at the definition end of the function. Go does not support the polymorphic nature of functions, wh ...

Posted by proctk on Tue, 05 May 2020 11:04:33 -0700

Java Network Programming

Use of the Internet Access class 1. Overview Computer network: Interconnect computers distributed in different geographic areas with specialized external equipment using communication lines to form a large-scale and powerful network system, so that many computers can easily transfer information to each other and share hardware, softwar ...

Posted by j7n5u on Mon, 04 May 2020 23:00:20 -0700

Array operation in js

Array API API: Application Programming Interface; The methods provided by objects in js are called API s; instanceof Detect whether an object is an array; (used against complex data types;) //Simple data type of; A instanceof B / / is a made by B; Example: var arr = [1,2,3]; console.log(arr instanceof Array); //arr is not of type ...

Posted by stitchmedia on Mon, 04 May 2020 22:35:56 -0700

Spring AOP - Advanced Details

Spring AOP-Advanced Come on, go straight to the case description: Whoop..... 1. Advanced Case 1: Defining a public entry point Sketch There are many notifications in the facet class, most of which have the same entry point. For ease of entry point management and maintenance, use a common entry point. @Pointcut Method modifier:private ...

Posted by furiousweebee on Mon, 04 May 2020 20:09:46 -0700

18. How spring cloud uses spring test for unit test

Love official account: java paradise In the last part, I learned how spring cloud integrates reids and borrowed the restful interface in the form of web for testing. Is there any other way to unit test the code written by spring boot and spring cloud? Answer: there must be. This article explains how to use spring boot starter test for unit tes ...

Posted by mmponline on Mon, 04 May 2020 20:05:03 -0700

A note on the problem of non aware updating program of nginx+tomcat cluster users

Before, nginx+tomcat cluster configuration was a simple polling mechanism upstream servers{ #server 172.25.67.29:9091 weight=1 max_fails=1 fail_timeout=50; server 172.25.67.29:9091; server 172.25.67.27:9091; server 172.25.67.27:8380; } As shown above. In this way, it's OK to restart one of the t ...

Posted by w.geoghegan on Mon, 04 May 2020 19:49:02 -0700

Talk about maxwell's MysqlPositionStore

order This paper mainly studies MysqlPositionStore of maxwell MysqlPositionStore maxwell-1.25.1/src/main/java/com/zendesk/maxwell/schema/MysqlPositionStore.java public class MysqlPositionStore { static final Logger LOGGER = LoggerFactory.getLogger(MysqlPositionStore.class); private static final Long DEFAULT_GTID_SERVER_ID = new Long(0); priv ...

Posted by pcjeffmac on Mon, 04 May 2020 19:38:25 -0700