10 Best Solutions for Optimal Stable Diffusion in 2023

You may have seen a lot of news over the past year about ChatGPT and other AI automated texturing. But words on a page (or screen) are far from the only way modern organizations and designers are using artificial intelligence. Tools like Stable Diffusion help you create stunning AI images for personal and professional use. […]

Screen adaptation solution for vue project

Option 1: Use scale-box component Attributes: width width default 1920 height height default 1080 bgc background color default “transparent” delay adaptive scaling anti-shake delay time (ms) default 100 vue2 version: vue2 large screen adaptation scaling component (vue2-scale-box – npm) npm install vue2-scale-box How to use: <template> <div> <scale-box :width=”1920″ :height=”1080″ bgc=”transparent” :delay=”100″> <router-view /> </scale-box> […]

Euler angles (roll angle, pitch angle, yaw angle), rotation matrix, quaternion conversion and solution to universal joint deadlock

1. Overview The description method of the pose (position and direction) of an object is generally represented by two coordinate systems. One is the world coordinate system or the ground coordinate system. Here I call it the ground coordinate system, which belongs to the reference coordinate system; the other is its own Coordinate system, it […]

Solution to the mismatch between the field name in the JSON string and the field name in the Java class (use of @JsonProperty(“”) and @JSONField(name = “”))

1.1 Background 1.1.1 The so-called background, that is, what is the purpose and reason for writing this blog? Recently, I encountered a very strange requirement at work. I used WebService to adjust a third-party interface, but the return value of the third-party interface was an Xml structure. It was not surprising at first. But then […]

Reasons and solutions for GPU CUDA running speed not to increase but to decrease when using shared memory

I wrote several operators for adding two images and image filtering, respectively using shared memory for optimization. #include <stdio.h> #include <cuda_runtime.h> #include “helper_cuda.h” #include “helper_timer.h” #define BLOCKX 32 #define BLOCKY 32 #define BLOCK_SIZE 1024 #define PADDING 2 __global__ void filter5x5(float* in, float* out, int nW, int nH) {<!– –> // Thread index —> Global memory […]

vivo database cost reduction practice: exploring the most cost-effective database solution

Since vivo began researching and testing OceanBase in 2022, it has now launched 17 business systems, covering logging, analysis, and transaction businesses, achieving a total resource saving of 80%, and greatly simplifying development and operation and maintenance work. In this article, Liao Guangming, senior database engineer of the IT department of vivo system and process, […]

DevOps application solution based on Docker container

Article directory Environment introduction 1. Deploy gitlab warehouse 2. Deploy jenkins 3. Install the harbo warehouse 4. Deploy docker on the fourth host, and make a tomcat image and upload it to the harbor warehouse 5. Upload the code to the gitlab warehouse 6. Install docker on the jenkins host and create a pipeline script […]

IDEA plug-in development-persistent configuration information solution

Write a custom directory title here Configuration information persistent storage How to save configuration files Implementation plan for each method 1.PropertiesComponent: 2.PersistentStateComponent: 3.Project Settings: 4. External files: 5. Database: 6. Encrypt data: 7. Custom configuration file format: Configuration file location Project-level configuration (stored under the .idea folder): Global configuration (stored in the global configuration file […]

Achieve multiple solutions for session sharing

Session sharing Why is there session sharing At present, most of the projects of Internet companies are built in a micro-service Huahe distributed environment. This will lead to a project being likely to be distributed and deployed in several or even many server clusters. At this time, a problem will arise. When a user has […]