Zope SlackBuild

December 6, 2005

Here's a SlackBuild I made for a Zope3 slackware package. Use it. Change it. Whatever.

This should be used for personal packaging only. One problem that I'm having with this SlackBuild is that when it creates and the pyc files it seems to hardcode the the error/warning callback tracing (whatever it's called) code with the temporary install path. I was told that running compileall.py on all of the installed files should fix this. Oh yeah, don't forget the slack-desc:


# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
zope: Zope
zope:
zope: Zope is an Open Source object oriented web application server written
zope: in the programming language Python.  Zope stands for "Z Object
zope: Publishing Enviroment."  It can be almost fully managed with a web-
zope: based interface.  Zope publishes the web Python objects that are\
zope: typically persisted in an object database, ZODB.
zope:
zope: Python 2.3.5 is preferred.  Otherwise, Python 2.4.1+.
zope: Python 2.4.2 supports 64 bits.
zope:

Here's the SlackBuild: Zope.SlackBuild

Here is a python script I wrote that will update http://sitelutions.com/ with your Linksys BEFSR41 router’s IP address. The code will work with the Linksys WRT54GS router as well. But you will need to uncomment and comment code. It shouldn’t be too difficult to figure out where.

If someone would like to write the python code to daemonize this script, please do. Currently, I have it in my cron.daily.

Oh yeah, the script will not update sitelutions unless the router’s ip address is different than your domain name (yourdomain.com). I know that DynDNS requires users to update their dynamic ip address (regardless of whether it has not changed) every 30 days for their account to remain active. If sitelutions requries the same, please let me know so that I can add an option to the script. If they do, the script will never inform sitelutions that your IP has stayed the same and your account will expire.

The script: Update Sitelutions With Router’s IP

The script requires the Beautiful Soup package:  Beautiful Soup

I just reinstalled windows and forgot to save my Putty session settings. I’m uploading the registry file for storage purposes, but feel free to use it. The colors were taken from someone’s .Xdeaults file I found a few years ago.
I’ll most likely update the attached file in a few weeks, after I use Putty more, because I can’t remember all of my old settings.

Here’s the file (p.s. it’s a .reg file): Putty Session Settings

And here’s the conversion:

color0 = black
color1 = red
color2 = green
color3 = yellow
color4 = blue
color5 = magenta
color6 = cyan
color7 = white
color8 = bold/bright black
color9 = bold/bright red
color10 = bold/bright green
color11 = bold/bright yellow
color12 = bold/bright blue
color13 = bold/bright magenta
color14 = bold/bright cyan
color15 = bold/bright white

FilterKeys

December 3, 2005

Before I begin a sentence I will often hold down the shift key while I organize my thoughts.  Unfortunately, a Windows Accessibility dialog pops up and asks me whether I want to turn filter keys on (Press OK) or off (Press Cancel).  The problem is that pressing OK and Cancel both turn filters keys on for some reason.  So, now I’m stuck with my shift key stuck :) .  The solution:  hold down both shift keys for a few seconds and voila!  All fixed.

screen irssi load script

December 3, 2005

This is a very useful script I wrote to load and run irssi in screen. I aliased it in .bash_profile to "irc". So, now I just run "irc" and if irssi has not been placed in screen already it will run irssi in screen; otherwise, it will attach irssi to the irc screen session. It makes running irc with screen superduper fast.


#!/bin/bash
# Run/Load IRC Script
# This script runs irssi in screen if it has not already been done.
# If irssi in screen is already running, it will then attach to
# the irc screen session for you.
if screen -ls | egrep '^[[:space:]]+[^[:space:]]' | awk '{print $1}' | egrep '.irc$'
then # running
screen -x irc
else # not running
screen -c ~/.screenrc.irc -S irc -t irssi irssi
fi

And here is .screenrc.irc


# detach on hangup
autodetach on
# multiusers
multiuser on
# no copyright notice during startup
startup_message off
# remove some bad bindings
bind k  #kill
bind ^k #kill
bind .  # dump termcap
bind ^h # hardcopy
bind h  # hardcopy
bind A  # title (clashes with vim's increment)

Something also useful: /bind meta-home scroll_start and /bind meta-end scroll_end (to scroll buffer to beginning and end with alt+home and alt+end, respectively).