Tag:Example

  • Summary of JavaScript methods that serious people can’t use in a lifetime (I)

    Time:2021-10-27

    preface Suppose there is a requirement that a given file path beD:\bianchengsanmei\blogs\categories\JavaScriptShow it on the page. The most basic implementation method may be the following: <body> <div id = “container”></div> </body> const filePath = “D:\bianchengsanmei\blogs\categories\JavaScript”; document.querySelector(“#container”).innerText = filePath; If it can be realized in such a simple way, my article will end here. Is this […]

  • 2、 How to browse prism sample code from GitHub to get started with several loading methods of prism modules under WPF

    Time:2021-10-27

    This article combs several loading methods of 07 example modules in prism. 07 examples are divided into five, with five different module loading methods. Let’s start learning to load modules Observe the 07 modules AppConfig example It is divided into ModuleA project and modules project We open the nuget package of the management solution on […]

  • Zsh Development Guide (Chapter 19 script example explanation)

    Time:2021-10-27

    Reading guide This article will explain some simple Zsh script examples. Example 1: copy the directory structure of a directory Function: Copy a directory and all directories under it to another directory (that is, create a directory with the same name), but do not copy other types of files under the directory. example: Directory structure […]

  • Data type of JavaScript and its detection

    Time:2021-10-27

    catalogue 1、 How many types of values does JavaScript have? 2、 Basic data type 1. The value is immutable 2. Store in stack area 3. Comparison of values 3、 Reference data type 1. The value is variable 2. Save in stack memory and heap memory at the same time 3. Comparison is the comparison of […]

  • Thread synchronization technology summary

    Time:2021-10-27

    Note: sort out some synchronization technologies for future review. At present, the technology is still learning, and the new knowledge of synchronization will be added to this article. Single machine multithreading: synchronized1. Interpretation: (1) JVM level synchronization technology, bytecode implementation. When there is a problem in code execution (such as throwing an exception), the JVM […]

  • I have developed a network programming framework based on php8. You are welcome to try. Thank you for the standard star

    Time:2021-10-27

    DCE is a network programming framework developed based on php8. It supports traditional CGI web programming and command line tool programming, as well as resident memory web programming and long connection server programming under swoole. It also designs a set of general RCR architecture to deal with all types of network programming, so as to […]

  • Mongodb introduction and Development Guide

    Time:2021-10-26

    catalogue1、 Introduction to mongodb2、 Build mongodb3、 Java with mongodb4、 Spring session mongodb5、 Mongodb development specifications and examples6、 Mongodb + nodejs See Annex: mongodb introduction and Development Guide for details_ 20200409224211.pdf Mongodb learning exchange group:

  • Kafka0.8.2 consumer examples

    Time:2021-10-26

    maven <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.10</artifactId> <version>0.8.2.2</version> </dependency> Advanced API instance public class NativeConsumer { private static final String TOPIC = “kafkatopic”; public void exec() throws UnsupportedEncodingException { Properties props = new Properties(); props.put(“zookeeper.connect”, “localhost:2181”); props.put(“auto.offset.reset”,”smallest”); props.put(“group.id”, “test-group”); props.put(“enable.auto.commit”, “true”); props.put(“zookeeper.session.timeout.ms”, “400”); props.put(“zookeeper.sync.time.ms”, “200”); props.put(“auto.commit.interval.ms”, “1000”); ConsumerConfig consumerConfig = new kafka.consumer.ConsumerConfig(props); ConsumerConnector consumerConnector = kafka.consumer.Consumer.createJavaConsumerConnector(consumerConfig); Map<String, Integer> […]

  • 3、 How to browse prism sample code from GitHub to get started with the 08-12 example of prism MVVM under WPF

    Time:2021-10-26

    After learning the first two articles on the associated view of the region manager and loading the module samples in different ways, this chapter starts to enter the MVVM. Starting with example 08, we enter the MVVM section. Learn the MVVM idea under prism from the 08 example catalogue Learn the MVVM idea under prism […]

  • Wtforms 2 Chinese introductory course (crash course)

    Time:2021-10-26

    You snap your fingers and start working on the great Python web application you want to write. After you finish writing some pages, you need to deal with the annoying task: processing and verifying form input. Enter (start) wtforms But why do I need itthe other oneWhat about the frame? Well, some web application frameworks […]

  • Performance comparison and pressure test before and after Nacos 2.0 upgrade

    Time:2021-10-25

    Introduction:Nacos 2.0 improves the performance by about 10 times by upgrading the communication protocol, framework and data model, and solves the performance problems gradually exposed after the release of Nacos 1.0. In this paper, through the pressure test of Nacos 1.0, Nacos 1.0 and the process of upgrading Nacos 2.0, Nacos 2.0 makes a comprehensive […]

  • What should graphics based deep learning do?

    Time:2021-10-25

    Because it can extract complex patterns from all kinds of complex data (such as free text, image and video), deep learning technology has been widely used. However, in practice, it will be found that many data sets are easier to express in the form of graph, such as the relationship between people on social networks. […]