Mac 電腦的硬體大百科

買了三年有多的 macbook pro,突然心血來潮,想知道它到底有沒有機會安裝 Mac OS X 10.6 (Snow Leopard),這樣就能拿來開發 iPad 上的 app 了。 well…… 根據這個網頁:Mac Specs By Machine Model/Model ID - Macs By Identifier ,看來是可以安裝吶~ 不過 spec 裏頭有段 comment 如下: ...

December 13, 2010 · 1 分鐘 · Drake Guan

不一樣的操作界面:iPad Photo

iPad 很棒,很有趣,很酷,尤其是它那 9 吋的螢幕,不會大到讓人拿不動,也不至於小到只剩下 3 吋。搭配上 1024x768 的解析度,看起來還挺順眼的。 一切看似美好,但每次有人問“iPad 也,它用起來怎麼樣呀?“我只能吱吱唔唔回一下,完全沒什麼建設性,還好 Apple 沒有付錢給我作廣告,不然應該一下子就被開除了。 ...

December 7, 2010 · 1 分鐘 · Drake Guan

近況:製作人

近況,擔任一個合作專案的製作人,為期一個多月,從無到有(start from scratch),像場“體驗營“。 嗯……來個每個人都做得很有成就感的製作人好了 :)

November 1, 2010 · 1 分鐘 · Drake Guan

投影機與攝影機的合作無間:大樓投影

最近我們很熱衷於看一些很有意思的大樓投影: 像這個由 Urbanscreen 操刀的結果: BMW 的這隻超大型戶外廣告就更可愛有趣多了: 看起來很有意思,很酷,也有機會很有話題性。感覺應該也很容易吧? Nope! 其實一點都不容易,如果你想要做出很好的效果與品質出來的話。先撇開比較難分析的內容製作這一塊來看,光是要處理好投影設備的設定就是一件非常困難的事。用膝蓋來想的話,整個大樓的表面材質不像投影布幕是設計來給投影專用的,有關畫面的亮度與顏色的情況就不一樣;整個大樓的表面有窗有門也有柱子,它不是一張平的畫布;這麼大的投影,就現階段的投影硬體來說,有可能需要多台投影機做拼接;戶外投影,週遭環境的亮度不好控制,容易有不穩定的光害發生;…… ...

October 13, 2010 · 2 分鐘 · Drake Guan

測測你自己 -- sum of squares

逛了一下約耳的網站,看到這一篇測測你自己 ,裏頭的題目是這樣的: (MIT-Scheme) 使用以下函數 (define (accumulate combiner null-value l) (if (null? l) null-value (combiner (car l) (accumulate combiner null-value (cdr l))))) 實作平方和, 就是計算一串數字平方的加總,例如 (sum-of-squares '(1 2 3 4 5)) 應為55. ...

October 5, 2010 · 1 分鐘 · Drake Guan

The Definition of Functional Programming Language

目前我覺得非常中肯且值得特別一一去了解,並且在 coding 時,時時提醒自己的 Functional Programming Paradigm ,如下: First-class function Higher-order function Lexical closure Pattern matching Single assignment Lazy evaluation Garbage collection Type inference Tail recursion List comprehension Monad 其中 Python 有提供的,有第 1, 2, 3 (部分?), 6, 7, 8 (部分?), 10, 11 (部分 ?),就我微薄的知識所了解後的,可能會有一些出入。 ...

October 4, 2010 · 1 分鐘 · Drake Guan

用 Python 寫一個精簡的 Lisp Interpreter

Peter Norvig 在他的個人網站上頭,寫了一篇 (How to Write a (Lisp) Interpreter (in Python)) (註), 他寫了約莫 100 行的 python script 來小小模擬一個簡化版的 Lisp Interpreter,看了不禁拍案叫絕。 下頭這個表格截取自他的網頁,指出他這 100 行的程式碼,所實作的 syntax 只有 9 個(註)。 var: variable reference A symbol is interpreted as a variable name; its value is the variable’s value. Example: x number: constant literal A number evaluates to itself. Examples: 12 or -3.45e+6 (quote exp): quotation Return the exp literally; do not evaluate it. Example: (quote (a b c)) ⇒ (a b c) (if test conseq alt): conditional Evaluate test; if true, evaluate and return conseq; otherwise evaluate and return alt. Example: (if (< 10 20) (+ 1 1) (+ 3 3)) ⇒ 2 (set! var exp): assignment Evaluate exp and assign that value to var, which must have been previously defined (with a define or as a parameter to an enclosing procedure). Example: (set! x2 (* x x)) (define var exp): definition Define a new variable in the innermost environment and give it the value of evaluating the expression exp. Examples: (define r 3) or (define square (lambda (x) (* x x))). (lambda (var…) exp): procedure Create a procedure with parameter(s) named var… and the expression as the body. Example: (lambda (r) (* 3.141592653 (* r r))) (begin exp…): sequencing Evaluate each of the expressions in left-to-right order, and return the final value. Example: (begin (set! x 1) (set! x (+ x 1)) (* x 2)) ⇒ 4 (proc exp…): procedure call If proc is anything other than one of the symbols if, set!, define, lambda, begin, or quote then it is treated as a procedure. It is evaluated using the same rules defined here. All the expressions are evaluated as well, and then the procedure is called with the list of expressions as arguments. Example: (square 12) ⇒ 144 ...

October 3, 2010 · 3 分鐘 · Drake Guan

Lisp 初體驗:Grammar Induction

我們這個地球上的人實在太多了,加上上天賦與我們的大腦又過於活躍,以致於時時可以聽聞到,又有什麼人做出了驚人之舉。 幾個禮拜前,無意間得知一個網頁:Random CG Paper Generator 。每 reload 這個頁面一次,就會亂數產生一篇圖學論文的標題出來(以假亂真似地)。也許,苦於找不到研究方向的研究生,可以來這個頁面 reload, re-roll your brain,看看有沒有什麼意外的研究靈感可以借用的。 ...

September 19, 2010 · 5 分鐘 · Drake Guan