apache bandwidth limiting

In response to my original post https://www.blogger.com/comment.g?blogID=36363111&postID=7717707930780716383 on mod_bw

One note is that  apparently mod_bw got most of its ‘code inspiration’ from an equivalent, on apache 1.3 (says in the files).  GL!

installing apache and mod_rewrite

so…install apache2 and get

Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration

no matter what you do to try and compile it in?  Try doing make clean, then –enable-rewrite as your parameters to configure.  Worked for me, now to configure it…

spamassassin bug fix

If you setup spamassassin webuserprefs and encounter

“Your settings file could not be found.” despite their existence, it may just mean that the file and directory are not visible to the user apache was run under.  Note that all subdirectories may need to be changed to be executable, possibly.

more productive windows use

Dislike the clutter on your windows desktop?  Here’s a trick–move all your desktop icons to the right side of the desktop.  Then they won’t bug you, because you tend to look at the left, since English is left to right.  Go figure.  Try it.  Thoughts?

ruby timeout::error problem

So if your code has ‘random’ timeout::error’s being thrown (later), and you use exceptions, it may be because the current ruby timeout code “ensure” clause could be interrupted by a raised exception, so the thread remains around forever.  Not good.  I have a fix which I am thinking about, email me for it.


problems with postfix

So…install spamassassin, and then create the .forward file, and it doesn’t work?  Cat /var/logs/mail.err (if using postfix — check with ps -ef).  If it says

Jul 23 03:00:11 stormtrooper procmail[20207]: Suspicious rcfile “/home/rpack/.procmailrc”

Then you may need to verify your permissions are set similarly to  http://www.cygwin.com/ml/cygwin/2003-02/msg01187.html

Note that you DO need to create the .forward file, for this setting, at least.  Odd.

installing spamassassin

If you get bugs installling spamassassin like those in the file, then what may be happening is you are unzipping it as one user, then when you install it as root it no longer has permissions in the local directory, so it fails (a weird situation, but apparently spamassassin and…umm…all perl modules fail to account for it in their installation…gross!)  So the fix is to install it ‘all’ as root [including unzipping], including with the cpan stuff (I think, anyway).  So just do it all in /tmp and not in an NFS dir and you’re ok.

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 install.sh 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 urls.py (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 settings.py and change DEBUG = True to DEBUG = False. I’m not sure what to do with TEMPLATE_DEBUG after that 🙂

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