2006-06-30

我的護花男朋友

Title: how much you luv your girlfriend

dont fight...
別要再打啦

Old Code:
<embed
 FlashVars="playerMode=normal"
 align="middle"
 allowScriptAccess="never"
 bgcolor="#ffffff"
 id="VideoPlayback"
 quality="best"
 salign="TL"
 scale="noScale"
 src="http://video.google.com/googleplayer.swf?docId=-4834916158429048626"
>
</embed>

[漫畫] 傀儡馬戲團


からくりサーカス

故事連載始自1997年, 於2006年6月完結.

作者: 藤田和日郎

Google Bookmarks

Added Google Bookmarks to my blog template
Google Bookmarks Help
Makes the web-links follow [userid:password]

2006-06-29

[Benchmark] Linux Software ATA RAID-1

Mother Board: PC-Chips M810LR
CPU: Duron 600MHz
RAM: 128MB SDRAM
Onboard ATA Controller
Kernel: 2.6.x


Activate the hidden port in the kernel:
some benchmarks

$ hdparm -tT /dev/hd{a,c,a,c,a,c}
/dev/hda:
 Timing cached reads:   572 MB in  2.00 seconds = 285.98 MB/sec
 Timing buffered disk reads:  152 MB in  3.00 seconds =  50.60 MB/sec

/dev/hdc:
 Timing cached reads:   572 MB in  2.01 seconds = 284.84 MB/sec
 Timing buffered disk reads:  142 MB in  3.03 seconds =  46.89 MB/sec

/dev/hda:
 Timing cached reads:   580 MB in  2.00 seconds = 289.98 MB/sec
 Timing buffered disk reads:  160 MB in  3.01 seconds =  53.19 MB/sec

/dev/hdc:
 Timing cached reads:   556 MB in  2.00 seconds = 277.98 MB/sec
 Timing buffered disk reads:  148 MB in  3.03 seconds =  48.81 MB/sec

/dev/hda:
 Timing cached reads:   580 MB in  2.01 seconds = 288.83 MB/sec
 Timing buffered disk reads:  152 MB in  3.00 seconds =  50.60 MB/sec

/dev/hdc:
 Timing cached reads:   568 MB in  2.00 seconds = 283.42 MB/sec
 Timing buffered disk reads:  142 MB in  3.02 seconds =  47.02 MB/sec
$ time hdparm -tT /dev/md{0,0,1,1,0,1}
/dev/md0:
 Timing cached reads:   564 MB in  2.00 seconds = 281.98 MB/sec
 Timing buffered disk reads:  162 MB in  3.01 seconds =  53.85 MB/sec

/dev/md0:
 Timing cached reads:   572 MB in  2.01 seconds = 284.28 MB/sec
 Timing buffered disk reads:  168 MB in  3.00 seconds =  56.00 MB/sec

/dev/md1:
 Timing cached reads:   572 MB in  2.01 seconds = 284.28 MB/sec
 Timing buffered disk reads:  156 MB in  3.00 seconds =  52.00 MB/sec

/dev/md1:
 Timing cached reads:   576 MB in  2.00 seconds = 287.98 MB/sec
 Timing buffered disk reads:  150 MB in  3.00 seconds =  49.93 MB/sec

/dev/md0:
 Timing cached reads:   584 MB in  2.00 seconds = 291.98 MB/sec
 Timing buffered disk reads:  168 MB in  3.00 seconds =  55.92 MB/sec

/dev/md1:
 Timing cached reads:   572 MB in  2.01 seconds = 284.84 MB/sec
 Timing buffered disk reads:  156 MB in  3.00 seconds =  51.93 MB/sec

real    1m19.831s
user    0m1.096s
sys     0m19.953s

2006-06-27

Bye Bye Old 15" LCD


Geil 256MB USB Flash Key @HK$65

Product Homepage
GeIL Extreme Performance Dual Channel USB Pen Drive (2005.09.20)
Purchased on 2006.06.26


