Year: 2020
-
Post Views: 17 1. Invoke the following command in the terminal to install the API: go install google.golang.org/api/urlshortener/v1, error: cant load package: package google.golang.org/api/urlshortener/v1. as shown in Figure 1 2. Reference:https://github.com/googleapis/google-api-go-client/blob/master/GettingStarted.md. Invoke the following commands in the terminal to install the API: go get -u google.golang.org/api/urlshortener/v1, error: Package google.golang.org/api/urlshortener/v1: unrecognized import path “google.golang.org/api/urlshortener/v1”. as shown in Figure 2 3. Reference:https://www.shuijingwanwq.com/2019/12/28/3784/.…
-
Post Views: 13 1. Error: Redis Error err for Redis Cluster, evalevalsha number of keys canT be negative or zero. as shown in Figure 1 2. Reference URL:https://developer.aliyun.com/article/645851. One of the limitations of the Lua script for the cloud Redis cluster, the call must have a key, otherwise the error message will be returned directly, “-err for redis cluster, eval/evalsha…
-
Post Views: 12 1. In CakePHP v2.6.4, an error is reported: sqlstate[HY000][2002]connection timed out. as shown in Figure 1 2. Print the database connection information and find that the host address is the intranet IP, and the container cannot be accessed 3. Adjust to the external network IP, print the database connection information, and the container can be accessed normally.…
-
Post Views: 17 1. Error: call to undefined function international\image\gd\imagecreateFromJPEG(). as shown in Figure 1 2. Check phpinfo and find that the gd library does not support jpeg format. as shown in Figure 2 3. By upgrading the basic image of the container, check phpinfo, and add the value of jpeg support to Enabled. The GD library already supports the…
-
Post Views: 43 1. Publish Weibo links to the platform through the Weibo open platform interface, and click the link of the webpage on my homepage. as shown in Figure 1 2. Prompt when the link is opened: If you need to browse, please long press the URL to copy and use the browser to access it. as shown in…
-
Post Views: 22 1. At this stage, there is a new requirement, and it is necessary to do some initial data work for the product when deploying the product. Prepare the corresponding SQL file, but for the file path in the MySQL table: /upload/20200817/20203555555373.png. It is stored in NAS storage. rather than the program directory. as shown in Figure 1…
-
Post Views: 13 1. The full name of MinGW is: Minimalist GNU on Windows. Open URL:http://www.mingw-w64.org/doku.php/download, select MinGW-W64-Builds. as shown in Figure 1 2. Download the package name: mingw-w64-install.exe. Error during installation: cannot download repository.txt. as shown in Figure 2 3. Select Win-Builds. as shown in Figure 3 4. Download and install from Windows. as shown in Figure 4 5.…
-
Post Views: 17 1. Reference URL:https://book.cakephp.org/2/en/console-and-shells.html, create a simple hello world shell. In the application’s console/command directory, create helloshell.php. 2. Enter the directory: e:\wwwroot\creditshop\app\console, execute: ./cake hello, report an error: error shell class helloshell could not be found. as shown in Figure 1 3. Reference URL:https://stackoverflow.com/questions/10671634/cakephp-shell-shell-class-helloshell-could-not-be-found, as shown in Figure 2 4. Enter the directory: e:\wwwroot\creditshop\app, execute: console/cake hello, no…
-
Post Views: 20 1. At this stage, there is a new requirement, and it is necessary to do some initial data work for the product when deploying the product. Prepare the corresponding SQL file in advance. Since multiple SQL statements need to be executed, and subsequent SQL statements depend on the primary key ID generated by the previous SQL statement.…