Gea-Suan Lin's BLOG

Saturday, December 31, 2005

FreeBSD 6.0 與 jail

因為要惡搞一些東西,不方便在現有的系統上跑,於是就跑去弄個 jail 出來用。比起 FreeBSD 4.x 需要自己寫一些 shell script 丟到 /usr/local/etc/rc.d/ 下,6.0 下的 jail 已經整合到系統內了,所以不太需要在自己寫 shell script。

而且 6.x 的 jail 也修掉不少 bug,像是 dmesg 偶而會出不來 (喂喂),reboot 不會理你 (喂喂)… 另外 df 也只會看到 /,不會看到其他的 slice 了。

要生出 jail 的環境,先是:

make buildworld make installworld DESTDIR=/da1/jail0 make distribution DESTDIR=/da1/jail0

然後改 /da1/jail0/etc/master.passwd,把自己加進去,用 pwd_mkdb -d /da1/jail0/etc /da1/jail0/etc/master.passwd 重新編過一次,記得把家目錄開好 :p

然後是 /etc/rc.conf

ifconfig_fxp1_alias0="inet 192.168.113.10/24" jail_enable="YES" jail_list="testbase" jail_testbase_devfs_enable="YES" jail_testbase_devfs_ruleset="devfsrules_jail" jail_testbase_exec="/bin/sh /etc/rc" jail_testbase_hostname="testbase" jail_testbase_ip="192.168.113.10" jail_testbase_rootdir="/da1/jail0" pf_enable="YES"

接下來弄 pf 的設定,所以去改 /etc/pf.conf

nat on fxp0 from 192.168.113.0/24 to any -> (fxp0) nat on fxp1 from 192.168.113.0/24 to any -> (fxp0)

接下來把 jail 裡面的東西設一設,像是 resolv.conf

最後用系統給的 jail 就可以啟動了:

/etc/rc.d/jail start

第一次跑起來應該會卡在 ssh 產生金鑰的地方,所以就去喝個飲料之類的 :p (也可以自己先在 host 產生好,不過我這邊懶得講了,請自己去 /etc/rc.d/sshd 翻,需要三組金鑰)

弄完以後就可以 ssh 進去玩了,如果要跟 host 共用 ports directory,可以用 mount_nullfs 以 read-only 掛上來 (security issue),然後修改 /etc/make.conf,把本來會寫入的部分都改到 /tmp 下:

DISTDIRWRKDIRPREFIX

這樣應該就沒什麼大問題了 :D

K2

改用

在 Template 裡面包一個 Template,這讓我想到 被幹剿很慢的文章 XD (Templating, the correct way)

Friday, December 30, 2005

ASCII 版 Firefox Logo

看到 ASCII 版 Firefox Logo:FireFox logo in ASCII,原 link 在 Ash’s Corner : DigiFox!

應該是用程式轉的 :p

Tuesday, December 27, 2005

中國移動

還是跟以前一樣機車:我用中國移動啦~

不過有機會聽他機車會比較有趣 XD

WordPress 2.0 出版!

ryan 剛剛在 WordPress Repository 上 tag 了:Changeset 3363。而 Matt 也正在幫 換機器:

反監控 E-mail

前陣子美國的新聞媒體報導了 Bush 政府要求 NSA 大規模監控了所有的通訊資料。

剛剛在 Is the NSA Reading Your E-Mail? 這篇裡面看到了 Richard M Smith 提供反監控的想法:在信裡面提到一個別人不會 access 到的網頁,看 server log 是不是有被存取到。

(然後我又想到 了…)

Monday, December 26, 2005

vim 與 cwTeX 配合

F8 比較慢 (cwtex + latex + latex + dvips + ps2pdf),F9 比較快 (cwtex + pdflatex + pdflatex)。跑兩次 latex 的目的在 的 manual 裡面有提到原因。

這是 vimrc 的部分:

" TeX function MakeTeX()     let textfilename     execute "silent !cwtex " . textfilename     execute "silent !pdflatex " . textfilename     execute "silent !pdflatex " . textfilename endfunction  function MakeTeX2()     let textfilename     execute "silent !cwtex " . textfilename     execute "silent !latex " . textfilename     execute "silent !latex " . textfilename     execute "silent !dvips " . textfilename     execute "silent !ps2pdf " . textfilename . ".ps" endfunction  function LanuchPDF()     let textfilename     execute "silent !start C:\\Program\ Files\\Foxit\ Reader\\Foxit\ Reader.exe " . textfilename . ".pdf" endfunction  au BufNewFile,BufRead *.ctx setf tex map <F8> :call MakeTeX2()<CR>:call LanuchPDF()<CR> map <F9> :call MakeTeX()<CR>:call LanuchPDF()<CR>

Firefox 1.5 Memory Leak

