<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>電腦茶包 Blog &#187; 軟體技術</title>
	<atom:link href="http://www.minitw.com/archives/category/%e8%bb%9f%e9%ab%94%e6%8a%80%e8%a1%93/feed" rel="self" type="application/rss+xml" />
	<link>http://www.minitw.com</link>
	<description>解決資訊問題分享，電腦隨手筆記</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:24:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>SQL Server 快速匯入資料的方法</title>
		<link>http://www.minitw.com/archives/659</link>
		<comments>http://www.minitw.com/archives/659#comments</comments>
		<pubDate>Mon, 01 Nov 2010 03:08:29 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[軟體技術]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[匯入]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=659</guid>
		<description><![CDATA[如果你是用SQL Dumper(<a href="http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/05/14/sql-dumper.aspx">黑暗執行緒：好用的SQL Dumper</a>)來匯出SQL Server的資料，當你要匯入時
可能你會遇到 .sql 檔的檔案太大，SQL Server Management Studio 開不起來
]]></description>
			<content:encoded><![CDATA[<p>如果你是用SQL Dumper(<a href="http://blog.darkthread.net/blogs/darkthreadtw/archive/2009/05/14/sql-dumper.aspx">黑暗執行緒：好用的SQL Dumper</a>)來匯出SQL Server的資料，當你要匯入時<br />
可能你會遇到 .sql 檔的檔案太大，SQL Server Management Studio 開不起來<br />
或是開起來後，執行很慢<br />
這時候我們就需要使用sqlcmd來幫我們執行指令，較不吃資源<br />
使用方式為開始 --&gt; 執行 --&gt; cmd </p>
<p>C:\Program Files\Microsoft SQL Server\90\Tools\Binn&gt;sqlcmd -S 資料庫的IP -U 使用者名稱 -d 資料庫名稱 -i "C:\Documents and Settings\Administrator\SQLFile\SQL1.sql" </p>
<p>如此就可以執行匯入了，如果還需要更詳細的資訊可以使用sqlcmd -? 這個指令 </p>
<p>C:\Program Files\Microsoft SQL Server\90\Tools\Binn&gt;sqlcmd -?<br />
Microsoft (R) SQL Server 命令列工具<br />
版本 9.00.4035.00 NT INTEL X86<br />
Copyright (c) Microsoft Corporation. All rights reserved. </p>
<p>使用方式: Sqlcmd                [-U 登入識別碼]         [-P 密碼]<br />
  [-S 伺服器]           [-H 主機名稱]           [-E 信任連接]<br />
  [-d 使用資料庫名稱]   [-l 登入逾時]           [-t 查詢逾時]<br />
  [-h 標頭]             [-s 資料行分隔符號]     [-w 螢幕寬度]<br />
  [-a 封包大小]         [-e 回應輸入]           [-I 啟用引號識別碼]<br />
  [-c 命令結束]         [-L 列出伺服器[清除輸出]]<br />
  [-q "命令行查詢"]             [-Q "命令行查詢" 並結束]<br />
  [-m 錯誤層次]         [-V 嚴重性層級]         [-W 移除句尾空格]<br />
  [-u unicode 輸出]             [-r[0|1] 訊息傳至 stderr]<br />
  [-i 輸入檔]           [-o 輸出檔]             [-z 新密碼]<br />
  [-f &lt;字碼頁&gt; | i:&lt;字碼頁&gt;[,o:&lt;字碼頁&gt;]]               [-Z 新密碼並結束]<br />
  [-k[1|2] 移除[取代] 控制字元]<br />
  [-y 可變長度類型顯示寬度]<br />
  [-Y 固定長度類型顯示寬度]<br />
  [-p[1] 列印統計資料[冒號格式]]<br />
  [-R 使用用戶端地區設定]<br />
  [-b 發生錯誤時中止批次]<br />
  [-v var = "值"...]  [-A 專用管理員連接]<br />
  [-X[1] 停用命令, 啟動指令碼, 環境變數 [並結束]]<br />
  [-x 停用變數替代]<br />
  [-? 顯示語法摘要]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/659/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>開啟 CodeRush Xpress 10.1 的選單功能列</title>
		<link>http://www.minitw.com/archives/633</link>
		<comments>http://www.minitw.com/archives/633#comments</comments>
		<pubDate>Fri, 11 Jun 2010 07:23:26 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[軟體技術]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=633</guid>
		<description><![CDATA[在安裝完CodeRush Xpress 10.1 後 進入Visual Studio你會發現上面的工具列多一個DevExpress 但是等Visual Studio載入完成後，DevExpress就不見了 以下登錄檔可以讓DevExpress出現，如要應急的話 按下Ctrl + Alt + Shift + O，就可以顯示DevExpress的設定視窗 x86 系統用，把文字存成.reg後執行。Visual Studio重開就完成了 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Developer Express\CodeRush for VS\10.1] &#34;HideMenu&#34;=dword:00000000 x64 系統用，把文字存成.reg後執行。Visual Studio重開就完成了 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Developer Express\CodeRush for VS\10.1] &#34;HideMenu&#34;=dword:00000000]]></description>
			<content:encoded><![CDATA[<p>在安裝完CodeRush Xpress 10.1 後<br />
進入Visual Studio你會發現上面的工具列多一個DevExpress<br />
但是等Visual Studio載入完成後，DevExpress就不見了<br />
以下登錄檔可以讓DevExpress出現，如要應急的話<br />
按下Ctrl + Alt + Shift + O，就可以顯示DevExpress的設定視窗</p>
<p>x86 系統用，把文字存成.reg後執行。Visual Studio重開就完成了</p>
<pre class="brush: sql; title: ;">
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Developer Express\CodeRush for VS\10.1]
&quot;HideMenu&quot;=dword:00000000
</pre>
<p>x64 系統用，把文字存成.reg後執行。Visual Studio重開就完成了</p>
<pre class="brush: sql; title: ;">
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Developer Express\CodeRush for VS\10.1]
&quot;HideMenu&quot;=dword:00000000
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/633/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>取得Smart Card的APDU Command</title>
		<link>http://www.minitw.com/archives/524</link>
		<comments>http://www.minitw.com/archives/524#comments</comments>
		<pubDate>Tue, 08 Dec 2009 06:49:08 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[軟體技術]]></category>
		<category><![CDATA[APDU]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[iCash]]></category>
		<category><![CDATA[Smart Card]]></category>
		<category><![CDATA[自然人憑證]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=524</guid>
		<description><![CDATA[一般我們在使用網路ATM、自然人憑證時、iCash，把卡片插進讀卡機後。
都是透過APDU Command來對卡片下指令進行查詢卡號、帳號、餘額...等。
也就是說，只要取得相關的指令，我們也可以自己寫程式來操作。
首先第一個問題是，要怎麼下指令。第二個問題是，要下什麼指令..........]]></description>
			<content:encoded><![CDATA[<p>一般我們在使用網路ATM、自然人憑證時、iCash，把卡片插進讀卡機後</p>
<p>都是透過APDU Command來對卡片下指令進行查詢卡號、帳號、餘額...等</p>
<p>也就是說，只要取得相關的指令，我們也可以自己寫程式來操作</p>
<p>首先第一個問題是，<span style="color: #ff0000;">要怎麼下指令</span>。第二個問題是，<span style="color: #ff0000;">要下什麼指令</span></p>
<p>第一個問題比較好解決，目前己經有現成的程式碼了，就不再贅述</p>
<p>請參考<a href="http://blog.blueshop.com.tw/timothychi/archive/2008/03/26/54591.aspx">使用C#讀取自然人評證卡號</a></p>
<p>第二個問題，可以說簡單，也可以說複雜</p>
<p>複雜的來說呢~~必需先去K懂一堆SmartCard的相關文件，然後再去看指令集</p>
<p>當然，像我這樣<span style="text-decoration: line-through;">懶惰</span>取巧的人，是不太可能花這麼多時間去讀文件(此為不良示範...冏)</p>
<p>那麼簡單來說呢~~這才是本文的重點，就是只要知道那些現成的ActiveX 元件下了什麼指令就可以了</p>
<p>這麼說，只要把指令Sinffer起來就好囉。沒錯!正解</p>
<p>為了要達到這個目的，必需使用這個元件 WinSCard APDU View Utility</p>
<p>官方網址在<a href="http://www.fernandes.org/apduview/index.html">這邊</a>，官方載點在<a href="http://www.fernandes.org/apduview/apduview.zip">這邊</a>，茶包<a href="http://www.minitw.com/download/apduview.zip">分流載點</a></p>
<p>安裝方式官方網址裡面有。或是你可以參考下面：</p>
<p style="padding-left: 30px;">1.下載WinSCard APDU View Utility，並解出winscard.dll<br />
2.到C:\WINDOWS\system32\ 下面，複製一份你的原始winscard.dll成winscard_BAK.dll<br />
3.把C:\WINDOWS\system32\winscard.dll 改檔名為 original.dll<br />
4.把WinSCard APDU View Utility 解出的 winscard.dll，放到 C:\WINDOWS\system32\<br />
5.重新開機</p>
<p>完成後，你就可以開始測試了。例如去<a href="http://moica.nat.gov.tw/">MOICA內政部憑證管理中心</a>測試你的自然人憑證。</p>
<p><a title="Flickr 上 猴子銘 的 20091208_1" href="http://www.flickr.com/photos/jokkson/4168670736/"><img src="http://farm3.static.flickr.com/2604/4168670736_16352d37fa.jpg" alt="20091208_1" width="500" height="444" /></a></p>
<p>讀卡機只要有動作的話，相關的指令會在你桌面上的 winscard.txt 檔案，內容大概長這樣子</p>
<p style="padding-left: 30px;">SCardTransmit (handle 0xEA0A0000):<br />
transmitted:<br />
80 A4 00 00 02 3F 00<br />
received:<br />
90 00</p>
<p style="padding-left: 30px;">SCardTransmit (handle 0xEA0A0000):<br />
transmitted:<br />
80 A4 00 00 02 09 00<br />
received:<br />
90 00</p>
<p style="padding-left: 30px;">SCardTransmit (handle 0xEA0A0000):<br />
transmitted:<br />
80 A4 00 00 02 09 03<br />
received:<br />
90 00</p>
<p style="padding-left: 30px;">SCardTransmit (handle 0xEA0A0000):<br />
transmitted:<br />
80 B0 00 00 10<br />
received:<br />
54 50 30 30 30 30 30 30 30 31 36 31 31 31 31 31 90 00</p>
<p>相關實作程式請參考<a href="http://www.minitw.com/archives/534">使用讀卡機取得自然人憑證的卡號</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/524/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>好用的畫ER圖軟體</title>
		<link>http://www.minitw.com/archives/488</link>
		<comments>http://www.minitw.com/archives/488#comments</comments>
		<pubDate>Wed, 07 Oct 2009 09:10:45 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[軟體技術]]></category>
		<category><![CDATA[ER圖]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=488</guid>
		<description><![CDATA[這幾天一直在找可以畫資料庫ER圖的軟體

找來找去就屬這個軟體最好用了DB Visual ARCHITECT

除了很直覺，介面也有中文(不是很完全，不過關鍵字都有中文化了)

下載後要到官方申請key才能使用(30天)

除了畫ER圖還有很多好用的功能，像是轉成Class、DB 反向工程......等

用了幾天，還蠻順手的，產生的ER圖也蠻漂亮的，推薦給有需要的人]]></description>
			<content:encoded><![CDATA[<p>這幾天一直在找可以畫資料庫ER圖的軟體</p>
<p>找來找去就屬這個軟體最好用了<a href="http://www.visual-paradigm.com/product/dbva/" target="_blank">DB Visual ARCHITECT</a></p>
<p>除了很直覺，介面也有中文(不是很完全，不過關鍵字都有中文化了)</p>
<p>下載後要到官方申請key才能使用(30天)</p>
<p>除了畫ER圖還有很多好用的功能，像是轉成Class、DB 反向工程......等</p>
<p>用了幾天，還蠻順手的，產生的ER圖也蠻漂亮的，推薦給有需要的人</p>
<p><a href="http://www.flickr.com/photos/jokkson/3989088075/"><img class="alignnone" title="20091007_1" src="http://farm3.static.flickr.com/2463/3989088075_a522b6bb06.jpg" alt="" width="500" height="298" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/488/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion 繁體中文線上電子書</title>
		<link>http://www.minitw.com/archives/483</link>
		<comments>http://www.minitw.com/archives/483#comments</comments>
		<pubDate>Wed, 23 Sep 2009 13:48:02 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[軟體技術]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.minitw.com/?p=483</guid>
		<description><![CDATA[感謝保哥無私的分享

在此分流 Subversion 繁體中文線上電子書

有需要的人可以連結使用，或於小站的右邊連結進入]]></description>
			<content:encoded><![CDATA[<p>感謝<a href="http://blog.miniasp.com/post/2009/09/Free-eBook-Version-Control-with-Subversion.aspx" target="_blank">保哥</a>無私的分享</p>
<p>在此分流 <a href="http://svndoc.minitw.com/" target="_blank">Subversion 繁體中文線上電子書</a></p>
<p>有需要的人可以連結使用，或於小站的右邊連結進入</p>
]]></content:encoded>
			<wfw:commentRss>http://www.minitw.com/archives/483/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

