2007-10-22

Asus M2A-VM-HDMI ATi X1250 SB600 RadeonHD

It has been 2 months that both my Gentoo and Debian have to run with fglrx.

Finally, my Gentoo Linux can run in 1440x900 with x11-driver/xf86-video-radeonhd, without patching src/rhd_id.c by hand.

The mailing list:
http://lists.opensuse.org/radeonhd/

2007-10-14

It has been a year since Google acquired Jotspot

等 Google 的 Jotspot 已經一年了

Google Groups: JotSpot Help (since April, 2007)
http://groups.google.com/group/jotspot-help

Google Acquired Jotspot (since October, 2006)
http://googleblog.blogspot.com/2006/10/spot-on.html

2007-10-10

Lossless JPEG Transformation

Installation

2007-09-15

IDE to SATA converter Performance @HK$50

Hardware

Motherboard: Asus M2A-VM-HDMI
CPU: Athlon64 X2 4000+
RAM: 2GB DDR667
Harddisk: 2 x Maxtor 250GB
Operating System: (64-bit no-multilib)

$ uname -a
Linux x2 2.6.22-gentoo-r8 #3 SMP Sun Sep 30 14:55:25 SGT 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ AuthenticAMD GNU/Linux

/dev/sda = ide to sata to onboard sata
/dev/sdb = ide to onboard ide

2007-06-19

中國人都應該看的經濟寓言(轉貼)

有一天一個外星人到地球參觀,看到地球上有兩棵山上的野樹,一棵種在歐洲,一棵種在中國,都結了野果。

外星人很眼饞,對地球人說:“我要買你們的野果吃。”

地球人說:“好,但要先確定你到哪裡去買,到中國去買,1人民幣1個,到歐洲人去買,用1歐元1個。”

外星人說:“那我用1歐元買一個好了。”

地球人說:“且慢!其實你不用花錢就可以,你先從中國借一個果子,到歐洲去換1歐元,拿1歐元到中國去,就可以換10個果子,拿一個果子還給中國人,你就白得了9個果子,你再拿9個果子再去換9歐元,在到中國去換90個果子,再拿這90個果子再去換90歐元,在到中國去換900個果子…………這樣下去中國的好東西都被你買光了!”

2007-06-01

Ultima Online Kingdom Reborn Beta Linux Wine

Wine version:
$ wine --version
wine-0.9.37
Installation:
$ wine setup.exe

2007-05-12

Buffalo Linkstation Pro LS-320GL: xfs_info /mnt/sda2

$ xfs_info /mnt/sda2
meta-data=/dev/sda2              isize=256    agcount=4, agsize=31126 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=124503, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal               bsize=4096   blocks=8192, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0

2007-05-03

Sick with Internet Explorer


圖: 香港馬會網上投注系統

全新既投注功能介而: 唔特止只可以用於 MS Windows + Internet Explorer, 如果過濾 ActiveX 安裝,都係哂氣,畫面會表示成功啓用,除左最左下角會有個好袖珍既感歎號。通常唔為意登入不成功之下,結果會白攪一餐。打去 hotline 問,佢會告之閣下回去起點,從空白開始輸入。

一個在下注功能上,比唔上掌上終端機,但 fancy 既 eye candies 就閃到暈頭轉向既下注介面,經歷完畢。

2007-04-22

Add Google Talk to Blogger as Sidebar Widget


Making my own Custom Blogger Widget

2007-04-21

Embed XML into Blogger using iframe / object - Invaders

Google Module: Source The Game: Here

with <object>

<object <acronym>type="text/html</acronym>" width="150" height="200"
  data="<em>http://gmodules.com/ig/ifr?url=http://blog-apart.com/INVADERS/gg/gg.xml</em>">
</object>

with <iframe>

<iframe border="0" frameborder="0" width="150" height="200"
  src="http://gmodules.com/ig/ifr?url=http://blog-apart.com/INVADERS/gg/gg.xml">
</iframe>


Google Module: Source The Game: Here

2007-04-17

Google Picasa Web Album Can Store PNG

Picasa Web Album 可以存放 PNG 格式圖片檔了

This image is hosted on Picasa Web Albums, discovered yesterday.

