soundstretch install

A note from the author:
(my comment) When I try to install it (“./configure”) it replies
configure: error: cannot find install-sh or in config ./config

when I go to the config directory I see a few links to non existent files.  Maybe something worth checking into. Thanks!

Yeah, there’re some trouble in configure scripts due to different
versions of the gnu config utilities. You could try running the
./bootstrap script that regenerates the configure script with local tools.

I believe I overcame it by building it using gcc by hand. ugh.

berkeley db

installing it and get something like
config.status: creating db_config.h
sed: file ./confD22089/defines.sed line 55: unknown command: `(‘

just run configure again 🙂

how to host static files in a django app for development

Add the following to (first line optional 🙂

if settings.DEBUG: # then serve static files here :)
urlpatterns += patterns('',
(r'^static_files/(?P .*)$', 'django.views.static.serve', {'document_root': 'C:/office_in_out/oliver/drb/static_files', 'show_indexes': True}),

Then you can access /static_files/filename.jpg and it should work. See the other post for production setup 🙂

As a side note, “how to change your django app from development to production” is you go to and change DEBUG = True to DEBUG = False. I’m not sure what to do with TEMPLATE_DEBUG after that 🙂

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"

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