Recently, to build a load balancing server, the back end uses tomcat as the application server, which mainly needs to solve the problem of too large tomcat output log. Think about it, use log4j to segment the log. The main tasks are as follows:
Using log4j to split logs, you need to download the jar package support of tomcat. The version of To ...
Posted on Tue, 01 Jan 2019 17:18:09 -0800 by st0rmer
Python 3 Module of the Weekcd--Internet
The Internet is a very popular field of modern computers. Even small, single-purpose scripts frequently interact with remote servers to send or receive data. Python provides a rich set of tools to handle Web protocols, so it is very suitable for writing Web-based applications (whether as clients ...
Posted on Thu, 27 Dec 2018 18:18:07 -0800 by bravo14
I use Sean Cheney series of special articles and original books as learning resources to record personal notes, which are only used for knowledge recording and later review. The address of the original author is checked. Sean Cheney If there are any mistakes, criticism and advice are also expected. -- ZJ
Original Au ...
Posted on Wed, 26 Dec 2018 11:39:07 -0800 by aim25
The sort command sorts the rows in the file specified by the File parameter and writes the results to standard output. If the File parameter specifies multiple files, the sort command links them together and sorts them as one file.
[root@www ~]# sort [-fbMnrtuk] [file or stdin]
Options and parameters:
- f: Ignore the diff ...
Posted on Wed, 26 Dec 2018 10:12:06 -0800 by Bad HAL 9000
In the following examples, all exception handling is simplified to the console. In practical projects, it is recommended to add more complex error handling capabilities.
1 Read files (with buffer)
If you want to open a file and read characters from it, you can use FileInputReader. But when using FileInputReader to read characters, it will ...
Posted on Mon, 24 Dec 2018 15:15:06 -0800 by ziong
Step 1: Create a new project DragAndZoom and prepare a photo to be placed in the res/drawable-hdpi directory
Step 2: Set up the UI interface of the application and set it in main.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.androi ...
Posted on Sun, 23 Dec 2018 15:54:06 -0800 by erika_web
ABSTRACT: This article first introduces the principles of runtime, including the concepts of class, super class, metaclass, super_class, isa, object, method, SEL, IMP, and API related to these concepts. Then it introduces the process of method invocation and the process of finding IMP. Then, I introduce the common usage of these A ...
Posted on Sat, 22 Dec 2018 07:03:06 -0800 by VBAssassin
valueOf(): Returns the value of the basic type represented by the object.
toString(): Passes a parameter representing the cardinality, telling it to return the string form of a numeric number of decimal digits.
Posted on Sat, 22 Dec 2018 02:00:06 -0800 by Unseeeen
From the browser to the server, the server will get the data and then display it on the browser. The problem of Chinese character scrambling has been used.
Set the browser code to utf-8, but still scramble
The source code is as follows:
import java. ...
Posted on Fri, 21 Dec 2018 15:36:05 -0800 by cfgcjm
Android Studio 3.0.1
The purpose of this paper is to use AudioRecord and AudioTrack to complete the acquisition and playback of audio PCM data, and to read and write audio wav files.
Android provides AudioRecord and M ...
Posted on Thu, 20 Dec 2018 21:15:05 -0800 by the7soft.com