http://lh3.google.com/image/Xn2...[long]...1Q8/picasaweb.png

This PNG is stored on PicasaWebAlbum

2007-02-08

Buffalo Linkstation Pro LS-320GL: fsck.ext3 (e2fsck)

root@LS-GL7D6:~# fsck.ext3 -nv /dev/sda6
e2fsck 1.40-WIP (14-Nov-2006)
/dev/sda6: clean, 475373/38977536 files, 4281295/77933315 blocks
root@LS-GL7D6:~# time fsck.ext3 -nv /dev/sda6 -f
e2fsck 1.40-WIP (14-Nov-2006)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

 475373 inodes used (1.22%)
  11683 non-contiguous inodes (2.5%)
        # of inodes with ind/dind/tind blocks: 6426/51/1
4281295 blocks used (5.49%)
      0 bad blocks
      2 large files

 413742 regular files
  54207 directories
   1358 character device files
    450 block device files
      3 fifos
   1134 links
   5602 symbolic links (5502 fast symbolic links)
      2 sockets
--------
 476498 files

real    10m28.463s
user    2m25.740s
sys     6m1.330s
root@LS-GL7D6:/mnt/disk1# time dd if=GenLink_arm9-1.0pre2-20070130.tar.bz2 of=delelte.me
204360+1 records in
204360+1 records out
104632786 bytes (105 MB) copied, 17.7344 seconds, 5.9 MB/s <-- SLOW!!

real    0m17.776s
user    0m1.620s
sys     0m12.890s

2007-02-06

Samsung HM080HC 80GB 2.5" Hard Drive (5V 0.85A)

Specification
HK$500 with 3 years warranty, or $705 for a 120GB.

$ dmesg

usb 1-4: new high speed USB device using ehci_hcd and address 5
usb 1-4: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access SAMSUNG HM080HC AM10 PQ: 0 ANSI: 0 CCS
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 14 00 00
sda: assuming drive cache: write through
SCSI device sda: 156301488 512-byte hdwr sectors (80026 MB)
sda: Write Protect is off
sda: Mode Sense: 00 14 00 00
sda: assuming drive cache: write through
sda: unknown partition table
sd 2:0:0:0: Attached scsi disk sda
sd 2:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete

$ hdparm -v /dev/sda

2007-01-22

Buffalo Linkstation Pro LS-320GL (LS-GL)

Product Info

@HK$1,880 with 2 years product warranty.
arm9@400MHz, 128MB RAM, 320GB Serial-ATA
USB 2.0 x2, 10/100/1000M Ethernet
Power: 21W @max, built-in power transformer.
Fan@1900rpm (silent@auto)

Flashed with Freelink@linkstationwiki.net

root@LS-GL7D6:~# dmesg
Linux version 2.6.12.6-arm1 (root@Desktop) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #77 Tue Dec 5 22:23:46 CST 2006
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 200000000, Tclk = 166664740


