C Runtime Library – CRT (C Runtime)

Basic concepts CRT (C Runtime) refers to the C runtime library, which provides C and C++ programs with a set of basic building blocks for initializing and terminating the program. These building blocks ensure proper initialization and cleanup before and after the main() function is executed. The main tasks of CRT include: Initialize static data: […]

[Comprehensive explanation of Linux commands] 120. Master the badblocks command and check hard disk bad sectors in time

Article directory badblocks Additional information grammar Options parameter Example other Learn `python` from scratch badblocks Find corrupted blocks on disk Supplementary instructions The badblock command is used to find damaged blocks on the disk. The hard disk is a wear-and-tear device, and physical failures such as bad sectors may occur after being used for a […]

Pandas data analysis at a glance – a guide to quickly learn data analysis in a short time (book given at the end of the article)

Foreword After three years of working as a data analyst in a major company, some tools must be mastered, especially the three swordsmen of data analysis in Python: Pandas, Numpy and Matplotlib. Just from personal experience, Pandas is a must to master. It provides easy-to-use data structures and data manipulation tools, making processing structured data […]

kafkaStream real-time streaming computing

2 Real-time streaming computing 2.1 Concept Streaming computing is generally compared to batch computing. In the streaming computing model, the input is continuous and can be considered unbounded in time, which means that the full amount of data can never be obtained for calculation. At the same time, the calculation results are continuously output, that […]

Vue conference room time picker (modified)

Vue conference room time picker Original link: https://blog.csdn.net/Alan0728/article/details/123326325 Compare the modified content of the original text 1. The original article used a time interval selector based on 5-minute intervals, but here it has been changed to a half-hour interval. 2. The css style was modified, and the original timeline was changed to box selection. 3. […]

Analysis of the principle of Netty time wheel HashedWheelTimer

HashedWheelTimer initialization public HashedWheelTimer( ThreadFactory threadFactory, long tickDuration, TimeUnit unit, int ticksPerWheel, boolean leakDetection, long maxPendingTimeouts) { checkNotNull(threadFactory, “threadFactory”); checkNotNull(unit, “unit”); checkPositive(tickDuration, “tickDuration”); checkPositive(ticksPerWheel, “ticksPerWheel”); // Normalize ticksPerWheel to a power of 2 and initialize the time wheel wheel = createWheel(ticksPerWheel); mask = wheel.length – 1; // Convert the clock ticking frequency to nanoseconds long […]

python: excel holiday time extraction statistics

# encoding: utf-8 # Copyright 2023 Tu Juwen Co., Ltd. # View license information: # describe: # Author: geovindu,Geovin Du Tu Juwen. # IDE: PyCharm 2023.1 python 311 # Datetime: 2023/9/3 7:04 # User : geovindu #Product: PyCharm # Project : LukfookLeaveCalculation # File : EmpLoyeeHolidaysGet.py # explain : learn importsys import os import Common.Utils […]

The datetime type in el-date-picker disables dates containing time and minutes

It’s a very confusing situation. For the disabled time under the datetime type, the timestamp is disabled in pickerOptions, but the time division cannot be disabled. Idea: disabledDate in pickerOptions disables overall date selection Disable time range through selectableRange Disadvantage: still cannot disable the second range // view interface <el-date-picker v-model=”remindTime” type=”datetime” placeholder=”Select time” value-format=”timestamp” […]

Flink connects to kafka and reports: org.apache.kafka.common.errors.TimeoutException

Test flink1.12.7 to connect to kafka: package org.test.flink; import org.apache.flink.api.common.serialization.SimpleStringSchema; import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer; import java.util.Properties; public class FlinkKafka { public static void main(String[] args) throws Exception { // 1. Execution environment-env StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); env.setParallelism(1); // 2. Data source-source // 2-1. Create attributes when consuming Kafka data Properties props = new […]

Using LinuxPTP for time synchronization (software/hardware timestamp) – Yanyi

Reprinted from: https://blog.csdn.net/BUPTOctopus/article/details/86246335 Official documentation: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/s1-using_ptp Check whether the network card supports software and hardware timestamps: sudo ethtool -T eno1 Time stamping parameters for eno1: Capabilities: hardware-transmit (SOF_TIMESTAMPING_TX_HARDWARE) software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE) hardware-receive (SOF_TIMESTAMPING_RX_HARDWARE) software-receive (SOF_TIMESTAMPING_RX_SOFTWARE) software-system-clock (SOF_TIMESTAMPING_SOFTWARE) hardware-raw-clock (SOF_TIMESTAMPING_RAW_HARDWARE) PTP Hardware Clock: 0 Hardware Transmit Timestamp Modes: off (HWTSTAMP_TX_OFF) on (HWTSTAMP_TX_ON) Hardware Receive Filter Modes: none […]