• [record] JS get the start and end time of week, month and year


    /*Time plus one day*/ const getTimes = (time)=>{ time = new Date(time.getTime() + 3600 * 1000 * 24 * 1); const year = time.getFullYear(); const month = (time.getMonth() + 1).toString().padStart(2, “0”); const day = time.getDate().toString().padStart(2, “0”); return `${year}-${month}-${day}`; } /*Time format processing*/ const timeFormat = (date,status) => { const y = date.getFullYear(); // year const […]

  • Installing Ubuntu on Windows


    sketch In developing with Ubuntu, I encountered all kinds of messy problems. Maybe it has little to do with the technology we developed, but it really meets I felt very painful when I was young. I’d like to share it with you here. This article may be different from the situation you encounter. It’s good […]

  • How do programmers estimate their project development time?


    The estimation of project time is very important to the success or failure of the project. Project time management includes all processes required to complete the project on time. However, in the actual project, the project is often delayed and the estimation is seriously inaccurate. Estimating the time itself is difficult. Every programmer’s estimate will […]

  • Master the retention strategy of tdengine timing data in a few minutes


    Small   T   Introduction: in《These mysterious parameters teach you the correct use of tdengine cluster》In this article, we talked about how to use the reasonable configuration of vnode to complete the data fragmentation of tdengine. In this issue, we will continue to talk about how tdengine manages data from the time dimension. First, let’s […]

  • JS log output is only console.log, then you are out


    Almost all JavaScript developers most often use the log printing debugging APIconsole.log()In fact, there are many options for us to choose from. The author will introduce them one by one 1、 Console. Table () console.table()It is a method that I highly recommend you to use. It can accept JSON or arrays and print them in […]

  • Teach you time travel under Linux


    Time travel? The bridge in the movie? Liangxu, are you bluffing again? No, No. Liang Xu wants to introduce the touch command here. With it, you can change the timestamp to achieve the purpose of time travel. The touch command is also used quite frequently in our work. We will explain it in detail from […]

  • Talk about flynk’s timecharacteristic


    order This paper mainly studies the timecharacteristic of Flink TimeCharacteristic flink-streaming-java_2.11-1.7.0-sources.jar!/org/apache/flink/streaming/api/TimeCharacteristic.java /** * The time characteristic defines how the system determines time for time-dependent * order and operations that depend on time (such as time windows). */ @PublicEvolving public enum TimeCharacteristic { /** * Processing time for operators means that the operator uses the system […]

  • [redis] cluster NETCORE practice


    Environmental preparation one   Redis cluster(Windows cluster setup) Start the redis cluster and add a title to each node start “Redis – 6379” /min redis-server.exe redis.6379.conf start “Redis – 6380” /min redis-server.exe redis.6380.conf start “Redis – 6381” /min redis-server.exe redis.6381.conf start “Redis – 6382” /min redis-server.exe redis.6382.conf start “Redis – 6383” /min redis-server.exe redis.6383.conf start […]

  • Priority process scheduling in C + + preemption


    First come, first served Short process first algorithm Priority scheduling (preemption) Priority scheduling #include <iostream> #include <cstdio> #include <vector> #include <algorithm> using namespace std; struct PCB { int id; // Process ID double turnaround_ time; // Turnaround time double weighted_ turnaround_ time; // Weighted turnaround time double wait_ time; // waiting time double start_ time; […]

  • What are the competitions in the Internet of things?


    Recently, I was just sorting out the Internet of things related competitions. The sorting situation is as follows (I wrote about the specific time for 20 years. You can go to the official website for details): National competition National University Biological Networking Design Competition (Huawei cup) website:http://iot.sjtu.edu.cn/ Activity time:April 2020 to September 2020 National University […]

  • [PHP data structure] what exactly do we learn when learning data structures and algorithms?


    When it comes to data structures and algorithms, everyone will avoid them. This was originally a professional basic course, but most people didn’t learn it well, let alone a code farmer like me. To tell you the truth, I still admire the programmers who came from the science class, because you only need to review […]

  • Use of ripple, space, merge, include and viewstub tags for Android


    Use of ripple, space, merge, include and viewstub tags for Android 1. Android 5.0 ripple tagAdd the ripple tag after Android 5.0, and use this drawable as the background of the control. When you click, you can achieve the wave effect.The ripple tag corresponds to a rippledrawable. When it is used as the background, when […]