A helpful Apache safety tip

This is a two part safety tip:

  1. most things that roll Apache logfiles SIGHUP Apache to get it toclose and reopen the logfiles
  2. when Apache is SIGHUP 'd, it closes its current set of sockets andtries to listen on the set that its configuration file says itshould use.

So, if you have changed Apache's configuration of what it should listenon, and something else is currently camped on one of those places,something that is scheduled to be killed off during an impendingreboot, and your logfiles


Weekly spam summary on March 25th, 2006

The basic volume numbers for this week are that we:

  • got 19,744 messages from 236 different IP addresses.
  • handled 19,083 sessions from 955 different IP addresses.
  • received 139,156 connections from at least 43,459 different IPaddresses.
  • hit a highwater of 31 connections being checked at once.

We got more emails this week than usual mostly because of a small mailloop explosion during the week that added several thousand


巴里島的SPA 及溫泉回憶

Continue reading...

塵世囂囂

後來王仙客就帶著他的人離開了宣陽坊,繼續去找無雙。到底找著了沒有,我表哥還沒告訴我。但是他說,掖庭宮是皇宮大內,王仙客雖然 IQ185,也很難進去。但是無雙在那裡,不管她想開想不開,生命是有保障的。假如宮

享受

上帝賜予我們肉身,

是用來好好享受。

所以,

男歡女愛吃喝玩樂肉身歡愉屬靈感覺良辰美景通通不應放過不要錯過。

為甚麼要怕那些蜚短流長?

那些拘泥的人,

他們根本不知錯過了太多。

20060325網摘 – 支持正體中文

Life Hacker

RSS > Web

  • feed的意义大于网页 Quote: sayonly说,feed的意义大于blog。我觉得这个说法没错,但有点儿保守了。将来的情况可能是,RSS feed的意义大于网页。

正體中文不死


啟事

搬家
改電話

有事情請暫以電郵聯絡:t_for_thesis@yahoo.com.hk

A little gotcha with os.path.join

For my sins, I am one of those people who doesn't always read Python'sfine documentation carefully enough. For example, I wrote a large chunkof code using the helpful os.path.join() before I noticed a littlegotcha: it's very helpful. In particular:

Joins one or more path components intelligently. If any component isan absolute path, all previous components are thrown away, andjoining continues .

(Right there in black and white in the fine documentation .)


學習使用 PmWiki 架設 Fanpage

因為之前 Server 死 Hardisk ,所以在下的兩個動畫網站 EVA Zone 和 Section9 都關閉了。家中有這些文檔的 Backup,但仍在考慮用什麼方法重建。

做這些動畫 Fanpage ,最主要的問題是一旦內容齊全了,就會開始少了更新。主要原因當然是網主懶得更新 (如我)


Setting up to build RPMs

There's three ways to build RPMs: the silly way, the easy way, andthe better way.

The silly way starts with /bin/su root , which should be enough of a warning sign. You really don't wantto be building and installing packages as root unless you don't have achoice, and you do.

The easy way is:

$ cat >$HOME/.rpmmacros
%_topdir /some/where
^D
$ cd /some/where
$ mkdir BUILD