Install
1 | $ pip install PyQt5 |
1 | $ pip install PyQt5 |
This is a record for sonar fixing for backend based on Java.
Rule: Increment (++) and decrement (–) operators should not be used in a method call or mixed with other operators in an expression
1 | u8a = ++u8b + u8c--; |
1 | str = str.replace(/<[^<>]+>/g, ''); |
sample:
1 | var error = "<html><head><title>Error</title></head><body>Unauthorized</body></html>"; |
different with ^
:
1 | $ npm install express@^4.16.1 --save --save-exact |
ref: https://docs.npmjs.com/cli/install
This is a record for sonar fixing for backend based on node.js.
Security Hotspots aren’t necessarily issues, but they need to be reviewed to make sure they aren’t vulnerabilities.
Rule: Using regular expressions is security-sensitive
1 | let re = /^\d+(\.\d+)?$/; |
the rule recommend not using group()
to reduce evaluate work load. 个人理解是,group内外都有\d+,可能有重复校验的问题
This is a record for my work to product 3pp upgrade.
log on a host server to build docker image and test deployment:
use xxxx/xxx-compiler(cdt2 image) to build frontend
use xxx/xxx-base(node image) to build backend
Run upgraded cdt2+node images as a container first:
1 | $ docker run --rm -it -d --mount type=bind,src=/home/eshibij/cec-3pp-upgrade,dst=/usr/share sekidocker.rnd.ki.sw.ericsson.se/bolte/bcam/bcam-compiler:cdt_2.6.1-node_14.5 cat |
[–rm](https://blog.csdn.net/nzjdsds/article/details/8hexo 1981732): clean up
-it: wait for container cmds to be executed
-d: run in background and return container id
–mount: https://blog.csdn.net/longlong6682/article/details/104730138
cat: seems like catting the container id
Request used in send request to other domain.
https://blog.csdn.net/wuqingdeqing/article/details/99061026
https://blog.csdn.net/miss1128726/article/details/49976855
a basic sample of request:
1 | var options = { |
This method has limitation for case that expecting to send datas to more than one server. Like, I want to send xml sais to multiple bdc servers, it turns out to only transfer datas to the last bdc. (using request(options, responseHandler
)
Thanks for answers in https://stackoverflow.com/questions/6214902/how-to-set-a-timeout-on-a-http-request-in-node
The problem can mainly divided into two part in my implemention:
connection timeout
On request stage:
1 | // set the desired timeout in options |
This issue happens when run db=> select * from "ExxJobs" where status="Ongoing";
It returns
1 | ERROR: column "Ongoing" does not exist |
Solution
just change “” to ‘’.
1 | db=> select * from "ExxJobs" where status='Ongoing'; |
similarly:
1 | cecdb=> delete from "ExxJobs" where 'xxxJobId'=22674314; |
Steps to reproduce the error:
1 | $ kubectl get pods -A |
According to this answer, I tried
1 | $ docker ps -a --filter name=k8s_kubedns_kube-dns --format "table {{.ID}}\t{{.Image}}" |
1 | $ docker ps |
Search for Error response from daemon
, I found this issue same to mine