Read...查看
USB Hardware Information
$ dmesg
usb 1-3: new high speed USB device using ehci_hcd and address 4
usb 1-3: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
 Vendor:           Model: USB DISK 2.0      Rev: 1.13
 Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 503808 512-byte hdwr sectors (258 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 1:0:0:0: Attached scsi removable disk sda
usb-storage: device scan complete
$ lsusb -s 1:4 -v
Bus 001 Device 004: ID 13fe:1a00
Device Descriptor:
bLength                18
bDescriptorType         1
bcdUSB               2.00
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0
bDeviceProtocol         0
bMaxPacketSize0        64
idVendor           0x13fe
idProduct          0x1a00
bcdDevice            1.00
iManufacturer           1
iProduct                2 USB DISK 2.0
iSerial                 0
bNumConfigurations      1
Configuration Descriptor:
bLength                 9
bDescriptorType         2
wTotalLength           32
bNumInterfaces          1
bConfigurationValue     1
iConfiguration          0
bmAttributes         0x80
MaxPower              200mA
Interface Descriptor:
  bLength                 9
  bDescriptorType         4
  bInterfaceNumber        0
  bAlternateSetting       0
  bNumEndpoints           2
  bInterfaceClass         8 Mass Storage
  bInterfaceSubClass      6 SCSI
  bInterfaceProtocol     80 Bulk (Zip)
  iInterface              0
  Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x81  EP 1 IN
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
  Endpoint Descriptor:
    bLength                 7
    bDescriptorType         5
    bEndpointAddress     0x02  EP 2 OUT
    bmAttributes            2
      Transfer Type            Bulk
      Synch Type               None
      Usage Type               Data
    wMaxPacketSize     0x0200  1x 512 bytes
    bInterval               0
Device Qualifier (for other device speed):
bLength                10
bDescriptorType         6
bcdUSB               2.00
bDeviceClass            0 (Defined at Interface level)
bDeviceSubClass         0
bDeviceProtocol         0
bMaxPacketSize0        64
bNumConfigurations      1
Disk Geometry
$ fdisk -l /dev/sda
Disk /dev/sda: 257 MB, 257949696 bytes
16 heads, 32 sectors/track, 984 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         984      251888    e  W95 FAT16 (LBA)
$ sfdisk -gG /dev/sda
/dev/sda: 984 cylinders, 16 heads, 32 sectors/track
/dev/sda: 984 cylinders, 16 heads, 32 sectors/track
(note: 256 x 1,024 x 1,024 = 268,435,456!!)
Disk Read Performance
$ time dd if=/dev/sda1 of=/tmp/TEST_GEIL256MB
503776+0 records in
503776+0 records out
257933312 bytes (258 MB) copied, 9.86463 seconds, 26.1 MB/s

real    0m9.867s
user    0m0.210s
sys     0m1.578s
$ ls -l /tmp/TEST_GEIL256MB
-rw-r--r--  1 root    root  257933312 2006-06-27 13:01 TEST_GEIL256MB
$ time dd if=/dev/sda1 of=/tmp/TEST_GEIL256MB
503776+0 records in
503776+0 records out
257933312 bytes (258 MB) copied, 9.73236 seconds, 26.5 MB/s

real    0m9.735s
user    0m0.205s
sys     0m1.570s
Disk Write Performance
$ time dd if=/tmp/TEST_GEIL256MB of=/dev/sda1
503776+0 records in
503776+0 records out
257933312 bytes (258 MB) copied, 45.8822 seconds, 5.6 MB/s

real    0m45.885s
user    0m0.158s
sys     0m1.236s
$ sync
$ time dd if=/tmp/TEST_GEIL256MB of=/dev/sda1
503776+0 records in
503776+0 records out
257933312 bytes (258 MB) copied, 45.6636 seconds, 5.6 MB/s

real    0m45.666s
user    0m0.170s
sys     0m1.333s

4cm Fan @HK$8

DC 12V 0.25A
Purchased on 2006.06.26

2006-06-20

Ping from Windows XP to x86 Wireless Router

The x86 Wireless Router
$ uname -a
Linux dunno 2.6.17-gentoo #1 Tue Jun 20 00:40:37 CST 2006 i686 mobile AMD Athlon(tm) XP-M 2800+ GNU/Linux
$ lspci
00:0b.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01)
        Subsystem: D-Link System Inc D-Link AirPlus DWL-G520 Wireless PCI Adapter(rev.B)
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 168 (2500ns min, 7000ns max), Cache Line Size: 256 bytes
        Interrupt: pin A routed to IRQ 209
        Region 0: Memory at cffe0000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [44] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=2 PME-