依照 sothat 的說法設定 browser.cache.memory.capacity 之後還是會炸,而且居然還超過我設定的上限… @_@

Google 對 XSS 的應對

自從 提到 Javascript 的邪惡之處後 (尤其是 ,Cross Site Scripting),我跟 Blake 學長就把 給裝起來了… 另外一方面,看到一些東西就比較常去思考要怎麼惡搞 :p

在防禦 XSS 這方面,就可以看出 有想到不少細節在做:

  • Blogger.com (Control Panel) 與 Blogspot.com (Template)。
  • Google 的頁庫存檔會使用 IP address 而不是用 “www.google.com”。

很明顯的,無名小站自訂 CSS 的地方…

無名小站沒禮貌的 Bot

看 awstats 統計記錄的時候發現從 mail.wretch.cc 來的連線量超大,而且超頻繁,去翻 log 發現原來是個沒禮貌的 bot:(列出最後幾筆)

203.133.33.2 - - [25/Dec/2005:00:13:50 -0800] “GET /feed/ HTTP/1.0″ 200 21656 “-” “wcpan fetcher”
203.133.33.2 - - [25/Dec/2005:00:14:35 -0800] “GET /feed/ HTTP/1.0″ 200 21656 “-” “wcpan fetcher”
203.133.33.2 - - [25/Dec/2005:00:18:57 -0800] “GET /feed/ HTTP/1.0″ 200 21656 “-” “wcpan fetcher”
203.133.33.2 - - [25/Dec/2005:00:19:42 -0800] “GET /feed/ HTTP/1.0″ 200 21656 “-” “wcpan fetcher”
203.133.33.2 - - [25/Dec/2005:00:24:24 -0800] “GET /feed/ HTTP/1.0″ 200 21656 “-” “wcpan fetcher”

不支援 Last-Modified 浪費我的頻寬,然後次數又超頻繁,用 .htaccess 擋掉:

#
order allow,deny
deny from 203.133.33.
allow from all

Sunday, December 25, 2005

43rd Mersenne Prime

前陣子就看到發現第四十三個 的消息,剛剛在 看到第四十三個 驗證完畢,確定這個數是質數的消息:World’s Largest Prime Number Found and Verified.

這個數字是 230402457-1,9152052 位數,以十進位表示這個數字則需要 9MB 的空間…

Saturday, December 24, 2005

Bloglines 的 Apache Internal Error

難得看到 鳥掉,記錄一下:

OpenOffice.org 2.0.1 RC

看到 OpenOffice.org 2.0.1 RC 出版了:Update to OpenOffice 2 Released,在 2.0.1 Release Candidate - Release Notes 有一份表格,告訴你 OO.o 2.0.1 RC 與 2.0 的差別。

雖然我自己的電腦裡面只有灌 OpenOffice 2.0,不過我大多數的情況下都只是拿來開 .doc 檔與 .ppt 檔,在寫文件的時候大多還是用 .txt,以後可能會儘量用 .tex 寫 (最近在玩 ),所以我大概不會去更新 OO.o 2.0.1 RC,也許等 2.1 的時候再說 :p

Opera 將被 Microsoft 收購?

這幾天不少人在討論的消息 :p 不過 說:(Microsoft buying Opera?)

I have no freaking idea either way, but didn’t the Riya deal teach us anything? That rumors are just that - at least until the deal is signed? All the key players are on vacation right now, though, so I doubt something is up.

也就是說,最少要等到星期一假期結束,才有可能會看到新的消息 :)

Thursday, December 22, 2005

土地銀行

Gosh… (圖片註解放在 ,所以點圖片進去看就可以了)

Wednesday, December 21, 2005

StarTrek.com

看到的:StarTrek.com Going Offline? Could this be the end?

自從 過世,水準就愈來愈…

Yahoo! 與 Google 的戰爭

上報導某些人連上 Yahoo! 首頁後,會出現上面那樣的訊息。不怎麼讓人認同的方法 :p

Tuesday, December 20, 2005

Suprnova 消失的故事

上轉錄了 的系統管理者 描述 從網路上消失的故事:

事情的發生是從 2004 年十一月的時候開始, 接到 ISP 的電話,通知他警方搜查了他的 server。在同年十二月初的時候,路透社報導了 ,而其他的報紙也跟著報導, 覺得不太對勁,決定暫時關閉 Suprnova.org。

在關閉 Suprnova.org 一個月後的某個早晨,警方拿著搜索票造訪 的家裡,帶走了兩台電腦以及一堆資料。

再一個月後 (原文是 About a month or so later), 被警方傳喚,警方做了一份表格,包括了那兩台電腦裡的資料以及從 ISP 那邊取得的資料。

