Topic: Computers Spam blocking
(link)

9:50am, Thursday 10 March 2005

In a further attempt to reduce the flood of spam, I turned on DNS blacklist filtering on the mailserver which handles mail for biff.org.uk, elsworthvillage.org.uk, cambridgefolk.org.uk and a few others. In the first half hour 50% of incoming messages were rejected due to DNS blacklist entries. So if I haven't replied to an email you sent me, that's probably why!

Topic: Computers Message for Jan Rekers
(link)

10:36am, Thursday 10 February 2005

Jan, if you're reading, you might like to know that I've adopted floatbg for Debian, and made a small change that fixes a seven-year-old bug in the process (floatbg will now refuse to run if it thinks there's another floatbg already talking to the X server; avoids nasty colour-flashing). I tried your nl.ibm.com and cwi.nl addresses but they bounce.

Topic: Computers Fun with tcc and binfmt
(link)

1:58pm, Thursday 28 October 2004

root@charon:~# apt-get install tcc binfmt-support
<snip>
root@charon:~# cat /usr/local/bin/tccrun
#!/bin/bash
exec /usr/bin/tcc -run "$@"
root@charon:~# update-binfmts --install C /usr/local/bin/tccrun --extension c

dh3@charon:~$ cat hello.c
void main(void) {
        printf("hello, world!\n");
}
dh3@charon:~$ chmod a+rx hello.c
dh3@charon:~$ ./hello.c
hello, world!
dh3@charon:~$
Topic: Computers What does that do?
(link)

1:47pm, Tuesday 26 October 2004 (Updated 9:21pm, Tuesday 26 October 2004)

sed '0~2d' test > $$.1 ; sed '1~2d' test > $$.2 ; \
  paste -d ' ' $$.1 $$.2 ; rm $$.1 $$.2
Optimisations welcomed. I'd particularly like to get it all into a single sed call without using temporary files.

Update:

sed -n 'N; s/\n/ /; p' test
Fab, a one-liner. Unfortunately the shorter
sed 'N; s/\n/ /' test
behaves differently with GNU sed and Tru64 sed. :-(
Topic: Computers Hide and seek
(link)

3:18pm, Monday 13 September 2004

How to hide your X cursor. (There was a real reason for finding this out!)

Create a file "empty.xbm":

#define empty_width 1
#define empty_height 1
#define empty_x_hot 0
#define empty_y_hot 0
static char empty_bits[] = {
 0x00, };
then hide the cursor with xsetroot -cursor empty.xbm empty.xbm
<-
 Topic:    
->

Powered by Personal Weblog.

March 2024
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Feb   Apr

[RSS]

 


 


Dave Holland <dave@biff.org.uk>
$Id: index.php,v 1.75 2010-07-09 22:15:04 dave Exp $