February 2012
5 posts
WorldWideWeb wide-area hypertext app available -... →
真是一篇具有歷史意義的留言…。
Feb 23rd
1 note
Start Developing iOS Apps Today: Introduction →
蘋果的新版 iOS 開發初心者文件。
Feb 23rd
CocoaHeads: Objective-C literals for NSDictionary,... →
Wow NSArray *a = [@”1”, @”2”, @”3”]; NSDictionary *d = {@”a”: @”1”’, @”b”,@”2”}; NSNumber *n = @123;
Feb 17th
66 notes
Python 的文件系統
今天在公司的分享題目。 五分鐘講完。
Feb 17th
Xcode, GCC, and Homebrew →
只裝 GCC 不裝 Xcode 等開發工具的安裝套件。
Feb 16th
January 2012
1 post
a page of tumbling madness: How to add a free... →
筆記一下 jrheard: Heroku’s documentation claims that “New apps created on Heroku automatically have a shared database installed.” Unfortunately, that isn’t at all true for Flask apps: if you create a new Flask app on Heroku, you don’t have any database at all by default. I spent a couple of hours Googling and…
Jan 25th
3 notes
December 2011
1 post
Dec 2nd
October 2011
14 posts
Oct 24th
4 notes
Input Method Kit 的架構
前兩天寫的投影片
Oct 24th
5 notes
tumblilarius lukhnos: Tim Cook, CEO of Apple, at... →
當初 Snow Leopard 的中文字體問題後來是這樣解決的 :) lukhnos: I wrote to Steve Jobs once. That was when Snow Leopard first came out in the late summer of 2009, and there were some issues with the new Traditional Chinese fonts. Those issues made them unusable in formal settings. With friends’ help and encouragement, we compiled the screenshots, filed Radar, and I finally got to draft the email. I didn’t expect...
Oct 24th
14 notes
今天的教訓
一個 NSDictionary 裡頭,對應到某個 key 的 value 如果應該要是 NSNumber,結果卻給成 NSString,compiler 是不會幫你檢查出來的,然後就會因為 NSString 沒有 NSNumber 的一些 selector 造成 exception…在非常需要型別檢查的時候,就不應該設計成 NSDictionary,還是應該設計成一個 model object。 也就是說,NSDictionary 好危險的啊!
Oct 23rd
視障男下載A片供分享無犯意獲不起訴 | 即時新聞 | 20111019 | 蘋果日報 →
台北市1名59歲周姓視障男子,因使用foxy軟體下載性交、猥褻影片…被依《兒童及少年性交易防制條例》送辦。北檢發現周男是重度視障人士…平時都使用電腦都是依賴語音系統,根本無法觀看影片,當時經朋友介紹利用foxy下載音樂來聽,並未下載這些影片。 所以我們已經活在一個下載 A 片違法但是下載盜版音樂沒事的年代了。
Oct 19th
Oct 18th
Oct 16th
2 notes
小麥注音
最近事情一大堆,終於找到一點時間來弄小麥注音。最近做的事情大概包括: 10.7 「文字編輯」軟體裡頭的垂直文字模式的支援 解決漢語拼音不能輸入的問題 大概解決了使用非 US 鍵盤時鍵盤配置跑掉的問題 繼續來調整 Installer 的問題 要做的事情還是一堆哩。
Oct 16th
2 tags
筆記
zonble: 分享一下
zonble: LLVM 現在在 compile 的時候,會同時檢查一下 coding convention
zonble: 所有用 new 開頭的 method,都期待 retain count 是 1
zonble: 例如 [ZBDocument newDocument] 這類的
zonble: 但是這個檢查不分 class 或 instance method
zonble: 所以如果有個 property 叫做 new... 什麼的,就噴出一堆警告
zonble: 例如 document.newVersion 就認為不好
zonble: 而除了 new 開頭或 init 開頭的 method,檢查的時候就都要求是 autorelease 物件
zonble: 所以像 [ZBDocument createDocument]
zonble: 最好就改成 [ZBDocument newDocument];
Oct 6th
5 notes
Oct 5th
217 notes
Oct 5th
18 notes
1 tag
Oct 4th
32 notes
Help.GitHub - Remove sensitive data →
果然人生難免會用到這種東西…。
Oct 4th
#osxchat blog: 小麥注音:一套簡單的自動選字輸入法 →
又是一套輸入法。 osxchat: 本站 (#osxchat) 的 mjhsieh 還有 zonble 開發了一套簡單的自動選字輸入法「小麥注音」,特色有: 輕巧簡單,容易安裝 選字及標點符號符合台灣使用者習慣 介面依循 Mac 標準 支援標準、倚天、許氏、倚天26 鍵以及漢語拼音鍵盤配置 程式反應快速,目前的詞庫也有相當的準確性,應該能夠有效幫助大家輸入國語 開放原始碼,有興趣研究改進輸入法及選字原理的人可從本專案開始著手 需要下載的朋友,可以前往小麥注音網站取得。
Oct 1st
8 notes
September 2011
10 posts
rentzsch.tumblr.com: [NSScreen mainScreen] !=... →
咦咦咦咦咦咦咦咦咦咦咦? rentzsch: Karsten Kusche: for years i’d thought that [NSScreen mainScreen] returns the screen with menu. It returns the screen with the window that has keyboard focus
Sep 13th
5 notes
installation - How to install iPhone application... →
筆記一下 /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication path_to_your_app/YourFavouriteApp.app/YourFavouriteApp 這樣就可以在另外一台機器用 iPhone Sim 跑程式,不需要把 code 拿過去編。
Sep 13th
1 note
evands/xcodeRemoteDeviceFixer - GitHub →
留個紀錄:修正 Xcode 4.1 CPU 用量的工具。
Sep 13th
1 note
Sep 8th
Oomph/MacMapKit - GitHub →
Mac OS X 用的 MapKit。
Sep 7th
用 AppStore 開啟檔案
在 Lion 的 Finder 裡頭,如果在某個檔案上面點右鍵(control click),在 “Open With” 選單中,除了列出本機安裝的軟體中,可以用來開啟這個檔案者外,還有一個選項是 AppStore。選擇之後,系統就會把 AppStore 開起來,然後透過檔案類型的 uri,在線上商店中尋找可以開啟這種檔案的軟體,也就是,如果你拿到一個無法開啟的檔案的話,Mac AppStore 的設計,也可以讓你很容易知道,可以透過購買那一套軟體解決這個問題。 系統層次的軟體商店果然有厲害的地方。
Sep 7th
August 2011
3 posts
我個人最常用的其實是這個: id appDelegate() { return [UIApplication sharedApplicaiton].delegate; } 為什麼 UIKit 裡頭沒有像是 Cocoa 裡頭定義的 NSApp 這樣的東西呢?
Aug 31st
NSCollectionAddition →
yllan++ yllan: It let you: ARRAY(a, b, c) instead of [NSArray arrayWithObjects: a, b, c, nil] DICT(k1, v1, k2, v2) instead of [NSDictionary dictionaryWithObjects: v1, k1, v2, k2, nil] SET(x, y, z) instead of [NSSet setWithObjects: x, y, z, nil] (Thanks for Mike Ash, I steal these macros from his MACollectionUtilities.)
Aug 31st
2 notes
雖然 CPython 裡頭的 module,在 IronPython 裡頭都有一份,不過還是有一些地方有點殘缺,像是如果用了 minidom 來 parse XML,就會發現少了 expat.py ,需要用 http://ironpython.codeplex.com/workitem/20023 裡頭提到的方式修正。 事實上,如果用了 IronPython,感覺起來全部使用 .Net 的東西,會比呼叫 C:\Program Files\IronPython\Lib 裡頭的東西好。如果你想要將 IronPython 寫出的 script 編譯成 .Net 的 .dll 或 .exe 的時候,就會發現要把用到 CPython 的東西包進來,不是什麼容易的事情,那麼還不如都呼叫 .Net 提供的 class 使用—直接就在寫一個 .Net 程式,只是語言換成 Python。 ...
Aug 31st
2 tags
iOS 5.0b7: API Validation
cocoaheads: NEW: Starting in iOS 5.0 development tools beta 7, it is possible to extract APIs used by an application and have them checked for private APIs usage. This option will be offered at Validation time.
Aug 31st
11 notes
Aug 30th
1 note
IronPython 的字串處理
簡單筆記一下。 CPython 當中的字串,基本上就是當成一串 C 的 char[],但是 IronPython 裡頭,字串裡頭的每個字,都是一個 Unicode 字元—IronPython 的字串,其實是用 .Net 裡頭的字串實作的,基本上我們只要把 IronPython 的字串當成 System.String 處理就好。於是我前兩天遇到一個問題:我有一段程式,基本上是要取出一段字串裡頭的每個 char,然後把每個 char 根據一定的規則換掉,在 CPython 裡頭,基本上就像這樣: length = len(originalString) for i in range(0, length): c = ord(originalString[i]) 這樣的程式在 IronPython 裡頭的結果會完全不一樣。同樣呼叫...
Aug 28th
Aug 9th
June 2011
3 posts
Jun 25th
1 note
“本餐廳經理之前在經營餐館時,因常陪客人應酬,而導致身體不適,經常住院。在住院期間,感受到了白衣天使的細心照顧以及醫生的專業、親切,發覺到這不正是餐飲業同時應具備的...”
– DS餐廳 — DS介紹 這裡會有白衣天使跟你應酬讓你身體不適。
Jun 22nd
1 note
Jun 5th
2 notes
May 2011
12 posts
CoreText example: Column Layout (correctly... →
真討厭,預設是反過來的。
May 30th
案情並不單純 :p
NSLog(@”[NSString superclass] %@”, NSStringFromClass([NSString superclass])); NSLog(@”[[NSString string] class] %@”, [[NSString string] class]); NSLog(@”[[NSString string] superclass] %@”, NSStringFromClass([[NSString string] superclass])); NSLog(@”[NSMutableString superclass] %@”, NSStringFromClass([NSMutableString superclass])); ...
May 26th
May 23rd
May 19th
1 note
May 18th
May 15th
11,785 notes
iMZDL: iOS 4.3 & Mac OS X 10.7 →
真歡樂。
May 11th
1 note
May 10th
6 notes
從上往下的 present modal view :D
CATransition *t = [CATransition animation]; t.type = kCATransitionMoveIn; t.subtype = kCATransitionFromBottom; [controller.view addAnimation:t forKey:@”dropdown”]; [self controller.view animated:NO];
May 10th
May 9th
1 note
“如果說命名是軟體開發的唯二重點項目之一,那麼程式設計師最好花上一定比例的時間來加深本身文字的運用能力。也就是說老闆們最好放任大家上班時間看小說,甚至寫小說,這樣就...”
– gugod’s blog 中肯。
May 8th
4 notes
Listen簡單上傳一個在 iPad 上面亂玩的東西。
May 3rd
April 2011
18 posts
被災地・仙台を慰問した頼清徳・台湾台南市長 →
「台湾政界の唐沢寿明」 喔耶。
Apr 25th