Tag:Reason
-
Time:2021-2-8
Today, I made careless mistakes again.Describe the problem: Cause: java.lang.IllegalArgumentException: invalid comparison:java.util.Date and java.lang.String Causes of the problem:Here, the time type and string are compared, resulting in an error. After the deletion, the code runs normally.
-
Time:2021-2-7
What can 30 lines of code do? The answer is that you can make a cloud specific password love letter. It’s said that programmers are sullen and don’t know how to be romantic. When programmers are really romantic, what is it like? Last week, cloud effect launched a cloud customized password love letter activity called […]
-
Time:2021-2-3
Using the select macro Future used in select must implement unpin trait and future trait. The reason why unpin must be implemented is that the future used in select is not obtained by value, but by variable reference. By not acquiring the ownership of future, the unfinished future can continue to be used after calling […]
-
Time:2021-1-15
I believe you front-end partners should be very familiar with promise. In daily work, it is a thing that will be used 100%. Unless you are still using callback to solve asynchronous problem, I admire it too much. Let’s get to the point. To make a statement in advance, the following code is implemented in […]
-
Time:2021-1-15
error An unexpected error occurred: “https://registry.npm.taobao.org/egg: tunnel ing socket could not be established, cause=getaddrinfo ENOTFOUND 9999 Guess the reason: the machine has a proxy toolresolvent: yarn config set proxy http://localhost:port yarn config set https-proxy http://localhost:port Acceleration method: yarn config set registry https://registry.npm.taobao.org –global //View configuration yarn config list
-
Time:2021-1-10
Analysis reason: the downloaded version of xlrd library is not compatible resolvent: pip install xlrd==1.2.0
-
Time:2021-1-9
Error description java.lang.NullPointerException: Attempt to invoke virtual method ‘void android.widget.TextView.setText(java.lang.CharSequence)’ on a null object reference problem analysis The reason for the error is that textview is not the value passed in. Make sure that you have used your textview in settext()
-
Time:2021-1-8
A series of articles: (MAC) PHP installation and configuration Configuration parameter of PHP compilation and installation (MAC) PHP extension installation Configuration of php-fpm and nginx Default configuration of php-fpm Download resource pack Installation reference document:Compiling PHP git clone http://git.php.net/repository/php-src.git cd php-src git checkout PHP-7.3 #Or download another version resource: git checkout php-7.0 However, when checking […]
-
Time:2021-1-7
problem analysis The reason for Kafka’s repeated consumption is that the data has been consumed, but the offset has not been submitted in time (for example, Kafka does not or does not know that the data has been consumed).Summarize the following scenarios that lead to kakfa’s repeated consumption: Reason 1: forcibly kill the thread, resulting […]
-
Time:2021-1-6
Promise is rejected, but there is no reject handler, node.js It’s not allowed. Unless the listener function is setunhandledRejectionWhen a promise is rejected and the handler is not rejected.Accordingly, another listener function is providedrejectionHandledWhen a promise, NoDirect bindingReject handler, but after that, execute the reject handler. It will be executed. process.on(“unhandledRejection”, function (reason, promise) { […]
-
Time:2020-12-18
Axios is used as the Ajax request plug-in in in Vue project. Due to asynchronous reasons, the token cached in localstorage obtained by Axios after project initialization will not be detected by Axios if there is no refresh. The solution is as follows:1. The authentication information in Axios header is set when the token is […]
-
Time:2020-12-15
reason After upgrading the k8s cluster, it was found that kiali could not log in. The specific reason why kiali could not log in due to upgrading the k8s cluster is not clear. The reason why you can’t log in is as follows: The red font in the picture above is translated as follows: The […]