在一個月後,警方再度傳喚 與他的律師決定不回答任何的問題。警方告知 他們會將這些資料交給檢察官繼續執行。 的律師告訴 大概會在暑假後收到 通知。

在今年的 10/18, 收到從檢察官那寄來的通知了:檢方決定不起訴。而 也拿回原來的那兩台電腦以及所有的資料。

Bloglines 維修畫面

IRC 的某 channel 上:

08:42 <@> *嚇*
08:42 <@> 水管工變虎克船長了 !!

連上去看差點把茶噴到螢幕上:

愈修愈機車了 XD

Monday, December 19, 2005

del.icio.us 維修中

維修,結果我美女圖的網頁都沒辦法丟上 … (純脆抱怨)

來整理相簿很方便的,尤其是在 bookmark 看過的相簿,丟進去的時候 會告訴你以前已經 bookmark 過了… 另外還可以照學校整理 :p

SETI@home Classic

12/15 後, Classic 將收起來,全面改用 的資源計算,不過 BOINC 的安裝流程比起原來的 Classic 麻煩多了,勢必會影響到參與的人數…

不過 的標題都下的很爛:SETI@Home Project EndsSETI@Home Project Ends

三菱的可擦拭中性筆

剛剛在 看到的,買了一支回來試看看,寫起來很像水性筆,查了一下資料,果然是某種水性筆:各式文具的歷史, 可擦拭原子筆(Erasable Pen)的歷史簡述請問擦擦筆~

在三菱的官方網站上也有這項產品的資訊:ユニボール シグノ イレイサブル細字ユニボール シグノ イレイサブル

不過書寫的感覺跟 .5 油性筆 (筆心的編號是 UMR-5) 比起來差多了,大概不會再買第二支吧 :p

Sunday, December 18, 2005

Jedi

剛剛才看到的:貨真價實的絕地武士,在台灣 XD

把原來那篇新聞找出來:南投奇人! 魏全材雙手可通電 燈管不接電也發亮

Wikipedia 將引入 Semi-Protection

在經過某些鳥蛋事情後 (A false Wikipedia ‘biography’), 將引入 Semi-Protection 來保護某些頁面:Wikipedia Adopting Semi-Protection of Pages

關於這項政策,完整的說明在 Wikipedia:Semi-protection policy 這頁。簡單來說,被 Semi-Protection 的頁面可以設定「未註冊及最新註冊的 x% 使用者」無法修改。

DreamHost 的 php.cgi

這幾天我收到 DreamHost 寄來的信,說我使用的 CPU resource 超過合理使用的範圍:(有點長,所以我只挑出了重要的部分)

Unfortunately it appears that your site is using more than your
fair share of system resources on your shared hosting machine
pizarro. Our system has flagged your account because it is using a large number
of CPU minutes per day on pizarro. We need you to trim down your
resource consumption considerably. Should you ignore this or subsequent warnings your
account may be moved to an evaluation server which could cause downtime.

Specifically gslinn’s CPU minute usage for today is 73.01.

我到 shell account 上看了紀錄,發現都是 php.cgi 在吃 CPU resource:

Process CPU seconds user machine count average
php.cgi 3374.4700 86.183% 14.060% 13544 0.249
awstats.pl 534.4000 13.648% 2.227% 498 1.073
sh 4.7500 0.121% 0.020% 492 0.010
tcsh 1.1100 0.028% 0.005% 14 0.079
vim 0.5200 0.013% 0.002% 10 0.052
sshd 0.1100 0.003% 0.000% 4 0.028
cat 0.0300 0.001% 0.000% 11 0.003
ls 0.0300 0.001% 0.000% 8 0.004
sendmail 0.0200 0.001% 0.000% 1 0.020
w 0.0200 0.001% 0.000% 3 0.007
postdrop 0.0100 0.000% 0.000% 1 0.010
----------------------------------------------------------------------
Total: 3915.4700 100.000% 16.314% 14586
Average per day: 3915.4700 1 days
CPU percentage assumes 24000 cpu seconds per day total.

這讓我哭笑不得 :p 也許還是跑 mod_php4 好了,這樣 CPU resource 就不會算在我頭上了?XD

PS:在 What are CPU minutes? 這頁有一堆人這幾天在幹剿 XD 大概是 DreamHost 這幾天升級 php 升到某個 resource 吃比較兇的部分造成的?

Saturday, December 17, 2005

Blog Services

上看到的:Blog Services Outgrow Their Data Centers

Blog 帶動了 Spam 的成長 (包括 Comment Spam、Trackback Spam),所以 要擴增。但 自從被 買下來以後就常常水管工 (這個時間點實在太 XD 了),跟 Blog 成長沒有關係啊 :p

Tuesday, December 13, 2005

MovableType on Yahoo! Web Hosting

開始提供 Movable Type Hosting 服務了:MovableType on Yahoo! Web Hosting

