Failed to close firewall vm8:
Step 1:
yum install iptables-services
Step 2:
systemctl stop firewalld
Failed to close firewall vm8:
Step 1:
yum install iptables-services
Step 2:
systemctl stop firewalld
After going out for a while, QT couldn’t open the project when he came back, so Baidu took it
it turns out that the plug-in is not enabled, so just check it
the top menu bar – help – about plug-ins
check QBs, qmake and support for project construction
Restart QT creator and try to build again. It is successful.
Version number:
vue/cli:4.5.12
vant:^3.0.10
Question:
Failed to resolve component: van-cell-group
at <Home onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > key=0 >
Reason: the van cell group component is not imported
Solution:
You can import it in the ‘main. JS’ file and then use it on the page
The details are as follows:
import {
createApp
} from 'vue'
import {
CellGroup
} from 'vant'
createApp(App).use(CellGroup)
Problem: slf4j: failed to load class “org. Slf4j. Impl. Staticloggerbinder” error occurs when creating Maven project with idea for unit test
solution: add dependency in pom.xml. Because it is in the test environment, the scope tag is test. If it is running in main, you can change test.
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
<scope>test</scope>
</dependency>
Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Migration checksum mismatch for migration version 700013
When spring boot integrates flyway for database version management, the startup service reports an error org.flywaydb.core.api.flywayexception: validate failed: detected failed migration to version 1.1 (fixusername)
reason:
Because I modified SQL in the original version, this error is mainly due to flyway_ schema_ The recorded data in history affects the startup and needs to be checked
Solution 1:
If you don’t want to recreate a version,
you need to find the relevant table in the database, delete the data related to this version, modify and restore the fields related to this version, and then reload it
Solution 2
Create a new version, write the relevant data changes to the version, and restart the project
Specific error
Execution failed for task ':usbCameraTest:lintVitalRelease'.
> Lint found fatal errors while assembling a release target.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
terms of settlement
Add in build.gradle:
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
Direct method:
Idea-> Help-> JRebel-> configuration
Just click the button below (if you activate it normally)
The Keil version is v5.25.30.0
the Downloader is st-link
1. As shown in the figure below, Keil prompts error: Flash download failed – target DLL has been cancelled
2. The reason is that the TVCC of st-link in the figure below is not connected to the 3.3V of the circuit board
as shown in the figure below. When the yellow line is connected, it can be downloaded normally. If the yellow line is not connected to stlink, The target DLL has been cancelled error will appear
3. Discuss the difference between Vdd and TVCC in stlink
as shown in the figure below, TVCC is pin 1.2. When stlink is plugged in USB, TVCC has no 3.3V output
VDD is pin 19. When stlink is plugged in USB, VDD has 3.3V output
when downloading the program in SW mode:
TVCC must receive 3.3V to download successfully, otherwise an error will be reported: Flash download failed – target DLL has been cancelled
VDD is not connected
So can VDD be connected to TVCC to power up the single chip microcomputer?I tried. It is feasible in theory, but I generally don’t do so, because the 3.3V driving ability is not strong
I test with the board of the punctual atomic warship. When VDD is connected to TVCC, both Vdd and TVCC will be pulled to about 2V, and keil can also successfully download the code. As shown in the figure below, VDD gives a voltage of 3.3V to the MCU through the white line, and then to TVCC through the yellow line. However, the LED will not be lit. Personally, I think the voltage is too low
Looking through the manual of STM32, you can see that the working voltage of STM32 is 2v-3.6v, so Vdd and TVCC are two or more volts, which can also make the STM32 program download successful
to sum up:
1. TVCC itself has no voltage. When downloading the program, it needs to be connected to 3.3V of the circuit board
2. VDD can supply power to the MCU to download the program. At the same time, if the power is supplied on the circuit board or separately, VDD should not be connected to the development board to avoid the conflict between the two 3.3V. So it can be described by one word, but it’s not necessary. VDD is just a foot that doesn’t exist. Don’t use it
PS: the standard JTAG interface is attached. It can be seen that the 19 pin is not connected. I don’t quite understand why stlink wants to output the 19 pin to 3.3V as VDD
When running the image stylization code with tensorflow version 2.4.0, the following error occurred:
tensorflow.python.framework.errors_impl.InternalError: Blas xGEMM launch failed : a.shape=[1,480000,64], b.shape=[1,480000,64], m=64, n=64, k=480000 [Op:Einsum]
The following two solutions are found by consulting the data:
1. Add the following code to the program:
import os
os.environ['CUDA_VISIBLE_DEVICES'] = '/gpu:0'
The program can run normally, but the CPU is used, and the running speed of the program is much slower
2. Modify the cudnn version, but it is generally not recommended. It is too troublesome.
[Vue warn]: invalid prop: type check failed for prop “disabled”
Translation:
the attribute is invalid: the type check of the attribute “disabled” fails. It should be a Boolean value, and the obtained string value is “isdisabledfn()”
solution:
in the code: disabled is a Boolean value, but the judgment statement result is not a Boolean value. Just convert it.
Recently, I used nltk as a downloader in my homework related to automatic Q & A. I used another computer to solve the problem, but I didn’t record the solution. I immediately forgot and spent about 2 hours looking for a solution. Therefore, I want to record the solution now.
import nltk
nltk.download('stopwords')
nltk.download('reuters')
nltk.download('punkt')
When executing the above code, an error is found error loading stopwords: & lt; Urlopen error [errno 11004] getaddrinfo failed
, the following methods are available through practical operation.
Find the hosts file under C: \ windows \ system32 \ drivers \ etc
, open it as an administrator, and add the following line of IP address to the end of hosts.
185.199.108.133 raw.githubusercontent.com
As shown in the figure below,
after adding and running again, you will find that the download is successful
The address of raw.github is changed frequently, resulting in unsuccessful download
It is possible that the address may be changed frequently, resulting in unsuccessful downloading. We can open the website for querying the IP address: https://www.ipaddress.com/ Enter raw. Githubusercontent. Com
to find the corresponding new IP address.
give an example
We have added the IP address to the hosts and found that it was still unsuccessful. Therefore, let’s see if the download failed due to the change of the IP address of raw.github. We open https://websites.ipaddress.com/
website, enter raw.githubusercontent.com
, and click look up
. It is found that four IPS have been found. We replace the content in hosts with
185.199.109.133 raw.githubusercontent.com
Then we re execute and find success.
If the above solutions are not solved, you can leave a message and we can communicate together~
The above solutions are from the solution reference link. Thank you very much!!
java.net.SocketException: socket failed: EPERM (Operation not permitted)
This problem always occurs when using asynchttpclient to make network requests. If you add network permissions
, you still can’t
Finally, I saw the solution of @ no forest in Norway. Uninstall the program in the virtual machine and reinstall it.
although I don’t know the principle, I still record it