A small annoyance with Unix wildcards
Here's a small irritation with Unix wildcards: there's no generallyrecognized wildcard (or small set of wildcards) that matches all of thefiles in a directory, including dotfiles but excluding . and .. ,so that you could easily match all of a directory's real contents.
A plain * doesn't match dotfiles; * .* matches dotfiles, butincludes . and .. too. About the best you can do is
* .??* .[^.]
However this
夜半怪談
好多同事都好開心同我講可以過肥年,然後問我買o左d咩股。
我一聽到,就只係識得好似Mary咁撐大對眼加O型嘴。
因為,我連
How SSH achieves forward secrecy
A while back a co-worker asked me why SSH (sometimes) uses a secondtemporary host key in addition to the main host key. I had to thinkabout it for a bit: it's to keep the session private even if theserver's host key is later compromised.
(The clever person will notice I could have found this out just byreading the description of the KeyRegenerationInterval sshd parameter.I observe that one rarely pauses to grovel through manpages whendiscussing half-remembered things with co-
在牛棚書展燃亮了像雪飛花
More fun with Python's indentation rules
Python's indentation rules apply only to logicallines (as the documentation is careful to spell out), although theindentation level only comes from the first physical line. This opens upvarious sorts of peculiarity and evil, some of which I mentioned lasttime .
There are two ways for multiple physical lines to be joinedinto one logical lines: being explicitly continued witha \ at the end of the line ( explicit line joining ), orbeing inside a ( , { , or [ ( implicit line joining )
贈興
說現代社會的身份是多元的沒錯,但不同身份卻非散落一地互不相關,它們構成一個權力羅網。你或可像「後現代主義差異論者」所倡言般,從一種身份跳到另一種身份(如果你
Weekly spam summary on December 2nd, 2006
Our SMTP frontend crashed and restarted today at 2:51pm, which meansthat some stats are a little bit distorted. This week, we:
- got 15,320 messages from 276 different IP addresses.
- handled 21,412 sessions from 1,467 different IP addresses.
- received 217,984 connections from at least 66,248 different IPaddresses up until this morning at 4am, and 11,150
這是一個怎樣的週日
牛棚書展.永不磨滅的地攤
拯救書櫃、拯救床鋪、拯救地板、拯救
Ubuntu's attention to detail in init.d scripts
# /etc/init.d/exim4 stopStopping MTA: exim4.# pidof exim43559# grep PIDFILE /etc/init.d/exim4 | sed 1qPIDFILE="/var/run/exim4/exim.pid"# ls -ld /var/run/exim4ls: /var/run/exim4: No such file or directory# mount | fgrep /var/runvarrun on /var/run type tmpfs (rw