Tag Archives: ProgrammerAH

PCL 1.8.1 VTK 9.0 QT 5.14.9 [How to Solve]

Severity code description the project file line is prohibited from displaying status
error c2039 “immediatemodernetingoff”: project1 D:\PCL 1.8.1\include\pcl-1.8\PCL\visualization\impl\PCL is not a member of “vtkmapper”_visualizer.hpp 1431

#include <vtkRenderWindow.h>

2039 “immediatemodulerenderingoff”: not a member of “vtkmapper”

It was found that the ImmediateModeRenderingOff() method of vtkMapper was removed in vtk8.10 onwards, so in order to get the pcl1.9.1 code to compile, you just need to comment out the corresponding line of code in the error message

[Solved] CentOS build a docker error: job for docker.service failed….

Build docker in centos.
At first everything went well, but after configuring the image, I restarted docker and got an error
Restarting docker reports the following error message:
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
The start docker error message reads:
Job for docker.service failed because start of the service was attempted too often. See “systemctl status docker.service” and “journalctl -xe” for details.
To force a start use “systemctl reset-failed docker.service” followed by “systemctl start docker.service” again.

Reason for the problem: daemon file suffix format causes reboot/boot failure
The solution is
1、Enter the docker directory: cd /etc/docker
2、Modify the suffix of daemon file: mv daemon.json daemon.conf
3, restart/start docker: systemctl start docker

image852×367 12.3 KB

Linux rhel7/centos7 source code compilation and installation Emacs Error NO x toolkit could be found

Specific error reporting:

checking for libXaw… configure: error: No X toolkit could be found. If you are sure you want Emacs compiled without an X toolkit, pass –with-x-toolkit=no to configure. Otherwise, install the development libraries for the toolkit that you want to use (e.g. Gtk+) and re-run configure.

After repeatedly confirming that GTK and corresponding GTK devel files have been installed,

yum install gtk3-devel.x86_ 64 gtk3.x86_ sixty-four

yum install gtk2-devel.x86_ 64 gtk2.x86_ sixty-four

Still report the same error,

Locate libxaw found existing library files (Yum install libxaw.x86)_ 64 (or installed by default)

Finally, it was found that the corresponding devel package, libxaw-devel.x86, was not installed_ sixty-four

yum install libXaw-devel.x86_ 64 installation,

Execute./configure again. The error will disappear. If there are other errors,

Similarly, install the corresponding devel library

Error when pychart terminal runs pytest: file not found:

When you execute pytest on the pycharm terminal, an error is reported and the file cannot be found
because the path opened by terminal is not necessarily the directory of your current file, To switch to the directory where the file is located
Click

in the upper right corner of pycharm to copy the path in the working directory
enter the working directory path just copied from CD in terminal
run pytest again

Git error: requested URL returned error: 403

Modify config in Git folder under current project

1) Edit the. Git/config file

2) Find the URL variable under [remote “origin”]

3) Modify URL= https://github.com/user/test.git , modify to URL= ssh://git @Github.com/user/test.git, save after modification

4) Synchronization through git push origin master is successful

Amend as follows:

[root@localhost learngit_2]# cat .git/config
[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url =  ssh://[email protected]/shengleqi/gitskills.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

Successful execution:

[root@localhost learngit_2]# git push -u origin master
The authenticity of host 'github.com (192.30.255.112)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?yes
Warning: Permanently added 'github.com,192.30.255.112' (RSA) to the list of known hosts.
Counting objects: 26, done.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (26/26), 2.08 KiB, done.
Total 26 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), done.
To ssh://[email protected]/shengleqi/gitskills.git
 * [new branch]      master -> master
Branch master set up to track remote branch master from origin.

IIS + Django project reported an error. The fastcgi process exited unexpectedly

Today, after modifying the prompt in IIS + Django project, the web page reported an error “fastcgi process exited unexpectedly”

Processing procedure: 1. Confirm that in the advanced settings of the application pool used by the website, the normal option in the option “identity” in the process model class is “localsystem”

 

2. In “CMD” mode, enter the project directory and run “Python manage. Py runserver” to confirm whether the website code is normal*** This is very important.

3. Restart the server
 

Vs Code Python relative path error

#Question  

FileNotFoundError: [Errno 2] No such file or directory:’./XXX’

When ensuring that the file/directory does exist, the probability is the problem of the current running path of the program. Whether the code runner or the terminal is running, the default current path of vs code is not the path where the program file is located, so using the relative path to find the file will report an error.

#Settle

