- Aug 01 Thu 2013 13:15
-
如何讓工作排程在背景執行
- Jul 30 Tue 2013 09:48
-
Windows 7刪除資料夾或檔案出現"找不到此項目"
- Jun 11 Tue 2013 18:24
-
查詢拿個process占用port
- Apr 26 Fri 2013 10:46
-
ASP 中 ANSI、UTF-8 檔案編碼與 Server.HTMLEncode
ASP 中 ANSI、UTF-8 檔案編碼與 Server.HTMLEncode
在不同的檔案編碼中Server.HTMLEncode執行結果不同
Response.Write(Server.HTMLEncode("日文字"))
如果上述程式碼位於 ANSI 檔案編碼的 ASP 中,則輸出為:中文編碼或亂碼。
如果上述程式碼位於 UTF-8 檔案編碼的 ASP 中,則輸出為:&#+U;編碼。
在不同的檔案編碼中Server.HTMLEncode執行結果不同
Response.Write(Server.HTMLEncode("日文字"))
如果上述程式碼位於 ANSI 檔案編碼的 ASP 中,則輸出為:中文編碼或亂碼。
如果上述程式碼位於 UTF-8 檔案編碼的 ASP 中,則輸出為:&#+U;編碼。
- Mar 26 Tue 2013 18:20
-
[pw1]抓網頁資料分析
$EndDatetime = Get-Date
for ($i=1; $i -le 1000; $i++) {
$query_year = $EndDatetime.AddDays(-$i).Year;
$query_Cyear = ($EndDatetime.AddDays(-$i).Year-1911).ToString("000");
$query_month = $EndDatetime.AddDays(-$i).Month.ToString("00");
$query_day = $EndDatetime.AddDays(-$i).Day.ToString("00");
$query_date = "$query_year%2F$query_month%2F$query_day";
$outputfilename = "$query_year-$query_month-$query_day";
$url = "";
$path = "D:\test\$outputfilename.html";
$client = new-object System.Net.WebClient;
$client.DownloadFile( $url, $path );
}
for ($i=1; $i -le 1000; $i++) {
$query_year = $EndDatetime.AddDays(-$i).Year;
$query_Cyear = ($EndDatetime.AddDays(-$i).Year-1911).ToString("000");
$query_month = $EndDatetime.AddDays(-$i).Month.ToString("00");
$query_day = $EndDatetime.AddDays(-$i).Day.ToString("00");
$query_date = "$query_year%2F$query_month%2F$query_day";
$outputfilename = "$query_year-$query_month-$query_day";
$url = "";
$path = "D:\test\$outputfilename.html";
$client = new-object System.Net.WebClient;
$client.DownloadFile( $url, $path );
}
- Jan 02 Wed 2013 12:12
-
可以替代MD5或SHA的雜湊新技術「BLAKE2」
- Dec 20 Thu 2012 13:30
-
IE8 HTML換頁CSS
有問題的換頁
<div style=”page-break-after:always; clear:both;”></div>
IE8:
<div style=”page-break-after:always; clear:both;”> </div>
<div style=”page-break-after:always; clear:both;”></div>
IE8:
<div style=”page-break-after:always; clear:both;”> </div>
- Nov 19 Mon 2012 09:54
-
修復IIS無法執行.aspx
修復IIS無法執行.aspx
1.重新安裝.NET 1.x
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -i
2.把所需的檔案,複製到IIS的 aspnet_client子目錄
1.重新安裝.NET 1.x
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -i
2.把所需的檔案,複製到IIS的 aspnet_client子目錄
- Nov 02 Fri 2012 14:07
-
復原windows預設的開啟程式
復原windows預設的開啟程式
Restore Default Windows 7 File Extension Type Associations
http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html
Restore Default Windows 7 File Extension Type Associations
http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html
- Oct 25 Thu 2012 13:36
-
Linux搜尋大型檔案
Syntax for Debian / Ubuntu Linux
find {/path/to/directory} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'
Search in current directory:
find {/path/to/directory} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'
Search in current directory:
- Aug 22 Wed 2012 11:04
-
yum update – TypeError: unsubscriptable object
yum update – TypeError: unsubscriptable object
yum update出現TypeError: unsubscriptable object錯誤
先清除yum的舊資料
yum update出現TypeError: unsubscriptable object錯誤
先清除yum的舊資料
- Jul 05 Thu 2012 14:03
-
IIS6一個IP安裝多個SSL(443)網站
1.先安裝好憑證
2.預設的GUI無法設定 domain name
3.改用adsutil.vbs來設定domain name,達到安裝多個SSL(443)網站
4.cscript adsutil.vbs set /w3svc/844934796/SecureBindings ":443:mysite.sharepoint.com"
5.adsutil.vbs位於C:\Inetpub\AdminScripts
2.預設的GUI無法設定 domain name
3.改用adsutil.vbs來設定domain name,達到安裝多個SSL(443)網站
4.cscript adsutil.vbs set /w3svc/844934796/SecureBindings ":443:mysite.sharepoint.com"
5.adsutil.vbs位於C:\Inetpub\AdminScripts