Category Archives: Computer

Computer Technical Notes

預測你接下來要做的事情

Cell Phones Predict the Future 這篇提到了 利用先前觀察到的資料 (約九個月的資料) 預測你接下來要做的事情。

不過 的「MIT真相挖掘計畫使用手機資料來預測人們行為」這篇似乎怪怪的:

根據研究計畫主持人Nathan Eagle所說,一但蒐集了足夠的資料,有85%的準確性能預測出志願受測者的行為。

而原文 (When Cell Phones Become Oracles) 是:

Given enough data, Eagle’s algorithms were able to predict what people — especially professors and Media Lab employees — would do next and be right up to 85 percent of the time.

究竟是所有人的平均 85%,還是教授與 Media Lab 的成員高達 85%?

神秘的 DreamHost

有一個很奇怪的設計:幾乎所有的設計都是假設在 DNS 交給 代管上。

為什麼這樣說呢?因為我將 搬到 後,我不知道要將 A RR 設定到那個 IP address – 在 Control Panel 上沒有寫。

那我怎麼知道呢?我到 Shell Account 下用 ifconfig -a 列出所有的 IP address,再用 GET http://gslin.org/ -p http://specify.some.ip.address:80/ 連看看,找到正確的 IP address 以後設定上去…

而我又設定了一個測試用的 domain 要使用,本來以為同一個 account 會在同一個 IP address 上,結果 發現不是,於是又掃了一遍…

掃完以後用 Control Panel 裡的 Contact Support 去幹剿:

I own gslin.org, and I want to use myself DNS server to set “gslin.org”.

Now, I set gslin.org’s web, and control panel tells me the ssh account
and other PHP/FastCGI/… information, but I don’t know what IP
address I should specify.

結果今天就看到公告:

Important Note for Custom DNS Setups (Action Required)

Posted: Jul 25th, 2005 – 01:29:07 PM PST (1 day 3 hours ago)

If you have customized your DNS settings for any of your domains or if you maintain your own DNS outside of our servers, you must read this and take action. If you have not customized your DNS in any way or don’t know what this means, you do not need to do anything.

We will be making some significant changes to how we configure our email servers in the next couple of weeks, and it is very important that your DNS is configured correctly. The best way to know if your DNS is configured correctly is to query the DreamHost DNS servers directly. You can do that with the UNIX ‘host’ command with syntax similar to this:

host -t any example.com ns1.dreamhost.com

If you need assistance with this, please contact our support team as soon as possible.

If you are using the default DreamHost set up, you do not need to do anything. This is only
applicable to anyone who has customized their DNS configuration in a way other than how we recommend.

Happy DreamHost DNS Team

超級有效率?XD

FreeBSD 第二季報告書

看到 第二季報告書出來了:FreeBSD Status Report for 2005 Q2,這次的內容包括了 SoC (Summer of Code Project) 的情況。

另外, 打算重新改寫目前的 TCP/IP code,主要包括 SMP 時的 optimization,以及利用 CPU 的 prefetch 增加 TCP/IP 效率。

目前 估計需要 720 小時,所以他希望有人能夠捐款協助他,以他目前的生活情況需要 USD$18900,有興趣的可以參考 Fundraising – TCP & IP Routing Optimization 這個網頁。

WordPress 1.6 r2730 後的問題

我的 用 1.6,這其實是一條不歸路… (已經沒辦法 downgrade 了 XD)

前幾天升級到 r2735 後發現 write post 時 Categories 部分發生問題:

基於版號是 “1.6-ALPHA-do-not-use” (都已經跟你講不要用了),於是要 bug report 前先還是去找問題在哪,以及解決的方法… 最後找到是 r2730 產生的問題:

Date: Mon, 25 Jul 2005 06:55:25 +0800
From: Gea-Suan Lin <gslin@ccca.nctu.edu.tw>
Subject: 1.6-do-not-use, PHP warning in Categories (when write post)
To: wp-hackers@lists.automattic.com

When I upgrade to r2735 (and wp-admin/upgrade.php, of course), I found
there are some PHP warning when I write post:

http://www.flickr.com/photos/gslin/28300708/

I trace the code and found it’s because this patch:

http://trac.wordpress.org/changeset/2730#file3

I revert this function then it works fine.


* Gea-Suan Lin (public key: http://ccreader.nctu.edu.tw/~gslin/key.txt)
* If you cannot convince them, confuse them. — Harry S Truman