$ iwconfig
ath0      IEEE 802.11g  ESSID:"XXXXXXXX"
          Mode:Master  Frequency:2.437 GHz  Access Point: XX:XX:XX:XX:XX:XX
          Bit Rate:0 kb/s   Tx-Power:18 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX [2]   Security mode:open
          Power Management:off
          Link Quality=49/94  Signal level=-46 dBm  Noise level=-95 dBm
          Rx invalid nwid:13  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Windows XP on IBM Thinkpad X31
$ ping 192.168.52.149 -c 20
PING 192.168.52.149 (192.168.52.149) 56(84) bytes of data.
64 bytes from 192.168.52.149: icmp_seq=1 ttl=128 time=2.45 ms
64 bytes from 192.168.52.149: icmp_seq=2 ttl=128 time=1.93 ms
64 bytes from 192.168.52.149: icmp_seq=3 ttl=128 time=127 ms
64 bytes from 192.168.52.149: icmp_seq=4 ttl=128 time=1.04 ms
64 bytes from 192.168.52.149: icmp_seq=5 ttl=128 time=26.2 ms
64 bytes from 192.168.52.149: icmp_seq=6 ttl=128 time=50.5 ms
64 bytes from 192.168.52.149: icmp_seq=7 ttl=128 time=75.0 ms
64 bytes from 192.168.52.149: icmp_seq=8 ttl=128 time=98.2 ms
64 bytes from 192.168.52.149: icmp_seq=9 ttl=128 time=20.1 ms
64 bytes from 192.168.52.149: icmp_seq=10 ttl=128 time=44.0 ms
64 bytes from 192.168.52.149: icmp_seq=11 ttl=128 time=68.4 ms
64 bytes from 192.168.52.149: icmp_seq=12 ttl=128 time=2.42 ms
64 bytes from 192.168.52.149: icmp_seq=13 ttl=128 time=1.01 ms
64 bytes from 192.168.52.149: icmp_seq=14 ttl=128 time=38.1 ms
64 bytes from 192.168.52.149: icmp_seq=15 ttl=128 time=63.5 ms
64 bytes from 192.168.52.149: icmp_seq=16 ttl=128 time=1.02 ms
64 bytes from 192.168.52.149: icmp_seq=17 ttl=128 time=1.01 ms
64 bytes from 192.168.52.149: icmp_seq=18 ttl=128 time=31.8 ms
64 bytes from 192.168.52.149: icmp_seq=19 ttl=128 time=56.1 ms
64 bytes from 192.168.52.149: icmp_seq=20 ttl=128 time=80.4 ms

--- 192.168.52.149 ping statistics ---
20 packets transmitted, 20 received, 0% packet loss, time 19005ms
rtt min/avg/max/mdev = 1.013/39.568/127.513/36.517 ms

2006-06-12

Microsoft Shared Computer Toolkit for Windows XP

Introducing powerful new software tools for shared computers in schools, libraries, Internet cafes, and other public places. The Shared Computer Toolkit helps make it easy to set up, safeguard, and manage reliable shared computers running genuine Windows XP.
Microsoft