Realize timed task parsing headerless .csv file into pgsql library (java, SpringBoot)

1. Scheduled tasks package; import; import; import; import; import; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.stereotype.Component; import; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author stb * @date 2023-05-24 * @description Synchronize XXX data regularly */ @Slf4j @Component […]

The performance test code in the example in the seal library

// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #include “examples.h” using namespace std; using namespace seal; /* In this example we show how serialization works in Microsoft SEAL. Specifically, We present important concepts that enable the user to optimize the data size when communicating ciphertexts and keys for outsourced […]

Mathematical modeling of CCR, BCC, and super-efficiency models using python’s pulp library

Article directory Mathematical modeling of CCR, BCC, and super-efficiency models using python’s pulp library 1. CCR, BCC, and super-efficiency model formulas? 1. Input-oriented CCR dual formula 2. BCC model formula 3. Super efficiency model formula 2. Mathematical Model Construction 1. Data example 1.1 How to use the pulp package 1.2 After learning basic modeling, apply […]

spring-cloud-alibaba-seata distributed transaction instance

Step 1: First visit: Download the seata1.6.0 service we need to use Step 2: 1. Add the undo_log table to your database participating in global transactions — for AT mode you must to init this sql for your business database. the seata server not need it. CREATE TABLE IF NOT EXISTS `undo_log` ( `branch_id` […]

Microservice environment construction (spring cloud Alibaba) (1)

Modules: Commodity Module, Order Module, User Module 1. 1. Technology selection and preparation maven: version 3.8.8 Database: MySQL 8.0.32 Persistence layer: springData, jpa Other java environments: SpringCloud Alibaba technology stack 2. Module design springcloud- alibaba parent project shop – common public module [entity class] shop – user user service [port number: 807x] shop – product […]

Spring boot/spring cloud/spring cloud alibaba uses graalvm to compile into native-image

1. Install graalvm tar -xzf graalvm-ce-java-linux–.tar.gz export PATH=/path/to//bin:$PATH export JAVA_HOME=/path/to/ 2. Install native-image gu install native-image 3. Precautions for using native-image The memory of the machine should be slightly larger, otherwise this error will be reported: exit status 137 4. Use native-image to directly compile the jar of spring boot/spring cloud/spring cloud alibaba […]

Regarding the method of re-signing by ADB after the APK cannot be installed after the relevant server is strengthened, the signature is swiped after hardening, and the compressed so library is aligned by zipalign after hardening

Some problems encountered and their answers in work (Android Chapter) 1. After the relevant server is reinforced, the APK cannot be installed and an error is reported 2. After the signature is brushed after hardening, the method of ADB re-signing 3. Align the compressed so library through zipalign after reinforcement After first hardening: Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: […]

How to configure the CPU and GPU versions of the tensorflow library on Linux Ubuntu

This article introduces the configuration that can be run by CPU or GPU in Ubuntu of the Linux operating system. Methods of Python new version of deep learning library tensorflow. In the article Anaconda configures the new version of the Python tensorflow library (CPU, GPU common) method ( and the configuration method of the new […]

Those interesting, fun and powerful Python libraries

The Python language has always been famous for its rich third-party libraries. Today, I will introduce a few very nice libraries, which are fun, fun and powerful! Data collection In today’s Internet era, data is so important, first of all, let’s introduce several excellent data collection projects AKShare AKShare is a Python-based financial data interface […]