Category: Programming Language
-
Post Views: 16 1. The list of catalogs at this stage is as follows: v2.0.15-rc.6, v2.0.15-rc.7, v2.0.15, v2.0.16- hotfix.2, v2.0.16-hotfix.3, v2.0.16, v2.0.17-rc.0, v2.0.20. as shown in Figure 1 2. Get all the subdirectories of the given directory and use glob() with the glob_onlydir option. 3. The printing results are as follows, in line with expectations. as shown in Figure 2…
-
Post Views: 18 1. When running in the Shopify application: YARN DEV, an error is reported: Bundler version 2.3.7 is not supported. as shown in Figure 1 2. To update to the latest version of Bundler, run gem install bundler. 3. Run again: yarn dev, no more errors.
-
Post Views: 15 1. Navigate to the directory where you want to create the application (e:\wwwroot\shopify-app). Your application will be created in a new subdirectory. as shown in Figure 1 2. Run one of the following commands to create a new application, and then select the language of the application template you want to start using: Node, PHP, or Ruby.…
-
Post Views: 20 1. Error: count(): parameter must be an array or an object that implements countable (view: ). as shown in Figure 1 2. Check the code implementation 3. Print $user->address_book, its value is null 4. Adjust the code implementation, when $user->address_book is null, the expression $user->address_book ??[]equivalent to[], otherwise it is $user->address_book. 5. In PHP 7.2.0, when the…
-
Post Views: 16 1. A GraphQL API, which takes up to 7 seconds. as shown in Figure 1 2. The time to query this request in Laravel Telescope, 1345 ms. as shown in Figure 2 3. Instead of requesting the GraphQL API on the page, it takes 1.87 seconds to request a separate request using the Altair GraphQL Client. Approximately…
-
Post Views: 21 1. The existing code is implemented as follows 2. The final generated JSON data structure is as follows: 3. The Blade {{ }} statement is automatically passed through PHP’s HtmlSpecialChars function to prevent XSS attacks. Therefore, you need {!! !!} to prevent the “(double quotes) from being converted into HTML entities. 4. However, the generated JSON structure…
-
Post Views: 16 1. In Navicat for MySQL, when the table is copied from one database to another, an error is reported:[ERR]1292 – Incorrect DateTime Value:0000-00-00 00:00:00for columnCREATED_AT_GMTat row 1. as shown in Figure 1 2. Execute: Select version(), it is found that the version of the two database software is inconsistent. They are: 5.7.19-log and 8.0.23-0ubuntu0.20.04.1. as shown in…
-
Post Views: 20 1. Execute the command: ./20.04/install_elasticsearch.sh 7 After installing Elasticsearch, the corresponding version of the IK segmentation plugin is not installed. as shown in Figure 1 2. Decide to edit install_elasticsearch.sh, the reason should be to determine whether the code to install the plugin is invalid. 3. Execute the command: /usr/share/elasticsearch/bin/elasticsearch-plugin list, there is still no corresponding plugin.…
-
Post Views: 19 1. When executing “./20.04/nginx_add_site.sh”, fill in the project name and report the error “Item name contains illegal characters” error. as shown in Figure 1 2. Edit ./20.04/nginx_add_site.sh, and comment out the code that prompts the error. as shown in Figure 2 3. The execution will be executed again ./20.04/nginx_add_site.sh, no more errors will be reported. as shown…