1. For code runner, modify its settings in expansion and check the option of file directory as CWD.

  2. For terminal operation, CD to the directory of program files first.

Solution to the expiration and unavailability of Android studio plug-in plugin

Gsonformat: plugins official website

GsonFormat : github

We use the import prompt to download expired.

solve

Download the source code to idea:

Modify the following two points:

1、gradle-wrapper.properties

Change the version to the one on your computer:

distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip

2、build.gradle

Change the version to the one on your computer:

1. Org.jetbrains.intellij version: after creating gradle project, you can view:

2. Intellij.version can be viewed through idea about:

be careful:

The key value pair key = valueplugins in the IntelliJ tag is an array

The final document is as follows:

buildscript {
    repositories {
        mavenCentral()
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots/"
        }
        maven {
            url 'https://dl.bintray.com/jetbrains/intellij-plugin-service'
        }
    }
}
plugins {
    id 'org.jetbrains.intellij' version '1.1.4'
}

apply plugin: 'org.jetbrains.intellij'
apply plugin: 'java'
// dependencies {
//     compile project(':ThirdPart:checktreetable')
//     compile project(':ThirdPart:json')
// }
sourceSets {
    main {
        java {
            srcDir "${project.rootDir.absolutePath}/ThirdParty/json/java/src"
            srcDir "${project.rootDir.absolutePath}/ThirdParty/treetable/java/src"
        }

    }
}

//IntelliJ IDEA 2021.2 (Community Edition)
//Build #IC-212.4746.92, built on July 27, 2021
//Runtime version: 11.0.11+9-b1504.13 x86_64
//VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
//macOS 11.1
//GC: G1 Young Generation, G1 Old Generation
//Memory: 1024M
//Cores: 8
//Non-Bundled Plugins: GsonFormatPlus (1.6.1), com.godwin.json.parser (1.4.2), cn.yiiguxing.plugin.translate (2.9.2)
//Kotlin: 212-1.5.10-release-IJ4746.92

intellij {
    plugins = ['java']
    version = 'IC-212.4746.92'
    pluginName = 'GsonFormat'
    updateSinceUntilBuild = false

//    publish {
//        pluginId '7910'
//        username publishUsername
//        password publishPassword
//    }

//     Uncomment to test against Android Studio
//     intellij.alternativeIdePath = '/Applications/Android Studio.app'
}

repositories {
    mavenCentral()
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots/"
    }
    maven {
        url 'https://dl.bintray.com/jetbrains/intellij-plugin-service'
    }
    maven { url "https://www.jetbrains.com/intellij-repository/releases" }
    maven { url "https://www.jetbrains.com/intellij-repository/snapshots" }
}

Repackage:

The generated file is in:

The generated plug-in can be imported into the zip package locally.

Zip file

It has been uploaded here

Eslint error reporting and resolution

1. ‘trailing spaces not allowed’ indicates that there are redundant spaces at the end of the line. Just delete them

2. The variable declared by ‘xxx’ is assigned a value but never used ‘is not used

3. ‘string must use singlequote’ just change double quotation marks into single quotation marks

4. There is a semicolon at the end of the ‘extra semicolon’ line (the default eslint configuration does not use semicolons)

5. There is a comma at the end of the ‘unexpected trailing comma’ line

6. ‘unexpected template string expression’ uses unnecessary template string expression

7. ‘xxx’ is never reassigned. Use ‘const’ variables declared with let are not reassigned later, and const is used instead

8. ‘Expected space(s) after “if”‘

  ‘Missing space before function parentheses’

     ‘ Missing space before opening brace’

     ‘ Expected space or tab after ‘/ /’ in comment ‘these are missing spaces

9. The error ‘unexpected side effect in “submitparames” calculated property’ is because I assigned values to other property values in the calculated property. It would be better to replace it with watch. It should be that the calculated property only performs simple operations, which is not good for changing the property value directly

10. ‘Identifier ‘col_ Names’ is not in camel case ‘

11. ‘unnecessary use of conditional expression for default assignment’ is because a ternary expression is used for the initialization of a value

12. ‘closing curry brace does not appear on the same line as the subsequence block’ braces are not on the same line as subsequent code blocks, for example, if… Else… Statements, else statements wrap

Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED

Upgrade to IntelliJ idea 2021.2 and start the project with an error

Unrecognized option: –add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED

Solution: delete the. Idea folder and re import the project.

Recommended solution:

Change the red box to your JDK version. Mine is 1.8, so check 8. If this problem cannot be solved, use the above solution again.