• Drag floating ball about uniapp


    I’ve been working on a project these two days. There is a small module with the function of suspended ball, which can be dragged The component is too laggy, and it will be stuck and the page will roll along. The initial position of the ball will be very uncomfortable. Especially when I lose a […]

  • Learn a Linux command every day (48): Top


    Yesterday’s recommendation:Learn a Linux command every day (47): DF Command introduction The top command is used to display the system resource usage in real time. It can display system summary information and a list of processes or threads currently being managed by the kernel. Top command can dynamically view the overall operation of the system […]

  • Use multiple div to spell the complete background image


    Use multiple div to spell the complete background image According to the requirements, the audio image is displayed according to the duration, and the corresponding frame image is displayed according to the audio duration. (there is no need to cut the background image. A picture is displayed according to the CSS3 attribute) Direct release code: […]

  • Usage and principle of hystrix go


    Series articles: Usage and principle of hystrix go A thorough understanding of the hystrix go source code Opening When I looked at an internal fuse current limiting package this week, I found that it is based on an open source projecthystrix-goImplemented, so there is this article. Hystrix HystrixByNetflexAn open source component developed to provide basic […]

  • Learn a Linux command every day (112): vmstat


    Command introduction The vmstat command is used for virtual memory statistics. Vmstat reports information about processes, memory, paging, block IO, traps, disks, and CPU activity. Syntax format vmstat [options] [delay [count]] Option description -A # show active inner page -F # displays the total number of processes created since startup -M # display slab information […]

  • Weekly canvas animation – Preface


    The weekly point canvas animation is a series of articles. This article does not introduce the canvas API too much. By default, you already know the basic canvas drawing API, and here I tell you how to use simple mathematical and physical knowledge to create cool animation. When it comes to physics and mathematics, do […]

  • Pandas transform function


    By B. ChenCompile VKSource: towards Data Science Pandas is an amazing library that contains a large number of built-in functions for manipulating data. Among them, transform () is very useful when dealing with rows or columns. In this article, we will introduce the following most common uses of pandas transform(): Conversion value Group by () […]

  • What will the interviewer ask Linux?


    1. Common linux commands 1) File operation cat、vi、vim、ls、mkdir、touch 、cp、mv Find out if the file name exists:find / -name mysql Cat: one time display of file content 2) Log tail -f /var/www/MOB_logs/catalina.2018-05-18.out Grab keyword:cat   catalina.2019-03-20.out  |  grep  ” Return respdata“grep  – i  ” Return respdata“   catalina.2018-06-11.out 3) Decompress tar -zxvf filename.tar.gz 4) Find process ps -aux|grep java 5) System, memory, disk and network […]

  • Prediction of human fat percentage data with BP neural network in MATLAB


    Original link:http://tecdat.cn/?p=22739  This example shows how a function fitting neural network can estimate the percentage of fat (BFP) based on the measurement results  。 Question: estimated fat percentage In this example, we try to build a neural network to estimate a person’s fat percentage, which is described by 13 physical attributes. Age weight height Neck […]

  • Responsive solutions


    1. Media query and REM Use media query to set the font size of HTML, and additionally use REM to set the font size. VW, VH set the element width and height, and the conversion of REM is PX / font size. <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <meta http-equiv=”X-UA-Compatible” […]

  • Detailed explanation of background position percentage principle


    Today, when I help others tune the code, I see a style: background-position: 50% 0; background-size: 100% auto; For background size: 100% auto, it means that the width of the background picture is element width * 100%, and the height is scaled proportionally. Details can be found atcss3 background。 For background position, it is natural […]

  • Simple dynamic effect of stroke dashuffset in SVG


    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”/> […]