9thport ruby, rails, sysadmin, os x, and other stuff

3Mar/100

This is pretty cool.

Location:Main St,San Francisco,United States

Filed under: Uncategorized No Comments
1Mar/100

change maximum memory for coldfusion 8

First, it might be good for you to get the total amount of free memory on your system (using -m will present the information in MB):

[root@www1 bin]# free -m
total       used       free     shared    buffers     cached
Mem:          1770       1754         15          0         74        894
-/+ buffers/cache:        785        984
Swap:         1983         74       1909

Looks like I have about 1754 MB free.

Edit the following file:

/opt/jrun4/bin/jvm.config

then change the following line from:

-XX:MaxPermSize=512m

to something higher, like:

-XX:MaxPermSize=768m

Filed under: Linux, Sysadmin No Comments
22Feb/100

Another day at the bus stop

Another day at the bust stop that got me to take a panorama of the weather. This time I saw lots of fog!

Filed under: Photos, Travel No Comments
22Feb/100

When starting Dreamweaver CS4 I get an error of microsoft visual c++ runtime library: runtime error

Today I got an error message of "microsoft visual c++ runtime library: runtime error ..." when attempting to run Adobe Dreamweaver CS4. This is horrible!! Here is a screen show showing what I got:

dreamweaver cs4 windows error

my dreamweaver cs4 windows error

My method for fixing this error on Windows XP was to do move the following directory into my Recycle Bin:

  • c:\Documents and Settings\[username]\Application Data\Adobe\Dreamweaver CS4

Note: The "Application Data" folder is hidden and you might need to do the following:

  1. Choose menu "Tools"
  2. Choose menu item "Folder Options"
  3. Choose tab "View"
  4. Enable "Show hidden files and folders"
  5. Click "OK"

After removing the directory, launching Dreamweaver worked! I was also surprised that I did not loose any of my site settings.

12Feb/100

bash script template to be used for parsing arguments to make your shell programming life easier

I found that all my bash scripts really bennifet with the following template because:

  1. it handles options with possible responses of needs
  2. debugging with a flag
  3. help description of the script

This template keeps proving to be enough to start my script building. There is really nothing more to say about this so here is my template:

#!/usr/bin/env bash

# created at: Wed Apr 04 10:03:41 PDT 2009
# updated at: Wed Apr 22 15:33:24 PDT 2009
# author: aaron addleman

# manage subversion with swatch and ftp log file. all actions will be sent to a file for throttling purposes to allow SVN to handle its own lock files
# BEGIN SCRIPT
usage()
{
cat << EOF
usage: $0 options
This script takes commands from a swatch and converts to svn commands for a directory under version control.
OPTIONS:
-h      Show this message
-a   Action needed (STOR, DELE, MKD, ENTRIES, SVNUPDATE)
-u      Username to use for commits
-f      File or directory being affected
-m      message to use
-x      Execute SVN commands from the $SVNACTIONS file
(when this option is used, all others are ignored)
-v      Verbose (boolean)
-t      Test (dont run any commands, but print them to the command line)
EOF
}

ACTION=
USER=
FILE=
MESSAGE=
VERBOSE=
TEST=
while getopts "h a:u:f:m:x:v:t" OPTION
do
case $OPTION in
h)
usage
exit 1
;;
a)
ACTION=$OPTARG
;;
u)
USER=$OPTARG
;;
f)
FILE=$OPTARG
;;
m)
MESSAGE=$OPTARG
;;
v)
VERBOSE=1
;;
t)
TEST=1
;;
?)
usage
exit
;;
esac
done