跳到主要內容

發表文章

[Windows]XP新增連線精靈沒有撥號數據機或 PPPoE 選項

徵狀 如果您使用「新增連線精靈」來建立新的撥號數據機或 PPP over Ethernet (PPPoE) 連線,可能會發生下列一或多個問題: • 「新增連線精靈」的 [使用撥號數據機來連線] 選項無法使用 (呈現暗灰色)。 • 「新增連線精靈」的 [使用需要使用者名稱和密碼的寬頻連線來連線] 選項無法使用 。 因此,您無法與網際網路建立撥號數據機或 PPPoE 連線。 發生的原因 當下列情況皆成立時,就會發生這個問題: • 您將電腦從 Microsoft Windows 98 Second Edition 或 Microsoft Windows 98 升級到 Microsoft Windows XP。 • 下列 Windows 登錄項目發生損毀或設定不正確: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Telephony\Cards\NextID HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Telephony • [電話和數據機選項] 對話方塊中沒有 [我的位置] 如需有關這個問題其他原因的詳細資訊,請按一下下面的文件編號,檢視「Microsoft 知識庫」中的文件: 329441 ( http://support.microsoft.com/kb/329441/ ) 還原 Windows XP 之後,無法建立網路連線 解決方案 警告 不當使用「登錄編輯程式」可能會導致嚴重的問題,甚至必須重新安裝作業系統。Microsoft 並不保證可以解決您不當使用「登錄編輯程式」所導致的問題。請自行承擔使用「登錄編輯程式」的一切風險。 如果要解決這個問題,請依照順序使用下列方法。 方法 1 刪除登錄中的 NextID 值。如果要執行這項操作,請依照下列步驟執行: 1. 按一下 [開始],再按一下 [執行]。 2. 在 [開啟] 方塊中,鍵入 regedit,再按一下 [確定]。 3. 找到並按一下下列登錄機碼: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Telephony\Cards HKEY_CURRENT_USER\Software\M...

[Oracle]Oracle SQL String Function

ASCII Get The ASCII Value Of A Character ASCII(ch VARCHAR2 CHARACTER SET ANY_CS) RETURN PLS_INTEGER; SELECT ASCII ('A') FROM dual; SELECT ASCII ('Z') FROM dual; SELECT ASCII ('a') FROM dual; SELECT ASCII ('z') FROM dual; SELECT ASCII (' ') FROM dual; CASE Related Functions Upper Case UPPER(ch VARCHAR2 CHARACTER SET ANY_CS) RETURN VARCHAR2 CHARACTER SET ch%CHARSET; SELECT UPPER ('Dan Morgan') FROM dual; Lower Case LOWER(ch VARCHAR2 CHARACTER SET ANY_CS) RETURN VARCHAR2 CHARACTER SET ch%CHARSET; SELECT LOWER ('Dan Morgan') FROM dual; Initial Letter Upper Case INITCAP(ch VARCHAR2 CHARACTER SET ANY_CS) RETURN VARCHAR2 CHARACTER SET ch%CHARSET; SELECT INITCAP (...

[.Net] String Formatting in C# VB.net

The text inside the curly braces is { index [, alignment ][: formatString ]} . If alignment is positive, the text is right-aligned in a field the given number of spaces; if it’s negative, it’s left-aligned. Strings There really isn’t any formatting within a string, beyond it’s alignment. Alignment works for any argument being printed in a String.Format call. Sample Generates String.Format(”->{1,10} -> Hello String.Format(”->{1,-10} ->Hello Numbers Basic number formatting specifiers: Specifier Type Format Output (Passed Double 1.42) Output (Passed Int -12400) c Currency {0:c} $1.42 -$12,400 d Decimal (Whole number) {0:d} System.FormatException -12400 e Scientific {0:e} 1.420000e+000 -1.240000e+004 f Fixed point {0:f} 1.42 -12400.00 g General {0:g} 1.42 -12400 n Number with commas for thousands {0:n} 1.42 -12,400 r Round trippable {0:r} 1.42 System.FormatException x Hexadecimal {0:x4...

[Struts2] iterator TextField -- Stirng[] object

jsp <s:iterator value="values" id="id"> <s:textfield name="values" value="%{id}"> </s:textfield> action.java private String values[]={"","",""}; public String[] getValues() { return values; } public void setValues(String s[]){ this.values=s; } 說明:在java要先宣告出 String[]的大小,然後才能在jsp中順利產生多個textfield input. 不過這樣做法沒辦法動態不同數量的textfield. reference: [Struts2] 內建的 OGNL Type Converter

[Oracle]JPA: How to Configure Primary Key Generation in Oracle

Using Sequence Objects When using a database that supports sequence objects (such as Oracle Database), you can configure JPA to use a database sequence object to automatically generate identifiers for your persistent objects. Using A Default Sequence TopLink JPA can produce a default sequence during schema generation. If you use schema generation, then specify that your identifier should be generated and that the SEQUENCE strategy be used to perform the generation. In the following example, the @GeneratedValue annotation indicates that the identifier value should be automatically generated; a strategy of SEQUENCE indicates that a database sequence should be used to generate the identifier. TopLink will create a default sequence object during schema generation. This object will be used by TopLink at run time. @Entity public class Inventory implements Serializable { @Id @GeneratedValue(strategy=GenerationType.SEQUENCE) private long id; Specifying a ...

[JavaScript]HTML DOM Select Object

--Collections |--[collection] options[] Returns an array of all the options in a dropdown list --Properties |--disabled Sets or returns whether or not a dropdown list should be disabled |--form Returns a reference to the form that contains the dropdown list |--id Sets or returns the id of a dropdown list |--length Returns the number of options in a dropdown list |--multiple Sets or returns whether or not multiple items can be selected |--name Sets or returns the name of a dropdown list |--selectedIndex Sets or returns the index of the selected option in a dropdown list |--size Sets or returns the number of visible rows in a dropdown list |--tabIndex Sets or returns the tab order for a dropdown list |--type Returns the type of form element a dropdown list is --Standard Properties |--className Sets or returns the class attribute of an element |--dir Sets or returns the direction of text |--lang Sets or returns the language code for an element |--title Sets or returns an elem...