Category other

strongest collation of common regular expressions (quick reference manual)

1. the expression of the check digit digit:^[0-9]*$ n-digit number:^\d{n}$ numbers with at least n digits:^\d{n,}$ numbers with m-n digits:^\d{m,n}$ numbers beginning with zero and non-zero:^(0|[1-9][0-9]*)$ numbers with up to two decimal places starting with nonzero:^([1-9][0-9]*)+(.[0-9]{1,2})?$ positive or negative numbers…

Netty framework learning-transmission

Overview The data flowing through the network always has the same type: bytes. How these bytes are transmitted mainly depends on what we call network transmission. The user does not care about the details of the transmission, only whether the bytes…

5 Real-World Uses of Redis

Redis is a powerful in-memory data structure store that encompasses a variety of uses including database, cache and message broker. Most people often think of it as nothing more than a simple key-value store, but it actually has much more…

List the following JSON data types

JSON (JavaScript Object Notation) is the most widely used data format for data interchange on the Web.JSON is a lightweight text-based data interchange format that is completely language independent. It is based on a subset of the JavaScript programming language…

WebStorm Formatting Code Shortcuts

Shortcut keys for formatting code in webstorm under centOS Ctrl+Shift+l Shortcut keys for webstorm formatting code under windows Ctrl+Alt+l Shortcut keys for webstorm formatting code under mac Option+Command+l

SyntaxError: JSON.parse: bad parsing

The error message is as follows. Console Tip. What went wrong? JSON.parse() will parse a string into a JSON object. If the string is written correctly, it will be parsed into a valid JSON, but the string will throw an…

Netty framework learning, Netty components and design

1. Channel,EventLoop and ChannelFuture This section will discuss the Channel, EventLoop, and ChannelFuture classes, which together can be considered representative of the Netty network abstraction. Channel: Socket EventLoop: control flow, multi-threaded processing, concurrency CHannelFuture: Asynchronous notifications 1.1 Channel Interface Netty’s…