Tag:representative

  • Series of articles | the way to advance the microservice architecture in the cloud native era – event recording

    Time:2022-7-28

    Through this article, you can learn the following: The origin of event logging Specific implementation process of event logging A simple example of event logging summary The origin of event logging When we talk about event storm, we usually need to talk about two concepts: DDD (Domain Driven Design) and microservice. So what is the […]

  • PHP image compression code

    Time:2022-7-27

    /** *Description compressed picture *@param string $imgsrc picture path *@param string $imgdst save path after compression */ public function compressedImage($imgsrc, $imgdst) { list($width, $height, $type) = getimagesize($imgsrc); $new_ width = $width;// Compressed picture width $new_ height = $height;// Compressed picture height if($width >= 600){ $per = 600 / $width;// Calculate proportion $new_width = $width * […]

  • JS implementation 99 multiplication table

    Time:2022-7-9

    //99 multiplication table /** *Regular triangle 1 * 1 = 1 1 * 2 = 2 2 * 2 = 4 1 * 3 = 3 2 * 3 = 6 3 * 3 = 9 1 * 4 = 4 2 * 4 = 8 3 * 4 = 12 4 * 4 = […]

  • JS realizes the three digits composed of 0-9 non repeating numbers. How many are there?

    Time:2022-7-4

    //How many three digits are composed of 0-9 non repeating numbers? //The three digits are //Hundreds, 0-9, cannot be 0, so there are 9 cases //Ten, as long as it is different from hundred, there are 9 cases //Individual bit, as long as it is different from hundred bit and individual bit, there are 8 […]

  • Development of data adapter tool

    Time:2022-6-21

    Project address viewhttps://github.com/goblin-pitcher/data-adapter background During the development process, it is often necessary to reduce the dependence on the back-end data structure and avoid large-scale modification of the front-end code caused by the change of the interface data structure. Therefore, an adapter tool is required to uniformly manage the conversion rules. When the interface data structure […]

  • Vue virtual Dom and diff algorithm

    Time:2022-6-16

    Virtual Dom and diff algorithm for Vue 1. virtual DOM Virtual DOM, as I understand it, is to materialize each node through JS objects, change each node on the DOM tree into an element in the object, change the child element of the element into a child node, and change the class, ID, attribute and […]

  • VINT in Lucene

    Time:2022-6-9

    Zero version Lucene core version 8.8.2 I. Introduction Lucene’s index design basically relies on disk storage, while inverted index is a technology that relies on a large amount of redundant data to complete word segmentation search. Therefore, Lucene spent a lot of time changing space in its design to ensure that it can store the […]

  • Redux learning 2: from action to store?

    Time:2022-6-6

    There are many concepts in Redux, such as action, actioncreator, reducer, store, middleware, provider, connect… I don’t understand the concepts, but I can’t figure out what to do with my eyebrows and beard. The concept of Redux can be seen at a glance through a picture. This figure can roughly summarize the whole process of […]

  • JavaScript asynchronous programming – deferred objects

    Time:2022-5-18

    Last articleAs mentioned in, using the Ajax method of jQuery to operate Ajax requests will be affected by the nesting of callback functions. Of course, the jQuery team also found this problem. In 2011, after jQuery version 1.5, jQuery Deferred objects should be shipped out to solve such problems. Later, zapto and other frameworks also […]

  • Convert data to tfrecord format

    Time:2022-5-11

    Suppose that under the emo folder, there are folders such as 1, 2, 3 and 4, and each folder represents a category 1 import tensorflow as tf 2 from PIL import Image 3 from glob import glob 4 import os 5 import progressbar 6 import time 7 8 9 class TFRecord(): 10 def __init__(self, path=None, […]

  • Affine geometric transformation — opencv Python Development Guide (12)

    Time:2022-4-21

    affine In opencv, affine transformation refers to the translation, rotation and other operations of an image through a series of geometric transformations. The transformation can maintain the straightness and parallelism of the image. Straightness refers to that the straight line of the image is still a straight line after affine transformation; Parallelism refers to that […]