Using Kafka under Windows
1, Prepare ZooKeeper
Download the latest stable version from the official website: 3.5.6 . After downloading, extract it to the local location, find zoo_sample.cfg in the conf directory, rename it to zoo.cfg, and modify the data storage directory in it:
#dataDir=/tmp/zookeeper
dataDir=D:/hecg/apache-zookeeper-3.5.6-bin/data
Start with git com ...
Posted by daverules on Mon, 20 Jan 2020 18:22:24 +0100
AQS (AbstractQueuedSynchronizer) source code Guide: lock acquisition and release
What is AQS?
AQS is an abstract synchronization framework, which can be used to implement a state dependent synchronizer.
Provides a framework for implementing blocking locks and related synchronizers (semaphores, events, etc) that rely on first-in-first-out (FIFO) wait queues. This class is designed to be a useful basis for most kinds of syn ...
Posted by simpli on Mon, 20 Jan 2020 16:27:23 +0100
Using common CSV of Apache to export CSV file
1. Introduction to CSV
The full name of CSV is: Comma Separated Values or character separated values. Its files store tabular data (numbers and text) in plain text. A CSV file consists of any number of records separated by a line break character. Each record consists of fields. The separators between fields are other characters or strings, the ...
Posted by PHPoracle on Mon, 20 Jan 2020 03:58:50 +0100
[Python] object oriented programming
Article directory
1. Object oriented lead
2. Creation of class
3. Inheritance of class
4. Class properties and methods
1. Object oriented lead
Python has been an object-oriented language since the beginning of design. Because of this, it is easy to create a class and object in Python.
Next, let ...
Posted by bestpricehost on Sun, 19 Jan 2020 11:54:44 +0100
javafx implementation of data transfer between controller s
Here are the contents of two posts: https://blog.csdn.net/u012880338/article/details/69063776 https://www.jianshu.com/p/6950b68970da
Communication between avafxcontrollers Background: Recently, I was finishing the design and needed to make things with JavaFX, but I didn't touch it before, so I had to start to do it. However, I can't find too ...
Posted by bkbragg on Sun, 19 Jan 2020 07:04:47 +0100
Git introduction and daily commands
git introduction
GitHub is a hosting platform for open-source and private software projects, because it only supports git as the only version library format for hosting, so it is named GitHub.
GitHub was officially launched on April 10, 2008. In addition to Git code warehouse hosting and basic Web management interface, it also provides subscri ...
Posted by mosi on Sun, 19 Jan 2020 06:00:23 +0100
C Language Review In-depth Study: Arrays and Pointers
C Array
Arrays are sequential collections that store a series of variables of the same type.All arrays consist of contiguous memory locations.
Declare Array
You need to specify the type and number of elements
type arrayName [ arraySize ];
Initialize Array
//The number of values between braces { ...
Posted by axiom82 on Sat, 18 Jan 2020 02:40:05 +0100
Two week self-made scripting language - day 5 design of parser
Day 5 design parser
5.1 syntax of stone
Listing 5.1 syntax definition of stone
primary : "(" expr ")" | NUMBER | IDENTIFIER | STRING
factor : "-" primary | primary
expr : factor { OP factor }
block : "{" [ statement ] { (";" | EOL) [ statement ] } "}"
...
Posted by bostonmacosx on Fri, 17 Jan 2020 15:44:27 +0100
rabbitmq series message idempotency processing
1. springboot Integrating Rabbit MQ
We need to create two new projects, one as a producer and the other as a consumer.Add an amqp dependency to pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
</dependency>
Add rabbitmq information ...
Posted by Sephirangel on Fri, 17 Jan 2020 02:02:21 +0100
Using rime input method in Emacs
When using external input method in email, the biggest problem is that when switching the email mode, there will be a delay for input, because you need to manually switch the input method to the corresponding English mode to use the shortcut keys normally.
But if you use Emacs' own input function, you don't need to do these synchronizations. Yo ...
Posted by Merve on Thu, 16 Jan 2020 12:41:19 +0100