Search This Blog

Monday, May 07, 2007

use wpa_supplicant

I choose WPA-PSK for my wireless router,so the corresponding configure is like following:

$wpa_passphrase ssid passphrase

where passphrase is the router's PSK pass,and it outputs a string which should be assigned to "psk" in wpa_supplicant.conf,like this:

network={
ssid="ssid"
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
psk=psk
priority=2
}

Saturday, May 05, 2007

browse chinese bbs with urxvt in utf8

for most chinese bbs output gbk encoding,so the urxvt should be told that it is going to treat the stream as gbk,more than that,it should also be told that the input mothod works in a utf8 enviroment,so I start a urxvt to browse bbs like this:

LC_ALL=zh_CN.GBK urxvt -imlocale 'zh_CN.utf8' -fn '10x20,xft:AR PL
New Sung:antialias=false' -e screen

it looks perfect

ENTRY in *.S files

the gdt of a cpu is described like this:

ENTRY(cpu_gdt_table)
.quad 0x0000000000000000
...

while ENTRY is a macro defined in include/linux/linkage.h ike this:

#define ENTRY(name) \
.globl name; \
ALIGN; \
name:

so it means a globally visible label leading a memory of data(gdt)?hmmm