Monday, December 12, 2005

FreeBSD 6.0 MySQL Performance

I use databases/mysql50-{client,server} and use benchmarks/super-smack to test. There are 3*2*2*2

  • Compile options: none, WITH_PROC_SCOPE_PTH=yes, WITH_LINUXTHREADS=yes
  • /etc/libmap.conf: none (libpthread), libthr
  • kern.timecounter.choice: ACPI-fast, TSC
  • kernel: ULE+PREEMPTION, ULE

These benchmarking were tested on my laptop (IBM x31 2672-IQV, Pentium-M 1.5G with 512MB RAM), and powerd was disabled. Detail informations (dmesg, sysctl, and kernel config file) will post later.

The commands are:

for i in 1 2 3 4 5; do super-smack select-key.smack 10 1000 | grep select_index; done
for i in 1 2 3 4 5; do super-smack update-select.smack 10 1000 | grep select_index; done

mysql-linuxthreads-libpthread-acpifast-ule+pre.txt

 select_index    20000   0       0       14097.47 select_index    20000   0       0       13741.43 select_index    20000   1       0       13704.01 select_index    20000   0       0       13626.05 select_index    20000   0       0       13769.32 select_index    10000   2       0       1891.63 select_index    10000   2       0       1758.65 select_index    10000   2       0       1836.00 select_index    10000   4       0       2058.71 select_index    10000   14      0       2050.05 

mysql-linuxthreads-libpthread-acpifast-ule.txt

 select_index    20000   1       0       12478.07 select_index    20000   0       0       13340.34 select_index    20000   1       0       13402.94 select_index    20000   0       0       13427.98 select_index    20000   0       0       13516.95 select_index    10000   2       0       3005.60 select_index    10000   2       0       3286.45 select_index    10000   2       0       3289.58 select_index    10000   3       0       3300.75 select_index    10000   3       0       3270.95 

mysql-linuxthreads-libpthread-tsc-ule+pre.txt

 select_index    20000   1       0       13638.09 select_index    20000   1       0       15204.89 select_index    20000   0       0       15126.16 select_index    20000   1       0       15199.22 select_index    20000   1       0       15111.09 select_index    10000   2       0       2079.97 select_index    10000   2       0       1914.26 select_index    10000   2       0       2154.83 select_index    10000   2       0       2089.02 select_index    10000   3       0       2151.76 

mysql-linuxthreads-libpthread-tsc-ule.txt

 select_index    20000   1       0       13799.12 select_index    20000   0       0       15007.75 select_index    20000   1       0       15016.11 select_index    20000   0       0       15021.71 select_index    20000   1       0       15034.78 select_index    10000   1       0       3561.01 select_index    10000   1       0       3554.91 select_index    10000   1       0       3554.55 select_index    10000   1       0       3563.48 select_index    10000   2       0       3521.84 

mysql-linuxthreads-libthr-acpifast-ule+pre.txt

 select_index    20000   0       0       12332.69 select_index    20000   0       0       13531.45 select_index    20000   1       0       13578.15 select_index    20000   0       0       13571.15 select_index    20000   1       0       13625.20 select_index    10000   2       0       1571.96 select_index    10000   2       0       2105.13 select_index    10000   3       0       2080.75 select_index    10000   3       0       2041.60 select_index    10000   3       0       2075.76 

mysql-linuxthreads-libthr-acpifast-ule.txt

 select_index    20000   1       0       12475.24 select_index    20000   1       0       13450.59 select_index    20000   1       0       13417.97 select_index    20000   1       0       13412.57 select_index    20000   2       0       13383.80 select_index    10000   2       0       3332.96 select_index    10000   2       0       3320.67 select_index    10000   1       0       3038.21 select_index    10000   2       0       3313.98 select_index    10000   1       0       3306.03 

mysql-linuxthreads-libthr-tsc-ule+pre.txt

 select_index    20000   0       0       13663.00 select_index    20000   0       0       15213.64 select_index    20000   1       0       15042.29 select_index    20000   1       0       15174.39 select_index    20000   1       0       15243.04 select_index    10000   32      0       1774.45 select_index    10000   2       0       2226.37 select_index    10000   1       0       2190.76 select_index    10000   2       0       1863.09 select_index    10000   3       0       2109.35 

mysql-linuxthreads-libthr-tsc-ule.txt

 select_index    20000   0       0       13818.04 select_index    20000   1       0       15044.14 select_index    20000   1       0       14952.98 select_index    20000   1       0       14997.97 select_index    20000   1       0       14994.28 select_index    10000   1       0       3559.50 select_index    10000   2       0       3555.00 select_index    10000   1       0       3551.69 select_index    10000   1       0       3544.28 select_index    10000   1       0       3558.09 

