真的就是亂寫用的筆記

a page of tumbling madness: How to add a free shared PostgreSQL db to your python app running on Heroku

筆記一下

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…

2 days ago - 3
都快 2012 年了…

(via Nyancat)

都快 2012 年了…

(via Nyancat)

jonbaer:

R.I.P.

jonbaer:

R.I.P.

Input Method Kit 的架構

前兩天寫的投影片

tumblilarius lukhnos: Tim Cook, CEO of Apple, at the company memorial of Steve Jobs: But...

當初 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 him to read it, but the next day, someone at Apple replied, asking if I could send back the attachments that I “emailed Mr. Jobs.” And the issues with the fonts were eventually resolved. It’s not the famous one-liner that people loved to post online, and it’s easy for us to attribute everything that a company does to one person. Still, that is important: There are people at Apple that care.

3 months ago - 12

今天的教訓

一個 NSDictionary 裡頭,對應到某個 key 的 value 如果應該要是 NSNumber,結果卻給成 NSString,compiler 是不會幫你檢查出來的,然後就會因為 NSString 沒有 NSNumber 的一些 selector 造成 exception…在非常需要型別檢查的時候,就不應該設計成 NSDictionary,還是應該設計成一個 model object。

也就是說,NSDictionary 好危險的啊!

視障男下載A片供分享無犯意獲不起訴 | 即時新聞 | 20111019 | 蘋果日報

台北市1名59歲周姓視障男子,因使用foxy軟體下載性交、猥褻影片…被依《兒童及少年性交易防制條例》送辦。北檢發現周男是重度視障人士…平時都使用電腦都是依賴語音系統,根本無法觀看影片,當時經朋友介紹利用foxy下載音樂來聽,並未下載這些影片。

所以我們已經活在一個下載 A 片違法但是下載盜版音樂沒事的年代了。

3 months ago
http://developer.apple.com/contact/phone.php

嗯啊…

台灣用簡體中文啊…
另外,講電話有需要分簡體繁體嗎? =_=

http://developer.apple.com/contact/phone.php

嗯啊…

  • 台灣用簡體中文啊…
  • 另外,講電話有需要分簡體繁體嗎? =_=
啾咪!

啾咪!

小麥注音

最近事情一大堆,終於找到一點時間來弄小麥注音。最近做的事情大概包括:

  • 10.7 「文字編輯」軟體裡頭的垂直文字模式的支援
  • 解決漢語拼音不能輸入的問題
  • 大概解決了使用非 US 鍵盤時鍵盤配置跑掉的問題
  • 繼續來調整 Installer 的問題

要做的事情還是一堆哩。

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];