[Moscow.pm] Взрыв мозга или занимательная топология

Александр Букреев pesniru на gmail.com
Сб Ноя 24 12:32:58 PST 2007


> $B'*'U'V'q(B $B'!'_'U'b'V'q(B $B'R'm']'Q(B $B'g'`'b'`'j'Q(B. $B'a'b'`'S'V'b'Z'](B $B'V'W(B $B'_'Q(B $B'U'V']'V(B, $B'b'V'Y'e']'n'd'Q'd'm(B $B'e'X'V(B $B'V'c'd'n(B.
> $B'/'`(B $B'c(B $B'`'T'`'S'`'b'\'Q'^'Z(B.

$B','Q'\'Z'V(B $B'a'`']'e'i'Z']'Z'c'n(B $B'`'T'`'S'`'b'\'Z(B?

$B'*'U'V'q(B $B'!'_'U'b'V'q(B $B'g'`'b'`'j'Q(B, $B'_'`(B $B'a'b'`'g'`'U'q(B $B'a'`'c']'V'U'`'S'Q'd'V']'n'_'`(B $B'a'`(B $B'U'V'b'V'S'e(B $B'`'d(B $B'`'\'`'_'V'i'_'m'g(B
$B'e'c'd'b'`'['c'd'S(B $B'd'm(B $B'_'Z'\'`'T'U'Q(B $B'_'V(B $B'a'`']'e'i'Z'j'n(B $B'a'`']'_'`'V(B $B'U'V'b'V'S'`(B, $B'd(B.$B'\(B. $B'_'Q(B $B'a'b'Q'\'d'Z'\'V(B $B'S(B
$B'R'`']'n'j'`'[(B $B'c'V'd'Z(B $B'S'c'd'b'V'i'Q'p'd'c'q(B $B'c'Z'd'e'Q'h'Z'Z(B, $B'\'`'T'U'Q(B $B'V'c'd'n(B $B'a'b'`'a'e'c'\'Z(B. $B'4(B.$B'V(B. $B'c'`'c'V'U'_'Z'V(B
$B'\'`'^'^'e'd'Q'd'`'b'm(B $B'_'V(B $B'S'Z'U'q'd(B $B'U'b'e'T(B-$B'U'b'e'T'Q(B. $B'1'b'`'g'`'U'q(B $B'a'`'c']'V'U'`'S'Q'd'V']'n'_'`(B $B'e(B $B'S'Q'c(B $B'R'e'U'V'd(B $B'S(B
$B'o'd'`'^(B $B'^'V'c'd'V(B $B'Y'Q'd'm'\(B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S'V'Y'U'V(B $B'Z'Y(B $B'S'Z'U'Z'^'`'c'd'Z(B...
> $B'S'c'W(B $B'R'm(B $B'Y'U'`'b'`'S'`(B, $B'_'`(B $B'V'c'd'n(B $B'a'b'`'R']'V'^'m(B. $B'S(B $B'd'Q'R']'Z'h'V(B 2529 $B'Y'Q'a'Z'c'V'[(B.
> $B'a'b'Z'j']'`'c'n(B $B'c'U'V']'Q'd'n(B
> delete from mactable where macaddr not in (select macaddr from mactable
> where status='private');
> $B'a'`']'e'i'Z'](B 634 $B'e'R'Z'd'm'V(B $B'Y'Q'a'Z'c'Z(B, $B'd(B.$B'V(B. $B'e'R'b'Q'](B $B'S'c'V(B $B'Y'Q'a'Z'c'Z(B $B'\'`'d'`'b'm'V(B $B'_'V(B
> $B'\']'Q'c'c'Z'f'Z'h'Z'b'`'S'Q'_'m(B $B'Z(B $B'_'V(B $B'a'b'Z'S'q'Y'Q'_'m(B $B'\(B $B'\'Q'\'`'^'e(B-$B']'Z'R'`(B $B'c'S'Z'i'e(B.
> $B'&'c'd'n(B $B'a'`'U'`'Y'b'V'_'Z'V(B, $B'i'd'`(B $B'^'`'X'_'`(B $B'c']'e'i'Q'['_'`(B $B'a'`'d'V'b'q'd'n(B $B'U'Q'_'_'m'V(B $B'`'R(B $B'e'c'd'b'`'['c'd'S'Q'g(B.
> $B'a'`'d'`'^(B $B'S'b'`'U'V(B c$B'b'Q'R'`'d'Q']'`(B

$B'?'^(B. $B'1'`'q'c'_'Z(B, $B'i'd'`(B $B'd'm(B $B'Z'^'V'_'e'V'j'n(B $B'\'Q'\(B private $B'Z(B public $B'S(B $B'U'Q'_'_'`'[(B $B'Y'Q'U'Q'i'\'V(B...

> select switch,port,count(*) from mactable where status is null group by
> switch,port;
> $B'U'Q'W'd(B $B'a'`']'_'m'[(B $B'c'a'Z'c'`'\(B $B'\'`']'Z'i'V'c'd'S'Q(B $B'e'c'd'b'`'['c'd'S(B $B'_'Q(B $B'a'`'b'd'Q'g(B up/down$B']'Z'_'\'`'S(B.
> $B'Y'Q'a'b'`'c(B
> select switch,port,count(*) from mactable where status is null and
> macaddr not in (select macaddr from mactable where switch='10.6.204.21'
> and status = 'private') group by switch,port;
> $B'e'R'Z'b'Q'V'd(B $B'Z'Y(B $B'o'd'`'T'`(B $B'c'a'Z'c'\'Q(B $B'a'`'b'd(B $B'c(B downlink$B'`'^(B.

$B'7'^(B. $B'A(B $B'd'e'd(B $B'c'd'b'e'\'d'e'b'Q'^'Z(B $B'a'V'b']'Q(B $B'`'a'V'b'Z'b'`'S'Q'](B. $B'1'b'`'k'V(B $B'S(B $B'a'Q'^'q'd'Z(B $B'a'`'b'Q'R'`'d'Q'd'n(B, $B'i'V'^(B
$B'^'e'c'\'e']'n(B $B'_'Q'a'b'q'T'Q'd'n(B. ;-)

$B'1'`'b'q'U'`'\(B $B'U'V'['c'd'S'Z'[(B:
- $B'S'm'R'Z'b'Q'V'^(B $B'\'`'b'_'V'S'`'V(B $B'e'c'd'b'`'['c'd'S'`(B
- $B'a'`']'e'i'Q'V'^(B $B'c'a'Z'c'`'\(B: $B'e'c'd'b'`'['c'd'S'`(B-$B'a'`'b'd(B = $B'c'a'Z'c'`'\(B $B'e'c'd'b'`'['c'd'S(B $B'_'Q(B $B'a'`'b'd'e(B
- $B'`'d'R'b'Q'c'm'S'Q'V'^(B $B'd'V(B $B'c'S'q'Y'\'Z(B "$B'e'c'd'b'`'['c'd'S'`(B-$B'a'`'b'd(B" $B'e(B $B'\'`'d'`'b'm'g(B $B'S(B $B'c'a'Z'c'\'V(B $B'e'c'd'b'`'['c'd'S(B
$B'a'b'Z'c'e'd'c'd'S'e'V'd(B $B'\'`'b'V'_'n(B.
$B'#(B $B'Z'd'`'T'V(B $B'a'`']'e'i'Z']'Z(B $B'c'a'Z'c'`'\(B $B'U'Q'e'_']'Z'_'\'`'S(B $B'_'Q(B $B'c'S'q'Y'\'Q'g(B "$B'e'c'd'b'`'['c'd'S'`(B-$B'a'`'b'd(B".

$B'2'Q'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