- 8月 14 週五 201513:24
免費軟體 | Android 模擬器 | Andy | 快速 | 流暢
- 8月 14 週五 201513:01
免費軟體 | Android 模擬器 | Genymotion

軟體名稱:Genymotion
- 8月 13 週四 201518:51
程式開發 | 數學和編程

好些人來信問我,要成為一個好的程序員,數學基礎要達到什麼樣的程度?十八年前,當我成為大學計算機系新生的時候,也為同樣的問題所困擾。面對學數學,物理等學科的同學,我感到自卑。經常有人說那些專業的知識更加精華一些,難度更高一些,那些專業的人畢業之後如果做編程工作,水平其實比計算機系畢業的還要高。直到幾年前深入研究程序語言之後,對這個問題我才得到了答案和解脫。由於好多編程新手遇到同樣的困擾,所以我想在這裡把這個問題詳細的闡述一下。
數學並不是計算機科學的基礎
- 8月 13 週四 201518:43
程式開發 | 在VC/MFC下使用AfxMessageBox和MessageBox區別

在VC/MFC下使用MessageBox()與AfxMessageBox()的比較整理
使用區別:
類別庫:
- 8月 13 週四 201518:26
程式開發 | 終極dos批處理循環命令詳解
終極dos批處理循環命令詳解
格式:FOR [參數] %%變量名 IN (相關文件或命令) DO 執行的命令
作用:對一個或一組文件,字符串或命令結果中的每一個對象執行特定命令,達到我們想要的結果。
注意:在批處理文件中使用 FOR 命令時,指定變量請使用 %%variable,而不要用 %variable。變量名稱是區分大小寫的,所以 %i 不同於 %I.
關於:for命令可以帶參數或不帶參數,帶參數時支持以下參數:/d /l /r /f
下面分別解釋一下
格式:FOR [參數] %%變量名 IN (相關文件或命令) DO 執行的命令
作用:對一個或一組文件,字符串或命令結果中的每一個對象執行特定命令,達到我們想要的結果。
注意:在批處理文件中使用 FOR 命令時,指定變量請使用 %%variable,而不要用 %variable。變量名稱是區分大小寫的,所以 %i 不同於 %I.
關於:for命令可以帶參數或不帶參數,帶參數時支持以下參數:/d /l /r /f
下面分別解釋一下
- 8月 13 週四 201518:21
程式開發 | Visual Studio自動移除工具
Visual Studio 2005自動移除工具
Uninstalling Previous Versions of Visual Studio 2005網頁提供Run autouninstall tool now的移除工具。
Visual Studio 2008自動移除工具
解除安裝 Visual Studio 2008網頁提供立刻執行 AutoUninstallTool的移除工具。
Uninstalling Previous Versions of Visual Studio 2005網頁提供Run autouninstall tool now的移除工具。
Visual Studio 2008自動移除工具
解除安裝 Visual Studio 2008網頁提供立刻執行 AutoUninstallTool的移除工具。
- 8月 13 週四 201518:04
程式開發 | Visual Studio 2010 完整移除方法 VS2010 Full Uninstall
Visual Studio 2010 完整移除方法 VS2010 Full Uninstall
最近VS2010 一直出現錯誤,所以想要給他完整移除,FULL Uninstall重新安裝
結果安裝完後還是一樣錯誤,因為沒有移除乾淨
依照微軟網站http://msdn.microsoft.com/zh-tw/library/e2h7fzkw.aspx
完整移除方法有兩種
方法1.下載Microsoft Visual Studio 2010 Uninstall Utility來移除,如果要更完整移除的話就要在後面加參數/full
連.NET Framework 4,都移除的話要加/netfx
最快的方法就是在檔案上按右鍵選建立捷徑
然後在捷徑按右鍵->內容->捷徑 的 目標 後面加上 /full /netfx
例如放在D槽的話 D:\VS2010_Uninstall-RTM.ENU.exe /FULL /netfx
然後執行捷徑,照著下一步就可以完整移除
方法2.
- Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools
- Microsoft SQL Server 2008 R2 Transact-SQL Language Service
- Microsoft SQL Server 2008 R2 Data-Tier Application Project
- Microsoft SQL Server 2008 R2 Data-Tier Application Framework
- Microsoft Sync Framework SDK v1.0 SP1
- Microsoft Sync Framework Services v1.0 SP1
- Microsoft Sync Framework Runtime v1.0 SP1
- Microsoft Silverlight 3 SDK
- Microsoft ASP.NET MVC 2
- Microsoft ASP.NET MVC 2 - Visual Studio 2010 Tools
- Microsoft .NET Framework 4 Multi-Targeting Pack
- Microsoft TFS Object Model
- Microsoft Visual F# 2.0 Runtime
- Microsoft Visual Studio x64 Prerequisites
- 8月 13 週四 201517:35
程式開發 | 辨識作業系統是否為64位元的方法--使用C#
前一陣子,幫公司寫了一個自動化安裝系統的程式,
有一堆必要Component,x86、x64的安裝檔案不同,例如:Windows Installer 4.5。
於是,為了讓所有系統都可以達到自動辨識、安裝的目的,寫了以下一段程式,用來辨識OS是否為64位元。
先解說一下基本的原理:
辨識的原理,其實很簡單,基本的原理是透過檢查作業系統的『CPU定址長度』來判定。
32位元的作業系統,CPU定址長度會是32bit,即使使用的實體CPU是64位元的,OS仍會判定是32bit。
64位元,就沒有這種問題啦,不是64位元的CPU,應該也裝不了64位元的OS。
以下是判斷的程式碼:
- 8月 13 週四 201517:34
程式開發 | VGA Vesa DDC顯示接口

VGA 是 Video Graphics Adapter(Array) 的縮寫,VESA 是 Video Electronics Standards Association 的縮寫,DDC 是 Display Data Channel 的縮寫,信號類型為模擬類型,顯示卡端的接口為 15 針母插座:
顯示器連線端的接口為 15 針公插頭:
- 8月 13 週四 201517:32
程式開發 | kernel32/comm.c
/*
* DEC 93 Erik Bos <erik@xs4all.nl>
*
* Copyright 1996 Marcus Meissner
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
* DEC 93 Erik Bos <erik@xs4all.nl>
*
* Copyright 1996 Marcus Meissner
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/