博文

目前显示的是 五月, 2015的博文

Using JConsole

JConsole (Java™ Monitoring and Management Console) is a graphical tool which allows the user to monitor and manage the behavior of Java applications. JConsole is a Swing application. You might find that running JConsole on the same workstation as the Java application you want to monitor affects the performance of your Java application. You can use JConsole to connect to a JVM running on a remote workstation to reduce the affect of running JConsole on the application performance. http://www-01.ibm.com/support/knowledgecenter/SSYKE2_8.0.0/com.ibm.java.zos.80.doc/diag/tools/JConsole.html

java I/O

图片
  Ref: cnblogs. com/ l anxuezaipiao/p/3371224.html

Double.NaN Float.NaN

Double.NaN  Float.NaN double i = 0.0/0.0; double i = Double.NaN; equals http://docs.oracle.com/javase/7/docs/api/java/lang/Double.html public boolean equals( Object  obj) Compares this object against the specified object. The result is true if and only if the argument is not null and is a Double object that represents a double that has the same value as the double represented by this object. For this purpose, two double values are considered to be the same if and only if the method doubleToLongBits(double) returns the identical long value when applied to each. Note that in most cases, for two instances of class Double , d1 and d2 , the value of d1.equals(d2) is true if and only if d1.doubleValue() == d2.doubleValue() also has the value true . However, there are two exceptions: If d1 and d2 both represent Double.NaN , then the equals method returns true , even though Double.NaN==Double.NaN has the value ...

the tips of the bar chart in wijmo 3

1. Hide the label on each bar  var _chartLabels = $("#wijbarchartPro").wijbarchart().data().fields.chartElements.chartLabels; $.each(_chartLabels, function (index, elem) {    if((index%2)==1){elem.attr('text', '');}  }); 2. rotation label on bar chartLabelStyle: {rotation: 90}, 3.  You can get the path element of the axis using the following properties : xaxis   = $(“#wijbarchart”).wijbarchart().data().wijbarchart.axisEles[0].attrs.path[0]; yaxis = $(“#wijbarchart”).wijbarchart().data().wijbarchart.axisEles[0].attrs.path[1]; 4. The chartLabels[index].attrs.x and chartLabels[index].attrs.y return the positiong of the label. For instance, to get the position of first label upi may use the following js : var x = $(“#wijbarchart”).wijbarchart().data().fields.chartElements.chartLabels[0].attrs.x; var y = $(“#wijbarchart”).wijbarchart().data().fields.chartElements.chartLabels[0].attrs.y; 5.Change Bar Color ...

Cancel the default even behaviour of the browser: preventDefault, return false;

First off, return false is actually doing three very separate things when you call it: event.preventDefault(); event.stopPropagation(); Stops callback execution and returns immediately when called. See jquery-events-stop-misusing-return-false for more information. For example: 1. In the case of clicking on links, return false will prevent navigation, the href attribute specifies the link's destination will be ignored. <a href = '#' onclick = ' Func ( ); return false ; ' > Click </a> <a href="http://www.w3schools.com/" onclick="alert( ); event.preventDefault() ;">w3schools</a> <a href="http://www.w3schools.com/" onclick=" return (confirm('Follow this link?'))">w3schools</a> 2. In form submit handlers <button type="submit" onclick="return confirm('Do you want to submit?');">Submit</button> preventDefault If an eve...