mysql-none-libpthread-acpifast-ule+pre.txt

 select_index    20000   1       0       12365.81 select_index    20000   0       0       13426.82 select_index    20000   0       0       13431.42 select_index    20000   1       0       13524.88 select_index    20000   1       0       13461.60 select_index    10000   3       0       2174.06 select_index    10000   1       0       2203.14 select_index    10000   6       0       1965.83 select_index    10000   2       0       1750.57 select_index    10000   2       0       2250.18 

mysql-none-libpthread-acpifast-ule.txt

 select_index    20000   1       0       12489.77 select_index    20000   1       0       13491.79 select_index    20000   0       0       13525.43 select_index    20000   0       0       13523.64 select_index    20000   1       0       13431.96 select_index    10000   2       0       3081.10 select_index    10000   1       0       3080.20 select_index    10000   3       0       3090.05 select_index    10000   1       0       3098.17 select_index    10000   2       0       3084.23 

mysql-none-libpthread-tsc-ule+pre.txt

 select_index    20000   1       0       13352.18 select_index    20000   1       0       14704.85 select_index    20000   1       0       14608.26 select_index    20000   1       0       14798.53 select_index    20000   0       0       14689.70 select_index    10000   0       0       2142.89 select_index    10000   1       0       2234.18 select_index    10000   1       0       2179.86 select_index    10000   2       0       2170.27 select_index    10000   1       0       2265.08 

mysql-none-libpthread-tsc-ule.txt

 select_index    20000   1       0       13656.62 select_index    20000   1       0       14898.67 select_index    20000   1       0       14752.02 select_index    20000   2       0       14852.14 select_index    20000   1       0       14837.82 select_index    10000   1       0       3007.47 select_index    10000   2       0       3229.50 select_index    10000   2       0       3224.31 select_index    10000   1       0       3231.67 select_index    10000   3       0       3227.73 

mysql-none-libthr-acpifast-ule+pre.txt

 select_index    20000   1       0       13554.22 select_index    20000   0       0       14843.70 select_index    20000   1       0       14866.88 select_index    20000   0       0       14887.39 select_index    20000   1       0       14928.93 select_index    10000   1       0       1629.05 select_index    10000   2       0       2236.91 select_index    10000   15      0       2309.37 select_index    10000   2       0       2165.72 select_index    10000   27      0       2159.57 

mysql-none-libthr-acpifast-ule.txt

 select_index    20000   1       0       13658.64 select_index    20000   1       0       14971.77 select_index    20000   1       0       14956.40 select_index    20000   0       0       14981.85 select_index    20000   1       0       14999.37 select_index    10000   2       0       3457.10 select_index    10000   2       0       3471.44 select_index    10000   1       0       3461.68 select_index    10000   1       0       3467.51 select_index    10000   1       0       3464.31 

mysql-none-libthr-tsc-ule+pre.txt

 select_index    20000   2       0       14777.00 select_index    20000   0       0       16435.89 select_index    20000   1       0       16594.25 select_index    20000   1       0       16396.86 select_index    20000   1       0       16459.05 select_index    10000   1       0       2231.66 select_index    10000   1       0       2167.76 select_index    10000   1       0       2196.55 select_index    10000   1       0       2206.77 select_index    10000   2       0       2339.63 

mysql-none-libthr-tsc-ule.txt

 select_index    20000   0       0       15248.38 select_index    20000   1       0       16618.56 select_index    20000   1       0       16648.67 select_index    20000   0       0       16538.45 select_index    20000   1       0       16674.13 select_index    10000   1       0       3666.43 select_index    10000   3       0       3674.07 select_index    10000   2       0       3686.61 select_index    10000   1       0       3677.49 select_index    10000   2       0       3675.10 

mysql-pth-libpthread-acpifast-ule+pre.txt

 select_index    20000   0       0       9851.83 select_index    20000   1       0       10051.59 select_index    20000   1       0       10078.66 select_index    20000   1       0       10004.09 select_index    20000   1       0       10079.65 select_index    10000   1       0       1666.05 select_index    10000   2       0       1984.58 select_index    10000   2       0       1898.87 select_index    10000   2       0       1966.90 select_index    10000   4       1       1874.67 

mysql-pth-libpthread-acpifast-ule.txt

 select_index    20000   1       0       9485.41 select_index    20000   1       0       10073.52 select_index    20000   1       0       10113.77 select_index    20000   1       0       10104.63 select_index    20000   2       0       10107.14 select_index    10000   2       0       2568.85 select_index    10000   1       0       2579.42 select_index    10000   2       0       2564.46 select_index    10000   1       0       2561.09 select_index    10000   1       0       2443.52 

