2008年4月23日 星期三

第一屆推理小說評論獎

導讀獎:
藍衣魔鬼, 黑色斷掌, 德克斯特:夢魘殺魔

解說獎
半自白, 拿破崙狂, 向日葵不開的夏天

2000至2500

一萬元獎金

稿件寄至mlrclubtw@gmail.com

存檔成doc

2008年6月10日止

計畫參加的活動

google developer day
6月14日 星期六

2008年4月22日 星期二

java 視窗最大化

public void setExtendedState(int state)

MAXIMIZED_BOTH
Concatenates MAXIMIZED_HORIZ and MAXIMIZED_VERT.

2008年4月21日 星期一

macport

help install open source programs

create partition on mac

1. fdisk -e /dev/disk4

2. auto hfs

3. w

4. newfs_hfs /dev/disk4s1

5. diskutil mountDisk disk4s1

2008年4月11日 星期五

bio_endio

void bio_endio(struct bio *bio, unsigned int nbytes, int error);
通知系統 I/O完成
nbytes表示實際傳送的bytes

struct block_device

struct gendisk * bd_disk:
Pointer to gendisk structure of the disk underlying this block device

copy_from_user

mkdev

dev_t MKDEV(unsigned int major, unsigned int minor);
Macro that builds adev_t data item from the major and minor numbers.

2008年4月10日 星期四

snmp

simple network management protocol

key components:
1. management stations(managers)
such as monitor and control network

2. network elements(Agent)
such as hosts, routers. each contains an agent

MIB( management information base)
a collection of MO( management object)
each agent maintain an MIB

SNMP service
1. get request
get the value of MO in the MIB of agent

2. get next request
get the value of next MO in the MIB of agent

3 set request
update the value of MO in the MIB of agent

4 trap request
report extraordinary events to manager

default UDP port:
manager: 162
agent : 161

OID(object identifier)

network related API

receive a message from a socket

ssize_t recvfrom (int socket, void *restrict buffer, size_t length,
int flags, struct sockaddr *restrict address,
socklen_t *restrict address_len);

ssize_t sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);

2008年4月9日 星期三

bat檔

MD:
create directory
ex: MD test\date

2008年4月2日 星期三

ctags

/usr/local/bin/ctags --excmd=number --tag-relative=no --fields=+a+m+n+S -R `pwd`
產生程式對應的tag

作用:
找出變數/函式定義的位置
(ex: use "find definition" of BBEdit)

iWeb's data

store in userName/Library/Application Support/iWeb

constructor on inheritance

if B extends from A, when B is created ,
the constructor sequence is :
(1) A's constructor
(2) B's constructor