Using gRPC client in PHP

Because the work needs to use gRPC, I use windows 10, but the operation flow of linux is basically the same. Go directly to the topic, divided into several parts 1. Download Protoc Download address: https://github.com/google/protobuf/releases Select the corresponding platform and download the binary file used herehttps://github.com/protocol ...

Posted by jexx on Fri, 29 Nov 2019 01:01:08 -0800

Hibernate retrieval method (supplementary)

* ps : I. retrieval method of navigation object graph Customer c=session.get(Customer.class,2); c.getOrders().size(); Through mapping in Hibernate, the associated persistent object information can be obtained by navigation during hibernate operation. II. OID search method session.get(Customer.class,3); session.load(Order.class,1); In H ...

Posted by mjseaden on Fri, 29 Nov 2019 01:00:01 -0800

kafka, it's not hard

1. Introduction to Kafka   1.1. Main functions According to the introduction of the official website, ApacheKafka ® is a distributed streaming media platform, which has three main functions: 1: It lets you publish and subscribe to streams of records 2: it lets you store streams of records in a fault tolerant way 3: It lets you process ...

Posted by RobbertvanOs on Fri, 29 Nov 2019 00:58:59 -0800

Exchange brokerage transactions [1]

Preface Recently, I have been researching the stock (currency) exchange matching engine. From a concept of matching that is not clear enough, I am gradually exploring some of my own understanding and concepts.So I'm going to write a matching engine, and I want to get the people together to make a good engine. Matching rules This is mainly t ...

Posted by Texan on Fri, 29 Nov 2019 00:09:30 -0800

Java Reflection Call Error java.lang.IllegalArgumentException: wrong number of arguments

Problem Description The class Target.java has an execute() method that takes a String array as a parameter public class Target { public void execute(String[] args) { System.out.println("call execute method with parameter type String[]"); } } Call this method through reflection in the following way public class Test { public ...

Posted by TRemmie on Thu, 28 Nov 2019 21:51:17 -0800

pypi uploads its own projects

Upload and publish package files to PyPI Create a PyPI account Very simple, register directly through the official website https://pypi.python.org/pypi?. ... , but you need to verify the message and confirm activation. Create user authentication file ~ /. pypirc Create a new blank file named. pypirc in your own user direct ...

Posted by stovellp on Thu, 28 Nov 2019 12:37:20 -0800

[ukiepc217: D] ranking hat

Title address: https://codeforces.com/gym/101606 This question can be regarded as The magic of CSL The advanced level of this problem meaning of the title Give the initial sequence. Ask how to restore the initial sequence to the original sequence after ascending. Output the position of each switch, (A,B) and meet the requi ...

Posted by j115 on Thu, 28 Nov 2019 12:27:59 -0800

Lambda practice summary

It's almost 0202 years ago. I still know a little about Lambda. I'm really ashamed. Recently, we have put emphasis on the practice of brick handling, summarized some practices, and posted the following as a note. 1. Basic query encapsulation This encapsulation is mainly used to abstract database queries and beautify code (obsessive-compulsive ...

Posted by JeanieTallis on Thu, 28 Nov 2019 08:24:39 -0800

Windows process communication -- shared memory

I. questions: There are some problems left in the last article. This time, we mainly solve the following two problems: 1. When writing data to shared memory, it is not sure whether the data in shared memory has been processed 2. When the sending data size is larger than the shared memory size, there will be data loss   II. ...

Posted by blue-genie on Thu, 28 Nov 2019 06:22:46 -0800

Bugs in Spring Cloud Hystrix ThreadPool

BUG background JDK: 11.0.4 Spring Cloud Finchley.SR3 Related configuration: #Enable hystrix feign.hystrix.enabled=true #Close the circuit breaker hystrix.command.default.circuitBreaker.enabled=false #Disable hystrix remote call timeout hystrix.command.default.execution.timeout.enabled=false hystrix.threadpool.default.coreSize=50 Hystrix isol ...

Posted by codeDV on Thu, 28 Nov 2019 06:09:25 -0800