Thread state transition diagram
is non-blocking IO using multiple distribution methodsFor example, your server makes a chat room, and you have to create a thread for each connection, because when you call like In.read (BUF), the thread blocks here.
Double type assignment problem
Double d=1;
Screen display: d=1.0
Double D=1/2;
Screen display: d=0.0
Double D=1.0/2;
Screen display: d=0.5
Double d=1/2.0;
Screen display: d=0.5
Do not know the reason for the study ....
Find some articles
The first step: To see Tomcat's WebApps, inside also deployed. Then use yesterday just learn a recruit will kill, hehe. To see the log under C:/Program files/apache Software foundation/tomcat 5.0/logs, Show
In MediaPlayer, full screen function can only be achieved in the state of playback. If the playback is audio files, the video area will be WMP itself with the dynamic pattern, but also full screen, but the monitor is not configured, easy to long
Recently a bit of a fan of JavaScript, dive into the heart, carefully adjusted the next JS object construction
With regard to object construction, there are roughly the following pattern types
1. Factory
Factory mode, very traditional, is mainly
I believe many people look at the thinking in Java (fourth Edition), the third chapter-operator,
Eckel will let everyone in the environment variable classpath add the original book matching code directory tree root directory,
But when I first
When the data is transmitted through the WebRequest post, if the parameter in the URL contains '% ', the null pointer or error occurs when the parameter of the address bar is taken. such as the following child
string URL =
Android screens more and more as people demand for big-screen handsets
AutoLayout the previous framework for simply adapting screen pixels has a serious problem of distortion
Hongyang's AutoLayout project address has been
echo "======================================welcome=============================================="echo "= = = = = = = = = =echo "= = = This script is used to monitor the WebLogic domain running state The main monitoring object has = =echo "= = = = =
Recently hive in the process of running, there is CPU 100%, but the time interval is longer.
This was preceded by the exception of NIO, which causes 100% of the CPU to occur during this period if the intermediate idle interval is longer.
And now
I. definition of Popular science
The two protagonists of this post are "synchronized" and "Read and write locks"
1) Synchronized
This synchronization keyword believes that we all use more, in the previous "How to share data between multiple threads"
# Output pattern: date [Thread] Log priority directory-message
log4j.rootlogger=info, Console, Rollingfile
# only for programs under Com.mypackage.deng Day Log priority DEBUG output, other packages follow global log level
For processing a list of data items, Java provides two classes ArrayList and linkedlist,arraylist internal implementations are based on an internal array object[], so conceptually, it's more like an array, But LinkedList's internal implementation is
The SOAP header is used by the general user for authentication, and the custom SOAP header is typically in 3 ways:
First: Add Simple string
---on stub
_stub = new Onepassservicesstub
1. Block the default event for a form, or the default event "Event.preventdefault ()" That slides in the HTML5 Chinese file, blocking the default event for the element.
Demo1-1: Block element class default event
Baidu
Document.getelementbytagname (
Stop event bubbling and "block browser default behavior" are frequently used in front-end development work due to browser compatibility issues.
1. Block browser default behavior [Java] View plain copy Function stopdefault (e) {
declaring and using mocked types
A mock type can be passed in either an instance field or a parameter declaration. For the first case, this field belongs to the test class or Mockit. Subclass of expectations (a local field in a expectation). For
Jmockit Introduction
In the Jmockit Toolkit, the expectations &verifications APIs provide rich support for the creation of behavior-based unit tests. The focus of this test is on the interaction between the test unit and other associated test units.
Original: http://www.cnblogs.com/datoubaba/archive/2012/06/06/2538873.html
Jquery.validate+jquery.form Three ways to submit
Overview : This article mainly discusses jquery.validate combined with Jquery.form to implement the verification and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service