Author Archives: Robins

This version of chromedriver only supports chrome version 92 crawler simulates the problem of Google plug-in version when the browser clicks and reports an error

When the crawler simulates the browser’s click, an error is reported in the version of the Google plug-in. In this case, the driver of the Google browser stored locally is incorrect and needs to be updated. The specific solutions are as follows:

resolvent:

Open the following website and download the corresponding version of chromedriver. If you can’t find the exact version number, just find 91

http://chromedriver.storage.googleapis.com/index.html

Be sure to download the driver according to your browser version

My version number is 91.0.4472.124, so I should download the driver corresponding to this version number. The website of download driver is the one above     http://chromedriver.storage.googleapis.com/index.html

After clicking in, the interface is as follows

Then find the corresponding version file, download it, unzip it, and copy and paste it into the

In the program error report, you need to delete or cover the previous version in the path where you installed Google before

Leave this new version of the driver. In addition to that, I need to make a copy to the IDE environment where you are running. I use the code written in Python language here, so I need to make a copy of the driver file to the local installation path of Python

At last, it ran successfully

Unitypackage failed to install or the express solution could not be installed

Cause of the problem:

The unitypackage is updated in the project, and it is stuck in the unitypackage manager interface after the update. As shown in the figure:

At this stage, the package is being updated, but for some reasons, it cannot be downloaded or failed to download.

The reason why the download failed or could not be downloaded has not been found, and the reason is unknown( It’s a matter of time

Solution:

Download the package to be updated locally by offline download or copy, and put it in the package cache directory of unity.

The directory path is as follows:

C:\Users\Administrator\AppData\Local\Unity\cache\packages\packages.unity.com

Then restart unity.

Principle:

The package downloaded by unity will be cached in the directory above. When the directory exists, the package under the directory will be copied to the project.

If there is no specified directory in the package directory, it will be downloaded.

In other words, if you put the package directly into the project, it will be invalid.

Generating equals/hashCode implementation but without a call to superclass

Warning message

Generating equals/hashCode implementation but without a call to
superclass, even though this class does not extend java.lang.Object.
If this is intentional, add ‘(callSuper=false)’ to your type.

Baidu translation results:

Generate the equals/hashcode implementation, but do not call the superclass, even if the class does not extend Java. Lang. object. If this is intentional, add “(callsuper = false)” to your type.

terms of settlement

Method 1

Add the @ equalsandhashcode (callsuper = true) annotation to the class

After adding, you can include the properties of its parent class when generating the equals/hashcode method

Method 2

Add content to the configuration class, but I haven’t used it, so I only recommend a link. The address is: https://www.cnblogs.com/zt007/p/13086238.html

Neither –kubeconfig nor –master was specified. Using the inClusterConfig. This might not work

When downloading yaml of ingress nginx

wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml -O nginx-ingress-controller.yaml

When deploying ingress nginx, check the pod log and report the following error

Solution:

Add the following hostnetwork: true in yaml, re deploy, or modify the deployment file of pod to deploy the update

Kubernetes hostnetwork: true network
this is a way to define pod network directly
if you use hostnetwork: true to configure the network in pod, the application running in pod can directly see the network interface of the host computer, and all network interfaces on the LAN where the host computer is located can access the application.

After successful deployment, you can log in to the node where the pod is located to view it

netstat -anp |grep LISTEN |grep 80

hostNetwork: true

View log information after deployment

2021-07-03module parse failed: unexpected token (763:13) you may need an appropriate loader to

After updating the scaffold and creating a new project, NPM run serve reported this error

directly using the method
1. At the beginning of Vue create XXX, check the CSS when you check the pre selection

but this method is not good, sometimes you just don’t want to check what to do.

2. Update the webpack, and update all other updates. This should be ok……

TypeError: __array__() takes 1 positional argument but 2 were given

Problem Description: BTS code today, all kinds of errors. The amazing thing is that everyone has no problem, only I encounter all kinds of wonderful problems, which are too difficult.


Type error: can’t convert CUDA: 0 device type tensor to numpy. Use tensor. CPU () to copy the tensor to host memory first

The solution to this problem is to copy the GPU data to the CPU first, and then save it. But it doesn’t look like that to me. Some people encountered it before because the torch version was wrong, so I reloaded all kinds of versions and combinations, which were unsuccessful.

Only part of the code will be commented out first, and then take a closer look.

Question 2: typeerror:__ array__() takes 1 positional argument but 2 were given

This problem is even more exotic, the image reading error. It is roughly the following situation:


np.array(img) # OK
np.array(img, dtype=np.float64) # Error

After searching for a long time, I finally found that a big guy proposed that it was a PIL bug, and the version was lowered from 8.3 to 8.2 to solve it

How to deal with NullPointerException error in row.getlong in spark – sparksql

Error: when the value of row is obtained in sparksql and the field of row allows null, null is obtained when the value is taken and assigned to a new variable name. A NullPointerException error will be reported

Solution: you can first use row. Isnullat (index) to determine whether the value of the field is empty

Specific cases are as follows:

First, make mistakes

If row. Isnullat (6) is not empty, the value will be assigned to the variable

When you get a value from row, you often encounter the problem of being empty.
the simple summary is as follows:
get value type: if it is empty, it will be converted to 0
to judge null. It is recommended to use row.isnullat (index)

Get string type: if it is empty, it will be null
if it is empty, it is recommended to use: stringutils. Isempty() (in case of ″)

Summary: getast
is used to get values, row. Isnullat
and stringutils. Isempty ()

Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-6.7.1-b

Let’s move it, let’s move it, let’s move it, let’s go, let’s go, let’s go, let’s go, let’s go, let’s go, let’s go, let’s go.

Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-6.7.1-bin.zip'.

So, you can be at the squasquares like I can be at

[
.
……………………………………………………………………………………………………………………………………………
We’re going to go to the floor, we’re going to go to the floor, we’re going to go to the floor, and we’re going to go to the floor, and we’re going to find where the wrong thing is:

we’re going to go to
and we’re going to get grad-6.7.1

The problem of MySQL database connection failure errno: 1049 error

Today, I use phpstudy to open the MySQL database, and then connect to the database failed: the report is 1049, which means that the database does not exist.

The error is as follows
. In this CMD window, you can go all the way up to the time when you just connected the data

to see if your database name is right, but my database name is wrong
config file, which contains the

default.json file. There is a

database, fill in your own correct database name in the database, and then connect to the database after saving it

this way means success, and I hope it will help you with your mistakes!!!

Consider defining a bean named ‘entityManagerFactory‘ in your configuration.

After tossing all afternoon, I began to think that it was the problem of using JPA warehouse. I replaced the simplest JPA repository, but it still couldn’t work. I checked online and tried the following methods:

Delete the version number;

Delete all the files in the folder (. M2) and then import the package again by Maven;

At a loss, I found that I had commented on the main startup class

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)

It’s equivalent to not allowing automatic injection of data source. Of course, entitymanagerfactory can’t be found…

Hope to be able to help small partners who encounter the same difficulties!