C + + split string function

In C++ STL, there is no thread function to split the string, but the function is very common. Therefore, this paper introduces several string segmentation methods. Using the strtok function in C The strtok function in C can split C-style strings. Strtok_ris the thread safe version of strtok. Reference resources https://linux.die.net/man/3/strto ...

Posted by seidel on Wed, 30 Oct 2019 07:14:01 -0700

Java description design pattern (16): agent pattern

Source code: GitHub point here || GitEE point here I. life scene 1. Scene description Today, with the rapid development of e-commerce, the number of express delivery is very large, and even there is the express agent industry. Simply speaking, the owner of express delivery does not have time to receive express delivery, and will designate a co ...

Posted by DarkShadowWing on Tue, 29 Oct 2019 09:35:43 -0700

Custom pull-down refresh rotation loading animation LoadingView

brief introduction When customizing a pull-down refresh, the progress is a LoadingView displayed according to the pull-down distance. An App Icon can be placed in the middle. Seeing is better than hearing. See the following figure for the specific effect: Analysis of implementation ideas The first s ...

Posted by viv on Tue, 29 Oct 2019 07:53:27 -0700

Background management system constructed by React family bucket + material UI

I. Introduction A later management center built with React router DOM, Redux, Redux actions, Redux saga, reselect + material UI. II. Appendix+1. [online experience] (https://simpleroom.github.io): Account: < code > admin < / code > password: < code > 123456 < / code >+2. [source address: https://github.com/SimpleRoom/w ...

Posted by andrewburgess on Tue, 29 Oct 2019 03:43:55 -0700

Opentracing + Uber Jaeger full link gray call chain, Nepxion Discovery

When the gateway and service are implementing the whole link distributed gray-scale publishing and routing, we need a tracking system to monitor which gray-scale group, which gray-scale version, which gray-scale area the gateway and service are going through, and even monitor the gray-scale rules and routing strategies that are passed from the ...

Posted by julieb on Mon, 28 Oct 2019 22:50:44 -0700

Spring framework Foundation (04): AOP tangent programming concept, demonstration of several implementation methods

Source code: GitHub point here || GitEE point here I. Introduction to AOP Foundation 1. Profile of section programming AOP full name: Aspect Oriented Programming. A technique to realize the unified maintenance of program functions by precompiling and dynamic agent in runtime. Core function: it can isolate all parts of the business logic, reduc ...

Posted by caaronbeasley on Sun, 27 Oct 2019 17:46:03 -0700

Retrofit custom Converter implements sending String and receiving JSON

Retrofit has provided users with six converters, as follows: Gson: com.squareup.retrofit2:converter-gson Jackson: com.squareup.retrofit2:converter-jackson Moshi: com.squareup.retrofit2:converter-moshi Protobuf: com.squareup.retrofit2:converter-protobuf Wire: com.squareup.retrofit2:con ...

Posted by Spear Chucka on Sat, 26 Oct 2019 12:05:05 -0700

Golang redisredigo connection pool

Previously, single connection was used. In practical applications, the function of connection pool is often needed. However, the support of redigo for connection pool is weak. Connection pool The application calls the Get method to Get the connection from the pool and uses the connected Close method t ...

Posted by gilliat on Sat, 26 Oct 2019 10:29:19 -0700

The scrape framework crawls the data of the big lotto

github project address: https://github.com/v587xpt/lottery_spider# Last time I did a data crawling of dichroic sphere, in fact, the crawling of the big Lotto is also very simple. You can use request to crawl, but in order to make better progress, the crawling of the big Lotto uses the scratch framework. The operation mechanism of the summary ...

Posted by Cerberus_26 on Sat, 26 Oct 2019 08:31:19 -0700

A simple understanding of java 8 Stream

Stream allows us to process data declaratively. brief introduction In Java, collection and array are two common data structures Similar to the form of SQL statements querying data from a database, Stream provides a high level of abstraction for Java collection operations and representations. The set of elements to be processed is treated as a ...

Posted by Vidya_tr on Sat, 26 Oct 2019 07:48:19 -0700