android collects application opening times and cpu Information
Recently, an application for collecting device information has been made. It's interesting to get the number of application openings and cpu information, so let's go under mark.
1. Get the number of application openings
The class that gets the application information in android devices is the UsageStats.java class (see Official Website) http ...
Posted by Ell20 on Mon, 08 Jul 2019 16:23:51 -0700
Summary of kafka Operation and Maintenance
1. The problem of too much self-log
After running kafka for a period of time, it will find that its host disk usage is slowly increasing, check the amount of data log holdings or the threshold set before.
At this time, it is kafka's own log print booster disk.
The default ~/kafka_2.11-0.9.0.0/config/log4j.properties are as follows:
log ...
Posted by dazzclub on Mon, 08 Jul 2019 14:43:45 -0700
Android Thermal Repair Technology: Analysis of QQ Space Patch Scheme (3)
As mentioned earlier, in order to achieve the goal of hot update, bytecode files must be manipulated after dex subcontracting is completed. ASM and javaassist are commonly used bytecode manipulation tools. By contrast, ASM provides a series of bytecode instructions, which are more efficient but require users to have a certain understanding of ...
Posted by oQEDo on Sat, 06 Jul 2019 15:13:32 -0700
Log4j2 implements different levels of log output from different threads to different files
Java Logging Framework
As a Java programmer, it must be inseparable from the log framework. Now the best Java log framework is Log4j2, not one of them. According to the official test, Log4j2's asynchronous log performance is better in multi-threaded environment. In asynchronous logging, Log4j2 uses separate threads to perform I/O operations, w ...
Posted by kristoff on Fri, 05 Jul 2019 14:07:46 -0700
Take you around Web Services [2] CXF in minutes
In practice, we have been using JAX-WS to build Web Service service, which is very stable and efficient.
But I'm still curious about other open source frameworks such as CXF/Axis2/Spring WS.
Because of the trust and love for Apache, the CXF Web Service will certainly not disappoint.
So it took a little time to introduce CXF into the project ...
Posted by MichaelR on Fri, 05 Jul 2019 11:44:05 -0700
ActiveMQ - spring integrated jms
Preface
This article will realize the integration of spring and activemq, mainly demonstrating how to realize the point-to-point and publish-subscribe communication model, and how to send persistent messages and achieve persistent subscription. For an introduction to persistent messages and persistent subscriptions, please refer to:< ActiveM ...
Posted by dazz_club on Thu, 04 Jul 2019 14:31:59 -0700
Implementation of Struts 2 File Upload Progress Bar
Thank: http://blog.itpub.net/30066956/viewspace-1773697/ This article refers to a lot of the content of this blog.
Recently, we are writing a video file upload page of our third project to monitor the progress of upload in the background, and then return the monitored information to the front page.
Front-end page rendering:
The foreground prog ...
Posted by spider.nick on Wed, 03 Jul 2019 15:27:48 -0700
Word Count for Hadoop Introduction Basic Tutorial
Word counting is one of the simplest and most thought-provoking programs of MapReduce, known as the MapReduce version of Hello World, whose complete code can be found in Hadoop Found in the src/example directory of the installation package.The main function of word count is to count the number of occurrences of each word in a series of text fil ...
Posted by paulsiew2 on Wed, 03 Jul 2019 09:23:27 -0700
This is how I use shiro
Brief description
I spent some time on shiro's learning. A big push has been made on shiro's information network. The knowledge points I learned before have been recorded on the notes of Dow Cloud. Dow Cloud has its own advantage that it can still record something when there is no network, but the disadvantage is that it can't be shared and dis ...
Posted by fredriksk on Sun, 30 Jun 2019 11:22:20 -0700
Integrated web service in java web project (spring project) to implement open interface
What is a WebService? A small example of a webService Learn more about this
Enter the topic below:
Java web project ( spring Integrated webservice in project
To open the interface to the outside world:
Get ready:
Using cxf with good compatibility with spring
The jar download address for cxf: http://cxf.apache.org/download.ht ...
Posted by legomez2000 on Sun, 30 Jun 2019 10:10:56 -0700