Monday, 15 February 2010

Find class in jar unix script

Unix script to search for a class or package name in a set of jars. Handy for debugging ClassNotFoundExceptions


#!/bin/sh

JARDIR=$1
CLASS=$2
echo "Looking for class name `$CLASS` in directory $JARDIR"

for i in `find $JARDIR -name "*jar"`
do
echo "Looking in $i ..."
jar tvf $i | grep $CLASS
done


Create an alias


alias findinjars='~/poconnell/tools/scripts/findinjars.sh'

Sunday, 10 January 2010

Flot - with x-axis ticks



Friday, 18 December 2009

BHAA Screenshots

the pre-populated renewal form (128 char code sent to a member via email)



an event with race results.



pre event page - with reg page



the events page (tabs per year)

Teams and Companies

Tuesday, 8 December 2009

Friday, 4 December 2009

Preforce, Intellij & Ubuntu

If your running intellij on ubuntu, you make need to make sure this preforce settings are configured within the root user setup scripts, add them to /etc/profile.d/global.sh

user@foundry:~$ more /etc/profile.d/global.sh

export P4USER=$USER
export P4CHARSET=utf8
export P4CLIENT=`hostname`
export P4PORT=perforce.newbay.com:1666

Tuesday, 17 November 2009

reconfigure oracle-xe on ubuntu

To reconfigure an instance of oracle-xe on ubuntu, first edit this file

/etc/default$ more oracle-xe

change the CONFIGURE_RUN value to false

# ORACLE_DBENABLED:'true' means to load the Database at system boot.
ORACLE_DBENABLED=true

# LISTENER_PORT: Database listener
LISTENER_PORT=1521

# HTTP_PORT : HTTP port for Oracle Application Express
HTTP_PORT=8080

# Configuration : Check whether configure has been done or not
CONFIGURE_RUN=true

and then execute

/etc/initi.d/oracle-xe configure