• ## Replace Ubuntu with a new logo: Orange + rectangular logo | “circle of friends” theme is more compact and unified

Time：2022-4-14

Recently, canonical, the leader of Ubuntu project, announced an exciting good news – Ubuntu, the Linux based operating system, has replaced the new logo! Although it is not much different from the old logo, the new Ubuntu logo has also been improved: the new logo still adopts the familiar orange and white, and the “circle […]

• ## What is a monotonous stack?

Time：2022-3-31

Recently, the author is brushing leetcode exercises, so I want to compile some classical algorithms and some classical data structures into a series to share with you and yourself in the future. This paper mainly involvesMonotone stack。 Monotone stack The concept of monotone stack itself is not difficult to understand, but it needs to be […]

• ## [algorithm] [difficulty] – water volume of histogram – dynamic programming

Time：2022-3-23

17.21. Water volume of histogram Difficulty: [difficulty] Given a histogram (also known as histogram), suppose someone pours water continuously from it, how much water can the histogram store in the end? The width of the histogram is 1. The above is the histogram represented by the array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of water […]

• ## Golang language [6] incremental ternary subsequence / stupid factorial / matrix search / water volume of histogram ｜ go theme month

Time：2022-3-21

Increasing ternary subsequence Give you an integer array nums to judge whether there is an increasing subsequence with length of 3 in this array.If such a triple subscript (I, J, K) exists and I < J < K is satisfied, so that num [i] < num [J] < num [k], return true; Otherwise, false is […]

• ## Why do I brush a lot, meet new questions or be submissive, and can’t fight hard?

Time：2022-3-20

Why do I brush a lot of questions, but when I encounter new questions, I am still submissive and can’t fight hard? Why is it that some will be discarded at first sight? What kind of secret is hidden in it? Is it the decline of morality or the distortion of human nature? Welcome to […]

• ## PHP design pattern – bridge mode

Time：2022-3-2

definition: Bridge mode:Separate the abstract part from its implementation part so that they can change independently.   Structure: Abstraction: abstract class. RefindAbstraction: abstract classes that are refined. Implementor: implementation class. ConcreteImplementor: concrete implementation class. Client: client code.   Code example: Next, use the code to realize an example of color combination. There are three […]

• ## Echorts is configured with time as the y-axis icon

Time：2022-2-27

The options are configured as follows: color: colors, legend: { //Legend show: this.legendShow, data: state, Selectedmode: true, // the legend is set as non clickable left: this.left, bottom: this.bottom, textStyle: { color: this.legendColor, }, }, grid: { //Drawing grid left: “3%”, right: “3%”, top: “1%”, bottom: “10%”, containLabel: true, }, xAxis: { type: “time”, […]

• ## [ugui source code analysis] detailed interpretation of rectmask2d of unity mask

Time：2022-2-18

Mask, as the name suggests, is a control that can mask other elements. It is often used to modify the appearance of other elements or limit the shape of elements. For example, Scrollview or round head effect can be used to mask. This series of articles hope to explore the implementation principle of masks by […]

Time：2022-2-16

Mask, as the name suggests, is a control that can mask other elements. It is often used to modify the appearance of other elements or limit the shape of elements. For example, Scrollview or round head effect can be used to mask. This series of articles hope to explore the implementation principle of masks by […]

• ## C# use OpenCV to cut circles and rectangles in images

Time：2022-2-4

preface This article mainly introduces how to use OpenCV to cut circles and rectangles in images. preparation First, create a WPF project – WPF OpenCV. The version here uses framework 4 7.2。 Then use nuget to search [emgu. CV], as shown below. Emgu here CV select version 4.3.0.3890 and install emgu CV and emgu CV. […]

• ## The core method of attribute Animation: valueanimator ofInt(int… values)

Time：2022-1-26

The purpose of this method is to make a smooth transition from the initial value of shaping to the end value of shaping. For example, valueanimator Ofint (0100), that is, the value changes smoothly from 0 to 100   For example, achieve the following effect: Change the style of the control, and switch between circular […]

• ## Tips for implementing chrome tab bar with CSS

Time：2022-1-12

This time, let’s look at a navigation bar layout with special rounded corners, as shown in the tag bar of Google Browser: How can such a layout be realized? Several methods are described below 1、 Pseudo element splicing Suppose you have such an HTML structure <nav class=”tab”> <a class=”tab-item”>Svelte API</a> <a class=”tab-item active”>Svelte API</a> <a […]