Finally the exams over. So I went to Mong Kok and bough a external HDD, 500G with FireWire 800 interface.
Hooked it up with my Mac easily, it is already pre-partitioned and has utilities available on disk. So I did a little benchmarking with XBench. The result was satisfactory, reading operations with proper block size is as fast as those on the internal HDD.
Mac HDD:
Results 66.90
System Info
Xbench Version 1.3
System Version 10.5.2 (9C7010)
Physical RAM 4096 MB
Model iMac8,1
Drive Type WDC WD3200AAJS-40VWA1
Disk Test 66.90
Sequential 96.08
Uncached Write 114.83 70.50 MB/sec [4K blocks]
Uncached Write 111.76 63.23 MB/sec [256K blocks]
Uncached Read 63.28 18.52 MB/sec [4K blocks]
Uncached Read 122.35 61.49 MB/sec [256K blocks]
Random 51.31
Uncached Write 20.46 2.17 MB/sec [4K blocks]
Uncached Write 114.09 36.52 MB/sec [256K blocks]
Uncached Read 79.85 0.57 MB/sec [4K blocks]
Uncached Read 128.33 23.81 MB/sec [256K blocks]
External HDD:
Results 41.29
System Info
Xbench Version 1.3
System Version 10.5.2 (9C7010)
Physical RAM 4096 MB
Model iMac8,1
Drive Type LaCie d2 quadra
Disk Test 41.29
Sequential 72.25
Uncached Write 81.06 49.77 MB/sec [4K blocks]
Uncached Write 88.00 49.79 MB/sec [256K blocks]
Uncached Read 42.36 12.40 MB/sec [4K blocks]
Uncached Read 124.12 62.38 MB/sec [256K blocks]
Random 28.91
Uncached Write 8.97 0.95 MB/sec [4K blocks]
Uncached Write 116.26 37.22 MB/sec [256K blocks]
Uncached Read 90.91 0.64 MB/sec [4K blocks]
Uncached Read 137.85 25.58 MB/sec [256K blocks]
Actually I was using similar code in a real life application for a client. Then he told me it can’t work. After a little test I found out that IE 7 won’t submit the form when you disable the submit button. Firefox can handle it properly though.
And as I’m messing around with IE 8, I found they fixed the bug.
To test it, go to http://playground.softboysxp.org/post_test.html , type something and hit the button. You should see a message box, then the query will be submitted to Google. While in IE7, the form won’t get submitted.
I remember visiting a PSP-only website, which when browsed on PC, gives a different output saying something like “you should view this on PSP”. I wonder how they implemented it.
I guess PSP must send some kind of special info to the server, so I wrote a little PHP script showing request headers. (traditional sniffers / browser plugins won’t work now, unless you wanna port them to PSP yourself, lol).
As my hosting does not allow apache_request_headers, I have to extract the data from $_SERVER myself.
<?phpforeach($_SERVERas$k=>$v){if(substr($k,0,5)=="HTTP_"){// Format the variable names$k=str_replace('_',' ',substr($k,5));$k=str_replace(' ','-',ucwords(strtolower($k)));echo"<tr><td class=\"e\">$k</td><td class=\"v\">$v</td></tr>\r\n";}}?>
User-Agent by far can only be “User-Agent: Mozilla/4.0 (PSP (PlayStation Portable); 2.00)”
x-psp-productcode represents the region of your PSP and can be one of the following
Region
Code
開発ツール (Development Tools)
“TOOL”
日本 (Japan)
“J1”
北米 (North America)
“UC2”
東欧/欧州 (Europe)
“CEL”
韓国 (Korea)
“KR2”
UK (United Kingdom)
“CEK”
メキシコ (Mexico)
“MX2”
AU/NZ (Australia/New Zealand)
“AU3”
南アジア (South Asia)
“E12”
台湾 (Taiwan)
“TW1”
ロシア (Russia)
“RU3”
中国 (China)
“CN9”
x-psp-browser is in the format of “n.nn (xxx; yyy; zzz; …)”
n.nn is the version of the firmware
xxx, yyy, zzz … being parameters, specify from where the browser was lunched, with LX for XMB, SX for applications under XMB, and LU being applications on UMD or Memory Stick. Another parameter, “system”, specifies the version.
Another variable, x-psp-application can be used to specify the name of the game/application, when the browser was launched by an application on UMD/Memory Stick.
Yup that’s right I’m back on the blogging field, XD.
Actually I know the chance ppl actually reading this blog is one of a billion. But everyone loves publishing, such is the human nature.
Plus this site gives me a place to host my various pics, video clips, files, etc. for my posts on forums. No need to find a public file hosting any more ! 5G Storage / 250G bandwidth is more than enough for me. So far I’m very satisfied with my hosting provider.