Tag:Actual

  • Common layout schemes of mobile terminal

    Time:2021-10-16

    Scenario 1: automatic molecular page cutting requirement The dialog content is automatically filled according to the size of the page container. When only one conversation can be displayed on the screen and it is too large, reduce the font size to fit the container size. Implementation principle Use a hidden content area element as a […]

  • Web development and high performance architecture optimization of go reading community

    Time:2021-10-14

    Download: go reading community web development and high performance architecture optimization * To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. */ package datei.steuern; import java.io.BufferedReader;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.FileWriter;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.RandomAccessFile;import java.nio.ByteBuffer;import java.nio.channels.FileChannel;import […]

  • Date component of secondary encapsulation element

    Time:2021-10-12

       https://blog.csdn.net/weixin_42565137/article/details/90482500   Time and date component of secondary encapsulation elment UI import utils from ‘../utils/utils’ export default { data() { return { timeValue: [], tiemType: ‘datetimerange’, valueFormat: ‘yyyy-MM-dd HH:mm:ss’, //Shortcut options pickerOptions: { shortcuts: [{ Text: ‘last week’, onClick(picker) { const end = new Date(new Date().setHours(23, 59, 59, 0)) const start = new Date(new […]

  • K8s actual combat (IV) | controller deployment

    Time:2021-9-20

    preface The previous section mentioned that the pod created directly has no self-healing function. The pod created by the controller can be self-healing, so what is the controller. It can be understood that the container is a bare box. Pod packed the box to facilitate k8s mounting. How to mount several pods in k8s at […]

  • Front end Engineering – injecting runtime environment variables using build tools

    Time:2021-9-16

    Actual project requirements description Get the current environment (production or development) at runtime, and then do different operations Examples of actual project requirements if(__env__) {// do something} else {// do something} Implemented by Rollup Train of thought description: To realize the above requirements, we must find an “entry” that can distinguish the environment. Here we […]

  • Some business widgets encapsulated by themselves

    Time:2021-9-13

    Reasons for developing the projectUsually nothing, write a complete project and there is no need to learngolangThere is no actual output (because I am a writer)phpAfter chatting with group friends, I found that he was writing his own project, and then got stuck in how to use the redis like function to asynchronously store it. […]

  • How to call the storage interface synchronously?

    Time:2021-8-23

    Developers can obtain the actual returned result of the interface through res.data and the failed return code through res.code. Take the storage. Get () interface as an example, and the code is as follows: 1<script> import storage from ‘@system.storage’; const injectRef = Object.getPrototypeOf(global) || global;//Inject regeneratorruntime injectRef.regeneratorRuntime = require(‘@babel/runtime/regenerator’); module.exports = { onDestroy: function () […]

  • [big data tribe] R language bank credit risk early warning model based on decision tree

    Time:2021-8-21

    Original link:http://tecdat.cn/?p=2783 introduction With the rapid development of China’s economy, personal credit business also develops rapidly, and personal credit business also plays a stimulating role in improving domestic demand and promoting consumption. While the scale of personal credit business is expanding, the risk problems such as credit default are becoming increasingly prominent, which restricts the […]

  • Share wechat applet’s scheme of global management of websocket in app.js

    Time:2021-8-10

    Wechat open community has netizens asking questionsHow to keep the websocket connection uninterrupted during route switching?, in my answer, I shared my scheme of using websocket in actual projects. Let’s sort it out here. The main idea is to globally process the connection and receiving messages of websocket in app.js, forward the messages to the […]

  • IAP verification of Huawei in app payment in PHP language

    Time:2021-7-30

    Background description After the project is connected to the IAP sdk3. X of the Huawei HMS SDK, after the payment is successful, the purchase data inapppurchasedata and its signature data can be obtained from the purchaseresultinfo object. The signature verification needs to be performed using the public key allocated in Huawei appgallery connect. The specific […]

  • Mybatis first level cache results in inconsistent query results with expected results

    Time:2021-7-20

    Example SQL: @Transactional public RebateContract getInfo(RebateContract contract) { RebateContract rebContractInfo = rebateContractDao.getInfo(contract); logger.info(“agentId:” + rebContractInfo.getAgentId()); rebContractInfo.setAgentId(10000L); //Instead of querying, get the value of rebcontractinfo from the cache RebateContract rebContractInfo1 = rebateContractDao.getInfo(contract); logger.info(“agentId1:” + rebContractInfo1.getAgentId()); return rebContractInfo1; } Implementation results:Note: it must be in the same thingAfter one query in the same transaction, directly repair the […]

  • Swagger UI modifies the default request address

    Time:2021-6-30

    problem Deploy the springboot application to the server, access the swagger UI through the domain name (through the nginx agent) for front-end and back-end joint debugging, but when you actually click execute, you will be prompted:TypeError: Failed to fetch For example, the address of swagger UI is: https://foo.com/test/api/insurance/swagger-ui/index.html Click execute to call the back-end interface […]