mysql-pth-libpthread-tsc-ule+pre.txt

 select_index    20000   0       0       11129.51 select_index    20000   1       0       12125.62 select_index    20000   1       0       12108.58 select_index    20000   1       0       12148.99 select_index    20000   1       0       12142.83 select_index    10000   1       0       1769.50 select_index    10000   2       0       1961.15 select_index    10000   3       0       2132.04 select_index    10000   2       0       2175.26 select_index    10000   1       0       1964.11 

mysql-pth-libpthread-tsc-ule.txt

 select_index    20000   0       0       11282.64 select_index    20000   1       0       12221.35 select_index    20000   1       0       12176.64 select_index    20000   0       0       12207.59 select_index    20000   1       0       12196.39 select_index    10000   2       0       2850.48 select_index    10000   2       0       2847.16 select_index    10000   3       1       2839.71 select_index    10000   2       0       2846.03 select_index    10000   2       0       2854.38 

mysql-pth-libthr-acpifast-ule+pre.txt

 select_index    20000   1       0       13539.93 select_index    20000   1       0       14858.06 select_index    20000   1       0       15031.06 select_index    20000   0       0       14944.30 select_index    20000   1       0       14939.87 select_index    10000   1       0       1803.10 select_index    10000   1       0       2196.92 select_index    10000   1       0       2315.69 select_index    10000   1       0       2304.67 select_index    10000   6       0       2309.06 

mysql-pth-libthr-acpifast-ule.txt

 select_index    20000   1       0       13754.94 select_index    20000   1       0       14948.38 select_index    20000   1       0       15003.24 select_index    20000   1       0       14971.17 select_index    20000   0       0       14886.27 select_index    10000   1       0       3420.30 select_index    10000   1       0       3270.71 select_index    10000   2       0       3416.76 select_index    10000   2       0       3443.20 select_index    10000   2       0       3423.75 

mysql-pth-libthr-tsc-ule+pre.txt

 select_index    20000   0       0       14755.44 select_index    20000   0       0       16653.00 select_index    20000   1       0       16646.08 select_index    20000   1       0       16471.75 select_index    20000   1       0       16591.78 select_index    10000   1       0       2181.36 select_index    10000   1       0       2195.38 select_index    10000   1       0       2153.20 select_index    10000   1       0       2006.63 select_index    10000   2       0       2444.98 

mysql-pth-libthr-tsc-ule.txt

 select_index    20000   0       0       15189.03 select_index    20000   0       0       16818.74 select_index    20000   0       0       16624.18 select_index    20000   1       0       16792.51 select_index    20000   1       0       16731.49 select_index    10000   1       0       3652.88 select_index    10000   1       0       3685.77 select_index    10000   2       0       3670.86 select_index    10000   1       0       3665.19 select_index    10000   1       0       2843.89 

無名相簿的備份程式

剛剛修正了無名相簿的備份程式 (很久前的 Project:http://hasname.com/backup/album/wretch/),其實只是修個兩行而已:Fix wretch album backup

Sunday, December 11, 2005

super-smack

想要測試 Performance 的時候發現 Ports 裡面居然沒有 ,於是就順手做進去了:[NEW PORT] benchmarks/super-smack: A benchmarking, stress testing, and load generation tool for Databases

一方面是測試 要怎麼用,另外一方面也是熟悉一下怎麼做新的 Port (好久沒做過了)。

Saturday, December 10, 2005

Yahoo! 買下 del.icio.us

快三點半的時候 在 BBS 上丟 msg 過來:

 1594 12/10 03:24 收到           !!!!!!  1595 12/10 03:24 收到            買了 !

如標題所說的:()

We’re proud to announce that del.icio.us has joined the Yahoo! family.

不過更兇暴的是:

(We’re also excited to be joining our fraternal twin Flickr!)

(開始幻想 + 的結合…)

Friday, December 09, 2005

FreeBSD 6.0 MySQL Performance Tuning

這是 目前的討論:new benchmarks. WAS: FreeBSD MySQL still WAY slower than Linux

測試的環境是在本機上跑,主要的測試對象是 Thread Library,包括了:

  • libpthread (Default)
  • libpthread + LIBPTHREAD_PROCESS_SCOPE=yes
  • libthr
  • linuxthreads
  • linuxthreads (query cache disable)
  • libthr (query cache disable)
  • libthr (TCP socket)
  • linuxthreads (TCP socket)

這幾個測試結果沒有什麼意外,速度最快的是 libthr (即 1:1 Threading)。

另外因為上面的測試環境是打開 HTT 的情況下測出來的,所以有人建議關掉 HTT,而作者也再跑了一次,發現除了 libthr 快了一點點 (大約 2%) 以外,其他的都沒差。

再來是有人提出 上的 gettimeofday() 非常花資源 (這點在 提供的 mysql ktrace log 裡面有說到),所以有人有建議修改 kern.timecounter.hardware (從 ACPI-fast 改成 TSC),不過作者好像還沒看到 :p

再來是 kernel config file 裡面好像沒有用 SCHED_ULE

這個討論串還在跑,所以還可以看一看長輩們到底有什麼花樣可以玩…

Thursday, December 08, 2005

Firefox Security Issue

看到的:Kill Firefox 1.5 with remote exploit,原文在 Firefox 1.5 buffer overflow

依照原文的說法,這次的 security issue 應該足以讓有心人士執行程式了。

Tuesday, December 06, 2005

Gmail 所使用的防毒軟體

雖然 不願意透露 是使用哪套防毒軟體,有人還是利用邪惡的方法 (把病毒丟進去看看有哪些被抓出來,然後再跟已知軟體的列表比較) 找出來了, 使用 Which Software Scans Gmail’s Attachments?Gmail AntiVirus

測試的報告在 這裡這裡,與 Sophos 完全符合。

我本來以為 會自己搞 (因為我覺得 的量太大,傳統的作法可能不適合?),沒想到還是採用現有的 pattern 掃瞄 :)

