原创 24 小時教會你IPAD編程 - 第二小時

學會使用xcode和iPhone/iPad 模擬器。1. 使用xcode 的項目模板,創建合適的項目 (shift + command + N) 2. 習慣xcode的文件歸類:Classes:幾乎所有的開發都是在class文件中。 Cl

原创 模版特殊化和局部模版特殊化(偏特化)

模板特殊化 在使用模版的過程中,大部分情況下,我們都會爲所有可能的數據類型寫一個通用的模版類。 而模版特殊化的思路就是繼承默認的模版實現,爲一個特殊的類型實現不同的處理方式。 讓我們看個例子,向量,大多數情況下它都是由給定的數據類型的數組

原创 CoreData - Mogenerator 的使用

Why use Mogenerator instead of XCode directly: Mogenerator is a program that builds two custom classes for each entity

原创 The way to fix error: Lexical or Preprocessor Issue 'libxml/xmlversion.h' file not found

When using RXMLElement.h, I always get below error when compiling the code:  Lexical or Preprocessor Issue 'libxml/xmlv

原创 Integrate the CKEditor as html editor into iOS application

In short, it is very easy to integrate the CKEditor into the iOS application and make it work for you.  In this documen

原创 Master password was forgot in Smartgit

If you forgot the password of the master of Smartgit, you can reset the password simply by remove the smartgit folder u

原创 undefined reference to pthread_create

./libcurl.a(libcurl_la-curl_thread.o): In function 'Curl_thread_create' : curl_threads.c:(.text+0x7c):undefined referen

原创 求tree中節點之間路徑總和等於給定數值的算法

原題目: Given a tree (any tree, in this code, i define the tree as a binary tree) and a integer value, please calculate an

原创 Setup https server with a self SSL certificate for testing.

Copy part of content from below url: http://blog.sina.com.cn/s/blog_7be3b4570100sqi0.html: There is a solution to the

原创 Windows Phone 7 編成之- 6.2從源頁面傳遞數據到目的頁面

Silverlight 中將Page當作對話框使用,會引起兩個問題: 1. 我該如何從源page傳遞數據到目的page? 2. 當我回到原始page時,我該如何返回數據? 有意思的是,有一個方法用來具體解決第一個問題,但不適用於第二個問題

原创 24 小時教會你IPAD編程 - 第一小時

 成爲一個IPAD開發人員:第一步:. 你只需要註冊一個APPLE ID,你就可以在Apple 網站上http://developer.apple.c

原创 How to install Bromine3 RC2

   When I install Bromine RC2, I met bellow issues:“Server could not contac

原创 Windows Phone 7 編成之- 6.3 頁面之間數據共享和傳遞

像MFC程序一樣,在winPhone7程序中,有一個App類。它繼承於Application. 程序中的所有類都可以同過靜態的Application.Current屬性方便的訪問這個類的實例。這就意味着你可以使用App類存儲你想在程序頁面

原创 iOS 開源之HTML Editor

 Joust is a simple yet powerful HTML editor programmed for Mac OS X using C

原创 Windows Phone 7 編成之-頁面實例之間保留狀態數據

前面章節講到,每次從MainPage導航到SecondPage, 都會生成一個新的SecondPage實例。這就是爲什麼每次SecondPage 都是初始化時的狀態。 如果我們想讓SecondPage能夠記住自己頁面上一次離開時的顏色,就