Ctrl + shift + p, then enter launch, click the first option to configure. Then select More The specific configuration can be modified as: { “version”: “0.2.0”, “configurations”: [{ “name”: “LaunchChrome”, “type”: “chrome”, “request”: “launch”, “url”: “http://localhost:4200”, “sourceMaps”: true, “webRoot”: “${workspaceRoot}”, “userDataDir”: “${workspaceRoot}/.vscode/chrome” }] } Configuration explanation version: You define the version of this configuration […]
Tag: cut
[Transfer] Practical combat of mysql triggers (if trigger execution fails, will SQL roll back?)
1 IntroductionMysql triggers and stored procedures are both programs embedded in mysql. Triggers are a new function of mysql5. Currently, the databases used by the online Fengchao system, Beidou system, and Columbus system are all mysql5.0.45 versions. Many programs such as fc-star management terminal, sfrd (das), and dorado will use triggers. The server program implements […]
Thoughts on java thread pool ThreadPoolExecutor monitoring and dynamic parameter adjustment
Table of Contents For thread pool parameters For task submission strategy Respond quickly to user requests The default strategy of java ThreadPoolExecutor is as follows The tomcat ThreadPoolExecutor strategy is as follows Process batch tasks quickly Thread pool monitoring Dynamic adjustment of thread pool parameters https://mp.weixin.qq.com/s/baYuX8aCwQ9PP6k7TDl2Ww Java thread pool implementation principle and its practice in […]
Lambda expression features delayed execution
1. Why delayed execution is needed The problem arises: After the code in some scenarios is executed, the results may not be used, resulting in a waste of performance. How to solve: Lambda expressions can be executed lazily, which can be used as a solution to improve performance. 2. Cases of performance waste caused by […]
How to debug bugs in VS2022, shortcut keys for debugging, and what is the difference between debug and release
What is a bug In the process of learning programming, you should have heard of bugs, so where does the word bug come from? In fact, the original meaning of Bug is “bug” or “insect”. On September 9, 1947, Grace Heber, a computer expert working for the U.S. Navy, was also the first to integrate […]
KeepAliveTime analysis in ThreadPoolExecutor
keepAliveTime is the time that idle threads in the thread pool wait for tasks. If this time is exceeded, the thread pool will kick the current thread out of the thread pool. Divided into two scenarios: allowCoreThreadTimeout is set to true. After all idle threads in the thread pool time out, getTask() returns null, and […]
25|What’s in the executable binary file?
From this lecture, we entered into the study of “Principles of C Program Operation”. Compared with the previous content, in this module, you will move from “front stage” to “behind the scenes”: from the program logic intuitively represented by C code to the specific interaction between the program and the operating system during the running […]
28.Thread pool ThreadPoolExecutor actual combat and analysis of its principles
Five states of thread pool The high three bits of the variable ctl of the AtomicInteger type are used to represent the status of the thread pool, and the other digits represent the number of worker threads in the thread pool. RUNNING Accept new tasks and process queued tasks The thread pool is running normally […]
ctfshow command execution (40-50)
web40 A lot of questions have been filtered if(isset($_GET[‘c’])){ $c = $_GET[‘c’]; if(!preg_match(“/[0-9]|\~|\`|\@|\#|\$|\%|\^|\ & amp;|\*|\(|\)|\ -|\=|\ + |\{|\[|\]|\}|\:|’|”|\,|\<|\.|\>|\/|\?|\\ \/i”, $c)){ eval($c); } }else{ highlight_file(__FILE__); } The test point of this question is parameterless RCE Reference https://www.cnblogs.com/NPFS/p/13778333.html The meaning of no parameters can be a(), a(b()) or a(b(c())), but it cannot be a(‘b’) or a(‘b’,’c’),Cannot take […]
.netcore worker service’s method of executing multiple tasks in one worker
Recently, there is a project that uses Windows services as the carrier of a software project. I thought about it, we have reached the cross-platform era, will there be any technology to replace Windows services? So, after a frantic search on the Internet, Zhenhuangtian paid off and found an answer, which is Worker Service. I […]