java.text
package)java.time
package)
java.text.MessageFormat
)-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
java.lang.Object
API
wait(long timeout)
methodclone()
method]hashCode()
method]finalize()
method]java.lang.Runtime
API
javax.annotation
package APIjavax.validation
package APIjava.util.Optional
javafx.scene.image
package API Image Ops APIorg.apache.commons.lang3.builder.EqualsBuilder
org.apache.commons.lang3.builder.ReflectionToStringBuilder
org.apache.commons.lang3.Validate
exclusiveBetween
, inclusiveBetween
, isTrue
, notBlank
, notEmpty
, or validState
methods@CreditCardNumber, @Email, @NotBlank, @NotEmpty, @Range, @URL
@NonNull
) that can be applied to Java programs to assist tools that detect software defects.finalize()
’ on program/thread exit?(Oct 24 ‘11)NULL
is the Worst Mistake in Computer Science (Feb. 08, 16)NoClassDefFoundError
and ClassNotFoundException
?(Sep 22 ‘09)java.lang.Error
API
Error
and its subclasses are regarded as unchecked exceptions for the purposes of compile-time checking of exceptions.String.format
vs. MessageFormat.format
vs. String.+ vs. StringBuilder.append
(September 30, 2009)static String Hex.encodeHexString(byte[] data)
in Apache Commons Codecd2.getTime() - d1.getTime()
Process.destroy()
and shutdown hook platform specific behavior (2001-07-29)
sun.misc.Unsafe
(Jan/14/14)ByteBuffer
from a pointer solely in Java?(May 9 ‘13)
sun.io.useCanonCaches
, sun.io.useCanonPrefixCache
Pair
classfinal
, synchronized
, volatile
and visibilitydouble
and long
java.util.concurrent.locks.Condition
Lock
implementations.com.google.common.util.concurrent.Monitor
@SuppressWarnings(
“rawtypes
”)
warning (Sep 5 ‘10)
Annotations | Description | Included |
---|---|---|
java.lang.annotation package |
@Documented, @Inherited, @Repeatable, @Retention, @Target |
|
Dependency Injection Annotations in Java EE 7 | @Inject, @Named, @Qualifier |
|
JSR 305 Annotations for Software Defect Detection 3.0.1 API | @Nonnull, @Nullable, @Immutable, @ThreadSafe, @NotThreadSafe, @GuardedBy |
|
Bean Validation API 1.1.0 Annotations | @Min, @Max, @Size, @Pattern |
|
Bean Validation API 2.0 Annotations | ||
Hibernate Validator 5.2.4.Final Annotations | ||
Hibernate Validator 6.0.0.Alpha1 Annotations | ||
Swagger 1.5 Annotations | @Api, @ApiOperation, @ApiParam, @ApiModel, @ApiModelProperty |
Class.getAnnotations()
, Class.getDeclaredAnnotations()
, @Inherited
com.google.common.collect.ImmutableList <E>
APIcom.google.common.collect.ImmutableMap
<K,V> APIcom.google.common.collect.ImmutableMultimap
<K,V> APIcom.google.common.collect.ImmutableSet
final
.static
.java.io.Serializable
API
org.apache.commons.lang3.SerializationUtils
APIbyte
array to file in Java(Dec 3 ‘10)
org.apache.commons.io.FileUtils.writeByteArrayToFile(), org.apache.commons.io.FileUtils.readFileToByteArray()
DocumentBuilder
is NOT thead-safeJDK | JDBC | JSR |
---|---|---|
J2SE 1.4 | JDBC 3.0 | JSR 54: JDBC 3.0 Specification |
Java SE 6 | JDBC 4.0 | JSR 221: JDBC 4.0 API Specification |
Java SE 7 | JDBC 4.1 | |
Java SE 8 | JDBC 4.2 | JSR-000221 JDBC API Specification 4.2 Maintenance Release 2 |
Database | Connection URL | Connection Properties | Drivers | Remarks |
---|---|---|---|---|
Oracle Database | OracleDataSource.setConnectionProperties(java.util.Properties value) |
|||
DB2 | Properties for the IBM Data Server Driver for JDBC and SQLJ | |||
Microsoft SQL Server | jdbc:sqlserver://[serverName[\instanceName][:portNumber]][;property=value[;property=value]] |
Setting the Connection Properties - SQL Server 2008 R2 | ||
MySQL | Driver/Datasource Class Names, URL Syntax and Configuration Properties for Connector/J from MySQL 5.0 Reference | |||
HSQLDB | Connection properties |
Enum org.springframework.integration.jdbc.config.JdbcTypesEnum
APImaxRows
, serverTimezone
, useAffectedRows
.jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=...
user.language
, user.country
, user.variant
java.util.TimeZone
(2014-06-23)MessageSource
ResourceBundleMessageSource
example (August 30, 2012)com.sun.management.jmxremote
, com.sun.management.jmxremote.port
, com.sun.management.jmxremote.ssl
, com.sun.management.jmxremote.authenticate
, …jni_md.h
jni.h
typedef const struct JNINativeInterface *JNIEnv;
--add-stdcall-alias
to prevent UnsatisfiedLinkError
'/MDd'
compiler option to prevent java.lang.UnsatisfiedLinkError
caused by msvcr90d.dll
.jlong
to pass a pointer (or a pointer to pointer, or whatever) back to Java{@inheritDoc}
tagRequired
, RequiresNew
, NotSupported
, …javax.batch.api
package
Batchlet
, AbstractBatchlet
javax.batch.api.chunk
package
ItemProcessor
, ItemReader
, ItemWriter
javax.batch.api.chunk.listener
package
ItemProcessListener
, ItemReadListener
, ItemWriteListener
javax.batch.api.listener
package
JobListener
, StepListener
javax.batch.api.partition
packagejavax.batch.operations
packagejavax.batch.runtime
package
JobExecution
, JobInstance
, StepExecution
, BatchStatus
javax.batch.runtime.context
package
JobContext
, StepContext
attr_accessor
in Ruby? (Dec 6 ‘10)#{expression}
printf
functionwcstombs
function : Convert wide-character string to multibyte stringwcscat
function : Concatenate wide stringswchar_t
(Wikipedia)extern
and static
mean ?extern
“C
”? (Jun 25 ‘09)char
array or wchar_t
array at runtime
&
: address operator, *
: indirection operatorvector
, list
, deque
, set
, map
, hash_map
extern
“C
”cstdio
stdio.h
namespace (May 5 ‘12)__STDC_LIMIT_MACROS
and __STDC_CONSTANT_MACROS
mean? (Jun 12 ‘09)__declspec(dllexport)
and __declspec(dllimport)
using MinGW-Wno-__
options turn off the options set by -W__
.LPBYTE
, LPVOID
, WCHAR
, …MSVCR100.DLL, MSVCP110.dll
, ….DEF, .MAP, .LIB, .PCH, .PDB ...
extern
to Specify Linkage(MSDN)_UNICODE, UNICODE, _DEBUG, DEBUG, _WIN32, WIN32, _WINDOWS
_WINDLL, _USRDLL, _AFXDLL
dllexport, dllimport
(MSDN)__declspec(dllimport)
really mean?(Jan 14 ‘12)wchar_t
Is Native TypeWCHAR
, LPSTR
, LPCSTR
(Constant Pointer), LPWSTR
(Wide Pointer), LPCWSTR
(Constant Wide Pointer), TCHAR
, LPTSTR
(TCHAR Pointer), LPCTSTR
(Constant TCHAR Pointer)TEXT
macroCString
StringCbCopy
function
StringCbCopy
, StringCbCopyA
, and StringCbCopyW
StringCchPrintf
functionprintf
and wprintf
Functionsstrlen, wcslen, _mbslen, _mbslen_l, _mbstrlen, _mbstrlen_l
: Gets the length of a stringwcstombs, _wcstombs_l
: Converts a sequence of wide characters to a corresponding sequence of multibyte characters.strcat, wcscat, _mbscat
: Appends a stringatoi, _atoi_l, _wtoi, _wtoi_l
: Convert a string to integer.windows.h
windows.h
(in MinGW)winbase.h
(in MinGW)windef.h
(in MinGW)sdkddkver.h
(in MinGW)
KERNEL32.DLL
, GDI32.DLL
, USER32.DLL
, MSVCRT.DLL
, MSVCPP.DLL
$(Configuration), $(ProjectDir), $(TargetDir), $(TargetPath), $(TargetName), $(VSInstallDir), $(VCInstallDir), $(FrameworkDir), $(FrameworkVersion)
IDisposable
List
, Dictionary
, ArrayList
, Hashtable
, ConcurrentDictionary
, …area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
Entity | Name | Remarks |
---|---|---|
• | • |
bullet |
· | · |
middle dot |
∑ | ∑ |
summation |
application/x-www-form-urlencoded
multipart/form-data
application/x-www-form-urlencoded
type (Wikipedia)null
: only literal not a property of the global objectObject.preventExtensions()
,Object.seal()
, Object.freeze()
, Object.defineProperty()
Object.prototype.constructor
Object.prototype.__proto__
Array
objectRegExp
object[http://stackoverflow.com/questions/2074982/how-to-insert-script-with-prototype How to insert
prototype
vs __proto__
(Jun-18/2012)Array.prototype.slice.call
([].slice.call(arguments)
)CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';'
EntityRef ::= '&' Name ';'
minOccurs
and maxOccurs
inside choice
(Oct 14 ‘13)maxOccurs
within choice
element(Nov 8 ‘13)node()
: all the children of the context node (no attribute nodes are returned, because attributes are not children.)*
: all element children of the context nodetext()
: all text node children of the context node@*
: all the attributes of the context nodefor
~ in
expression is in XPath not XQuery !)US-ASCII
, ISO646-US
128 characters)
ISO/IEC 8859-1
(ISO-8859-1
, ISO-LATIN-1
, 256 characters)ISO/IEC 10646
)
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
)Name | Symbol | HTML 4.0 Entity | Remarks |
---|---|---|---|
parentheses | ( ) | round brackets, curved brackets, oval brackets | |
square brakets | [ ] | brakets | |
braces | { } | curly brackets, flower brackets | |
guillemets | « » | « » | |
single quotation mark | ‘ ’ | ‘ ’ | |
double quotation mark | “ ” | “ ” | |
period | . | full stop, dot, point | |
ellipses | … | … | |
question mark | ? | ||
exclamation mark | ! | ||
comma | , | ||
colon | |||
semicolon | ; | ||
dash | – — | – — | |
hyphen | ‐ | ||
apostrophe | ’ | ||
slash | / |
Name | Symbol | HTML 4.0 Entity | Remarks | |
---|---|---|---|---|
tilde | ~ | ˜ | ||
grave accent | ` | |||
at sign | @ | |||
number sign | 1. | pound sign, hash mark | ||
percent | % | |||
caret | ^ | |||
circumflex | ˆ | ˆ | ||
ampersand | & | & | ||
asterisk | ∗ | ∗ | star | |
underscore | _ | understroke | ||
backslash | \ | |||
vertical bar | pipe, stick, vertical slash, thick colon | |||
pilcrow | ¶ | ¶ | paragraph mark, paragraph sign | |
bullet | • | • | ||
section sign | § | § | ||
prime | ′ | ′ | minutes, feet | |
double prime | ″ | ″ | seconds, inches | |
therefore sign | ∴ | ∴ |
foo
must be an RFC 3339 date-timejava.util.TimeZone
APIjava.time.ZoneId
APIjava.util.Date
API
java.util.Locale
APIgithub.com/go-playground/locales
packagejavax.imageio
pacakge infoAccept-Language
used for locale settingmajor.minor.service.qualifier
MaxUserPort
, non-paged pool exhaustionx86
: support only 32-bit, x64
: support both 32-bit and 64-bit (amd64
, em64t
), ia64
: support only 64-bit%~1, %~f1, %~d1, %~p1, %~n1, %~t1, %~z1,
%~dp0
FOR /F
commandEnableDelayedExpansion
)IF
statement does not support logical operators (AND and OR)cmd /C
mean?touch
? (Jan 25 ‘10)setx
Set environment variables permanentlyC:\>chcp 437
: for EnglishC:\>chcp 949
: for KoreanDiskPart
commandROUTE.exe
Route
(TechNet)PATHPING
TRACERT
Net use
(TechNet)
Netsh
Netsh
(network shell) (Wikipedia)
Netsh
(TechNet)Netsh
Command Reference (TechNet)msconfig
)]Msinfo32
MSINFO32.EXE
)dxdiag
query user
command_NT_SYMBOL_PATH
SymChk
Counter | Meaning | Remarks |
---|---|---|
\Memory\Available Bytes |
available bytes | |
\Memory\Committed Bytes |
the private bytes committed to processes | |
\Process( process_name )\% Processor Time |
Processor Time = User Time + Privileged Time | |
\Process( process_name )\% Privileged Time |
the percentage of non-idle processor time spent executing code in privileged mode | |
\Process( process_name )\% User Time |
the percentage of time that the processor spent executing code in user mode | |
\Process( process_name )\Private Bytes |
bytes allocated exclusively for a specific process | can be paged to disk or in the standby page list |
\Process( process_name )\Working Set |
the shared and private bytes allocated to a process | suddenly drop when you minimize an application |
\Process( process_name )\Pool Nonpaged Bytes |
the number of bytes in the nonpaged pool, an area of system memory for objects that cannot be written to disk | |
\Process( process_name )\Pool Paged Bytes |
the number of bytes in the paged pool, an area of system memory for objects that can be written to disk | |
\Process( process_name )\Handle Count |
the total number of handles currently open by this process | |
\Process( process_name )\Thread Count |
the number of threads that were active in this process | |
\Process( process_name )\IO Read Bytes/sec |
the rate at which the process was reading bytes from I/O operations | |
\Process( process_name )\IO Write Bytes/sec |
the rate at which the process was writing bytes to I/O operations | |
\Network Interface( card_name )\Bytes Received/sec |
||
\Network Interface( card_name )\Bytes Sent/sec |
Processor Time
= User Time
+ Privileged Time
SYN
, SYN-ACK
, ACK
FIN
, ACK
, FIN
, ACK
TCP_USER_TIMEOUT
: The maximum amount of time in milliseconds that transmitted data may remain unacknowledged before TCP will forcibly close connection.org.red5.codec.VideoCodec.java
Category | Implementation | Remarks |
---|---|---|
Java | java.security.MessageDigest class |
JDK |
Java | org.apache.commons.codec.digest.Sha2Crypt class |
Apache Commons, static String sha256Crypt(byte[] keyBytes, String salt) , static String sha512Crypt(byte[] keyBytes, String salt) |
MySQL | SHA1() function, SHA2() function |
~/.ssh/authorized_keys
~/.ssh/known_hosts
~/.ssh/id_dsa, ~/.ssh/id_rsa
~/.ssh/id_dsa.pub, ~/.ssh/id_rsa.pub
-n
option of ssh
when used inside while loop to avoid eating all stdin at the fist iteration.