parameters in django templates

It seems that it may be possible to have parameters within called functions in a django template. {% url arg1,arg2,name1=value1 %} (see

For sure if you have a “template function” that function can accept parameters, but…I think at least to my knowledge not normal functions.


So…use webalizer and discover that its “agent’ (browser) field is actually just too small?


edit webalizer.h, change
#define MAXAGENT 1024 // changed to bigger…arg!                    /* Max user agent field size        */


how to write email in php

Use the default “mail” command, but make sure you include a “from” address in the last parameter!

// The message
$message = "Line 1nLine 2nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
mail('', 'My Subject', $message, "From:");
// Send
//mail("", "sub", "msg")
// mailx -s "subject"

ruby sockets

Find that your ruby process with sockets and threads suddenly…stops mid-thread?  Make sure you aren’t killing it (inadvertently) via some other thread (like thread.kill).
Have problems connecting to localhost (connection reset by peer, even before you receive the last packet?) — sleep 1 after sending the last packet and the receiving end on localhost will get it [ugh].

Roger's meanderings, notes to himself, bug reports, and other things