Explanation of PoolEntry parameters
1 public abstract class PoolEntry<T, C> {
2
3 private final String id;
4 private final T route; //Route
5 private final C conn; //http connection
6 private final long created; //Creation time
7 private final long validityDeadline;
8
9 private long updated;
10
11 private long exp ...
Added by tleisher on Sat, 23 Nov 2019 17:11:20 +0200
Talk about the pullInterval of rocketmq
order
This paper mainly studies the pullInterval of rocketmq
pullInterval
rocketmq-client-4.5.2-sources.jar!/org/apache/rocketmq/client/consumer/DefaultMQPushConsumer.java
public class DefaultMQPushConsumer extends ClientConfig implements MQPushConsumer {
private final InternalLogger log = ClientLogger.getLog();
//......
/**
...
Added by jrough on Sat, 23 Nov 2019 16:20:34 +0200
Using cuda core in open CV CPP
Prerequisite
Install the Invida graphics card on your computer;
Install Invida driver, version recommendation is more than 10;
Install cuda and cudnn;
github downloads opencv, opencv_contribute; local cmake compiles opencv;
target
In cpp, use the cuda kernel function written by you;
Reasons for writing this article
Recently, I was writing cud ...
Added by ultraslacker on Fri, 22 Nov 2019 04:11:58 +0200
Java Review Note 6 - Packaging Class Constant Pool
Summary:
There are some basic data types in Java. These basic data type variables cannot call methods, properties, etc. like other objects.
In some cases, some problems arise, and the packaging class is designed to solve them.
Wrapper classes enable these basic data types to have the ability to object
Correspondence between Packaging Class an ...
Added by DeadDude on Thu, 21 Nov 2019 22:59:30 +0200
Findpack two dimensional extremum
matlab has to find the extreme value function findpack can only find one-dimensional extreme value, and opencv has no corresponding function, so-called extreme value is larger than the surrounding values, and then it depends on the degree of extreme value required:
/*Calculate the center point of the divisible stone -- the big ...
Added by washbucket on Wed, 20 Nov 2019 23:58:34 +0200
Unicode converteutil: converting Unicode to String
Unicode is a kind of character set coding. It is a character coding scheme developed by international organizations that can accommodate all the words and symbols in the world. It can represent any character. In java language, Unicode is composed of four hexadecimal digits, such as: u597d. java does not provide a tool class to d ...
Added by cody7 on Wed, 20 Nov 2019 21:25:48 +0200
Secret and configMap for k8s data persistence
Preface
In K8s, there are two resource objects, Secret and configMap. This is also a way to realize data persistence, which is slightly different from the way of PV or mount directory written before.
Secret resource object: it can store light sensitive information, such as database user name and password or authentication secret key. Its data ...
Added by Jaguar83 on Wed, 20 Nov 2019 15:13:44 +0200
Linux applet -- my color progress bar
Linux applet - my color progress bar
Start to do some small programs under linux. The first one is the progress bar. In fact, it is a pseudo progress bar. It's based on time.
Let's look at the code first:
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#define NONE "\e[0m"
#define B ...
Added by vickie on Tue, 19 Nov 2019 17:59:41 +0200
Function coerce of JavaScript
Quotation
Recently, when reading the technology blog in the community, I came across several words of function currification, and also asked to write js function currification. I thought what kind of advanced thing is currification? Never heard of it?
Then we set out with problems, went to study specially, and made some arrangement.
What is fun ...
Added by aldernon on Tue, 19 Nov 2019 13:29:27 +0200
A simple explanation of the post competition questions of "HGDF competition 3"
I don't have time to write in detail, until I click.
A-Kirill And The Game
Title Solution
Multiply every number from xxx to yyy by kkk. As long as there is a number greater than lll and less than rrr, it can be yes yes yes. If there is no one, it can be no no no
B-Gleb And Pizza
Title Solution
Geometry problems
C-Ilya And ...
Added by watson100 on Mon, 18 Nov 2019 20:22:22 +0200