Background: I recently received a request to generate a daily report, as shown below: ‘*’ represents a variable. It makes me uncomfortable to see that doc needs to be generated dynamically. Why is there such a need? Then I saw that there was a need to dynamically generate a pie chart, oh, no…there is no […]
Tag: generate
Open source software FFmpeg generates models using image data sets
This article talks about the open source software ffmpeg, which has helped countless video software companies, countless online video websites, and countless CDN cloud service vendors. Share how to use it to convert various video or movie files into tens of thousands of image data sets and wallpaper collections, so that the model program in […]
Python generates a pair of RSA keys and saves the public and private keys as .pem files respectively. Use the public key in the generated RSA key pair to encrypt the data, and then use the private key to decrypt. Convert RSA’s public key exponent (E) and modulus (N) to .pem format
You can use the cryptography library to generate a pair of RSA keys and save the public and private keys as .pem files respectively. Here is a sample code: from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymmetric import rsa # Generate RSA key pair private_key = rsa.generate_private_key( public_exponent=65537, key_size=2048, backend=default_backend() ) # Get […]
Unity generates XCode project through PBXProject
1. Introduction Recently, I read some relevant information about Unity exporting iOS projects, but I didn’t see a very complete script to automate project settings. After several days of trying, I finally produced this article. Unity provides a very powerful PBXObject that uses C# code to set various settings of the iOS project. The official […]
RESTful web service based on JAX-WS returns xml document generated through JAXB annotations
A RESTful web service written based on JAX-WS that returns xml documents. This xml document can be generated based on JAXB annotations, simplifying xml generation. In order to use the dependent libraries, you can add the following dependencies in the pom.xml file of the maven project: <dependency> <groupId>jakarta.xml.ws</groupId> <artifactId>jakarta.xml.ws-api</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>4.0.0</version> […]
FPGA generates 3X3 image processing matrix through FIFO
In the previous series of articles on median filtering, I have written about the generation method of 3×3 matrix template: Median filter design based on FPGA—-(3) Matrix template generation module design_verilog image generation 3*3 matrix-CSDN blog Now it seems that this method is relatively crude and simple. The general processing method is to store an […]
Generate sample data using built-in database functionality
There are many ways to generate dummy data for a database. You can create a data generator, use a mock data service, or obtain a subset of production data. Additionally, many databases provide built-in functionality for generating synthetic data. In this article, you will learn how to use special database functions, hierarchical queries, and recursive […]
Automatically generate C# code with python_python to c#
Article directory Preface CodeDOM TextX CodeSmith Introduction to zero-based Python learning resources Summary of Python learning route Must-have development tools for Python Collection of 600 Python learning videos Actual cases 100 Python exercises Interview questions Data collection Foreword Python can automatically generate C# code through some third-party libraries. The following are some common libraries and […]
[FastCAE source code reading 8] Call gmsh to generate grid
FastCAE uses gmsh for mesh division. When dividing, it directly starts a new gmsh process. I personally guess that this design is to avoid the risk of gmsh’s GPL agreement. When meshing, the general operation is as follows: 1. Python to gmshModule module The GUI operation does not need to be analyzed until the Python […]
IsolarAB exports arxml to Matlab/Simulink to generate the model and configure the memory partition
This article uses a simple example to illustrate how to import the SWC arxml designed by Isolar into simulink to generate a model, and specify that the code generated by simulink has memory partition information. The SWC created in this article is called ECAS_Sensor_SWC. Its main function is to process sensor signals and pass them […]