在CTex欲顯示原始碼,首先使用listings宏包,\usepackage{listings}......然後\begin{lstlisting}public static class MapClass extends MapReduceBase implements Mapper<LongWritable, Text, Text, IntWritable> { private final static IntWritable one = new
//轉為unicode public static void writeUnicode(final DataOutputStream out, final String value) { try { final String unicode = gbEncoding( value ); final byte[] data = unicode.getBytes(); final int dataLength = data.length; System.out.println(
本文原發表於我在JavaEye的Blog,備份於此。今天閱讀RFC3986(URI: Generic Syntax)時,遇到了dereference一詞。 dereference一個URI的意思是: To use that access mechanism to perform an action on the URI's resource is to "dereference" the URI. dereference也可做名詞,如 dereference of the URI
http://msdn.microsoft.com/en-us/library/dd692950%28v=vs.85%29.aspxLinuxread-edid consists of two tools: . get-edid uses a VESA VBE 2 interrupt service routine request to read a 128 byte EDID version 1 structure from your graphics card,
設定以及擷取游標位置在Textarea和Input中如下獲得游標函數可以相容IE以及FireFox,對於可編輯DIV,如下代碼僅僅IE下也可以正常運行. IE分支:函數中的Sel變數是整個文檔的可選地區,所以需要做一個迴圈,使得Sel地區中的文本中的最後一段文本和文字框中的文本做到最長相符,其位移量為游標的位置function getCaretPos(element){ var CaretPos = 0; // IE Support if