parameters in django templates

It seems that it may be possible to have parameters within called functions in a django template. {% url path.to.some_view arg1,arg2,name1=value1 %} (see http://www.djangoproject.com/documentation/templates/).

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

webalizer

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

Change

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

GL!

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('rogerpack@gmail.com', 'My Subject', $message, "From: r@r.com");
// Send
//mail("rogerpack2005@gmail.com", "sub", "msg")
// mailx -s "subject" paulr@onebetter.com
?>

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