Tag:negative

  • Hey! Don’t forget this C language knowledge~ 0 = = – 1 (problem)

    Time:2021-7-29

    Today, I’ll take you to review a forgotten C language knowledge point, the storage of negative numbers and a typical investigation form. Let’s look at a topic first #include  int main()  {  int   a,b,c,d;    // perhaps     int   a,b,c,d;  a=0x8;   b=a>>1;   c=~(~0<<1);   d=b&c;   printf(“c is %d\n”,c);   printf(“d is %d\n”,d);  }    Resolution: Suppose the computer is storing eight […]

  • Advanced skills of CSS (7)

    Time:2021-7-16

    Display and hide of elements Display show (hide) Show and hide Display: none (hidden) Display: block (display) characteristic Hide elements first <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title>Document</title> <style> * { margin: 0; padding: 0; } div { width: 200px; height: 200px; margin: 20px 20px; background-color: blue; } .box1 { […]

  • Simple dynamic effect of stroke dashuffset in SVG

    Time:2021-6-11

    Property introductionstroke-dashoffsetThe stroke dashoffset property specifies the distance from the dash pattern to the beginning of the pathIf a < percentage > value is used, this value represents a percentage of the current viewport.The value can be negativeLet’s see the effect first <button class=”menu__item” style=”–bgColorItem: #f54888;”> <svg class=”icon” viewBox=”0 0 24 24″> <path d=”M6.7,4.8h10.7c0.3,0,0.6,0.2,0.7,0.5l2.8,7.3c0,0.1,0,0.2,0,0.3v5.6c0,0.4-0.4,0.8-0.8,0.8H3.8 C3.4,19.3,3,19,3,18.5v-5.6c0-0.1,0-0.2,0.1-0.3L6,5.3C6.1,5,6.4,4.8,6.7,4.8z”/> […]

  • Original code, inverse code and complement code

    Time:2021-5-12

    1、 Concept explanation Number of machines: The binary representation of a number in a computer is called the machine number of the number. Machine number is signed, in the computer with a number of the highest place to store symbols, 0 represents a positive number, 1 represents a negative number. For example, + 2 binary […]

  • Uri design principles

    Time:2021-5-12

    The rest API we designed is really nice E? Elegant:http://api.exapmle.com/louvre… Louvre / da Vinci / Mona Lisa Moderate type:http://58.com/bj/ershou/310976 Beijing / second hand channel / post ID Shetter typehttp://api.example.com/68dd0-… I don’t know what the hell This article will share some principles of URI design. Do not add ‘/’ to the end of the URI With […]

  • In depth interpretation of Huawei cloud fine-grained text sentiment analysis and its application

    Time:2021-4-12

    Absrtact: This article mainly introduces some basic tasks of sentiment analysis, including text, voice, image generation and recognition, focusing on two aspects of Huawei cloud’s fine-grained sentiment analysis. Guide: first, briefly introduce some basic concepts of text sentiment analysis, and then introduce Huawei cloud’s two works in fine-grained sentiment analysis, one is attribute level fine-grained […]

  • PHP hides the middle 4 digits of mobile phone number

    Time:2021-3-25

    Today, I suddenly think of the mobile phone number. It’s better to hide this kind of private information in the project. So let’s summarize the methods that can be used, which are limited to the 11 digit mobile phone numbers in the mainland Method demonstration usesubstr_replacefunction # substr_ Replace – substring of the replacement string […]

  • The use of Yii redis set

    Time:2021-3-16

      The set of redis is unordered, and its members are unique and cannot be repeated. Users can quickly add elements, remove elements and check whether an element exists in the collection. Here are some common set processing commands and their use in Yii. SADD SADD:SADD key-name item [item …]Add one or more elements to […]

  • Why is int8 in the range of [- 128127]

    Time:2021-2-12

    A series of articles: Why is int8 in the range of [- 128127] Do you really understand sync.Once Is that right Today’s article is very basic. I saw it the other daygoA topic is actually different fromgoIt doesn’t matter much in itself. func main() { What is the value of B? If 128 is said […]

  • JavaScript learning notes Interview Part 1 CSS

    Time:2021-2-10

    1、 HTML interview questions 1. How to understand semantics? My answer:Semantic is to achieve the same function, try to use HTML section, main, these conventional structures to write DOM structure. It’s easy to understand. Answer after optimization:Write the main structure using main, section, footer, title, H2, H3, list using UL, Li, text using P tag. […]

  • Deep understanding of margin in CSS box model

    Time:2021-1-29

    Margin Setting the outer margin will create extra “white space” outside the element. The “white space” usually refers to the area where other elements cannot be placed, and the background of the parent element can be seen in this area. The outer margin will not affect the size of the box, but will affect the […]

  • Technology sharing | MySQL show processlist time is negative

    Time:2020-11-10

    Author: Gao PengAt the end of the article, there is his book “deep understanding of MySQL master-slave principle 32 lectures”, in-depth and thorough understanding of MySQL master-slave, gtid related technical knowledge. 1、 Source of the problem This is a question a friend asked me. The question is as follows: in MTS, the worker thread sees […]