Erik Forsberg's diary for October, 2001


[2001-08] [2001-09] [2001-10] [2001-11] [2001-12]

Monday 2001-10-22

21:05

Setting a combination of "Restrict posting to members only":No, and a few explicitly allowed senders in Mailman of course allows only the explicityly allowed senders to post.

Doh!

21:58

The python2-base packages in Debian doesn't include the distutils module. However, it's included in the python2-dev package.

23:19

Ahh! Don't miss-spell localhost when dealing with MySQL :-)

Saturday 2001-10-20

18:53

Cleaning Inline Ball-Bearings are not the most funny thing to do in the world.

Thursday 2001-10-18

22:34

If I don't want emacs to write backup files in a certain directory, I can do like this:

--snip-- (setq backup-enable-predicate (lambda (name) (or (< (length name) 5) (not (string-equal "/tmp/" (substring name 0 5))) (not (string-equal "/home/erik/documentation/diary/" (substring name 0 31)))))) --snap--

It took me a while to understand why the first test was there.. It's there to ensure that if the second test doesn't return t (because the file is not in /tmp) the function should return t anyway, since the default is enable backup-files.

Kudos to the people in 'Emacs erfarenhetsutbyte' @ LysLysKOM!

22:44

Another neat piece of .emacs I just wrote:

--snip-- (defun snipsnap () (interactive) (insert "\n--snip--\n") (push-mark) (insert "\n--snap--\n") (exchange-point-and-mark))

(global-set-key "\C-cs" 'snipsnap) --snap--

Makes it really easy to insert "snip-snaps", something I do quite often..

Wednesday 2001-10-17

15:27

Running BIND on IRIX is not a painless experience. BIND 9.1 doesn't find virtual ip interfaces on the machine, so you must use a physical interface.

BIND 8.2.1 seems to have a patch for this, but I don't think that version is an option. I'm compiling 8.2.5 now to see how it behaves.

I also remembering having the same problem with Postfix. Hmm..

15:41

Ahh.. Bind 8.2.5 knew how to cope with aliases. Even without a patch.

23:30

Hmm.. There seems to be a smart way of choosing which email address should be used as sender address (From header, etc.) for different groups in Gnus. Posting-styles. For example, by doing 'G p' on my postfix folder, and entering this:

--snip-- (posting-style (address "forsberg+postfix01@lysator.liu.se")) --snap--

it uses another address (that I can change after a year or so to decrease spam address harvesting)

However, replying doesn't seem to work perfectly yet.

Ah.. If I instead define a variable, like this:

--snip-- (setq gnus-posting-styles '(("^postfix-users" (address "forsberg+postfix01@lysator.liu.se") ) ("^mailman-users" (address "forsberg+mailman@lysator.liu.se") ) ("^mailman-devel" (address "forsberg+mailman-devel@lysator.liu.se") ))) --snap--

..then it works. Strange since at least one person says it should work in the other mode.

Friday 2001-10-12

23:19

Ahh.. "LysBlock TNG", the new UCE filter @ Lysator seems to be working after a few nasty bugs:

* Make sure you specify what row you want to modify in a SQL table :-) * Don't misspell Postfix UCE restrictions, or get a '451 server configuration error'.