Tag:time

  • Microservice – current limiting: I Implementation of token bucket algorithm by golang

    Time:2022-5-4

    At first, it was because we had to pull some third-party data, and the API interfaces of the third-party were limited flow measures. For example, 6000 / min, 500 / min. If you want to pull data, you can use multiple collaborative processes. But it is easy to overclock, so I want to write a […]

  • 1. Build NTP time server

    Time:2022-5-4

    NTP server time NTP server is used for time synchronization of LAN servers, which can ensure that the time of all servers in LAN is consistent with that of time server. Some applications that require high real-time performance of time must unify the time. There are also many time servers on the Internet, such asntpdate […]

  • Install neovim v0.0 for Ubuntu 20.04 apt get six point one

    Time:2022-5-4

    Ubuntu 20.04 can be used directly when installing neovimsudo apt-get install neovim, the older version will be installed, but the old version of neovim cannot be configured with Lua. Therefore, the newer version needs to be installed. reference resourceshttps://github.com/neovim/neo… If you want to install the stable version, run: sudo add-apt-repository ppa:neovim-ppa/stable If you want to […]

  • [unity] UI panel: countdown timer

    Time:2022-5-3

    1、 Add text (UI – > text) 2、 Create script (countdowntimer) The first method: 1. First declare two variables outside the method private Text txtTimer; // Variables for storing components public int second = 120; // The countdown time is 120 seconds 2. Get the text component in the start method (you need to introduce […]

  • Resumption of small program of knowledge competition activities for the 30th anniversary of Pudong Development and opening up

    Time:2022-5-3

    1、 Activity introduction Form:Online knowledge competition Object:Employees of Lujiazui * * unit Title:The system randomly selects 20 questions from the question bank of 200 questions Competition results: 1. 5 points for each question, 20 questions, full score 100 points. According to the answer score and answer time, the higher the score, the higher the ranking, […]

  • [getting the interviewer] series: redis Foundation

    Time:2022-5-3

    introduction Under the background of the vigorous development of Internet e-commerce, the traditional relational databases (mysql, Oracle) can no longer meet the complex scenarios such as high concurrency and limited time spike. At this time, NoSQL (non relational database) came into being, and redis is a bright star in the army of NoSQL, which is […]

  • Ruffian Heng embedded: measure the execution time distribution of i.mxrt series flexspi driven flash page programming with the help of serial plot software

    Time:2022-5-2

    Hello, I’m ruffian Heng, a serious technical ruffian. What ruffian Heng introduced to you today isi. Mxrt series flexspi drive flash page programming execution time。 Ruffian Heng wrote an article beforeInfluence of page programming mode of serial nor flash on mass production efficiency, this paper briefly analyzes the impact of different modes of page program […]

  • JS beware of empty array trap

    Time:2022-5-2

    Today, when I was writing code, I accidentally thought of trying the judgment condition of empty array. My requirement is that when the user enters the page for the first time, the “XXX” part displays “please enter the user name” to remind the user to enter some values I know I now have an array […]

  • JS time control date multi selection

    Time:2022-5-2

    In the process of development, time is always inevitable. Here I share my commonly used JS time control and a solution to a problem layDate Official document address: https://www.layui.com/laydate/ Picture: Case code: Using laydate standalone //Execute a laydate instance laydate.render({ Elem: ‘#test1’ // specify the element }); Almost all common needs can be found here, […]

  • Springboot integrates redis to configure multiple library switching

    Time:2022-5-2

    The spring boot project uses redis 1. Directly introduce spring boot starter data redis dependency Gradle introduces dependency implementation ‘org.springframework.boot:spring-boot-starter-data-redis’ 2. In application Add redis configuration to YML spring: redis: host: 10.111.11.111 port: 6379 database: 1 3. You can directly inject redistemplate into srevice layer @Autowired RedisTemplate<String,String> redisTemplate; The above is the basic usage, but […]

  • go time. Sleep specified time (hours to nanoseconds)

    Time:2022-5-1

    The function used by go to specify the sleep time is time Sleep, interface: // Sleep pauses the current goroutine for at least the duration d. // A negative or zero duration causes Sleep to return immediately. func Sleep(d Duration) The incoming is a duration, so if you want to sleep for 5S, you can’t […]

  • Pandas actual combat – date and time format data processing

    Time:2022-5-1

    pandas in action.png Original book address This note is the content of Chapter 11 of the original book. Working with dates and times This chapter is mainly about the operation of the series and dataframe time data of pandas. pd. Timestamp() # pandas time object (equivalent to datetime in Python) (pd.Timestamp(year = 1991, month = […]