Self Signing SSL for IIS 
1. Download selfssl.exe (Here)
2. Go to Dos console
3. Go to where you put selfssl.exe
4. type selfssl /?
5. Check your website ID, default is 1, that is the first web
4. Check the ID for you web, first one is 1 and second is 2 , and so no
5.run "selfssl.exe /N:CN=WH-STB5 /K:1024 /V:7 /S:1 /P:443", after /s is the WEB ID,
6. Done

[ add comment ]   |  permalink  |  related link  |   ( 3 / 2350 )
Pidgin - 跨平台的即時通訊客戶端 


Pidgin(前稱Gaim)是一個跨平台的即時通訊客戶端,使用GNU通用公共許可證發佈。這款軟體支援多個現時常用的即時通訊協定,讓用戶可以用同一個軟體登入不同的即時通訊服務。

You can talk to your friends using AIM, ICQ, Jabber/XMPP, MSN Messenger, Yahoo!, Bonjour, Gadu-Gadu, IRC, Novell GroupWise Messenger, QQ, Lotus Sametime, SILC, SIMPLE, MySpaceIM, and Zephyr.

Pidgin 中文版
Pidgin (Gaim) 在安装时是有中文选项的,如果不慎安装为英文版,可以按此方法更改为中文版:
打开注册表编辑器,找到 HKEY_CURRENT_USER\Software\pidgin 项,改 Installer Language 数值为 2052 即可。



http://www.pidgin.im/download/windows/

[ add comment ]   |  permalink  |  related link  |   ( 3 / 6151 )
Changing ASP.net Temporary Files Folder 
Please note that ASP.net create a compile version of the site and stores it in its default temporary ASP.net folder. This is usually %Windows Install Folder%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files (For ASP.Net 2.0). This folder can grow very fast in case web server has large ASP.net sites hosted on that server. Fortunately, ASP.net provides a simple way to change this location. This is stored in the web.config file and can defined in the Global web.config (placed at %Windows Install Folder%Microsoft.NET\Framework\v2.0.50727\CONFIG). To change this path add the new full folder path in the Compilation section of the configuration file. Here is a sample of how this looks like (this must be under System.Web section):

<compilation tempDirectory=“E:\ASP.Net Temporary Folder\” debug=“false“>

One can find the documentation of all different sections of ASP.net configuration file at:
http://msdn2.microsoft.com/en-us/library/b5ysx397(VS.71).aspx

In case when Internet is not available, or you just need a quick reference, there is also a small helpful file in the configuration folder. This file is named “web.config.comments” and is in the CONFIG folder of the ASP.net framework folder.



[ add comment ]   |  permalink  |  related link  |   ( 3 / 792 )
From server Test Client speed, C# 
using System.Management;
#region //ping
/// <summary>
/// Get client speed by ping bytes/million second, bytes/ms
/// </summary>
/// <param name="Target"></param>
/// <returns></returns>
public static int Ping(string Target)
{
int Time=10;

try
{
Time=0;
SelectQuery query = new SelectQuery("Win32_PingStatus", string.Format("Address='{0}'", Target));
ManagementObjectSearcher searcher = new ManagementObjectSearcher(query);

foreach (ManagementObject result in searcher.Get())
{

for(int i=0;i<20;i++)
{
if (result["StatusCode"] != null && (0 == (UInt32)result["StatusCode"])&&result["ResponseTime"]!=null)//connected
{
Time=Time+Convert.ToInt32(result["ResponseTime"]);
}
}
}

Time=Time/20;
}
catch{}

if (Time==0)
Time=10;

return 32/Time;
}
#endregion

[ 1 comment ] ( 134 views )   |  permalink  |  related link  |   ( 2.9 / 5089 )
Expression Validation 
Float
(\+|-)?([0-9]+\.?[0-9]*|\.[0-9]+)([eE](\+|-)?[0-9]+)?

Number:
\d{1,}

[ add comment ]   |  permalink  |  related link  |   ( 3 / 4954 )

NextNext