- Warning - This LSP release was tested only with U-Boot release 1.7.3

Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
DMA zone: 32768 pages, LIFO batch:15
Normal zone: 0 pages, LIFO batch:1
HighMem zone: 0 pages, LIFO batch:1
Built 1 zonelists
Kernel command line: console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.01
PID hash table entries: 1024 (order: 10, 16384 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 0MB 0MB 0MB = 128MB total
Memory: 110208KB available (3370K code, 570K data, 112K init)
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 15360K
NET: Registered protocol family 16
FLASH boardId = 12
Flash bankwidth 1, base ff800000, size 400000
BUFFALO LS_GL FLASH size 4096[KB]

Marvell Development Board (LSP Version 1.7.8_NAS)-- BUFFALO_BOARD_LS_GL

Detected Tclk 166664740 and SysClk 200000000
Marvell USB EHCI Host controller #0: c1702bc0
Marvell USB EHCI Host controller #1: c1702980
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
cesadev_init(c0011304)
mvCesaInit: sessions=640, queue=32, pSram=f0000000
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SGI XFS with no debug enabled
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
ttyS1 at MMIO 0x0 (irq = 4) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
Marvell Gigabit Ethernet Driver 'egiga':
o Ethernet descriptors in DRAM
o DRAM SW cache-coherency
o Checksum offload enabled
o Loading network interface ** egiga_init_module (0)
'eth0'
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Vendor: Seagate   Model: ST3320620AS   Rev: 3.AA
Type:   Direct-Access  ANSI SCSI revision: 03
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda4 <>
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0,  type 0
physmap flash device: 400000 at ff800000
CFI: Found no phys_mapped_flash device at location zero
>jedec_probe
Found: SST 39LF020
phys_mapped_flash: Found 1 x8 devices at 0x0 in 8-bit bank
phys_mapped_flash: Found an alias at 0x40000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x80000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0xc0000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x100000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x140000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x180000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x1c0000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x200000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x240000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x280000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x2c0000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x300000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x340000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x380000 for the chip at 0x0
phys_mapped_flash: Found an alias at 0x3c0000 for the chip at 0x0
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: park 0
ehci_platform ehci_platform.4523: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: park 0
ehci_platform ehci_platform.16781: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice  <--- funny ?
MICON ctrl (C) BUFFALO INC. V.1.00 installed.
Kernel event proc (C) BUFFALO INC. V.1.00 installed.
MICON V2 (C) BUFFALO INC. V.1.00 installed.
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: Compressed image found at block 0
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda2
Ending clean XFS mount for filesystem: sda2
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 112K
Adding 136512k swap on /dev/sda5.  Priority:-1 extents:1
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda6
Ending clean XFS mount for filesystem: sda6
eth0: link down
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
$ ssh 192.168.11.16
         _sudZUZ#Z#XZo=_         DDDD   EEEEEE BBBB   IIIIII  AAAA   NN   NN
    _jmZZ2!!~---~!!X##wa       DD DD  EE     BB BB    II   AA  AA  NNN  NN
 .      -]Xb/    ~    __#2(    One ARM ARM926EJ-Sid(wb) rev 0 (v5l) Processor, 128M RAM
-Zo;       +!4ZwaaaauZZXY'      266.24 Bogomips Total
*#[,        ~-?!!!!!!-~        LS-GL7D6
 XUb;.
  )YXL,,
    +3#bc,
      -)SSL,,
         ~~~~~


BUFFALO INC. LinkStation series LS-GL(IESADA)
root@LS-GL7D6:~# uname -a
Linux LS-GL7D6 2.6.12.6-arm1 #77 Tue Dec 5 22:23:46 CST 2006 armv5tejl GNU/Linux
root@LS-GL7D6:~# free
             total       used       free     shared    buffers     cached
Mem:        125844      41476      84368          0      14360      17328
-/+ buffers/cache:       9788     116056
Swap:       136512          0     136512
root@LS-GL7D6:~# mount
rootfs on / type rootfs (rw)
/dev/root.old on /initrd type ext2 (rw)
/dev/root on / type xfs (rw)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid)
proc on /proc type proc (rw,nodiratime,nosuid,nodev,noexec)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,nodev,noexec)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
tmpfs on /tmp type tmpfs (rw)
/dev/sda1 on /boot type ext3 (rw,noatime)
/dev/sda6 on /mnt/disk1 type xfs (rw,noatime,nodiratime)
nfsd on /proc/fs/nfsd type nfsd (rw)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
root@LS-GL7D6:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                  465244    233628    231616  51% /
/dev/root.old            13303     10980      2323  83% /initrd
/dev/root               465244    233628    231616  51% /
tmpfs                      100         0       100   0% /lib/init/rw
tmpfs                    62920         0     62920   0% /dev/shm
tmpfs                    10240         8     10232   1% /tmp
/dev/sda1               194443     10560    173844   6% /boot
/dev/sda6            311602188      1216 311600972   1% /mnt/disk1
root@LS-GL7D6:~# fdisk -l /dev/sda
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

 Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          25      200781   83  Linux
