Phate - phate.org

General Information:

Latest News:

Post a photo to Facebook with Facebook JavaScript SDK 26 Nov 2012 | 04:01 am

First, you should include Facebook JavaScript SDK into your web. Call FB.init() when $(document).ready(). Post a photo and publish into stream Facebook logging in with scope "publish_stream" let th...

Grand Central Dispatch - Write Less Code, Get More Done 28 Oct 2012 | 02:54 pm

Before I knew GCD(Grand Central Dispatch), I wrote a Thread Pool to do multithread. But NSThread is very slowly and need to write other messages. GCD use a block technology so that multithreaded code ...

NyaruDB 即將釋出 25 Oct 2012 | 07:00 pm

有一段時間很少發文其實有部分時間拿去開發 NyaruDB 了。 事情是這樣的,因為 iOS App 需要存一些資料,而且是 App 結束後還要繼續保存的,這些資料還需要搜尋,然後呈現給使用者。所以就去找 Cocoa 上的資料庫,但發現大部分的人是用 SQLite、Core Data。 我用物件導向的語言,然後資料庫只有我一個人存取,我覺得在這種情況下為了存資料還要把物件的值轉成 sql 是很愚...

經過謹慎思考後判定創業失敗了 24 Oct 2012 | 08:45 pm

最近一直在思考一些很基礎的問題,然後得到一些可能是但可能不是的結論。 創業其實只是為了實現自己的夢想而已,如果只是想要擁有財富的話不應該創業,考公務員然後以當總統為目標可能是累積財富的最佳解。 多多少少都會有人以 Facebook 為目標,想要模仿他們的創業方式,學生時代找一些朋友做服務,畢業的時候成立公司。 但這在台灣是 100% 不可能的: 1. 大學時代無法累積專業能量 2. 大家都沒...

Reflection in Python 25 Sep 2012 | 11:53 am

I started learning Python a few week ago. I think Python is more smart than C#. Python is a good language, because the syntax is beautiful. I like this language. I usually use Reflection in my code, ...

初到中國心得 - 僕の戦場はここじゃない 10 Sep 2012 | 07:39 pm

以前聽了很多中國的傳說,例如中國進步很快、取代美國經濟地位、中國很厲害...等。 這次出差到中國後才親眼看見傳說中的中國,中國印象是豪放髒亂。 亂 沒有交通號誌的斑馬線上汽車看到有行人要過時是不會停的,雖然這點在台灣也一樣。 紅燈不一定要停,大部分的行人走斑馬線是不看號誌的,紅燈一樣會走、車來了也會走,行人沒有在怕汽車的,感覺像是汽車如果快撞到人的話行人會用中國功夫把車彈開一樣。 雖然沒有...

OS X Terminal Note (1) 7 Sep 2012 | 01:50 pm

Terminal Hot Key Show OS X Version Show System Information Show System Running Time Rename, Copy, Delete File Search File 1. Terminal Hot Key 2. Show OS X Version 3. Show System Information 4...

let UINavigationController does no pop to root in UITabBarController 23 Aug 2012 | 03:54 pm

Users can click the tab bar item let the NavigationController pop to the root view when the NavigationController in the TabBarController. We can handle it by - (BOOL)tabBarController:(UITabBarControll...

set up background on UIView and UITableView 21 Aug 2012 | 03:19 pm

Set background of UIView: Set backgroundcolor with UIColorSystemColors scrollViewTexturedBackgroundColor underPageBackgroundColor Set background of UITableView:

UIActionSheet showFromRect with UITableViewCell 18 Aug 2012 | 09:10 pm

The UI of an UIActionSheet in an iPad is like this. It is different between an iPad and an iPhone. I think the UIActionSheet is too far with the cell which was clicked. Cocoa provides [UIActionSheet ...

Recently parsed news:

Recent searches: