2019-06-04 Java Learning Diary under day25 Multithread
Singleton Design Patterns
Guarantee Design Patterns: Guarantee that the class has only one object in memory
How to ensure that tears have only one object in memory
Controlling the creation of class hits does not allow other classes to create objects of this class. private
Redefining an object of this class in this class. Singleton s;
Provi ...
Added by Moneypenny on Tue, 04 Jun 2019 20:48:12 +0300
Nagios Plug-in Nagiosgraph Installation Deployment
Nagios is a commonly used open source monitoring software. Nagios is flexible and portable so that it can be used flexibly according to its actual situation. However, Nagios has a disadvantage that the drawing is not perfect enough, so Nagios has a short board when analyzing monitoring data. However, because of the flexibility of Nagios, ...
Added by sweatje on Tue, 04 Jun 2019 20:30:33 +0300
Use of IOC container Autofac
Today, I am immersed in IOC's pursuit of design patterns. I have listened to many lectures and seen many examples. This is a test project of mine.
In order to test the code, I first prepared two classes: Car and ICar. These two classes are similar to DAL and IDAL in our usual project. Now let's start!
1. First add a class InitAutofac to our p ...
Added by Josh18657 on Mon, 03 Jun 2019 22:23:22 +0300
[aspnetcore] Configuration uses jwt authentication
jwt has never been used in a project because of the fear that token will reveal problems.But it's really hot right now, so I'll do some research when I'm free.
Implementing jwt in aspnetcore is very simple. It feels that Microsoft has done a lot of work. Although the development efficiency is improved, it makes c#programmers silly. Many things ...
Added by spamyboy on Sun, 02 Jun 2019 20:06:28 +0300
Talking about A-Frame Creating a Web 3D Interactive Game from scratch
Instead of learning a new language, AR can be done only with the knowledge available at the front end. And in our familiar Web environment, it can be done without APP.
1. What is A-Frame
The naming of this framework matches the "and" of mobile 4G, resulting in a perfect miss of all keywords.
A will be ignored by browsers - conju ...
Added by Elarion on Sat, 01 Jun 2019 23:58:10 +0300
python operation and maintenance development common module web detection module pycurl
1. Module Introduction
Pycurl (http://pycurl.sourceforge.net) is a libcurl Python implementation written in C language. It has very powerful functions. The supporting operation protocols include FTP, HTTP, HTTPS, TELNET, etc. It can be understood as Python encapsulation of curl command function under Linux, which is simple and easy to use. By ...
Added by Mikeef on Sat, 01 Jun 2019 23:44:16 +0300
DAGScheduler: A Running Process of spark Jobs
DAGScheduler--stage partition and creation and stage submission
In this article, I will start with the operation of a spark job and connect all the steps involved in the process of spark operation, including the division of DAG graph, the creation of task set, resource allocation, task serialization, task distribution to executor s, task execut ...
Added by tester2 on Sat, 01 Jun 2019 22:10:09 +0300
Harpoon Attack - Attempt
Author: Tilting
0x00 Preface
This is an authorized harpoon case. It's also an attempt. It's not rich in experience.
0x01 Harpoon Attack
Harpoon attack is one of the hackers'attacks. The most common way is to use Trojan Horse program as an attachment to e-mail and send a very attractive name to the target computer to induce the victim to open ...
Added by dpacmittal on Fri, 31 May 2019 21:15:18 +0300
Notes - Java Web Learning Tour
junit unit testing
Black-box testing: No code is needed to give input values to see if the program can output the expected values.
White-box testing: Some code is needed to focus on the specific execution process of the program.
Junit Use: White Box Testing
Steps:
Define a test class (test case)
Define test methods: They can run independe ...
Added by webwired on Thu, 30 May 2019 21:10:13 +0300
2019-05-30 Java Learning Diary day20 IO Stream
IO flow
Concept:
IO stream is used to process data transmission between devices
Java operates on data through streaming
Java classes for operation flow are in the IO package
Flow is divided into two kinds according to flow direction: input flow and output flow.
Flow can be divided into two types according to the type of flow operation:
B ...
Added by vladj on Thu, 30 May 2019 21:03:00 +0300