Easypoi map method imports data, List<Map<String, String>> Date item data is empty (null) solution

Directory Preface Solution Foreword When using easypoi map to parse an excel file, if the data format of a certain column in the file is date type, then this tool cannot read it, because its source code reads a certain column in date format, and the data must be a string type, it will handle […]

Java tool class for reading and writing excel supports multiple Sheets

1. What is POI POI’s full name is PoorObfuscation Implementation. It is an open source project of Apache components that can read and write a series of Microsoft Office office software. The POI version corresponding to the examples in this article is 3.9. 2. Generate Excel tool class package org.zhao.component; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.MapUtils; import […]

The first IDE developed by AOSP in history (supports Java/Kotlin/C++/Jni/Native/Shell/Python)

ASFP Study The first IDE developed by AOSP in history (supports Java/Kotlin/C++/Jni/Native/Shell/Python) Similar to Android Studio, it can be used to develop Android system source code. Android studio for platform, referred to as asfp (Falling in Love with a Rich Woman). Background & amp;Download & amp;Use Background Because the Android system source code is too […]

Front-end project imports vue and element

1. Install nodejs Download linkhttps://cdn.npmmirror.com/binaries/node/v18.18.0/node-v18.18.0-x64. msi Enter cmd command line mode and run as administrator Enter (node -v) to see the version number npm config set prefix “C:\Program Files\\ odejs” default path npm config set prefix ” Write the path to your installation “ Switch npm’s Taobao mirror (npm config set registry https://registry.npm.taobao.org) 2. Install […]

Nginx implements tcp proxy and supports TLS encryption experiment

Nginx source code compilation Regarding the construction and configuration of nginx, please refer to the author’s previous article: Real-time streaming media server construction test (nginx + rtmp)_How to test online whether the streaming media rtmp is successfully built – the first half of the CSDN blog; the only change is the compilation parameters (Add the […]

ueditor rich text copy and paste word content containing pictures, and supports screenshots or copying and pasting pictures separately

Background The company’s recent upgrade project requires rich text to support the copying and pasting of word content containing multiple pictures. There is no other way. For the sake of user experience, we can only find a solution. Through various data searches, we have sorted out an effective solution for personal testing. Plan: 1. Listen […]

OpenMMlab exports the mobilenet-v2 model and uses onnxruntime and tensorrt for inference

Export onnx file Use mmpretrain to export the onnx model of mobilenet-v2: import torch from mmpretrain import get_model model = get_model(‘mobilenet-v2_8xb32_in1k’, pretrained=’mobilenet_v2_batch256_imagenet_20200708-3b2dc3af.pth’, device=’cpu’) input = torch.zeros(1, 3, 224, 224) out = model(input) torch.onnx.export(model, input, “mobilenet-v2.onnx”, opset_version=11) If mmdeploy is installed, you can export it as follows: from mmdeploy.apis import torch2onnx from mmdeploy.backend.sdk.export_info import export2SDK img […]

C/C++ 11/14 rewrites a std::function<…> function template that supports safety and no multiple copies, supports Lambda λ and overloaded operator()(…) operator structure and C/C++ language Ordinary functions.

As the title of this article indicates, it was rewritten for optimization, and the solid-size BUFF buffer provided by the standard library std::function implementation was cut off because it is no longer necessary. The implementation copies the shared pointer. Reference, instead of needing to copy the BUFF and reconstruct it like the official version. If […]

PG creates index and reports out of memory error

qs=> show shared_buffers; shared_buffers —————- 12GB (1 line record) qs=> show work_mem; work_mem ———- 4MB (1 line record) qs=> show maintenance_work_mem; maintenance_work_mem ———————– 8GB (1 line record) qs=> CREATE INDEX ACT_IDX_BYTEARRAY_NAME ON qs.ACT_GE_BYTEARRAY USING btree (NAME_); Error: Out of memory Description: Failed when requesting size 9 in memory context “TupleSort main”. Background: Parallel Worker Processes […]

Docker deployment nacos reports No DataSource set exception

2023-11-04 16:07:12,865 ERROR Application run failed org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘memoryMonitor’ defined in URL [jar:file:/home/nacos/target/nacos-server.jar!/BOOT-INF/lib/nacos- config-2.2.3.jar!/com/alibaba/nacos/config/server/monitor/MemoryMonitor.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘asyncNotifyService’: Unsatisfied dependency expressed through field ‘dumpService’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘externalDumpService’: Invocation of init method […]