Update of /cvsroot/aimmath/AIM/WEB-INF/maple
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5478/WEB-INF/maple
Modified Files:
Tag: aim-xml
AutoConfWin.mpl AutoConfWin.mws RPC.mpl RQP.mpl XML.mpl
Log Message:
Index: RPC.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/Attic/RPC.mpl,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** RPC.mpl 31 Mar 2005 14:20:13 -0000 1.1.2.2
--- RPC.mpl 1 Apr 2005 01:42:55 -0000 1.1.2.3
***************
*** 186,190 ****
for x in this['Inputs'] do
if i > n then
! error(sprintf(__("Input parameter (%s) is missing"),x['Name']));
fi;
y := c[i];
--- 186,190 ----
for x in this['Inputs'] do
if i > n then
! error(sprintf(__("Input parameter (%s) is missing"),x['LocalName']));
fi;
y := c[i];
***************
*** 439,460 ****
d := this['DefaultNamespace'];
fi;
! try
! return(p['Process',eval(c),d]);
! catch:
! ex := [lastexception];
! if nops(ex) > 1 and ex[2] = "SOAP Fault" then
! faultcode := `if`(nops(ex)>2, ex[3], "Client");
! faultstring := `if`(nops(ex)>3, ex[4], "Unknown error");
! faultdetail := `if`(nops(ex)>4, ex[5], op([]));
! return(
! `SOAP/Fault`(faultcode,faultstring,faultdetail)
! );
! else
! return(
! `SOAP/Fault`(
! "Server",
! cat("Processing error: ",StringTools:-FormatMessage(lasterror))));
! fi;
! end try;
end
]
--- 439,461 ----
d := this['DefaultNamespace'];
fi;
! return(p['Process',eval(c),d]);
! # try
! # return(p['Process',eval(c),d]);
! # catch:
! # ex := [lastexception];
! # if nops(ex) > 1 and ex[2] = "SOAP Fault" then
! # faultcode := `if`(nops(ex)>2, ex[3], "Client");
! # faultstring := `if`(nops(ex)>3, ex[4], "Unknown error");
! # faultdetail := `if`(nops(ex)>4, ex[5], op([]));
! # return(
! # `SOAP/Fault`(faultcode,faultstring,faultdetail)
! # );
! # else
! # return(
! # `SOAP/Fault`(
! # "Server",
! # cat("Processing error: ",StringTools:-FormatMessage(lasterror))));
! # fi;
! # end try;
end
]
Index: XML.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/Attic/XML.mpl,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** XML.mpl 31 Mar 2005 12:37:53 -0000 1.1.2.4
--- XML.mpl 1 Apr 2005 01:42:55 -0000 1.1.2.5
***************
*** 1407,1410 ****
--- 1407,1444 ----
`Package/Assign`(
+ `XML/MapleExpression`,
+ "",
+ `new/XML/Type`(
+ "xs:string",
+ "xs:string",
+ anything,
+ proc(a,h)
+ local s;
+ if a = NULL then
+ `new/XML/Element`(h,"");
+ else
+ s := sprintf("%m",a);
+ `new/XML/Element`(h,s);
+ fi;
+ end,
+ proc(x)
+ ### TODO: check this for safety
+ local s,a;
+ s := `XML/ContentString`(x);
+ if s = FAIL then
+ error(__("Not a string"));
+ elif s = "" then
+ return(NULL);
+ fi;
+ a := sscanf(s,"%m");
+ if nops(a) <> 1 then
+ error(__("Cannot parse .m string"));
+ fi;
+ return(eval(a));
+ end
+ )
+ ):
+
+ `Package/Assign`(
`XML/string`,
"",
Index: RQP.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/Attic/RQP.mpl,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** RQP.mpl 31 Mar 2005 14:20:41 -0000 1.1.2.2
--- RQP.mpl 1 Apr 2005 01:42:55 -0000 1.1.2.3
***************
*** 180,184 ****
certain parts of QTI, these variables are string-valued, and
are permitted to have multiple values or no value. They are
! represented in Maple as a list of the form
@[identifier,[first value,...,last value]]@.
",
--- 180,184 ----
certain parts of QTI, these variables are string-valued, and
are permitted to have multiple values or no value. They are
! represented in Maple as an equation of the form
@[identifier,[first value,...,last value]]@.
",
***************
*** 191,202 ****
</xs:sequence>
</xs:complexType>",
! [string,list(string)],
proc(a,h)
local v;
! v := ("soap-enc:ArrayType" = sprintf("xs:string[%d]",nops(a[2])));
`new/XML/Element`(
! h,[["identifier", "xsi:type" = "xs:NCName"],a[1]],
[["values","xsi:type" = "soap-enc:Array", v],
! op(map(s -> [["item","xsi:type" = "xs:string"],s],a[2]))]);
end,
proc(x)
--- 191,202 ----
</xs:sequence>
</xs:complexType>",
! string = list(string),
proc(a,h)
local v;
! v := ("soap-enc:ArrayType" = sprintf("xs:string[%d]",nops(rhs(a))));
`new/XML/Element`(
! h,[["identifier", "xsi:type" = "xs:NCName"],lhs(a)],
[["values","xsi:type" = "soap-enc:Array", v],
! op(map(s -> [["item","xsi:type" = "xs:string"],s],rhs(a)))]);
end,
proc(x)
***************
*** 206,216 ****
error(__("Invalid RQP variable structure"));
fi;
-
id := `XML/ContentString`(c[1]);
vals := `XML/ToMaple`(`RQP/ArrayOfstring`,c[2]);
! return([id,vals]);
! end,
! "soap-enc:Array"
)
):
--- 206,214 ----
error(__("Invalid RQP variable structure"));
fi;
id := `XML/ContentString`(c[1]);
vals := `XML/ToMaple`(`RQP/ArrayOfstring`,c[2]);
! return(id = vals);
! end
)
):
***************
*** 231,235 ****
</xs:complexContent>
</xs:complexType>",
! list([string,list(string)]),
proc(a,h)
local t,hh;
--- 229,233 ----
</xs:complexContent>
</xs:complexType>",
! list(string = list(string)),
proc(a,h)
local t,hh;
***************
*** 262,266 ****
</xs:complexType>
",
! [string,string],
proc(a,h)
local v;
--- 260,264 ----
</xs:complexType>
",
! string = string,
proc(a,h)
local v;
***************
*** 268,273 ****
`new/XML/Element`(
h,
! [["name", "xsi:type" = "xs:NCName"],a[1]],
! [["value","xsi:type" = "xs:string"], a[2]]
);
end,
--- 266,271 ----
`new/XML/Element`(
h,
! [["name", "xsi:type" = "xs:NCName"],lhs(a)],
! [["value","xsi:type" = "xs:string"],rhs(a)]
);
end,
***************
*** 282,286 ****
val := `XML/ContentString`(c[2]);
! return([nam,val]);
end
)
--- 280,284 ----
val := `XML/ContentString`(c[2]);
! return(nam = val);
end
)
***************
*** 303,307 ****
</xs:complexType>
",
! list([string,list(string)]),
proc(a,h)
local t,hh;
--- 301,305 ----
</xs:complexType>
",
! list(string = string),
proc(a,h)
local t,hh;
***************
*** 313,320 ****
fi;
`new/XML/Element`(hh,
! op(map2(`XML/FromMaple`,`RQP/variable`,a,"item",true)));
end,
proc(x)
! map2(`XML/ToMaple`,`RQP/variable`,x['NonWhiteChildren']);
end,
"soap-enc:Array"
--- 311,318 ----
fi;
`new/XML/Element`(hh,
! op(map2(`XML/FromMaple`,`RQP/input`,a,"item",true)));
end,
proc(x)
! map2(`XML/ToMaple`,`RQP/input`,x['NonWhiteChildren']);
end,
"soap-enc:Array"
Index: AutoConfWin.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/AutoConfWin.mpl,v
retrieving revision 1.5.2.2
retrieving revision 1.5.2.3
diff -C2 -d -r1.5.2.2 -r1.5.2.3
*** AutoConfWin.mpl 31 Mar 2005 12:37:52 -0000 1.5.2.2
--- AutoConfWin.mpl 1 Apr 2005 01:42:54 -0000 1.5.2.3
***************
*** 355,360 ****
"Def" = ["C:\\Program Files","tomcat"],
"Def" = ["C:\\Program Files","jakarta-tomcat"],
! cd,
! "Check" = "bin/catalina.bat"
)):
--- 355,359 ----
"Def" = ["C:\\Program Files","tomcat"],
"Def" = ["C:\\Program Files","jakarta-tomcat"],
! cd
)):
Index: AutoConfWin.mws
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/AutoConfWin.mws,v
retrieving revision 1.6.2.2
retrieving revision 1.6.2.3
diff -C2 -d -r1.6.2.2 -r1.6.2.3
*** AutoConfWin.mws 31 Mar 2005 12:37:52 -0000 1.6.2.2
--- AutoConfWin.mws 1 Apr 2005 01:42:55 -0000 1.6.2.3
***************
*** 17,180 ****
1 {CSTYLE "" -1 -1 "Times" 1 18 0 0 0 1 2 1 1 2 2 2 1 1 1 1 }1 1 0 0
12 12 1 0 1 0 2 2 19 1 }}
! {SECT 0 {EXCHG {PARA 256 "" 0 "" {TEXT -1 42 "Automatic Configuration \+
! of AiM for Windows" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 102 "Copyright \+
! (C) 2003 Neil Strickland\nDistributed without warranty under the GPL -
! see README for details" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 ""
! 0 "" {TEXT -1 96 "This worksheet will configure your AiM system. Mostl
! y this will be done automatically. However, " }}{PARA 0 "" 0 "" {TEXT
! -1 51 "there are three things that you should set by hand:" }}{PARA 0
! "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 3 "+ " }{TEXT 256
! 58 "The host name of the machine on which you are running AiM." }
! {TEXT -1 2 " " }}{PARA 0 "" 0 "" {TEXT -1 98 " For initial testing
! , you can leave this set as \"localhost\"; this will allow you to acce
! ss AiM " }}{PARA 0 "" 0 "" {TEXT -1 95 " from the server on which i
! t is running, but not from any other machine. For real teaching " }}
! {PARA 0 "" 0 "" {TEXT -1 89 " use, you need to enter the fully qual
! ified domain name of the server (something like " }}{PARA 0 "" 0 ""
! {TEXT -1 63 " \"aim.shef.ac.uk\"). This should be entered as the v
! alue of " }{TEXT 257 18 "Config['HostName']" }{TEXT -1 7 " below." }}}
! {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 41 "Config['HostName'] := \"alic
! e.shef.ac.uk\":" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 ""
! 0 "" {TEXT -1 2 "+ " }{TEXT 258 53 "The address of the server that you
! use to send email." }}{PARA 0 "" 0 "" {TEXT -1 94 " This should ag
! ain be a fully qualified domain name (eg \"smtp.york.ac.uk\"). If you
! are not" }}{PARA 0 "" 0 "" {TEXT -1 95 " sure what to enter, try l
! ooking at the options used by your email client. For example, in " }}
! {PARA 0 "" 0 "" {TEXT -1 42 " Microsoft Outlook, use the menu items
! " }}{PARA 0 "" 0 "" {TEXT -1 168 " Tools > Options > Mail Delivery
! > Accounts > Mail > Properties > Servers\n and look under \"Outgoi
! ng mail (SMTP)\". You can get started with AiM without filling in" }}
! {PARA 0 "" 0 "" {TEXT -1 86 " this field, but your students will no
! t be able to get password reminders by email." }}{PARA 0 "" 0 ""
! {TEXT -1 50 " The address should be entered as the value of " }
! {TEXT 259 21 "Config['SMTPServer'] " }{TEXT -1 6 "below." }}}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 46 "Config['SMTPServer'] := \"mailhost.
! shef.ac.uk\":" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0
! "" {TEXT -1 2 "+ " }{TEXT 260 33 "The name of the top AiM directory" }
! }{PARA 0 "" 0 "" {TEXT -1 76 " This is just the last component of th
! e name. If you installed AiM under " }}{PARA 0 "" 0 "" {TEXT -1 3 " \+
! " }{TEXT 261 22 "C:/Tomcat/webapps/ROOT" }{TEXT -1 20 ", for example,
! then " }{TEXT 262 23 "Config['TomcatContext']" }{TEXT -1 12 " should \+
! just" }}{PARA 0 "" 0 "" {TEXT -1 20 " be set to \"ROOT\"." }}}
! {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 34 "Config['TomcatContext'] := \+
! \"AiM3\":" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 ""
! {TEXT -1 41 "Once you have set these values, click on " }{TEXT 263 5 "
! Edit " }{TEXT -1 38 "on the Maple toolbar, then select the " }}{PARA
! 0 "" 0 "" {TEXT 264 7 "Execute" }{TEXT -1 24 " submenu, then click on \+
! " }{TEXT 265 9 "Worksheet" }{TEXT -1 41 ". This will execute the work
! sheet, which" }}{PARA 0 "" 0 "" {TEXT -1 90 "will attempt to determine
! all other configuration information automatically. If there are" }}
! {PARA 0 "" 0 "" {TEXT -1 61 "any error messages, you should check your
! entries above. You" }}{PARA 0 "" 0 "" {TEXT -1 27 "may also need to \+
! click the " }{TEXT 266 1 "+" }{TEXT 267 1 " " }{TEXT -1 58 "signs next
! to \"Things that should be found automatically\" " }}{PARA 0 "" 0 ""
! {TEXT -1 86 "and/or \"Additional Configuration\", which will reveal a
! number of other configuration " }}{PARA 0 "" 0 "" {TEXT -1 86 "option
! s that you may need to set manually. You can then execute the workshe
! et again, " }}{PARA 0 "" 0 "" {TEXT -1 90 "and repeat until there are \+
! no error messages. (Some of the additional options are useful " }}
! {PARA 0 "" 0 "" {TEXT -1 86 "even if you have no errors, but you may w
! ish to ignore this possibility at your first " }}{PARA 0 "" 0 ""
! {TEXT -1 9 "attempt.)" }}{PARA 0 "" 0 "" {TEXT -1 82 "Uncomment the li
! ne below (by removing the initial # character) to get more verbose" }}
! {PARA 0 "" 0 "" {TEXT -1 41 "messages about the configuration process.
! " }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 15 "waffle := true:" }}}
! {SECT 0 {PARA 3 "" 0 "" {TEXT -1 41 "Things that should be found autom
! atically" }}{PARA 0 "" 0 "" {TEXT -1 2 " " }}{PARA 0 "" 0 "" {TEXT
! -1 91 "AiM needs to use a variety of files (eg the Maple executable) a
! nd directories (eg the main " }}{PARA 0 "" 0 "" {TEXT -1 98 "directory
! for the Java Runtime Environment). Often, it can find these for itse
! lf. If it fails to" }}{PARA 0 "" 0 "" {TEXT -1 96 "do so, or if it fi
! nds the wrong versions, then you can help it by filling in some of the
! options" }}{PARA 0 "" 0 "" {TEXT -1 84 "below. If you need to change
! anything, remember to remove the comment character (#)" }}{PARA 0 ""
! 0 "" {TEXT -1 29 "at the beginning of the line." }}{PARA 0 "" 0 ""
! {TEXT -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 1570 "##########
! ############################################################\n# The ab
! solute path to the BLAT program, used for sending email\n# Example:\n#
! Config['BLATProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\b
! lat\\\\blat.exe\":\n\n################################################
! ######################\n# The absolute path to the kill program (used \+
! to kill processes on this OS).\n# Example:\n# Config['KillProgram'] :=
! \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\Process\\\\Process.exe\":
! \n\n##################################################################
! ####\n# The top directory for the Tomcat distribution. \n# Example:\n#
! Config['CatalinaHome'] := \"C:\\\\Tomcat\":\n\n######################
! ################################################\n# The absolute path \+
! to the maple program. \n# Example:\nConfig['MapleProgram'] := \"C:\\\\
! Program Files\\\\Maple 9\\\\bin.win\\\\cmaple9.exe\":\n\n#############
! #########################################################\n# The absol
! ute path to the tth program (used to convert LaTeX to HTML).\n# Exampl
! e:\n# Config['TtHProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin
! \\\\tth_exe\\\\tth.exe\":\n\n#########################################
! #############################\n# The top directory for the Java distri
! bution. \n# Example:\nConfig['JavaHome'] := \"C:\\\\Sun\\\\AppServer\\
! \\jdk\":\n\n##########################################################
! ############\n# The directory where the servlet should put temporary c
! opies of uploaded\n# files. (The Maple part of the system will delete
! them or move them to\n# a more permanent home moments later.) \n# Ex
! ample:\n# Config['TempDir'] := \"C:\\\\WINDOWS\\\\Temp\":" }}}}{SECT
! 1 {PARA 3 "" 0 "" {TEXT -1 24 "Additional Configuration" }}{PARA 0 ""
! 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 85 "This section lists s
! ome additional options that you may wish to change. If you alter" }}
! {PARA 0 "" 0 "" {TEXT -1 84 "anything, remember to remove the comment \+
! character (#) at the beginning of the line." }}{PARA 0 "" 0 "" {TEXT
! -1 0 "" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 3767 "################
! ######################################################\n# The number o
! f 'Recent Requests' to show on the Alice Monitor page\n# Config['Alice
! HistorySize'] := 20:\n\n##############################################
! ########################\n# The time limits placed on Maple processes \+
! by the Alice servlet. \n# Processes which take longer than the time li
! mit are terminated.\n# The AdminTimeLimit restricts the time allowed f
! or Administrative\n# commands. The StudentTimeLimit is the restriction
! on all other \n# commands. Generally the StudentTimeLimit should be s
! horter than\n# the admisitrative time limit. Both values are integers \+
! which specify \n# the time limit in milliseconds.\n# Config['StudentTi
! meLimit'] := 60000: # one minute\n# Config['AdminTimeLimit'] := 12000
! 00: # twenty minutes\n\n#############################################
! #########################\n# The maximum number of maple processes tha
! t can be running at the same\n# time on this machine.\n# Config['MaxMa
! pleProcesses'] := 8:\n\n##############################################
! ########################\n# The maximum allowed size for uploaded file
! s, in bytes. The default is\n# ten megabytes.\n# Config['MaxPostSize'
! ] := 10485760:\n\n####################################################
! ##################\n# The number of the port on which Tomcat should li
! sten. By default\n# this is 8080. For any port other than 80, the\n# \+
! number must be included explicitly in URL's (for example, \n# http://a
! llserv.rug.ac.be:8080). \n# Config['TomcatPort'] := 8080:\n\n#########
! #############################################################\n# In pr
! inciple this allows you to choose the language in which AiM's\n# messa
! ges are presented. The required mechanisms are in place but \n# as ye
! t there are no tables of translated messages.\n# Config['Locale'] := \+
! \"en\":\n\n###########################################################
! ###########\n# Config['ShowToolBars'] := true:\n# true if the administ
! rator's browser windows should have a full set of\n# toolbars; false i
! f they should be omitted to save space.\n\n###########################
! ###########################################\n# Config['SourceEditBoxWi
! dth'] := 100:\n# Config['SourceEditBoxHeight'] := 50:\n# This determin
! es the width of the textarea used for editing the\n# question source f
! iles\n\n##############################################################
! ########\n# Config['ImageFormat'] := \"jpg\":\n# This determines the i
! mage format used for Maple plots.\n# Possible options are gif and jpg
\n\n##################################################################
! ####\n# Config['ImageWidth'] := 480:\n# Config['ImageHeight'] := 280:
! \n# This determines the image format used for Maple plots.\n# Possible
! options are gif and jpg\n\n##########################################
! ############################\n# The name of the time zone, and the num
! ber of SECONDS ahead of GMT.\n# Note that these are separate variables
! , not fields in the Config\n# table.\n#\n# The handling of summer time
! may not be correct in Europe, and is\n# certainly incorrect in the so
! uthern hemisphere. It is recommended\n# that you adjust manually for \+
! this. \n#\n# `Date/LocalTimeZoneName` := \"GMT\":\n# `Date/LocalTim
! eZoneOffset` := 0:\n\n################################################
! ######################\n##############################################
! ########################\n# You can change the following fields if you
! dare, but you should\n# read the source code first and probably ask f
! or advice.\n# Config['AimDir']\n# Config['LastRequestFile']\n# Config[
! 'Locale']\n# Config['LogDir']\n# Config['MapleInitOptions']\n# Config[
! 'MapleVersion']\n# Config['OperatingSystem']\n# Config['RootDir']\n# C
! onfig['ServletLogFile']\n# Config['DocumentURL']\n# Config['ServletURL
! ']\n# Config['WEBINFDir']\n# Config['WebAppDir']\n# Config['WebDir']\n
! " }}}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "read(\"AutoConfWin.mpl
! \"):" }}}}{MARK "9 8 0 0" 1206 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }
! {PAGENUMBERS 0 1 2 33 1 1 }
--- 17,181 ----
1 {CSTYLE "" -1 -1 "Times" 1 18 0 0 0 1 2 1 1 2 2 2 1 1 1 1 }1 1 0 0
12 12 1 0 1 0 2 2 19 1 }}
! {SECT 0 {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 8 "restart:" }}}{EXCHG
! {PARA 256 "" 0 "" {TEXT -1 42 "Automatic Configuration of AiM for Wind
! ows" }}}{EXCHG {PARA 0 "" 0 "" {TEXT -1 102 "Copyright (C) 2003 Neil S
! trickland\nDistributed without warranty under the GPL - see README for
! details" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1
! 96 "This worksheet will configure your AiM system. Mostly this will be
! done automatically. However, " }}{PARA 0 "" 0 "" {TEXT -1 51 "there a
! re three things that you should set by hand:" }}{PARA 0 "" 0 "" {TEXT
! -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 3 "+ " }{TEXT 256 58 "The host nam
! e of the machine on which you are running AiM." }{TEXT -1 2 " " }}
! {PARA 0 "" 0 "" {TEXT -1 98 " For initial testing, you can leave th
! is set as \"localhost\"; this will allow you to access AiM " }}{PARA
! 0 "" 0 "" {TEXT -1 95 " from the server on which it is running, but
! not from any other machine. For real teaching " }}{PARA 0 "" 0 ""
! {TEXT -1 89 " use, you need to enter the fully qualified domain nam
! e of the server (something like " }}{PARA 0 "" 0 "" {TEXT -1 63 " \+
! \"aim.shef.ac.uk\"). This should be entered as the value of " }{TEXT
! 257 18 "Config['HostName']" }{TEXT -1 7 " below." }}}{EXCHG {PARA 0 ">
! " 0 "" {MPLTEXT 1 0 34 "Config['HostName'] := \"localhost\":" }}}
! {EXCHG {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 2 "+ \+
! " }{TEXT 258 53 "The address of the server that you use to send email.
! " }}{PARA 0 "" 0 "" {TEXT -1 94 " This should again be a fully qual
! ified domain name (eg \"smtp.york.ac.uk\"). If you are not" }}{PARA
! 0 "" 0 "" {TEXT -1 95 " sure what to enter, try looking at the opti
! ons used by your email client. For example, in " }}{PARA 0 "" 0 ""
! {TEXT -1 42 " Microsoft Outlook, use the menu items " }}{PARA 0 ""
! 0 "" {TEXT -1 168 " Tools > Options > Mail Delivery > Accounts > Ma
! il > Properties > Servers\n and look under \"Outgoing mail (SMTP)\"
! . You can get started with AiM without filling in" }}{PARA 0 "" 0 ""
! {TEXT -1 86 " this field, but your students will not be able to get
! password reminders by email." }}{PARA 0 "" 0 "" {TEXT -1 50 " The \+
! address should be entered as the value of " }{TEXT 259 21 "Config['SMT
! PServer'] " }{TEXT -1 6 "below." }}}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT
! 1 0 46 "Config['SMTPServer'] := \"mailhost.shef.ac.uk\":" }}}{EXCHG
! {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 2 "+ " }
! {TEXT 260 33 "The name of the top AiM directory" }}{PARA 0 "" 0 ""
! {TEXT -1 76 " This is just the last component of the name. If you i
! nstalled AiM under " }}{PARA 0 "" 0 "" {TEXT -1 3 " " }{TEXT 261 22
! "C:/Tomcat/webapps/ROOT" }{TEXT -1 20 ", for example, then " }{TEXT
! 262 23 "Config['TomcatContext']" }{TEXT -1 12 " should just" }}{PARA
! 0 "" 0 "" {TEXT -1 20 " be set to \"ROOT\"." }}}{EXCHG {PARA 0 "> "
! 0 "" {MPLTEXT 1 0 33 "Config['TomcatContext'] := \"AIM\":" }}}{EXCHG
! {PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 41 "Once you \+
! have set these values, click on " }{TEXT 263 5 "Edit " }{TEXT -1 38 "o
! n the Maple toolbar, then select the " }}{PARA 0 "" 0 "" {TEXT 264 7 "
! Execute" }{TEXT -1 24 " submenu, then click on " }{TEXT 265 9 "Workshe
! et" }{TEXT -1 41 ". This will execute the worksheet, which" }}{PARA
! 0 "" 0 "" {TEXT -1 90 "will attempt to determine all other configurati
! on information automatically. If there are" }}{PARA 0 "" 0 "" {TEXT
! -1 61 "any error messages, you should check your entries above. You"
! }}{PARA 0 "" 0 "" {TEXT -1 27 "may also need to click the " }{TEXT
! 266 1 "+" }{TEXT 267 1 " " }{TEXT -1 58 "signs next to \"Things that s
! hould be found automatically\" " }}{PARA 0 "" 0 "" {TEXT -1 86 "and/or
! \"Additional Configuration\", which will reveal a number of other co
! nfiguration " }}{PARA 0 "" 0 "" {TEXT -1 86 "options that you may need
! to set manually. You can then execute the worksheet again, " }}
! {PARA 0 "" 0 "" {TEXT -1 90 "and repeat until there are no error messa
! ges. (Some of the additional options are useful " }}{PARA 0 "" 0 ""
! {TEXT -1 86 "even if you have no errors, but you may wish to ignore th
! is possibility at your first " }}{PARA 0 "" 0 "" {TEXT -1 9 "attempt.)
! " }}{PARA 0 "" 0 "" {TEXT -1 82 "Uncomment the line below (by removing
! the initial # character) to get more verbose" }}{PARA 0 "" 0 ""
! {TEXT -1 41 "messages about the configuration process." }}}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 16 "waffle := false:" }}}{SECT 0 {PARA
! 3 "" 0 "" {TEXT -1 41 "Things that should be found automatically" }}
! {PARA 0 "" 0 "" {TEXT -1 2 " " }}{PARA 0 "" 0 "" {TEXT -1 91 "AiM nee
! ds to use a variety of files (eg the Maple executable) and directories
! (eg the main " }}{PARA 0 "" 0 "" {TEXT -1 98 "directory for the Java \+
! Runtime Environment). Often, it can find these for itself. If it fai
! ls to" }}{PARA 0 "" 0 "" {TEXT -1 96 "do so, or if it finds the wrong \+
! versions, then you can help it by filling in some of the options" }}
! {PARA 0 "" 0 "" {TEXT -1 84 "below. If you need to change anything, r
! emember to remove the comment character (#)" }}{PARA 0 "" 0 "" {TEXT
! -1 29 "at the beginning of the line." }}{PARA 0 "" 0 "" {TEXT -1 0 ""
! }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 1570 "########################
! ##############################################\n# The absolute path to
! the BLAT program, used for sending email\n# Example:\n# Config['BLATP
! rogram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\blat\\\\blat.ex
! e\":\n\n##############################################################
! ########\n# The absolute path to the kill program (used to kill proces
! ses on this OS).\n# Example:\n# Config['KillProgram'] := \"C:\\\\Tomca
! t\\\\webapps\\\\AiM\\\\bin\\\\Process\\\\Process.exe\":\n\n###########
! ###########################################################\n# The top
! directory for the Tomcat distribution. \n# Example:\n# Config['Catali
! naHome'] := \"C:\\\\Tomcat\":\n\n#####################################
! #################################\n# The absolute path to the maple pr
! ogram. \n# Example:\nConfig['MapleProgram'] := \"C:\\\\Program Files\\
! \\Maple 9\\\\bin.win\\\\cmaple9.exe\":\n\n############################
! ##########################################\n# The absolute path to the
! tth program (used to convert LaTeX to HTML).\n# Example:\n# Config['T
! tHProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\tth_exe\\\\t
! th.exe\":\n\n#########################################################
! #############\n# The top directory for the Java distribution. \n# Exam
! ple:\nConfig['JavaHome'] := \"C:\\\\Sun\\\\AppServer\\\\jdk\":\n\n####
! ##################################################################\n# \+
! The directory where the servlet should put temporary copies of uploade
! d\n# files. (The Maple part of the system will delete them or move th
! em to\n# a more permanent home moments later.) \n# Example:\n# Config
! ['TempDir'] := \"C:\\\\WINDOWS\\\\Temp\":" }}}}{SECT 1 {PARA 3 "" 0 "
! " {TEXT -1 24 "Additional Configuration" }}{PARA 0 "" 0 "" {TEXT -1 0
! "" }}{PARA 0 "" 0 "" {TEXT -1 85 "This section lists some additional o
! ptions that you may wish to change. If you alter" }}{PARA 0 "" 0 ""
! {TEXT -1 84 "anything, remember to remove the comment character (#) at
! the beginning of the line." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 3767 "#################################
! #####################################\n# The number of 'Recent Request
! s' to show on the Alice Monitor page\n# Config['AliceHistorySize'] := \+
! 20:\n\n###############################################################
! #######\n# The time limits placed on Maple processes by the Alice serv
! let. \n# Processes which take longer than the time limit are terminate
! d.\n# The AdminTimeLimit restricts the time allowed for Administrative
! \n# commands. The StudentTimeLimit is the restriction on all other \n#
! commands. Generally the StudentTimeLimit should be shorter than\n# th
! e admisitrative time limit. Both values are integers which specify \n#
! the time limit in milliseconds.\n# Config['StudentTimeLimit'] := 6000
! 0: # one minute\n# Config['AdminTimeLimit'] := 1200000: # twenty min
! utes\n\n##############################################################
! ########\n# The maximum number of maple processes that can be running \+
! at the same\n# time on this machine.\n# Config['MaxMapleProcesses'] :=
! 8:\n\n###############################################################
! #######\n# The maximum allowed size for uploaded files, in bytes. The
! default is\n# ten megabytes.\n# Config['MaxPostSize'] := 10485760:\n
! \n####################################################################
! ##\n# The number of the port on which Tomcat should listen. By defaul
! t\n# this is 8080. For any port other than 80, the\n# number must be i
! ncluded explicitly in URL's (for example, \n# http://allserv.rug.ac.be
! :8080). \n# Config['TomcatPort'] := 8080:\n\n#########################
! #############################################\n# In principle this all
! ows you to choose the language in which AiM's\n# messages are presente
! d. The required mechanisms are in place but \n# as yet there are no t
! ables of translated messages.\n# Config['Locale'] := \"en\":\n\n######
! ################################################################\n# Co
! nfig['ShowToolBars'] := true:\n# true if the administrator's browser w
! indows should have a full set of\n# toolbars; false if they should be \+
! omitted to save space.\n\n############################################
! ##########################\n# Config['SourceEditBoxWidth'] := 100:\n# \+
! Config['SourceEditBoxHeight'] := 50:\n# This determines the width of t
! he textarea used for editing the\n# question source files\n\n#########
! #############################################################\n# Confi
! g['ImageFormat'] := \"jpg\":\n# This determines the image format used \+
! for Maple plots.\n# Possible options are gif and jpg\n\n##############
! ########################################################\n# Config['Im
! ageWidth'] := 480:\n# Config['ImageHeight'] := 280:\n# This determines
! the image format used for Maple plots.\n# Possible options are gif an
! d jpg\n\n#############################################################
! #########\n# The name of the time zone, and the number of SECONDS ahea
! d of GMT.\n# Note that these are separate variables, not fields in the
! Config\n# table.\n#\n# The handling of summer time may not be correct
! in Europe, and is\n# certainly incorrect in the southern hemisphere. \+
! It is recommended\n# that you adjust manually for this. \n#\n# `Date
! /LocalTimeZoneName` := \"GMT\":\n# `Date/LocalTimeZoneOffset` := 0:
\n\n##################################################################
! ####\n################################################################
! ######\n# You can change the following fields if you dare, but you sho
! uld\n# read the source code first and probably ask for advice.\n# Conf
! ig['AimDir']\n# Config['LastRequestFile']\n# Config['Locale']\n# Confi
! g['LogDir']\n# Config['MapleInitOptions']\n# Config['MapleVersion']\n#
! Config['OperatingSystem']\n# Config['RootDir']\n# Config['ServletLogF
! ile']\n# Config['DocumentURL']\n# Config['ServletURL']\n# Config['WEBI
! NFDir']\n# Config['WebAppDir']\n# Config['WebDir']\n" }}}}{EXCHG
! {PARA 0 "> " 0 "" {MPLTEXT 1 0 24 "read(\"AutoConfWin.mpl\"):" }}}}
! {MARK "0 0 0" 8 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2
! 33 1 1 }
|