copyleft() {
cat<<-EOF
makemap: build a sitemap for this site
Copyright (C) 2004 Tim Menzies
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation, version 2.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
EOF
}
usage() {
cat<<-EOF
Usage: makemap [FLAGs]
Generates a site map pod file for these pod files.
Flags
-f FILE stem from output sitemap; default $Q$sitemap0$Q
-h print this help text
-l copyright notice
EOF
}
Copy the following files to your own directory from http://www.cs.pdx.edu/~timm/dm/makemap.zip: http://www.cs.pdx.edu/~timm/dm/makemap; and http://www.cs.pdx.edu/~timm/dm/config; and http://www.cs.pdx.edu/~timm/dm/sitemap.sh.
Make makemap executable:
chmod +x makemap
Edit your this file and config.
The first line of this file should point to your local bash shell.
and you'll need to check at least the #paths sectionin config
Defaults
sitemap0="sitemap"
Paths:
##config #paths pkgs="/pkgs/gnu/bin" gnuplot="$pkgs/gnuplot-3.7" export PAGER="/pkgs/gnu/bin/less" export AWKPATH="$HOME/public_html/dm" wget="$pkgs/wget" gawk="$pkgs/gawk" less="$pkgs/less" tmp="/tmp/$$" zip="/usr/local/bin/zip -q " java="/pkgs/jdk1.4.2/bin/java" jar="/pkgs/jdk1.4.2/bin/jar"
#data sets data="/u/timm/public_html/dm/data" discretes="$data/somediscretedatasets.dat" numerics="$data/somenumericdatasets.dat"
#weka stuff wekajar="/pkgs/weka/weka-3-2-3/weka.jar" oner="weka.classifiers.OneR -B 6" j48="weka.classifiers.j48.J48 -C 0.25 -M 2" bayes="weka.classifiers.NaiveBayes" bayeske="weka.classifiers.NaiveBayes -k" modeltree="weka.classifiers.m5.M5Prime -O m -F 2.0 -V 0" lsr="weka.classifiers.m5.M5Prime -O l -F 2.0 -V 0" regressionTree="weka.classifiers.m5.M5Prime -O r -F 2.0 -V 0" nways="weka.filters.SplitDatasetFilter"
. config
. sitemap.sh
This code loads the sitemap.sh file, then
redefines the head(), section() and pod() commands.
Now, when sitemap is called, a site map is created
for all the first arguments passed to pod.
next() {
echo "</ul>"
echo ""
echo "=end html"
echo ""
}
section() {
title=$*
echo ""
echo "=head2 $title"
echo ""
echo "=begin html"
echo "<ul class=sitelist>"
}
pod() {
stem=${1%.*}
shift;
title=$*
echo "<li class=siteitem><a href=\"$stem.html\">$title </a>"
}
Our files need certain headers and footers.
header() {
echo ""
echo "=head1 Site map"
echo ""
echo "=include cs510.pod"
echo ""
}
footer() {
next;
echo ""
echo "=include footer.timm"
echo ""
}
while getopts "f:hl" flag
do case "$flag" in
f) sitemap=$OPTARG;;
l) copyleft; exit;;
h) usage; exit ;;
esac
done
shift $(($OPTIND - 1))
sitemap=${sitemap:=$sitemap0}
(header; sitemap; footer) > $sitemap.pod
chmod a+r $sitemap.pod
Tim Menzies ,
tim@menzies.us,
http://menzies.us
This page generated by Site:
see http://www.cs.pdx.edu/~timm/dm/site.html
This site is built using PerlPod.Style sheet switching method taken from Eddie Traversa's excellent and simple-to-apply tutorial: http://dhtmlnirvana.com/content/styleswitch/styleswitch1.html.
Search engine powered by ATOMZ http://www.atomz.com/search/. Note, the indexes to this site are only updated weekly (heh, its a free service- what more ja want?).
Icons on this site come from http://www.sql-news.de/rubriken/olap.asp and http://www.ifnet.it/webif/centrodi/eng/toolbar.htm.
The JAVA machine learners used at this site come from the extensive data mining libraries found in the University of Waikato's Environment for Knowledge Analysis (the WEKA) http://www.cs.waikato.ac.nz/ml/weka/
Copyright (C) Tim Menzies 2004
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2; see http://www.gnu.org/copyleft/gpl.html. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
The content from or through this web page are provided 'as is' and the author makes no warranties or representations regarding the accuracy or completeness of the information. Your use of this web page and information is at your own risk. You assume full responsibility and risk of loss resulting from the use of this web page or information. If your use of materials from this page results in the need for servicing, repair or correction of equipment, you assume any costs thereof. Follow all external links at your own risk and liability.