Getting started with the cursor tutorial

Curator It is an open-source Zookeeper client of Netflix. Compared with the native client provided by Zookeeper, the cursor has a higher level of abstraction and simplifies the programming of Zookeeper client. Maven dependence   <dependency>     <groupId>org.apache.zookeeper</groupId>     <artifactId>zookeeper</arti ...

Posted by bdmovies on Wed, 04 Dec 2019 10:45:02 +0100

Java common API(Scanner, Random) anonymous object

API: Application programming Interface. There are many APIs for users to use in Java. Scanner and Random are one of them. The API is actually a class. The scanner class and Random class have been encapsulated. We just need to write them according to their syntax without knowing their basic source code Class Scanner: 1. To use the scanner cla ...

Posted by MikeSnead on Tue, 03 Dec 2019 18:19:47 +0100

Go learning note 04 function

Catalog Function definition Example of function Summary Function definition Function definitions are similar to variable definitions, func function_name(var1, var2, var3, ...) (return_type1, return_type1, ...) { //function body } Example of function package main import ( "fmt" "math" ...

Posted by Gath on Tue, 03 Dec 2019 15:48:39 +0100

Read dubbo registration information on zookeeper

dubbo has its own service monitoring server, incubator dubbo OPS development, and github can be downloaded. There are also many local deployment examples on the Internet, so I wondered if I could monitor dubbo's service by myself, so I wrote the following code. In particular, zookeeper's watch mechanism is a one-time trigger. When it is heard t ...

Posted by don_s on Tue, 03 Dec 2019 09:03:03 +0100

JavaScript prototype and constructor notes

Sketch This article is the author's understanding after reading the JavaScript object-oriented programming guide. It is just a sort of thinking on JavaScript prototype and multiple inheritance, not a basic knowledge explanation, suitable for understanding the prototype and inheritance, but not clear and thorough developers.I hope that you can c ...

Posted by comicrage on Mon, 02 Dec 2019 02:22:42 +0100

Introduction and use of generics in Java

Introduction: Recently Mobai has made a blog of his own, with git + hexo + node.js as the technical point. I will give a blog tutorial in a few days. Interested partners can try to make their own blog when they come. I put the link of my blog in the end of reading the original text. Interested partners can visit it, because there are many cont ...

Posted by sockit2em on Mon, 02 Dec 2019 01:13:31 +0100

C Base with your handwriting redis sds

Preface - Simple Dynamic Strings antirez built this project because it wanted to unify SDS code in Redis, Disque, Hiredis projects https://github.com/antirez/sds For more background information, you can read README.md. The sds project is a trade-off implementation of the C-string data structure in the real world, and the library itself is no ...

Posted by Joshua F on Mon, 02 Dec 2019 00:52:32 +0100

Details of python crawler scratch project (attention, continuous update)

python crawler scratch project (1) Crawling target: Tencent recruitment website (starting url: https://hr.tencent.com/position.php? Keywords = & TID = 0 & start) Crawling content: position; position type; number of recruiters; work location; release time; recruitment detail link; job responsibilities; job requirements Anti creep measure ...

Posted by whatever on Mon, 02 Dec 2019 00:48:51 +0100

Unlock Spring frame pose 1

Spring Introduction: spring framework is a Java platform, which provides comprehensive infrastructure support for Java application development. Spring is responsible for infrastructure, so you can focus on application development.Spring allows you to build applications from "plain old Java objects" (POJO) and implement enterprise app ...

Posted by g.grillo on Sun, 01 Dec 2019 09:58:50 +0100

Specific programming scenarios of spark SQL

Introduction case: object SparkSqlTest { def main(args: Array[String]): Unit = { //Block redundant logs Logger.getLogger("org.apache.hadoop").setLevel(Level.WARN) Logger.getLogger("org.apache.spark").setLevel(Level.WARN) Logger.getLogger("org.project-spark").setLevel(Level.WARN) //Building programmin ...

Posted by tigomark on Sun, 01 Dec 2019 01:17:03 +0100