Centos8.3 installation error:
DFN error: error in Posttrans scriptlet in RPM package kernel-core
Solutions:
Reinstall and set /boot to 300MB
when manually partitioning
Installing opencv Python in docker container
PIP opencv-python directly into docker:
pip install opencv-python
When importing cv2 again, an error will be returned:
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
>
>
>
>
>
>
>
>
pip uninstall opencv-python
To install it, use the following command:
pip install opencv-python-headless
【 reference 】
https://blog.csdn.net/Max_ZhangJF/article/details/108920050 https://github.com/Korea-Health-Datathon/KHD2020/issues/78
Jenkins series installation and deployment in docker mode
1. Search for mirror
docker search jenkins
2. Pull the mirror image
docker pull jenkinsci/blueocean
3. Run
docker run -u root -d -p 8080:8080 -p 50000:50000 -v /var/jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean
Browser access
http://ip:8080/
5. The initial password – this file
/var/Jenkins – data/secrets/initialAdminPassword
CONDA install torch error
If you can’t find the corresponding version, you need to add another PyTorch source
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
Conda toggle Tsinghua source complete command:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
Mounriver studio error handling

ah
Defining too many global variables
【 Solution 】
Change some unnecessary global variables to local variables
Boost:: filesystem:: remove: another program is using this file and the process cannot access it.


The reason is “E:/ProjectTfz/Infrared_Image_Process/Vivado_prj/Vivado_prj sim/sim_1/behav/xsim/simulate the log” this file cannot be opened, to the corresponding path can be deleted.
Idea: server returns invalid timezone. Need to set ‘servertimezone’ property
=
=
Maven’s jar package conflict; Maven’s introduction
How to resolve JAR package conflicts in Maven?Because of Maven’s implicit dependency on JARs, it can cause JAR package version conflicts in projects.
Maven comes with two ways:
Path Proximity Principle: Dependency on the path passed to the near priority.
Preference Declare Principle: Dependencies are defined in the POM file. The dependencies declared first prevail.
Manual configuration in two ways:
Method: by excluding rely on exclusion tag
lock version: through dependencyManagement lock version directly.
What is Maven and its life cycle?Maven is a project management tool that manages the entire life cycle of a project and manages the dependent JARs of a project. The life cycle of Maven includes: clean up, compile, test, package, install, and deploy with the following commands: MVN compile Java files into class files and output them to target directory. MVN test runs unit test classes. MVN package deploys include install. MVN deploy include install. And upload the project to the remote repository
Solution of MySQL data garbled problem
MySQL data garbled to solve the problem
Note for INSERT
The size of the data should be within the specified range of the column. For example, a string with master 80 cannot be inserted into a column with master 40. The data position listed in VALUES must correspond to the permutation position of the column to be added. You can use value in MySQL, but it is not recommended. It has the same function as values. Character and date data should be enclosed in single quotes. Double quotation marks can also be used as delimiters in MySQL. No column is specified or NULL is used to insert a null value.
View the encoding of MySQL’s internal Settings
show variables like 'character%';
The solution
Change the code of Client, Connection and Results to GBK to ensure that it is consistent with DOS command line code
| set th> | description th> tr> |
|---|---|
| set GBK character_set_client =; Set character_set_connection= GBK | modify the results of the query character set GBK td> tr> tbody> table> Set all three at once
Note: Exit DOS command line is invalid, need to configure each time Spoop export hive to MySQL
SQOOP Export: mysql> create a Hive table (????)
Like this: ![]() I have modified it once before, and the method works together. However, when the server is changed and the MySQL library is newly created, method one fails to work, and method two takes effect. Method one: Create a new query window, or use the command to enter mysql> , the input
Show variables like ‘character%’; View the results:
No provider available from registry 192.168.124.195:2181 for service cn.sofw>
What are the web front end technologies? What are the differences between cookie and session
What are the Web front-end technologies?What’s the difference between a Cookie and a Session?Cookies and Sessions are common techniques in Web applications that can be used to track a user’s entire Session. But what’s the difference between them?Next thousand front Xiaobian will give you a brief introduction.
![]() The main purpose Cookie is born to solve the problem that HTTP stateless characteristics can not meet the interactive Web, mainly used for session state management (such as user login status, shopping cart, game scores or other information to record); Personalization Settings (such as user-defined Settings, themes, etc.); Browser behavior tracking (e.g., tracking and analyzing user behavior). Session is a mechanism used by the server to record the state of the client. It is simpler to use than Cookie, and it also increases the storage pressure of the server accordingly. If the Cookie mechanism confirms the identity of the customer by checking the “pass” on the customer, then the Session mechanism confirms the identity of the customer by checking the “customer list” on the server. Session is equivalent to a client profile created by the program on the server. When the client visits, it only needs to query the client profile table. Usage scenarios Cookie technology can store information in different browsers, and can achieve multiple requests for data sharing, divided into temporary cookies and long-term cookies. If a Cookie has no expiry date set, the browser will delete the Cookie when it is closed. This Cookie is called a temporary Cookie. If a Cookie has an expiration date, then the browser will keep the Cookie until the expiration date. This Cookie is called a persistent Cookie. Session is a communication state retention mechanism based on Cookie, which can store some information of a user on the server side. After creating a Session, the server returns the Session ID to the browser in the form of Cookie. If the browser is closed, it will carry the Session ID when visiting the server again. When the server finds that the browser brings the Session ID, it will use the corresponding Session in memory to serve it. What is the relationship between a Cookie and a Session If a Web front-end programmer is asked “What is the relationship between Cookie and Session?” during an interview, the answer is that both are produced for client-server interaction. Cookie writes the user’s data to the user’s browser, while Session technology writes the user’s data to the user’s own Session. A Session is an object, and its properties can be of any type (cookies can only be set as strings). Cookie is stored in the client side, the disadvantage is easy to forge, not secure, Session is stored in the server side, will consume server resources, Session implementation has two ways: Cookie and URL rewriting. If you want to know more about cookies and sessions, or want to quickly advance to the front end of the Web, you can choose a major to learn, so that you can learn efficiently and quickly get employed. |




