• [notes of Zhuang Zhuang stepping on the pit 3-1]


    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.

  • Cloud effect online “who in the cloud sends brocade letter” cloud exclusive password love letter


    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 […]

  • 010 rust asynchronous programming, using the select macro conditions


    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 […]

  • Summary of promise chain call characteristics


    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 […]

  • An error occurred while yarn was installing the package


    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

  • Python xlrderror: Excel xlsx file; not supported solution


    Analysis reason: the downloaded version of xlrd library is not compatible resolvent: pip install xlrd==1.2.0  

  • android.widget.TextView.setText() on a null object reference


    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()

  • (MAC) PHP installation and configuration


    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 […]

  • Kafka causes repeated consumption and Solutions


    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 […]

  • Node to the listener function provided by promise


    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) { […]

  • On the problem of not updating the token of localstorage cache in the encapsulation of Axios


    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 […]

  • Kiali can’t log in


    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 […]