發表文章

目前顯示的是 2010的文章
Monitoring Your SQL Server 2005 Database Mirror Once you have a database mirror running, it is imperative to monitor the performance of the mirror, and in the case of high performance (asynchronous) mirrors, how far behind the mirror is compared to the principle. With high safety (synchronous) mirroring, performance is critical, as all transactions must be committed on the mirror before they can be committed on the principle. On a high performance mirror, a delay can mean the mirror isn’t as up to date as service levels require, and the transaction log can fill up as transactions cannot be backed up until they have been applied on the mirror. There are different tools for monitoring mirroring: Database Mirroring Monitor (SQL Server Management Studio) Perfmon Counters Catalog Views Database Mirroring Monitor To launch the Database Mirroring Monitor, right click on the database in SSMS, select "Tasks", then "Launch Database Mirroring Monitor&qu

Error message: "A script on this page is causing Internet Explorer to run slowly"

Because some scripts may take an excessive amount of time to run, Internet Explorer prompts the user to decide whether they would like to continue running the slow script. Some tests and benchmarks may use scripts that take a long time to run and may want to increase the amount of time before the message box appears. In Internet Explorer, the script time-out value can be changed on specific client machines by modifying a registry entry. To change this time-out value in Internet Explorer 4.0, 5.0, 6, 7, or 8, follow these steps: Using a Registry Editor such as Regedt32.exe, open this key: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Styles Note If the Styles key is not present, create a new key that is called Styles. Create a new DWORD value called "MaxScriptStatements" under this key and set the value to the desired number of script statements. If you are unsure of what value you need to set this to, you can set it to a DWORD value of 0xFFFFFFFF to completely avoid

Spell check not working on Office 2007

This is the problem caused by MS office 2007 pointer pointed to non-existing DLL. Solution: Start Regedit and goto the following key: HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Override\en-US I had 2 entries (DLL and LEX) pointing to non-existing files. Rename these to oldDLL and oldLEX. After this change all Spell Checking worked normal again.

iText PDF Encryption

Starting from iText 2.0.0 you need the BouncyCastle.jars as soon as you use encryption. http://www.bouncycastle.org/latest_releases.html http://sourceforge.net/projects/itext/files/extrajars/

Prevent "/" in the textbox

Must use the size attribute of the input element of HTML in order to prevent "/" appear on the input box when displaying the value from jsp variable. For example, <input type="text" name="path" value=""<%=path%>" size="80">

HTML Page Refresh

Javascript刷新頁面的幾種方法: 1 history.go(0) 1 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 document.execCommand('Refresh') 6 window.navigate(location) 7 location.replace(location) 8 document.URL=location.href