原创 C# 中時區的查訊和轉換

我們會需要把 local 時間轉換成某一時區的時間, 這裏用.Net 的內置方法來實現: ///UTC 時間 DateTime dt = TimeZoneInfo.ConvertTimeT

原创 單元測試的結構佈局

http://haacked.com/archive/2012/01/02/structuring-unit-tests.aspx/ Good article about Unit test structure. 點贊

原创 如何在需要的時候通過命令行觸發事件來運行SSRS的報表訂閱

Original article: How to run a subscription on demand by Trigerring Events in SSRS from command line   1.       In Man

原创 DOS 文件名時間戳的生成

set hour=%time:~0,2% if "%hour:~0,1%" == " " set hour=0%hour:~1,1% echo hour=%hour% set min=%time:~3,2% if "%min:~0,1%"

原创 浮點數據的精度計算和驗證

之前系統出現了一個Oracle DB拋出的異常, ORA-01438: value larger than specified precisionallowed for this column 經過測試, 這個異常是因爲 輸入大數字,

原创 bat 中文件名 文件路徑的獲取

for example: echo %~dp0 當前路徑 echo %~n0 當前文件名 %~I - expands %I removing any surrounding quotes (") %~fI - expands %I to

原创 SQL Server 有用語句蒐集

多數網絡轉載:http://blog.csdn.net/leamonjxl/article/details/6237320 如何查看客戶端的IP地址,機器名,MAC地址,登陸名等信息 select s.session_id,s.log

原创 Dos BAT 找到目錄下的某文件名放到變量裏去

下述命令找到名爲dbBackup*.bak 的文件 dir /b C:\backup\dbBackup*.bak 用For 語句賦入變量: for /f "delims=" %%A in ('dir /b C:\backup\dbBa

原创 HTML5 pdf viewer pdf.js

Recommend a very nice pdf view and no need to install, can find it from below link: http://mozilla.github.io/pdf.js/

原创 在非默認端口上運行SQLServer默認實例

轉載原文從: http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/03/03/running-sql-server-default-instance-on-a-non-d

原创 Numeric RegEx Mask

this.rpiTextEditor.Mask.EditMask = "\\d+\\.?\\d+"; this.rpiTextEditor.Mask.MaskType = DevExpress.XtraEditors.Mask.Mas

原创 ILSpy 開源的.Net代碼反編譯軟件

http://ilspy.net/ ILSpy is the open-source .NET assembly browser and decompiler. Development started after Red Gate

原创 Unix CVS 代碼庫創建文件夾 命令行

舉例: 在portfolio/GCDReporting目錄創建MLHttpExtractor文件夾 代碼 export CVSROOT=:pserver:【用戶名】:【密碼】@【cvs服務器】:/scprojects/cvsroot

原创 linux 下的 zip 命令

from: http://www.cnblogs.com/chinareny2k/archive/2010/01/05/1639468.html 1. 我想把一個文件abc.txt和一個目錄dir1壓縮成爲yasuo.zip: #

原创 SQL Server 開啓專用管理員連接 DAC Dedicated Administrator Connection

http://www.mssqltips.com/sqlservertip/1801/enable-sql-server-2008-dedicated-administrator-connection/