How to create your own composer code package

Preface For small development partners, code packages are a common part of the development process.For example, PHP has composer, Java has maven, front-end has npm, yarn, Mac has brew, Linux has yum.Using these packages, we can easily manage the external code components introduced by the code, help us to improve development efficiency, and help ...

Posted on Wed, 17 Jun 2020 12:08:05 -0400 by mark_nsx

BigDecimal collection of Java scientific computing

1, The background of BigDecimal First, let's look at the following code example: @Test public void countDemo() { logger.info("result:{}", 0.06 + 0.01); logger.info("result:{}", 1.0 - 0.42); logger.info("result:{}", 4.015 * 100); logger.info("result:{}", 303.1 / 1000); } give the resul ...

Posted on Wed, 17 Jun 2020 03:21:46 -0400 by pixy

Waveform custom control: measurement width and height of principle analysis

Previous This paper explains the initialization steps of custom control, and the width and height measurement of custom control. Override onMeasure method We get the relevant parameters from the layout file. Now we need to measure the width and height of this control. Rewrite the following method. @Ov ...

Posted on Wed, 17 Jun 2020 02:06:34 -0400 by AtomicRax

For a while, I created a dynamic thread pool and put Github in the source code

Explain the background Thread pool is still used in daily work. When asynchronous and batch processing tasks are needed, we will define a thread pool to handle them. There are some problems in the process of using thread pool. Here is a brief introduction of some problems encountered before. Scenario ...

Posted on Wed, 17 Jun 2020 01:40:55 -0400 by rohithreddyk

Use Node.js Drive Redis to implement a message queue!

Write at the beginning Recently Devops and Micro Front End have written almost the same, I started reviewing the knowledge of the back end, I wanted to write this article before, and finally fell to the ground If you want to join the front-end communication group, you can contact me at the end to join Official Start Mac|Linux recommended for ...

Posted on Tue, 16 Jun 2020 22:14:17 -0400 by parkej60

kubernetes dynamic storage based on nfs

1 create nfs Deploy the nfs service on the kubernetes master node and execute on the master node #master node install nfs yum -y install nfs-utils #Create nfs directory mkdir -p /nfs/data/ #Modify permission chmod -R 777 /nfs/data #Edit the export file, which is the default configuration file of nfs vim /etc/exports /nfs/data *(rw,no_root_sq ...

Posted on Tue, 16 Jun 2020 03:04:15 -0400 by snk

003.Spring Cloud Feign using ApplicationListener

1. Scenario premise Suppose there is a scenario: in a Spring Cloud Feign( Greenwich.SR6 )In the application, you want to listen to some events after the Spring container is started. For example, you need to do an initialization operation after receiving the ContextRefreshedEvent event. Generally, it i ...

Posted on Sun, 14 Jun 2020 00:51:16 -0400 by Arya

Vue toy: 200 lines of code to simulate the implementation of Vue

vue-toy About 200 lines of code simulate the implementation of vue. The view rendering part uses React instead of Snabbdom. Welcome to Star.Project address: https://github.com/bplok20010/vue-toy codesandbox example Implemented parameters: interface Options { el: HTMLElement | string; propsData?: Record<string, any>; props?: st ...

Posted on Sun, 14 Jun 2020 00:12:38 -0400 by paul_so40

Read csv and Excel data with pandas

This article uses real stock data as an example to teach you how to read common data files in Python. Content: Read csv data Read Excel data Merge multiple tables Data file download address: CSV data file nasdaq-listings.csv https://raw.githubusercontent.com/fishstar/Data-Analysis-Practice/master/import%26manage_data_in_Python/nasdaq-listings ...

Posted on Sat, 13 Jun 2020 06:55:15 -0400 by markepic

PHP obtains the K-line data of fire currency through URL and WebSocket

Recently, a module on the project line needs to obtain the K-line data of fire coin. In the early stage, I used the Workerman timing task to get the data through URL request every second. After the task was done, the boss felt that the data was not real-time, so I couldn't optimize it. Fortunately, in G ...

Posted on Fri, 12 Jun 2020 05:11:05 -0400 by Ph0enix