Monday, December 05, 2005

周杰倫「麥芽糖」前奏的後續發展

這是 的網友寄給我的:(我不確定他願不願意公開名字,所以就暫時不寫出來了)

大意是:

我們深深感謝您的好意
現在正要進行相關的調查和對應手段

瘋狂 spam 的 msi-team 與 qstr

剛剛突然興起,想看看還有沒有其他人被 msi-team 與 qstr 這兩個詐騙集團打到,果然馬上就找到了:

其實要找到幹剿文也不好找,因為用 找都是 Spam XD

另外我一直有種感覺,msi-team 與 qstr 這兩個團體背後是同一組人,因為手法、技術都很像。不知道什麼時候會被揭穿…

Sunday, December 04, 2005

台北 101 可能造成更多的地震

上看到轉錄自 報導 可能引發地震的新聞:World’s Tallest Building Causing Earthquakes?Has tallest tower caused more quakes?

然後回頭過來找中文的報導 (你知道的,這幾天的新聞不能看,所以不要怪我都沒有看新聞啊 Q_Q):

Google Search Blocked by DMCA (KaZaA)

上看到 Google Blocking Search Results Because of DMCA,依照他給的 link 搜尋,果然在最下面這樣寫:

In response to a complaint we received under the US Digital Millennium Copyright Act, we have removed 3 result(s) from this page. If you wish, you may read the DMCA complaint that caused the removal(s) at ChillingEffects.org.

