Bram Cohen 在 1999 寫的網頁惹禍?

這篇 Bittorrent Creator A Digital Pirate? 相當… 有趣 :p

在前幾天 敗訴後,軟體創作的「動機」變成很重要的一環:如果你創作這個軟體是為了非法的用途,那麼…

而有人透過 這個邪惡的網頁歷史網站發現當初 網頁的某個 page (A technological activist’s agenda) 這樣寫:

I further my goals with technology. I build systems to disseminate information, commit digital piracy, synthesize drugs, maintain untrusted contacts, purchase anonymously, and secure machines and homes. I release my code and writings freely, and publish all of my ideas early to make them unpatentable.

前幾天 在 Wired 上辯稱:(BitTorrent Whiz Extolled Piracy?)

Cohen said the agenda was written years before he started work on BitTorrent, and that it was written as a parody of other manifestos.

“I wrote that in 1999, and I didn’t even start working on BitTorrent until 2001,” Cohen said. “I find it really unpleasant that I even have to worry about it.”

至於事情到底是怎樣,其實大家心裡都有底 :p

一丘之貉

我找不到更恰當的成語了:一丘之貉。

看到的消息:Microsoft In Talks To Buy Claria,原報導在 Microsoft said to be mulling purchase of Claria。而 這家公司最有名的產品:Gator。

果然 comment 噓聲不斷:

I thought that said CHINA! (Score:5, Funny)

…and I got really scared there for a second. ;)

It could, of course, be a good thing, if they can buy the company, and use their software for something other than spyware and popups!

以及:

I thought the exact same thing, but I didn’t even get scared. The only reason I took the time to click on the comment link without even reading the blurb, much less TFA, was because I realized I read it wrong. Had it actually said “China,” I would have just passed it off and gone on with my day. And that is scary.

還有:

Or they might embed spyware that’s even more impossible to remove from your computer. You thought gator was hard to remove? Wait until he’s coded into the kernel

有興趣的自己看… *boom*

PHP Template Engine?

Roodo! Blog 開發日誌 的「樂多日誌開發使用相關技術」中使用了 這個 PHP Tempate Engine。

這讓我想到跟 聊到一篇很有名的文章:Templates and Template Engines

這篇文章簡單來說就是這樣:「他媽的你們這些人幹嘛叫我把 PHP 改得更快,你們用 Smarty 這類的 Template Engine 當然會慢啊! 本身就是一個 Template Engine,你用 Template Engine 去寫另外一個 Template Engine 當然會慢,怪我咧,blah blah…」(當然,文句沒有這麼粗俗 :p)

但你又不能直接開放 PHP function 給 user 用:因為 user 可以把 $__GLOBAL 裡面的變數倒出來慢慢看有什麼好玩的,或者是透過你的主機寄寄廣告信 *grin*

是一套直接使用 PHP function,但是做了合理的限制的 PHP Template Engine:

Savant is a powerful but lightweight object-oriented template system for PHP.

Unlike other template systems, Savant by default does not compile your templates into PHP; instead, it uses PHP itself as its template language so you don’t need to learn a new markup system.

比起 所產生的 loading 會比較小。

Update:才剛寫完就看到 上另外一個計畫 ,將 比較不常用的功能都拿掉,有興趣的人也可以看看。

Gea-Suan Lin's technical note and murmuring :)