A gotcha with analyzing syslog logs

Consider the following command:

; grep 'gabba gabba hey' /var/log/messages | wc -l

This looks like a perfectly sane and sensible way of doing syslog loganalysis: fish out a pattern, then count or otherwise crunch it up. It'sjust the sort of thing Unix tools are built for, and I do it all thetime. (My howmany program often gets used here.)

Unfortunately, as I was reminded recently, this appealingly simpleapproach is not quite correct. It


不再驚嚇的 Tomb Raider – Legend

trl

趁假期完成了新的 Tomb Raider – Legend ( TRL ) 遊戲,TR 系列我自己每一代都玩,但說實在已經越玩越厭,因為遊戲本身已經沒有什麼可突破的地方了,蘿拉再多的新動作也沒用。所以,還是調整心情,好好探索古墓吧!

這一集遊戲是由另一


寂寞的人


寂夫人離開的第一天,生活變得更寂寞。

筆愚先生下午來電,商量周六下午與某中學同學談文學,我也是一口應承,有時間也不妨做這些事,多結交朋友,多聽意見,總是好的。今次想輕鬆的交流,最好是多聽他們講,在一定程

How Solaris matches names in NFS exports

Recently, I accidentally found out which of two options Solaris usesfor matching names in NFS exports. As traditional, I did this by stubbing my toe .

Given a name in an /etc/dfs/sharetab line, there are two possible waysof checking if it matches an incoming NFS request: you could resolve the sharetab name to its IP addresses and see if the request's IP addressmatched, or you could take the request's IP address and try to turn itinto a hostname and see if


是日戰利品

1. Roxy Pants

2. Zara Tube Dress

3. Bobbi Brown Eyeliner

4. Bobbi Brown Eyeliner Brush

5. Perfect Portion Rose Water

6. Perfect Portion Neroli Water

7. Dr Hauschka Lip Balm

8. Chantecaille Gel Foundation


當我吃著美味的海膽,我的守護天使跟我說:「我沒想過你可以這麼快let go。」

我點了點頭。

為甚麼不?請原諒我這膚淺的人。


這就是我的生活


北京之行一日即回,工作順利,應酬喝多了一點酒,但只要事情結果美滿,多喝也是值得的,這就是我的生活了。

昨晚在王府井書店逛了一小時,買了三本書,分別是:呂叔湘的“漢語語法分析問題”、陳亞川和鄭懿德的“呂叔

What do variable names mean (in Python and elsewhere)?

What are variables?

In many languages, variables are just labels for storage locations,for a spot in memory. This ranges from pure machine level storage, inlanguages like assembler, up through storage locations augmented withsize and type information, such as in C, all the way to Perl, where the'storage locations' are actually fairly abstract. But they're stillthere, even in Perl, partly because it's a comforting way to think aboutit: variables are where you put things .

In


Weekly spam summary on April 15th, 2006

This week, we:

  • got 12,120 messages from 254 different IP addresses.
  • handled 17,527 sessions from 926 different IP addresses.
  • received 119,314 connections from at least 38,574 different IPaddresses.
  • hit a highwater of 17 connections being checked at once.

Volume is way down from last week ; in factit's back to the level I consider fairly quiet (although this volumestill has a lot


20060415網摘 – 繁簡落幕

繁簡落幕

  • 雜感。聯合國廢止繁體中文一事 Quote: 現在,我仍然很惱怒,怒的當然不是聯合國,而是自己。自己的天真,把網上所有一切一切都放進腦袋去了,甚麼也信,就像是一個被愚弄的傀儡娃娃,任人擺布。孰真孰假,網絡的

Public interfaces and Solaris 9 patchadd exit codes

A commenter on an earlier entry noted that patchadd 's exit codes are apparently not documented because they'reconsidered an internal implementation detail that might change at somepoint. Unfortunately this is bogus logic.

There's a simple rule: once you explicitly expose something to users, itceases to be an internal implementation detail in practice no matterwhat you want (and no matter what you may claim in documentation,although Sun does not explicitly claim this in the patchadd manpage).

Solaris 9 manifestly exposes patchadd 's