在後面的這份文件裡 (KaZaA Owner Complains to Google (#5)) 可以看到 要求 依照 DMCA 移除其他非官方 KaZzA site 的資訊:尤其是把 Spyware 幹掉的 :p

Sony 推廣 PSP 所使用的惡行

看到 推廣 PSP 的惡行惡狀: (或是 所委託的廣告公司) 僱用畫家在城市裡面到處亂塗鴉被發現 (Sony Caught Using “Fake” Graffiti to Promote PSP)。

原文在 Sony’s Fony Graffiti 這篇,你可以看到有其他的畫家直接在上面惡搞 XD

這家公司的形象愈來愈…

Saturday, December 03, 2005

Sony Rootkit 事件

繼續在追蹤 Rootkit 的事情:Sony Rootkit Roundup IV

將 Laptop 換成 FreeBSD 6

這幾天把 Laptop (IBM X31 2672-IQV) 換成 6.0,一方面當然是為了 SA 作業的需要,另外一方面是想要知道在 X-Window 下中文的部份到底可以出現多少東西 :p

這幾天這樣玩下來發現很多東西結果比我料想中的好很多,在不太看 Document 的情況下 (這是壞習慣,請不要學了以後還一直跑到 386BSD 或是 #bsdchat 上面幹勦說某某東西不能用,結果只因為你沒看文件 XD) 到 /usr/ports/chinese/ 下猛裝 (尤其是字型,幾乎全裝上去了),然後把 locale 設定好,幾乎就都能用了 :p

與 xcin2.5 + rxvt-devel (我知道會有人推薦 gcin,不過我還沒測試過) 一開始有些問題,後來找了一下發現 早就寫過了:xcin root mode with icewm,照著兔子講的設定方式設定後幾乎沒什麼問題 (其實好幾年前就蠻穩定的了),用 kc15f 與 kc8×15 也沒有像以前會有殘影 (15 !

再來是前幾天剛出的 1.5,在 locale 正確的情況下裝起來就可以看中文、打中文 (輸入法的部份使用標準的 XIM),比起很久以前的 Mozilla Suite,呃… 我記得當初好多 hack 在跑 :p 另外預設的字型很棒,直接吃 Firefly 版文鼎字。

其他的東西,大致上都是在系計中討論解決 (感謝),或是在我的 BBS 看板上問,都會有長輩 () 伸出援手,所以一切順暢無比 :p

MySQL 5.1

稍微介紹了 MySQL 5.1 Appears: Partitioning, Dynamic Plugins, and more…

等 Ports 有了以後找台來測試看看…

法國版 DMCA - DADVSI

戰場又即將在法國爆發。

的網站這樣寫:

During the night of 22nd to 23rd December 2005, while everybody is preparing for Christmas, the French Parliament will rule about the “DADVSI” law. This vote will be made with minimal discussion, as an “emergency” has been declared on this law.

LinkSys 將繼續提供 WRT54G (4.0)

看到的消息:LinkSys courts Linux hackers with WRT54G”L”

( 對 WRT54G 的介紹) 因為以 USD$60 提供了 4MB RAM + 16MB Flash,而常常被一些 玩家買回去重新塞自己做的 Flash :p

在最新版的 WRT54G (5.0) 因為改進到只需要 2MB + 8MB Flash,於是市場上就開始有收購的熱潮 :p 結果 跳出來說 還是會繼續提供 WRT54G (4.0) 給 玩家惡搞 :p

無名小站 (Wikipedia)

這陣子透過「無名小站」當關鍵字連舊站的量增加很多 (應該是因為「」的關係吧,用 查「無名小站」,那篇講無名不穩定的文章都緊接在官方站台的 entry 下)。

剛剛在 上也看到了無名的 entry:,不過似乎是六月的時候寫的,後來就沒在更新了 :p

Thursday, December 01, 2005

又是抄襲:周杰倫的「麥芽糖」前奏

先給檔案,除了原作者提供的網頁外,我也提供 Local Mirror 以免抓不到:

這是又是 板暴動:「[超幹]周杰倫的麥芽糖前奏完全抄襲」。原文已經被刪除了,不過從奇怪的地方拿到原文 o_O

作者: gamearts (GRANDIA本命) 看板: Hate
標題: [超幹]周杰倫的麥芽糖前奏完全抄襲
時間: Thu Dec 1 15:05:08 2005

今天聽廣播的廣告一直在猛打JAY的這首『麥芽糖』

奇怪怎麼愈聽愈不對…?這個前奏明明就是GRANDIA中的配樂…

翻箱找出GRANDIA的音樂原聲帶,果不其然…

周杰倫『麥芽糖』的前奏根本就完全抄襲

岩垂德行老師一手包辦的GRANDIA系列一代的遊戲配樂

DISC 2的第13首曲目『雪村』(The Snow Village Laine)

雖然這個遊戲不像永邦抄襲的AIR那麼紅啦

不過好歹是我心中至今唯一能超越FF系列的嘔心瀝血之作

原來周董也喜歡這遊戲?難道我該高興嗎…

底下附上兩首曲子的連結,各位聽聽看就知道我有沒有誤會JAY了

(都已轉成32K低音質的RM檔,單純作為比較之用)

周董的麥芽糖 http://home.anet.net.tw/gamearts/09-MYT.rm
GRANDIA的配樂 http://home.anet.net.tw/gamearts/13-TheSnowVillageLaine.rm


※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.113.85
推 ramirez:永邦二世 12/01 15:05
推 laugher:新置底文 12/01 15:06
推 pttcool:魯邦三世 12/01 15:06
推 wolver:這篇能破泳幫嗎? 12/01 15:06
推 StyerAug:幹  還真像~~~~~ 12/01 15:07
推 tasogare:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:07
→ StyerAug:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:09
推 gayfunkgogo:幹你娘 模仿功力比小郭還好 12/01 15:09
推 ibulondong: 怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:09
推 TheDark: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:10
推 omc: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:11
推 yaoxyao: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:12
推 isare:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:12
推 dinggugu:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:12
→ pttcool: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:12
→ aqnf:還好… 12/01 15:12
推 moboo: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:12
推 three3: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:13
推 howzencard: 怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:14
推 gayfunkgogo:怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:14
推 amou1030:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:14
推 sumumu: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:14
推 bainll: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:14
推 pomin25:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:15
推 mucho: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:16
→ Fugax: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:16
推 jenhau: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:17
推 bzkid: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:17
推 firingmoon: 怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:18
推 guppys2005:這不是像吧 是一模一樣吧…… 12/01 15:19
推 aaeL: 恩 給周董一點顏射瞧瞧 12/01 15:22
推 coinage: [震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:23
推 MashRoom:……還真的一模一樣…… 12/01 15:24
→ MashRoom:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:24
推 cosy:真的很像耶….. 12/01 15:25
推 kvzhuang:[震怒] 幹您娘!周滷蛋的”麥芽糖”是抄襲GRANDIA! 12/01 15:28