Redis Pipeline Pipeline Use

1.Redis single command usage scenario The following steps are required for a Redis client to connect to a Redis server to execute a command: The above process is called Round Trip Time (RTT), and the mget and mset commands save RTT, but most commands do not support batch operations. Redis provides services through TCP, Client initiates r ...

Posted by holowugz on Tue, 07 Jan 2020 00:57:11 -0800

Snowflake (Delphi version) is a distributed self-increasing ID algorithm that generates 5 million IDs in one second

Summary In distributed systems, there are scenarios where a globally unique ID is required. In order to prevent ID conflicts, a 36-bit UUID can be used, but it has some drawbacks. First, it is relatively long, and UUIDs are generally out of order. Sometimes we want to be able to use a simpler ID, and we want IDs to be generated in time order. ...

Posted by ezekiel on Mon, 06 Jan 2020 22:49:46 -0800

Applets upload multiple pictures

I've written applet network and local image to album method before: https://www.jianshu.com/p/5479041607fa , wrote and uploaded one or more pictures to Alibaba cloud OSShttps://www.jianshu.com/p/ea2e567b6f2c , write the applet and load the local image path https://www.jianshu.com/p/c0dd3e191322 , write a layout about uploading mult ...

Posted by chreez on Mon, 06 Jan 2020 16:07:00 -0800

Record the filling process of a multi-process print log using the Python logging library

Background: Project uses Python's own logging library to print logs The project is deployed on a Centos7 machine Project uses gunicorn multi-process deployment Process: 1. LOG Log Code Encapsulation: Use the logging library and set when='MIDNIGHT', split the log in days, the log of the previous day will be automatically added with the date of ...

Posted by bmcconkie on Mon, 06 Jan 2020 13:00:56 -0800

[Xuefeng magnetite blog] Bokeh data visualization tool layer 4

Create multiple graphs on the same row Create multiple graphs in the same column Create multiple graphs in rows and columns Tabbed layouts creating multiple drawings Create a powerful grid layout Link multiple charts together Create multiple graphs on the same row bokeh has a lot of data, which can be downloaded as follows: In [2 ...

Posted by joplinfan on Mon, 06 Jan 2020 12:02:27 -0800

Detailed explanation and examples of auxiliary operation of Rxjava2 Observable

Continue to the previous article: Detailed explanation and examples of auxiliary operation of Rxjava2 Observable (1) 8. TimeInterval Convert the Observable of the transmitted data to the Observable of the transmitted time interval. The TimeInterval operator intercepts the data items emitted by the original Observable and replaces them with obj ...

Posted by gapern on Mon, 06 Jan 2020 09:18:47 -0800

Android like person click event

This is what we want to achieve. First of all, I want to introduce a project on github, https://github.com/nimengbo/TextViewSpanClickable This project is to achieve this effect. Here I'm just going to make an introduction of its use /** * Created by Abner on 15/6/17. * QQ 230877476 * Email nimengbo@gmail.com * Alterna ...

Posted by dwfait on Mon, 06 Jan 2020 03:22:28 -0800

XRPC interface two-way call

Generally, the services invoked by remote interfaces are based on the client's active invocation of the server, which provides the related interface services. In the new version of XRPC, a new function is introduced, that is, two-way interface communication. Component provides services to create an interface proxy for a client session and invok ...

Posted by ryankentp on Mon, 06 Jan 2020 02:51:43 -0800

About ionic3 Aurora push Registration ID cannot be obtained for the first time

Question: 1. The Registration ID cannot be obtained for the first time. You can use setTimeout to delay obtaining. 2. For Registration ID, the first time you open the app, you cannot get the id until you exit the app. Because the login user needs to be associated, the id must be sent to the background after login. Edition: ...

Posted by djmc48 on Sun, 05 Jan 2020 14:14:25 -0800

Wechat applet search box

wxSearch elegant wechat applet search box1, FunctionSupport custom hot keySupport search historySupport search suggestionsSupport search history (record) caching2, Use1. Copy the whole wxSearch folder to the root directory 2. Introduction // wxml Template in <import src="/wxSearch/wxSearch.wxml"/> <template is="wxSearch" data="{{wx ...

Posted by mlefebvre on Sun, 05 Jan 2020 09:01:06 -0800