Tomcat Learning Notes (1) A Simple Web Server

The content is the focus of the first chapter of Tomcat in-depth analysis, as well as its own summary. If the description is unclear, you can see the original book. 1. HTTP protocol: 1. Definition: A protocol for communication between servers and clients that allows web servers and browsers to send and receive data over the Internet. It is a re ...

Posted on Sat, 15 Jun 2019 14:37:21 -0700 by jeff_lawik

23 Design Patterns (3/4) - Factory Patterns (Simple Factory Patterns/Factory Method Patterns/Abstract Factory Patterns)

Java Design Patterns Factory model I. Introduction Classification 3. Simple Factory Model IV. Factory Method Model 5. Abstract Factory Model VI. DIFFERENCE BETWEEN THE METHOD MODEL OF THE WORKSHOP AND THE METHOD MODEL OF THE WORKSHOP Summary Factory model In object-oriented programming, the most common method is to generate a ...

Posted on Sat, 15 Jun 2019 12:37:22 -0700 by Chrysanthus

C++ Learning Handwriting 5: C++ Streaming Operation

Write before: When it comes to stream operation, it is related to the input and output of the program (short as I/O). This paper describes some I/O operations in C++.Some of the operations used in this paper are based on standard input and output (such as screen and keyboard-to-program output and input), but these rules are also useful for subs ...

Posted on Sat, 15 Jun 2019 11:32:21 -0700 by justsomeone

Storm Initial--Storm Programming

Take Telecom Call Record as an Example Mobile calls and their duration will be used as input to Apache Storm, which will process and group calls and their total number between the same caller and receiver. Programming ideas: In storm, the process of data processing is abstracted into a topology, which contains mainly spout, bolt, and data st ...

Posted on Sat, 15 Jun 2019 10:46:17 -0700 by btrsrinivasarao

Java Socket Learning Notes

> Two programs on the network exchange data through a two-way communication connection, one end of which is called a socket. Establishing a network communication connection requires at least one pair of port numbers (sockets). Socket is essentially a programming interface (API). For TCP/IP encapsulation, TCP/IP also provides an interface for ...

Posted on Fri, 14 Jun 2019 18:00:01 -0700 by maciek4

Java Foundation - GUI Programming (4)

Following the previous two exercises, which mainly record menus and file dialogs, we will familiarize ourselves with the application of methods, some simple logic and a brief introduction to Swing, as well as the basic record of GUI. 1. Create a menu import java.awt.FlowLayout; import java.awt.Frame; import java.awt.Menu; import java.awt.MenuB ...

Posted on Fri, 14 Jun 2019 17:30:21 -0700 by falcons

Analysis of Script Loading Principle from RequireJs Source Code

Introduction As the saying goes, programmers who don't like studying principles are not good programmers, and programmers who don't like reading source code are not good jser s. These two days, I saw the problem of front-end modularization, and I found that the JavaScript community is really working hard for front-end engineering. Today, I stu ...

Posted on Thu, 13 Jun 2019 16:57:43 -0700 by rodin69

19 + JavaScript Quick Programming Skills - SitePoint

19 + JavaScript Quick Programming Skills - SitePoint This is really a must-read article for developers programming in the JavaScript language. When I studied JavaScript over the past few years, I wrote this article as an important reference for JavaScript rapid programming techniques. In order to help understand, I also give the relevant progra ...

Posted on Thu, 13 Jun 2019 15:01:46 -0700 by drifter

Vue Learning Notes Advanced Chapter-Render Function

This article is reproduced. Vue Learning Notes Advanced Chapter-Render Function Basics Vue recommends using template to create your HTML in most cases. In some scenarios, however, you really need JavaScript's full programming capability, which is the render function, which is closer to the compiler than template. <h1> <a name="hello- ...

Posted on Thu, 13 Jun 2019 11:20:25 -0700 by invarbrass

Who exactly is synchronized locking?

This article code repository: https://github.com/yu-linfeng/BlogRepositories/tree/master/repositories/sync Start with an enrollment-level concurrent programming pen test Title: Use 5 threads to execute concurrently, num digits count up to 10000, and print. 1 /** 2 * Description: 3 * Using five threads to execute concurrently, num numb ...

Posted on Thu, 13 Jun 2019 10:00:16 -0700 by popsiclesph