Error code:
$data=\request()->post('data');
Correct practice: the data in post.data is customized in post:
$data=input('post.data/a');
Error code:
$data=\request()->post('data');
Correct practice: the data in post.data is customized in post:
$data=input('post.data/a');
It is said on the Internet that it is because of the set time. The solution is:
join the zuul gateway
Gbd28181Device.cpp(550,18): error C4996: ‘pugi::xml_ Document:: load ‘: declared deprecated
For the above problems, I find the following three solutions:
Method 1: Project Properties & gt; Configuration Properties > C/C++ > General > SDL checks off
Method 2: #pragma warning (disable: 4996)
Method: 3:/WD 4996
Could not write JSON: write javaBean error, fastjson version x.x.x, class
Possible causes of error reporting (welcome to add)
1. Serialization problem. The reason is that some fields in the bean object cannot be serialized. For example, fields of multipart type cannot be serialized. You can not serialize annotations through @ jsonfailed (serialize = false)
2. When converting JSON to object, there are some syntax problems in the attribute get/set, such as null pointer, type conversion, divisor and dividend in division are 0, etc
3. Syntax problem in get/set when database query returns (as above)
1. Question
Plugin Error: Plugin “Android Code Generator” is incompatible (supported only in IntelliJ IDEA).
2. Solution
C:/Users/Admin/AppData/Roaming/Google/AndroidStudio4.2/plugins
After deleting the file, restart the as to solve the problem.
3. Detailed steps
1. Enter the directory of Disk C and click the [user] folder
2. Find the directory of your [administrator] user name, that is, admin above
3. If you enter at this time, you may not find the appdata folder, so you need to open the hidden directory to see it (take win10 as an example here)
4. Follow the above file path to find the directory where the file is located
5. Delete the error folder. This is Android codegenerator plugin IntelliJ
6. Restart Android studio
Question:
implement NPX create react app XXX reports an error
PS D:\Desktop>npx create-react-app demo
Error: EPERM: operation not permitted, mkdir 'D:\nodejs\node_modules\npm\node_cache\_npx'
TypeError: Cannot read property 'get' of undefined
at errorHandler (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213:18)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\bin\npm-cli.js:83:20
at cb (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\npm.js:215:22)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\npm.js:253:24
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\config\core.js:81:7
at Array.forEach (<anonymous>)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\config\core.js:80:13
at f (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\config\core.js:178:20)
at D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\node_modules\mkdirp\index.js:35:29
D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213
if (npm.config.get('json')) {
^
TypeError: Cannot read property 'get' of undefined
at process.errorHandler (D:\nodejs\node_modules\npm\node_global\node_modules\npx\node_modules\npm\lib\utils\error-handler.js:213:18)
at process.emit (events.js:400:28)
at process._fatalException (internal/process/execution.js:167:25)
Install for [ 'create-react-app@latest' ] failed with code 7
terms of settlement:
Create react- app@latest Install to global
npm install create-react-app@latest -g
Run after installation
npx create-react-app demo
So you can write the project
The springboot project needs to execute linux commands to execute dataX programs
the initial code is:
String[] cmdArr = {"cd","/home/datax/bin/"};
The correct should be:
String[] cmdArr = {"/bin/sh", "-c", "cd","/home/datax/bin/"};
Project scenario:
The error information reported during project code compilation is as follows:
error: non-const lvalue reference to type '...' cannot bind to a value of unrelated type '...'
Problem Description:
After the project problem is simply abstracted, it is equivalent to the following problems:
Do this and compile through
int a;
const double& m = a;
However, an error is reported in this compilation
int a;
double& m = a;
Error information such as title
Cause analysis:
Because temporary variables cannot be bound to a non const reference
double& m = a;
a
is an int variable that will be implicitly converted to a double variable, so this process generates a temporary variable. Non const reference cannot bind temporary variables
Solution:
Avoid implicit conversion or add const
There was a problem installing postcss pxtorem
Solve the problem of installing the postcss pxtorem plug-in in Vue and reporting an error “error: postcss plugin postcss pxtorem requires postcss 8.”
solve:
Upgrade postcss version or downgrade postcss pxtorem version
npm i [email protected]
According to the document on the official website of rancher 2.4, only one Linux host is required. Remember that a single node rancher server can be quickly deployed. Of course, this can only be used for testing. Deployment is very convenient. Just start dcoker on the host, and then start a container:
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
After the test, it is found that the container is constantly restarted after startup, and there is no way to enter the UI, prompting a network error.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bfd5c52a1ce7 rancher/rancher "entrypoint.sh" 12 hours ago Restarting (1) 3 seconds ago elated_heisenberg
View log:
[root@k8s-node02 ~]# docker logs --tail 3 bfd5c52a1ce7
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes
ERROR: Rancher must be ran with the --privileged flag when running outside of Kubernetes
If an error is found, it is said that — privileged is required to increase privileges
turn off the lifting appliance — privileged to try:
docker run -d --restart=unless-stopped --privileged -p 80:80 -p 443:443 rancher/rancher
Found it
There are generally two possible reasons for this problem
The empty value is in float format
Solution
The solution corresponding to null value DF [‘value ‘] = DF [‘value’]. Fillna (“”) DF. Value = DF. Value. Astype (STR) the solution corresponding to float format DF. Value = DF. Value. Astype (STR)
This error occurs when using the official instance code of jpegturbo. Record the solution.
Environment introduction
ubuntu 16.04
conda
python3.7
Error details
Traceback (most recent call last):
File "/home/ubuntu/PycharmProjects/python_code_test/JPEGTurbo/official_demo1.py", line 30, in <module>
turbo_jpeg = TurboJPEG()
File "/home/ubuntu/.conda/envs/pytorch-1.7/lib/python3.7/site-packages/turbojpeg.py", line 286, in __init__
self.__find_turbojpeg() if lib_path is None else lib_path)
File "/home/ubuntu/.conda/envs/pytorch-1.7/lib/python3.7/site-packages/turbojpeg.py", line 895, in __find_turbojpeg
'Unable to locate turbojpeg library automatically. '
RuntimeError: Unable to locate turbojpeg library automatically. You may specify the turbojpeg library path manually.
e.g. jpeg = TurboJPEG(lib_path)
Solution
sudo apt-get update -y
sudo apt-get install -y libturbojpeg
References
PyTurboJPEG · PyPI
https://github.com/lilohuang/PyTurboJPEG/issues/27