喵爸爸的窩

- apache car CSS DNS dreamhost DRM Email encode flash flex freebsd funny gmail google html imap javascript library linux mail MSSQL MSWindows MySQL ODBC office PDF perl player postfix prototype.js sasl2 scriptaculous socket solaris SPF SSL takahashi themes trac utf8 web slides WIKI WordPress wordpress plugins wordpress widgets
freebsd
libevent備忘
方便的東西效率應該比select好…. void aaa(int fd, short event, void *arg){ } void bbb(int fd, short event, void *arg){ } void ccc(int fd, short event, void *arg){ struct timeval tv; timerclear(&tv); tv.tv_sec=1; event_add(&ev3, &tv); } void main (int argc, char * argv[]) { struct event ev1,ev2,ev3; struct timeval tv; int fd=XXXXX event_init(); event_set(&ev1, fd, EV_READ|EV_PERSIST, aaa, &ev1); event_add(&ev1, [...]
Also tagged library, programming, socketApache::Gallery + mod_perl 2 hack (更新)
Apache::Gallery是一個網頁相簿的軟體,只要用FTP上傳圖片,他就自動處理縮圖及分頁,我很喜歡這樣的簡潔。不過,作者似乎很久沒有更新了,Apache::Gallery需要做一些修改才能跟目前的mod_perl 2搭配。 留個紀錄,省下以後更改的時間。 使用patch-mp2-api後,在我的系統(FreeBSD)上,還需要一點點加工….. @@a – require Apache2::mod_perl;+ require mod_perl2; mm… 下面是之前的修改,新版(0.9.1)加上patch-mp2-api就不需要了。 要改的地方只有一個…(mm…應該吧) /usr/local/lib/perl5/site_perl/5.8.6/Apache/Gallery.pm Ln:23 – require Apache::Server;+ require Apache::ServerRec; 目前這樣就會動了,只是不曉得有沒有異常。還在觀察中。
Also tagged apache, gallery, perl