/dev/sda2              26          87      498015   83  Linux
/dev/sda4              88       38913   311869845    5  Extended
/dev/sda5              88         104      136521   82  Linux swap / Solaris
/dev/sda6             105       38913   311733261   83  Linux
root@LS-GL7D6:~# ls -la /boot/
total 6450
drwxr-xr-x  3 root root    1024 Jan 24 00:32 .
drwxr-xr-x 18 root root    4096 Jan 23 14:06 ..
-rw-r--r--  1 root root     722 Jan 23 15:31 boot_options
-rw-r--r--  1 root root   18592 Jan 23 15:04 conf_save.tgz
-rw-r--r--  1 root root       0 Dec 18 18:45 hddrootmode
-rw-r--r--  1 root root 4563579 Dec 27 22:29 initrd.buffalo
-rw-r--r--  1 root root      84 Dec 15 22:27 linkstation_release
-rw-r--r--  1 root root   27147 Jan 23 15:04 log.tgz
drwx------  2 root root   12288 Dec 15 04:58 lost+found
-rw-r--r--  1 root root      29 Jan 24 00:32 rootfs_ok
-rw-r--r--  1 root root 1942020 Jan 23 15:02 uImage.buffalo
root@LS-GL7D6:~# hdparm -Tt /dev/sd{a,a,a}
/dev/sda:
Timing cached reads:   270 MB in  2.00 seconds = 135.00 MB/sec
Timing buffered disk reads:  100 MB in  3.03 seconds =  33.00 MB/sec

/dev/sda:
Timing cached reads:   304 MB in  1.99 seconds = 152.76 MB/sec
Timing buffered disk reads:  146 MB in  3.03 seconds =  48.18 MB/sec

/dev/sda:
Timing cached reads:   302 MB in  2.01 seconds = 150.25 MB/sec
Timing buffered disk reads:  126 MB in  3.01 seconds =  41.86 MB/sec
root@LS-GL7D6:~# cat /proc/cpuinfo
Processor       : ARM926EJ-Sid(wb) rev 0 (v5l)
BogoMIPS        : 266.24
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 0
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 1
I line length   : 32
I sets          : 1024
D size          : 32768
D assoc         : 1
D line length   : 32
D sets          : 1024

Hardware        : MV-88fxx81
Revision        : 0000
Serial          : 0000000000000000
root@LS-GL7D6:~# cat /etc/fstab
# /etc/fstab: static file system information.
#                        
proc            /proc      proc    defaults                            0 0
none            /dev/pts   devpts  gid=5,mode=20                       0 0
tmpfs           /tmp       tmpfs   size=10M,mode=1777                  0 0
/dev/sda5       swap       swap    defaults                            0 0
/dev/sda1       /boot      ext3    defaults,noatime,errors=remount-ro  0 1
/dev/sda6       /mnt/disk1 xfs,acl defaults,noatime,nodiratime         0 0
root@LS-GL7D6:~# apt-get update
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://security.debian.org etch/updates Release [24.3kB]
Get:3 ftp://ftp.uk.debian.org etch Release.gpg [378B]        
Get:4 http://security.debian.org etch/updates/main Packages [4707B]          
Get:5 http://security.debian.org etch/updates/contrib Packages [14B]                           
Get:6 http://security.debian.org etch/updates/non-free Packages [14B]
Get:7 http://security.debian.org etch/updates/main Sources [1982B]
Get:8 ftp://ftp.uk.debian.org etch Release [74.4kB] 
Get:9 ftp://ftp.uk.debian.org etch/contrib Packages [45.9kB]
Get:10 http://mirrors.kernel.org etch Release.gpg [378B]
Get:11 ftp://ftp.uk.debian.org etch/main Packages [4171kB]
Get:12 http://mirrors.kernel.org etch Release [74.4kB]
Get:13 http://mirrors.kernel.org etch/main Packages [4171kB]
Get:14 http://mirrors.kernel.org etch/contrib Packages [45.9kB]
Get:15 http://mirrors.kernel.org etch/non-free Packages [57.5kB]
Get:16 ftp://ftp.uk.debian.org etch/non-free Packages [57.5kB]
Fetched 8730kB in 3m1s (48.0kB/s)
Reading package lists... Done
root@LS-GL7D6:~# cat /proc/cmdline
console=ttyS0,115200 root=/dev/sda2 rw initrd=0x00800040,15M panic=5 BOOTVER=1.01