Date: September 4th, 2010
Cate: Uncategorized

Windows 2008 AD Domain 取消密碼複雜性

Open Group Policy Management Console (Start / Run / GPMC.MSC), open the Domain, and right-click and Edit the “Default Domain Policy”. Then dig into the “Computer Configuration”, “Windows Settings”, “Security Settings”, “Account Policies”, and modify the password complexity requirements setting.
Ref: http://yhlin.tw/?p=69

...... Reading More
Date: July 16th, 2010
Cate: Uncategorized

SQL Server 2008 的 Join 方式 (當 View 的查詢變的很慢時)

在 SQL Server 2008 中, 對 View 之主要 Table 的欄位欄詢時, 該欄位有建立 Index, 但似乎沒有使用到. 因為資料量很大, 所以要花很多時間, 尤某是有用到 Top 時.
Solution:
把所有和該 Table 相關的 Join 改為 Left Join 或 Right Join, 以告知 SQL Server 該 Table 所有的資料都會被選出來, 這樣 SQL 就會使用該 Table 的 Index 了.

...... Reading More
Date: July 16th, 2010
Cate: Uncategorized

SQL 2008 Maintenance Planes 無法執行

當執行時出現 sqlserver error 15404 could not obtain information about windows nt group user … 的訊息
1. 修改 Maintenance Plan 的 Connection(上方有一個 Manage Connections)
2. 修改 SQL Server Agent 中的相對應的 Job (我是改成 sa)

...... Reading More
Date: July 6th, 2010
Cate: Uncategorized

IIS 開啟 Gzip 時, IE 下載 zip 檔會有問題

真是一個鳥問題, 要把 .ZIP 的 MIME Type 由 application/x-zip-compressed 改為 application/octet-stream 才行
Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
Right-click the server (local computer) tree, where server (local computer) is the name of your IIS server, and then click Properties.
Click MIME Types.
Scroll down the registered MIME type list to find the .zip entry.
Click the .zip [...]

...... Reading More
Date: March 14th, 2010
Cate: IIS, 主機

在 Windows 2003 及 Windows 2008 (x64) 上面安裝 AWstats

安裝版本 awstats-6.95 + ActivePerl-5.10.1.1007

安裝 ActivePerl 的版本 (目前要安裝 x86 的版本, 因為 x64 不支援 isapi)

Windows 2008  (x64)

Install ActivePerl from http://www.activestate.com/activeperl/. At this time, there is a link to version 5.10 for Windows (x86) on this page. This link downloads an MSI installer to your machine which you can run.
If you are running the 64 bit [...]

...... Reading More
Date: February 26th, 2010
Cate: html

<img>圖片標籤接不起來的問題

原因:<img>標籤在"原始碼"的"空白"視為像 &nbsp; 的空格,產生區塊,造成圖片有間隔。為了應應各版本,盡量用CSS取代或<img>標籤要接在一起,前後不要有空隔/斷航,才不會遇到這種鳥問題。
...... Reading More
Date: February 26th, 2010
Cate: JS, jQuery

臺灣行政區下拉式選單( jQuery base )

使用jQuery 動態產生 臺灣行政區下拉式選單

...... Reading More
Date: February 18th, 2010
Cate: Uncategorized

Javascript 字串的擴充 functions

一些 Javascript 的 String 擴充功能:
Substr
myVar = substr2(myVar, x, y); //Your function
myVar = myVar.substr(x, y); //built-in function
Trim
String.prototype.trim = function(){return
(this.replace(/^[\s\xA0]+/, “”).replace(/[\s\xA0]+$/, “”))}
startsWith
String.prototype.startsWith = function(str)
{return (this.match(“^”+str)==str)}
 endsWith
String.prototype.endsWith = function(str)
{return (this.match(str+”$”)==str)} 
Examples:
var myStr = “  Earth is a beautiful planet  ”;
var myStr2 = myStr.trim();  
//==“Earth is a beautiful planet”;
if (myStr2.startsWith(“Earth”)) // returns TRUE
if (myStr2.endsWith(“planet”)) // returns TRUE
if (myStr.startsWith(“Earth”))
// returns FALSE due to the leading spaces…
if [...]

...... Reading More
Date: February 12th, 2010
Cate: JS, jQuery

Simple Image Gallery (jQuery Base)

簡單的 Image Gallary

Date: February 4th, 2010
Cate: JS, 解決小問題

IE 6.0 支援 PNG (jQuery Base)

IE 6跑PNG

...... Reading More