Ⅰ、Comparison between the components provided by Element-ui and the desired target situation: 1. Element-ui provides components: First, the code provided by Element-ui is (sample code, the example is as follows): // Code provided by Element-ui: <template> <div> <el-button-group> <el-button type=”primary” icon=”el-icon-arrow-left”>Previous page</el-button> <el-button type=”primary”>Next page<i class=”el-icon-arrow-right el-icon–right”></i></el-button> </el-button-group> <el-button-group> <el-button type=”primary” icon=”el-icon-edit”></el-button> <el-button type=”primary” icon=”el-icon-share”></el-button> […]
Tag: dynamic
How to dynamically refresh the configuration of SpringBoot (scheme)
For microservices, configuration localization is a big problem. It is impossible to restart the service every time you need to change the configuration. Therefore, the final solution is to externalize the configuration and host it on a platform to achieve unnecessary Restart the service to modify multiple valid purposes at once. But for the Spring […]
Encryption and Decryption Debugging Dynamic Debugging Technology (2) – Common Breakpoints
Directory common breakpoints 1.INT 3 breakpoint detection bypass 2. Hardware breakpoint principle We give the example of hardware interrupt remove hardware breakpoint 3. Memory breakpoint principle example delete the difference Summarize 4. Memory access one-time breakpoint 5. Message breakpoint example delete 6. Conditional breakpoints (1) Interrupt by register condition (2) Interrupt by memory condition 7. […]
Echarts series dynamically renders multiple line charts/area charts
The series of Echarts dynamically renders multiple line charts/area charts 1. Dynamically set series according to the data (array) returned by the backend 2. Draw a graph based on the obtained multiple sets of series data Since there are so many charts encountered in the work, I can’t remember the configuration items every time I […]
How to dynamically refresh the configuration of SpringBoot (custom)
The custom part of this article includes 1. Custom refresh event (with RefreshScope to achieve automatic refresh) 2. Force refresh the context (restart the entire ApplicationContext) 3. Implement Http interface loading of configuration files (similar to Nacos) Custom refresh event (with RefreshScope to achieve automatic refresh) Manual refresh of configuration based on org.springframework.cloud.context.config.annotation.RefreshScope Spring uses […]
k8s uses localpath to dynamically provide storage for pods
In the k8s environment, we often use the local path as persistent storage. In the k8s official document, there are two ways to use local storage, one is hostPath, the other is local volume, neither of which supports dynamic expansion, and the program porting changes are relatively large, and local-path-provisioner is very good made up […]
How to dynamically refresh the configuration of SpringBoot (implemented by Nacos)
Nacos startup loading configuration Load NacosConfigBootstrapConfiguration through META-INF/spring.factories org.springframework.cloud.bootstrap.BootstrapConfiguration=\ com.alibaba.cloud.nacos.NacosConfigBootstrapConfiguration Initialize NacosConfigProperties and NacosPropertySourceLocator @Configuration @ConditionalOnProperty(name = “spring.cloud.nacos.config.enabled”, matchIfMissing = true) public class NacosConfigBootstrapConfiguration { @Bean @ConditionalOnMissingBean public NacosConfigProperties nacosConfigProperties() { return new NacosConfigProperties(); } @Bean public NacosPropertySourceLocator nacosPropertySourceLocator( NacosConfigProperties nacosConfigProperties) { return new NacosPropertySourceLocator(nacosConfigProperties); } } Load configuration to org.springframework.core.env.Environment via com.alibaba.cloud.nacos.client.NacosPropertySourceLocator @Override public […]
Dynamic Programming – Knapsack Problem
01 knapsack problem Problem Description: There are N items and a knapsack with capacity V. Each item can only be used once. The volume of the i-th item is vi, and the value is wi. Solve which items to put into the backpack, so that the total volume of these items does not exceed the […]
Dynamic Programming – Interval DP
Combination of stones (weakened version) Description of topic https://www.luogu.com.cn/problem/P1775 with N ( N ≤ 300 ) N(N \le 300) N(N≤300) piles of stones are arranged in a row, and the number is 1 , 2 , 3 , ? ? , N 1,2,3,\cdots,N 1,2,3,?,N. Each pile of stones has a certain mass m i ( […]
OpenAI Whisper + FFmpeg + TTS: Dynamic cross-language video and audio translation
The author of this article is a front-end development engineer of 360 Qiwu Troupe Summary: This article describes how to combine OpenAI Whisper, FFmpeg and TTS (Text-to-Speech) technology to realize the process of translating video into other languages and changing the voice. We will explore how to use OpenAI Whisper for speech recognition and translation, […]