aimmath-commit Mailing List for AiM Assessment in Mathematics (Page 16)
Brought to you by:
gustav_delius,
npstrick
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
(73) |
Aug
(96) |
Sep
(240) |
Oct
(34) |
Nov
(12) |
Dec
(3) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(31) |
Feb
(6) |
Mar
(17) |
Apr
(6) |
May
(5) |
Jun
|
Jul
|
Aug
(2) |
Sep
(2) |
Oct
(19) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
(14) |
Apr
(33) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <mo...@us...> - 2003-09-08 03:44:16
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple/aim In directory sc8-pr-cvs1:/tmp/cvs-serv19743 Modified Files: Inert.mpl Log Message: fixed minor bugs and name conflicts with Rand Index: Inert.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/Inert.mpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Inert.mpl 3 Sep 2003 14:55:53 -0000 1.3 --- Inert.mpl 8 Sep 2003 03:44:13 -0000 1.4 *************** *** 740,745 **** s:=""; for i to nargs do ! if not (args[i]=1 or (args[i]="1")) ! then if i=1 and nargs>1 and args[1]=-1 then s:="-"; --- 740,744 ---- s:=""; for i to nargs do ! if not (args[i]=1 or (args[i]="1")) then if i=1 and nargs>1 and args[1]=-1 then s:="-"; *************** *** 809,813 **** `Package/Assign`( `Inert/Div`::Inert, ! "The Inert / function. This is the same as Over, except that it preforms some simplification, such as $x/1 = x$.", `new/Inert`(`/`, # Map proc(n,d) # TeX --- 808,812 ---- `Package/Assign`( `Inert/Div`::Inert, ! "The Inert / function. This is the same as Over, except that it performs some simplification, such as $x/1 = x$.", `new/Inert`(`/`, # Map proc(n,d) # TeX *************** *** 1043,1047 **** `Package/Assign`( ! `Inert/Set`::Inert, "The Inert Set function (represents a SET object).", `new/Inert`(`new/SET`, # Map --- 1042,1046 ---- `Package/Assign`( ! `Inert/SET`::Inert, "The Inert Set function (represents a SET object).", `new/Inert`(`new/SET`, # Map *************** *** 1049,1055 **** cat("\\left\\{",TeX(args),"\\right\\}"); end, ! 0, # Nargs 'anything', # Domain ! "Set", # Name false, # Needs parentheses true) # Provides parentheses --- 1048,1054 ---- cat("\\left\\{",TeX(args),"\\right\\}"); end, ! -1, # Nargs 'anything', # Domain ! "SET", # Name false, # Needs parentheses true) # Provides parentheses *************** *** 1057,1063 **** `Package/Assign`( ! Set::procedure, "", ! proc() Apply(`Inert/Set`,args) end ): ################################################################### --- 1056,1062 ---- `Package/Assign`( ! SET::procedure, "", ! proc() Apply(`Inert/SET`,args) end ): ################################################################### *************** *** 1267,1298 **** "", proc() Apply(`Inert/DiffPrime`,args) end - ): - ################################################################### - `Package/Assign`( - `Inert/DefInt`::Inert, - "The Inert Definite Integral of a function on an interval.", - `new/Inert`( proc() # Map - int(args[1],args[2]=args[3]..args[4]); - end, - "\\int_{%3}^{%4}{%1}\\,d%2", # TeX - 4, # Nargs - proc() # Domain - evalb(nargs=2 and - type(args[1],algebraic) and - type(args[2],symbol) and - type(args[3],algebraic) and - type(args[4],algebraic)) - end, - "DefiniteIntegral", # Name - false, # Needs parentheses - true, # Provides parentheses - false, # Associative - 0) # Precedence - ): - - `Package/Assign`( - DefInt::procedure, - "", - proc() Apply(`Inert/DefInt`,args) end ): --- 1266,1269 ---- |
From: <mo...@us...> - 2003-09-08 03:43:34
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv19664 Modified Files: Random.mpl Log Message: added documentation for Rand and fixed a bug in Rand(Partition()) Index: Random.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/Random.mpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Random.mpl 3 Sep 2003 15:49:11 -0000 1.6 --- Random.mpl 8 Sep 2003 03:43:31 -0000 1.7 *************** *** 53,57 **** `Package/Assign`( `Rand`::anything, ! "Implements Ken Monks' Rand() function, a recursive random thing-maker. See the <a href=\"http://math.scranton.edu/monks/software/Rand/Rand.html\">Help file for Rand()</a> for details.", proc() local f,a,b,n,L,wt,i,r,tot,cm,pick,s,m,w,ans,t,newargs,S,AreEqual,R,V,F,Fargs,finished,numargs,Nops,mx,mn,treesizes,j: --- 53,89 ---- `Package/Assign`( `Rand`::anything, ! "The @Rand()@ command is an all purpose recursive random-thing-maker. It allows the question author to recursively define an (abstract) set of expressions and randomly select an element from that (abstract) set. It also provides an easy mechanism for controlling the probability that various elements will be selected. ! <br/><br/> ! @Rand@ can take any number of arguments. When called with no arguments, it returns a random floating point number between 0 and 1. ! <br/><br/> ! When called with one or more arguments, Rand chooses one of the arguments at random, with each argument given a certain weight in making the choice. The weight for arguments is specified as follows: ! <br/><br/> ! <OL> ! <LI>an argument of the form @Wt(x[1],...,x[k],n)@ is given weight @n@ (which allows the user to manually set the weight of an argument or arguments) ! <LI>an integer range @a..b@ is given weight @b-a+1@. ! <LI>all other arguments are given weight 1 ! </OL> ! Once an argument is selected, it is evaluated as follows: ! <br/><br/> ! <OL> ! <LI>if the argument is of the form @Wt(x[1],...,x[k],n)@ then @Rand(x[1],..., x[k])@ is returned. ! <LI>if the argument is a list @[x[1],...,x[k]]@ then @Rand(x[1],...,x[k])@ is returned. (Thus wrapping a sequence of arguments in a list has the effect of giving the entire sequence weight 1, i.e. @[x[1],...,x[k]]@ is a shorthand for @Wt(x[1],...,x[k],1)@. It also has the effect of converting multiple arguments into a single argument which is useful when working with @Fn@, @Set@, @AIMSET@, @List@, @DupList@, @Seq@, @DupSeq@, @SUM@, and @Prod@ type arguments (see below)). ! <LI>if the argument is an integer range @a..b@ then a randomly seleceted integer between @a@ and @b@ (inclusive) is returned. ! <LI>if the argument is a range of the form @a..b@ where @a@ and @b@ are single character strings, then a random character between @a@ and @b@ is returned (using @convert(-,bytes)@ for the values of the characters). ! <LI>if the argument is a range of the form @a..b@ where @a@ and @b@ are floating point numbers, then a random float between @a@ and @b@ is returned (with precision similar to the precision specified by @a@ and @b@). ! <LI>if the argument is an AiM #SET# @S@, then @Rand(S['elements'])@ is returned ! (see documentation for SET). Note that in general you should not use ordinary Maple sets in your AiM questions, since Maple sets do not have a guaranteed order for their elements (which can produce different results in different instances of the same question). ! <LI>if the argument is of the form @Fn(f,x[1],...,x[k])@ where @f@ is a argument to @Rand@ which returns a function of @k@ variables and each @x[i]@ is an argument to @Rand@, then for each @i@, @a[i]:=Rand(x[i])@ is computed. The value @Rand(f)(a1,...,a[k])@ is then returned. ! <LI>if the argument is of the form @Set(A,B)@, @AIMSET(A,B)@, @List(A,B)@, @DupList(A,B)@, @Seq(A,B)@, @DupSeq(A,B)@, @SUM(A,B)@, or @Prod(A,B)@ then a natural number @n=Rand(B)@ is computed and a set, #SET#, list, sequence, sum, ! or product of n terms computed from @Rand(A)@ is returned. For @SUM@, @Prod@, @Set@, @SET@, @List@, and @Seq@ the @n@ elements will be distinct. For @DupSeq@ and @DupList@ there can be repetitions among the @n@ elements. ! <LI>if the argument is of the form @Set(A,B,f)@, @AIMSET(A,B,f)@, @List(A,B,f)@, @Seq(A,B,f)@, @SUM(A,B,f)@, or @Prod(A,B,f)@ then a natural number @n=Rand(B)@ is computed and a set, list, sequence, sum, or product of @n@ terms computed from @Rand(A)@ is returned containing distinct terms, where @f@ is a boolean function of two variables used to compare two terms to see if they are considered to be equal (thus allowing one to supply the definition of \"distinct\"). ! <LI>if the argument is of the form @Vec(x[1],...,x[k])@ then the Maple vector @vector([Rand(x[1]),...,Rand(x[k])])@ is returned. ! <LI>if the argument is of the form @Permute([x[1],...,x[k]])@ then a random permutation of the list @[Rand(x[1]),...,Rand(x[k])]@ is returned. Similarly if the argument is of the form @Permute(x[1],...,x[k])@ then a random permutation of the sequence @Rand(x[1]),...,Rand(x[k])@ is returned. ! <LI>if the argument is of the form @Partition(x)@ where @Rand(x)@ returns a positive integer @n@, then a list of positive integers whose sum is @n@ is returned (with elements in random order). If the argument is of the form @Partition(x,k)@ then a partition of @n@ is returned having exactly @Rand(k)@ terms. Similarly if the argument is of the form @Partition(n,k,M)@ then a partition of @n@ is returned having exactly @Rand(k)@ terms and no term greater than @Rand(M)@. Finally if the argument is of the form @Partition(n,k,M,m)@ then a partition of @n@ is returned having exactly @Rand(k)@ terms and no term greater than @Rand(M)@ and no term less than @Rand(m)@. ! <LI>if the argument is of the form @Frac(n,d)@ then an improper fraction whose integer part is @Rand(n)@ and whose denominator is @Rand(d)@ is returned, i.e. if @N:=Rand(n)@, @M:=Rand(d)@, and @a:=Rand(1..M-1)@ then @(N*M+a)/M@ is returned. ! <LI>if the argument is @Null@, then @NULL@ is returned (i.e. @Rand(Null)@ returns @NULL@). ! <LI<Any other argument is simply returned. ! </OL> ! ", proc() local f,a,b,n,L,wt,i,r,tot,cm,pick,s,m,w,ans,t,newargs,S,AreEqual,R,V,F,Fargs,finished,numargs,Nops,mx,mn,treesizes,j: *************** *** 157,164 **** while nops(s)<n do s:=s union {Rand(a)} od: ans:=s; ! # SET(...) (Note: this requires the SET class and utilities ! elif type(r,specfunc(anything,SET)) then if nops(r)<2 or nops(r)>3 then ! error "Syntax: SET(choosefrom,quantity,[isEqual])"; fi; if nops(r)=3 then --- 189,196 ---- while nops(s)<n do s:=s union {Rand(a)} od: ans:=s; ! # AIMSET(...) (Note: this requires the SET class and utilities ! elif type(r,specfunc(anything,AIMSET)) then if nops(r)<2 or nops(r)>3 then ! error "Syntax: AIMSET(choosefrom,quantity,[isEqual])"; fi; if nops(r)=3 then *************** *** 261,265 **** if n<s or mx*s<n then error "No such partition exists" fi; for i to s-1 do ! m:=Rand(1..min(n-(s-i),mx)); L:=L,m; n:=n-m; --- 293,297 ---- if n<s or mx*s<n then error "No such partition exists" fi; for i to s-1 do ! m:=Rand(max(1,n-(s-i)*mx)..min(n-(s-i),mx)); L:=L,m; n:=n-m; *************** *** 267,277 **** ans:=[L,n]; elif Nops=4 then # fourth argument specifies the minimum size of a term in the partition ! L:=NULL; n:=Rand(op(1,r)); s:=Rand(op(2,r)); mx:=Rand(op(3,r)); mn:=Rand(op(4,r)); ! for i to s-1 do ! m:=Rand(1..min(n-(s-i),mx)); ! L:=L,m; ! n:=n-m; ! od: ! ans:=[L,n]; fi; # Frac(integerpart,den) --- 299,305 ---- ans:=[L,n]; elif Nops=4 then # fourth argument specifies the minimum size of a term in the partition ! n:=Rand(op(1,r)); s:=Rand(op(2,r)); mx:=Rand(op(3,r)); mn:=Rand(op(4,r)); ! if n<s*mn or mx*s<n then error "No such partition exists" fi; ! ans:=[seq(mn-1,i=1..s)]+Rand(Partition(n-s*(mn-1),s,mx-mn+1)); fi; # Frac(integerpart,den) |
From: <mo...@us...> - 2003-09-08 03:41:05
|
Update of /cvsroot/aimmath/AIM/doc In directory sc8-pr-cvs1:/tmp/cvs-serv19318 Modified Files: AuthoringGuide.pdf Log Message: added addition documentation for Inert and Rand Index: AuthoringGuide.pdf =================================================================== RCS file: /cvsroot/aimmath/AIM/doc/AuthoringGuide.pdf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsekezEg and /tmp/cvs6x3Tdo differ |
From: <gr...@us...> - 2003-09-07 09:37:55
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple/aim/admin In directory sc8-pr-cvs1:/tmp/cvs-serv29130/aim/admin Modified Files: CompileSubject.mpl Subject.mpl Log Message: Added ; after   - 4 occurrences. - GG Index: CompileSubject.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/admin/CompileSubject.mpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CompileSubject.mpl 1 Sep 2003 05:56:29 -0000 1.1 --- CompileSubject.mpl 7 Sep 2003 09:37:52 -0000 1.2 *************** *** 81,85 **** for quizname in subject['QuizNames'] do ! compreport := compreport,"<b>",__("Quiz:  "); try quiz := eval(subject['GetQuiz',quizname]); --- 81,85 ---- for quizname in subject['QuizNames'] do ! compreport := compreport,"<b>",__("Quiz: "); try quiz := eval(subject['GetQuiz',quizname]); Index: Subject.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/admin/Subject.mpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Subject.mpl 1 Sep 2003 05:56:29 -0000 1.4 --- Subject.mpl 7 Sep 2003 09:37:52 -0000 1.5 *************** *** 245,249 **** {["CompileSubject"]}, [["font","color"="red"], ! __("  (warning: this may take a long time!)")], ["br"], ["hr"], --- 245,249 ---- {["CompileSubject"]}, [["font","color"="red"], ! __(" (warning: this may take a long time!)")], ["br"], ["hr"], |
From: <gr...@us...> - 2003-09-07 09:24:10
|
Update of /cvsroot/aimmath/AIM/examples/Trig In directory sc8-pr-cvs1:/tmp/cvs-serv27357 Modified Files: trig_eqn_dblang0.aim ordinarylevel.aim Log Message: LaTeX -> `aim/LaTeX`, removal of a space - GG Index: trig_eqn_dblang0.aim =================================================================== RCS file: /cvsroot/aimmath/AIM/examples/Trig/trig_eqn_dblang0.aim,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** trig_eqn_dblang0.aim 25 Aug 2003 21:47:20 -0000 1.2 --- trig_eqn_dblang0.aim 7 Sep 2003 09:23:58 -0000 1.3 *************** *** 40,45 **** for i_ to 4 do ssolns_ := ssolns_, ! ssol_[i_], " = \\frac{", LaTeX(numer(sol_[i_])), "}{", ! LaTeX(denom(sol_[i_])), "}"; if i_ < 4 then ssolns_ := ssolns_, ",\\qquad "; --- 40,45 ---- for i_ to 4 do ssolns_ := ssolns_, ! ssol_[i_], " = \\frac{", `aim/LaTeX`(numer(sol_[i_])), "}{", ! `aim/LaTeX`(denom(sol_[i_])), "}"; if i_ < 4 then ssolns_ := ssolns_, ",\\qquad "; Index: ordinarylevel.aim =================================================================== RCS file: /cvsroot/aimmath/AIM/examples/Trig/ordinarylevel.aim,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ordinarylevel.aim 25 Aug 2003 21:47:20 -0000 1.2 --- ordinarylevel.aim 7 Sep 2003 09:23:58 -0000 1.3 *************** *** 11,15 **** EXAMPLES/Trig/trig_eqn_sinsqxr.aim, EXAMPLES/Trig/trig_eqn_tansqxn.aim, ! EXAMPLES/Trig/trig_eqn_dblang0.aim , EXAMPLES/Trig/trig_eqn_rewsincos.aim, EXAMPLES/Trig/trig_eqn_sina+b.aim, --- 11,15 ---- EXAMPLES/Trig/trig_eqn_sinsqxr.aim, EXAMPLES/Trig/trig_eqn_tansqxn.aim, ! EXAMPLES/Trig/trig_eqn_dblang0.aim, EXAMPLES/Trig/trig_eqn_rewsincos.aim, EXAMPLES/Trig/trig_eqn_sina+b.aim, |
From: <nps...@us...> - 2003-09-06 20:04:31
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv12352/WEB-INF/maple Modified Files: AutoConfWin.mws Log Message: Index: AutoConfWin.mws =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/AutoConfWin.mws,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AutoConfWin.mws 6 Sep 2003 20:00:39 -0000 1.4 --- AutoConfWin.mws 6 Sep 2003 20:04:26 -0000 1.5 *************** *** 66,175 **** under \"Basic Configuration\". You" }}{PARA 0 "" 0 "" {TEXT -1 27 "ma y also need to click the " }{TEXT 266 1 "+" }{TEXT 267 1 " " }{TEXT ! -1 59 "sign next to \"Additional Configuration\", which will reveal" ! }}{PARA 0 "" 0 "" {TEXT -1 83 "a number of other configuration options ! that you may need to set manually. You can" }}{PARA 0 "" 0 "" {TEXT ! -1 86 "then execute the worksheet again, and repeat until there are no ! error messages. (Some" }}{PARA 0 "" 0 "" {TEXT -1 84 "of the additio ! nal options are useful even if you have no errors, but you may wish to ! " }}{PARA 0 "" 0 "" {TEXT -1 47 "ignore this possibility at your first ! attempt.)" }}}{SECT 0 {PARA 3 "" 0 "" {TEXT -1 19 "Basic configuratio ! n" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 351 "Config := table([]):\n ! \n# The fully qualified host name of the server (eg aim.shef.ac.uk). \+ ! \nConfig['HostName'] := \"localhost\":\n\n# The SMTP server that AiM s ! hould use for sending mail.\nConfig['SMTPServer'] := \"\":\n\n# The na ! me of the subdirectory of the Tomcat\\webapps directory into \n# which ! you have copied the AiM files\nConfig['TomcatContext'] := \"AiM\":" } ! }}{PARA 0 "" 0 "" {TEXT -1 82 "Uncomment the line below (by removing t ! he initial # character) to get more verbose" }}{PARA 0 "" 0 "" {TEXT ! -1 41 "messages about the configuration process." }}{EXCHG {PARA 0 "> \+ ! " 0 "" {MPLTEXT 1 0 17 "# waffle := true:" }}}{PARA 3 "" 0 "" {TEXT ! -1 0 "" }}}{SECT 1 {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 needs to use a variety of files (eg the Maple exec ! utable) 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 fails to" }}{PARA 0 "" 0 "" {TEXT -1 96 "do so, or ! if it finds the wrong versions, then you can help it by filling in so ! me 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 1585 "## ! ####################################################################\n ! # The absolute path to the BLAT program, used for sending email\n# Exa ! mple:\n# Config['BLATProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\ ! bin\\\\blat\\\\blat.exe\":\n\n######################################## ! ##############################\n# The absolute path to the kill progra ! m (used to kill processes on this OS).\n# Example:\n# Config['KillProg ! ram'] := \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\Process\\\\Process ! .exe\":\n\n########################################################### ! ###########\n# The top directory for the Tomcat distribution. \n# Exam ! ple:\n# Config['CatalinaHome'] := \"C:\\\\Tomcat\":\n\n############### ! #######################################################\n# The absolut ! e path to the maple program. \n# Example:\n# Config['MapleProgram'] := ! \"C:\\\\Program Files\\\\Maple 8\\\\bin.win\\\\cmaple8.exe\":\n\n#### ##################################################################\n# \+ ! The absolute path to the tth program (used to convert LaTeX to HTML). ! \n# Example:\n# Config['TtHProgram'] := \"C:\\\\Tomcat\\\\webapps\\\\A ! iM\\\\bin\\\\tth_exe\\\\tth.exe\":\n\n################################ ! ######################################\n# The top directory for the Ja ! va distribution. \n# Example:\n# Config['JavaHome'] := \"C:\\\\Program ! Files\\\\Java\\\\j2re1.4.2\":\n\n#################################### ! ##################################\n# The directory where the servlet \+ ! should put temporary copies of uploaded\n# files. (The Maple part of \+ ! the system will delete them or move them to\n# a more permanent home m ! oments later.) \n# Example:\n# Config['TempDir'] := \"C:\\\\WINDOWS\\ ! \\Temp\":" }}}}{SECT 1 {PARA 3 "" 0 "" {TEXT -1 24 "Additional Configu ! ration" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 85 ! "This section lists some additional options that you may wish to chang ! e. 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 ! 3109 "################################################################ ! ######\n# The number of 'Recent Requests' to show on the Alice Monitor ! page\n# Config['AliceHistorySize'] := 20:\n\n######################## ! ##############################################\n# The time limits plac ! ed on Maple processes by the Alice servlet. \n# Processes which take l ! onger than the time limit are terminated.\n# The AdminTimeLimit restri ! cts the time allowed for Administrative\n# commands. The StudentTimeLi ! mit is the restriction on all other \n# commands. Generally the Studen ! tTimeLimit should be shorter than\n# the admisitrative time limit. Bot ! h values are integers which specify \n# the time limit in milliseconds ! .\n# Config['StudentTimeLimit'] := 60000: # one minute\n# Config['Adm ! inTimeLimit'] := 1200000: # twenty minutes\n\n####################### ! ###############################################\n# The maximum number \+ ! of maple processes that can be running at the same\n# time on this mac ! hine.\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############################ ! ##########################################\n# The number of the port o ! n which Tomcat should listen. By default\n# this is 8080. For any por ! t other than 80, the\n# number must be included explicitly in URL's (f ! or example, \n# http://allserv.rug.ac.be:8080). \n# Config['TomcatPort ! '] := 8080:\n\n\n\n################################################### ! ###################\n# In principle this allows you to choose the lang ! uage in which AiM's\n# messages are presented. The required mechanism ! s are in place but \n# as yet there are no tables of translated messag ! es.\n# Config['Locale'] := \"en\":\n\n\n############################## ! ########################################\n# Config['ShowToolBars'] := \+ ! true:\n# true if the administrator's browser windows should have a ful ! l set of\n# toolbars; false if they should be omitted to save space.\n \n\n################################################################## ! ####\n# The name of the time zone, and the number of SECONDS ahead of \+ ! GMT.\n# Note that these are separate variables, not fields in the Conf ! ig\n# table.\n#\n# The handling of summer time may not be correct in E ! urope, and is\n# certainly incorrect in the southern hemisphere. It i ! s recommended\n# that you adjust manually for this. \n#\n# `Date/Loca ! lTimeZoneName` := \"GMT\":\n# `Date/LocalTimeZoneOffset` := 0:\n\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 for advice.\n# Config[ ! 'AimDir']\n# Config['LastRequestFile']\n# Config['Locale']\n# Config[' ! LogDir']\n# Config['MapleInitOptions']\n# Config['MapleVersion']\n# Co ! nfig['OperatingSystem']\n# Config['RootDir']\n# Config['ServletLogFile ! ']\n# Config['DocumentURL']\n# Config['ServletURL']\n# Config['WEBINFD ! ir']\n# Config['WebAppDir']\n# Config['WebDir']\n" }}}}{EXCHG {PARA 0 ! "> " 0 "" {MPLTEXT 1 0 24 "read(\"AutoConfWin.mpl\"):" }}}}{MARK "2 4 \+ ! 0 0" 17 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 } ! --- 66,176 ---- under \"Basic Configuration\". You" }}{PARA 0 "" 0 "" {TEXT -1 27 "ma y 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\", whi ! ch will reveal a number of other configuration " }}{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 repe ! at until there are no error messages. (Some of the additional options ! are useful " }}{PARA 0 "" 0 "" {TEXT -1 86 "even if you have no error ! s, but you may wish to ignore this possibility at your first " }} ! {PARA 0 "" 0 "" {TEXT -1 9 "attempt.)" }}}{SECT 0 {PARA 3 "" 0 "" ! {TEXT -1 19 "Basic configuration" }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT ! 1 0 351 "Config := table([]):\n\n# The fully qualified host name of th ! e server (eg aim.shef.ac.uk). \nConfig['HostName'] := \"localhost\":\n ! \n# The SMTP server that AiM should use for sending mail.\nConfig['SMT ! PServer'] := \"\":\n\n# The name of the subdirectory of the Tomcat\\we ! bapps directory into \n# which you have copied the AiM files\nConfig[' ! TomcatContext'] := \"AiM\":" }}}{PARA 0 "" 0 "" {TEXT -1 82 "Uncomment ! the line below (by removing the initial # character) to get more verb ! ose" }}{PARA 0 "" 0 "" {TEXT -1 41 "messages about the configuration p ! rocess." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 17 "# waffle := true: ! " }}}{PARA 3 "" 0 "" {TEXT -1 0 "" }}}{SECT 1 {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 needs to use a vari ! ety of files (eg the Maple executable) and directories (eg the main " ! }}{PARA 0 "" 0 "" {TEXT -1 98 "directory for the Java Runtime Environm ! ent). Often, it can find these for itself. If it fails 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, remember to remov ! e the comment character (#)" }}{PARA 0 "" 0 "" {TEXT -1 29 "at the beg ! inning of the line." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{EXCHG {PARA 0 ! "> " 0 "" {MPLTEXT 1 0 1585 "######################################### ! #############################\n# The absolute path to the BLAT program ! , used for sending email\n# Example:\n# Config['BLATProgram'] := \"C: ! \\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\blat\\\\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 t ! he Tomcat distribution. \n# Example:\n# Config['CatalinaHome'] := \"C: ! \\\\Tomcat\":\n\n##################################################### ! #################\n# The absolute path to the maple program. \n# Examp ! le:\n# Config['MapleProgram'] := \"C:\\\\Program Files\\\\Maple 8\\\\b ! in.win\\\\cmaple8.exe\":\n\n########################################## ! ############################\n# The absolute path to the tth program ( ! used to convert LaTeX to HTML).\n# Example:\n# Config['TtHProgram'] := ! \"C:\\\\Tomcat\\\\webapps\\\\AiM\\\\bin\\\\tth_exe\\\\tth.exe\":\n\n# ! ##################################################################### ! \n# The top directory for the Java distribution. \n# Example:\n# Confi ! g['JavaHome'] := \"C:\\\\Program Files\\\\Java\\\\j2re1.4.2\":\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 3109 "################################# ! #####################################\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################################################################## ! ####\n# The number of the port on which Tomcat should listen. By defa ! ult\n# this is 8080. For any port other than 80, the\n# number must be ! included explicitly in URL's (for example, \n# http://allserv.rug.ac. ! be:8080). \n# Config['TomcatPort'] := 8080:\n\n\n\n################### ! ###################################################\n# In principle th ! is allows you to choose the language in which AiM's\n# messages are pr ! esented. The required mechanisms are in place but \n# as yet there ar ! e no tables of translated messages.\n# Config['Locale'] := \"en\":\n\n \n#################################################################### ! ##\n# Config['ShowToolBars'] := true:\n# true if the administrator's b ! rowser windows should have a full set of\n# toolbars; false if they sh ! ould be omitted to save space.\n\n\n################################## ! ####################################\n# The name of the time zone, and ! the number of SECONDS ahead of GMT.\n# Note that these are separate v ! ariables, not fields in the Config\n# table.\n#\n# The handling of sum ! mer time may not be correct in Europe, and is\n# certainly incorrect i ! n the southern hemisphere. It is recommended\n# that you adjust manua ! lly for this. \n#\n# `Date/LocalTimeZoneName` := \"GMT\":\n# `Date/ ! LocalTimeZoneOffset` := 0:\n\n\n###################################### ! ################################\n#################################### ! ##################################\n# You can change the following fie ! lds if you dare, but you should\n# read the source code first and prob ! ably ask for advice.\n# Config['AimDir']\n# Config['LastRequestFile'] ! \n# Config['Locale']\n# Config['LogDir']\n# Config['MapleInitOptions'] ! \n# Config['MapleVersion']\n# Config['OperatingSystem']\n# Config['Roo ! tDir']\n# Config['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(\"Auto ! ConfWin.mpl\"):" }}}}{MARK "1 35 0" 0 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 ! 1 }{PAGENUMBERS 0 1 2 33 1 1 } |
From: <nps...@us...> - 2003-09-06 20:00:44
|
Update of /cvsroot/aimmath/AIM/doc In directory sc8-pr-cvs1:/tmp/cvs-serv11543/doc Modified Files: installwin.html Log Message: Cosmetic changes to windows autoconfiguration Index: installwin.html =================================================================== RCS file: /cvsroot/aimmath/AIM/doc/installwin.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** installwin.html 27 Aug 2003 10:11:43 -0000 1.5 --- installwin.html 6 Sep 2003 20:00:39 -0000 1.6 *************** *** 12,23 **** The installation consists of 4 steps: <ol> ! <li><a href="#maple">Install Maple</a></li> ! <li><a href="#jre">Install the Java runtime environment</a></li> ! <li><a href="#tomcat">Install the Tomcat web server</a></li> ! <li><a href="#aim">Install AiM itself</a></li> </ol> ! It is likely that you already have both Maple and a Java runtime environment on your computer, in which case you can skip those steps. ! If you already have a working of installation of AiM then you will also already have a Tomcat server installed and you can jump directly to <a href="#aim">step 4</a>. ! <h2>License terms</h2> --- 12,25 ---- The installation consists of 4 steps: <ol> ! <li><a href="#maple">Install Maple</a></li> ! <li><a href="#jre">Install the Java runtime environment</a></li> ! <li><a href="#tomcat">Install the Tomcat web server</a></li> ! <li><a href="#aim">Install AiM itself</a></li> </ol> ! It is likely that you already have both Maple and a Java runtime ! environment on your computer, in which case you can skip those steps. ! If you already have a working of installation of AiM then you will ! also already have a Tomcat server installed and you can jump directly ! to <a href="#aim">step 4</a>. <h2>License terms</h2> *************** *** 26,34 **** <a href="http://www.maplesoft.com">Maple</a>, <a href="http://java.sun.com">Java</a>, ! the <a href="http://jakarta.apache.org/tomcat/">Tomcat</a> web server, ! <a href="http://hutchinson.belmont.ma.us/tth/">TtH</a> for LaTeX-to-HTML conversion, ! the <a href="http://www.servlets.com/cos/index.html">com.oreilly.servlet</a> support classes, ! and the <a href="http://www.interlog.com/~tcharron/blat.html">blat</a> mailer. ! The license terms for these components can be found on their webpages. <p/> The Maple and Java source code for AiM itself is free software; you --- 28,44 ---- <a href="http://www.maplesoft.com">Maple</a>, <a href="http://java.sun.com">Java</a>, ! the ! <a href="http://jakarta.apache.org/tomcat/">Tomcat</a> web server, ! <a href="http://hutchinson.belmont.ma.us/tth/">TtH</a> ! for LaTeX-to-HTML conversion, ! the ! <a href="http://www.servlets.com/cos/index.html">com.oreilly.servlet</a> ! support classes, ! and the ! <a href="http://www.interlog.com/~tcharron/blat.html">blat</a> ! mailer. ! You should check the license terms for these components on their ! webpages, but they are unlikely to cause trouble for academic users, ! apart from the issues described below for Maple. <p/> The Maple and Java source code for AiM itself is free software; you *************** *** 44,52 **** GNU General Public License for more details. - <h2><a name="maple">Maple</a></h2> ! You will need Maple version 7, 8, or 9. Simply follow Maple's default installation ! procedure. <p> If you want to use AiM for actual teaching (rather than just checking --- 54,61 ---- GNU General Public License for more details. <h2><a name="maple">Maple</a></h2> ! You will need Maple version 7, 8, or 9. Simply follow Maple's default ! installation procedure. <p> If you want to use AiM for actual teaching (rather than just checking *************** *** 65,141 **** the first instance). - <h2><a name="jre">Java</a></h2> ! If you don't have a java runtime environment already, you can install it by downloading and running ! the <a href="http://aimmath.sourceforge.net/j2re-1_4_2_01-windows-i586.exe">installer for JRE 1.4.2</a> (14MB) from <a ! href="http://java.sun.com">java.sun.com</a>. Just follow the default installation procedure. It will ! install the JRE into the folder <font color='green'>C:/Program Files/Java/j2re1.4.2_01/bin</font>. Restart your computer to complete the installation. <h2><a name="tomcat">Tomcat</a></h2> ! You will need the Jakarta Tomcat 4 server from <a ! href="http://jakarta.apache.org">jakarta.apache.org</a>. Download and run ! the automatic installer for <a href="http://aimmath.sourceforge.net/tomcat-4.1.27.exe"> ! tomcat 4.1.27</a> (8.73 MB). When the installer offers you to change the default installation ! location, I recommend you choose <font color='green'>C:\Tomcat</font> because it will be easier to find than ! the default location deep inside the <font color='green'>C:\Program Files</font> folder. Towards the end ! of the installation you will also be asked for the port number, you can simply ! leave it at the default <font color='green'>8080</font>. Finally you will be asked to choose a password for admin account on the ! Tomcat manager. ! <h2><a name="aim">AiM</a></h2> ! You are now finally ready to install AiM itself by following the following steps. ! <ol> ! <li> ! Download the latest file release (with a name starting with <font color='green'>complete</font>) from ! <a href="http://sourceforge.net/projects/aimmath/">SourceForge</a> or directly <a href="http://aimmath.sourceforge.net/aim.zip">from here</a> and unzip ! it into a subdirectory of the ! <font color='green'>C:\Tomcat\webapps\</font> ! directory. Do not unzip it into the webapps directory itself but into a subdirectory that you create. ! You can choose any name for this subdirectory. Below we will assume that ! you chose the name "<font color='green'>AiM</font>". ! If you chose something different, simply replace "<font color='green'>AiM</font>" by ! your choice in all filenames and URLs below. ! <p/> ! If you already have a working AiM installation then you have to make an important choice. Do you want to <ol> ! <li>keep the old installation ! and install AiM 3.0 in a different subdirectory of the webapps directory. You will then have two completely independent installations. The new AiM server will not know about the students and quizzes on the old installation unless you copy the data ! over as explained in <a href="#copy">step 5</a> below.</li> ! <li>update by overwriting your old installation with AiM 3.0. In this case you should unzip the new AiM into the ! <font color='green'>C:/Tomcat/webapps/ROOT/</font> directory (or to wherever you chose to install the old AiM). The old subjects, quizzes and student data will then still be available in the updated AiM installation.</li> ! </ol> ! <p/> ! </li> ! <li>Open the maple subfolder of your new AiM installation. (If you installed AiM in the default location then the folder is <a href="file://c:\Tomcat\webapps\AiM\WEB-INF\maple" target="new">c:\Tomcat\webapps\AiM\WEB-INF\maple</a>. Just clicking the link ! should open the folder in an Explorer window.) In the folder you will find a Maple worksheet <font color='green'>AutoConfWin.mws</font>. Open it in Maple (for example by double-clicking on it). In this worksheet you can first make changes to the default configuration, as explained there. ! Then execute the worksheet. The worksheet will ! find out most of the necessary configuration information automatically. ! If it complains of any problems, you may wish to set ! <font color='green'>waffle := true</font> and run it again ! to get a more verbose report. Using this information you can then review the ! settings at the top of the worksheet and make the ! necessary changes before executing AutoConfWin.mws again. You can iterate ! this procedure as often as you like until you get an installation without ! error messages.<p/> ! </li> ! <li>The installation is complete. Now start your Tomcat server. The Tomcat installation will have installed a shortcut ! "Start Tomcat" for this purpose in the Start menu.<p/> ! </li> ! <li> ! Point your webbrowser at the ! URL of the AiM server. This will be something like <font color='green'><a href="http://localhost:8080/AiM/admin.html">http://localhost:8080/AiM/admin.html</a></font>, ! where you may have to replace <font color='green'>AiM</font> by the name of the subdirectory of the ! <font color='green'>Tomcat/Webapps/</font> ! directory into which you unzipped AiM. ! You should click on 'Zone login' to log on as the administrator (with empty ! password). After logging in, you can set a password, create new ! subjects and so on.<p/> ! </li> ! <li>(Optional) You can copy data from an old AiM installation to your new installation. All the data is contained in the directory <font color='green'>root</font> inside the <font color='green'>WEB-INF</font> subdirectory of your old AiM installation. You can copy the entire contents into the corresponding <font color='green'>root</font> directory of your new installation. However you also need to make a global search and replace in all files in that directory. If your old installation for example was in <font color='green'>C:/Tomcat/webapps/ROOT/</font> and your new one is in <font color='green'>C:/Tomcat/webapps/AiM/</font> then you want to replace every occurrence of <font color='green'>ROOT</font> by <font color='green'>AiM</font> in all the files.</li> </ol> --- 74,195 ---- the first instance). <h2><a name="jre">Java</a></h2> ! You probably have a Java Runtime Environment already installed under ! <font color='green'>C:/Program Files/JavaSoft/JRE</font> or somewhere ! similar. If not, you can install it by downloading and running the ! <a href="http://aimmath.sourceforge.net/j2re-1_4_2_01-windows-i586.exe"> ! installer for JRE 1.4.2</a> (14MB) from ! <a href="http://java.sun.com">java.sun.com</a>. Just follow the ! default installation procedure. It will install the JRE into the ! folder <font color='green'>C:/Program ! Files/Java/j2re1.4.2_01/bin</font>. Restart your computer to complete ! the installation. <h2><a name="tomcat">Tomcat</a></h2> ! You will need the Jakarta Tomcat 4 server from ! <a href="http://jakarta.apache.org">jakarta.apache.org</a>. ! Download and run the automatic installer for <a href="http://aimmath.sourceforge.net/tomcat-4.1.27.exe"> ! tomcat 4.1.27</a> (8.73 MB). When the installer offers you to change ! the default installation location, I recommend you choose ! <font color='green'>C:\Tomcat</font> because it will be easier to find ! than the default location deep inside the ! <font color='green'>C:\Program Files</font> folder. Towards the end of ! the installation you will also be asked for the port number, you can ! simply leave it at the default <font color='green'>8080</font>. ! Finally you will be asked to choose a password for admin account on ! the Tomcat manager. <h2><a name="aim">AiM</a></h2> ! You are now finally ready to install AiM itself by following the ! following steps. <ol> ! <li> ! Download the latest file release (with a name starting with ! <font color='green'>complete</font>) from ! <a href="http://sourceforge.net/projects/aimmath/">SourceForge</a> ! or directly <a href="http://aimmath.sourceforge.net/aim.zip">from ! here</a> and unzip it into a subdirectory of the ! <font color='green'>C:\Tomcat\webapps\</font> directory. Do not unzip it ! into the webapps directory itself but into a subdirectory that you ! create. You can choose any name for this subdirectory. Below we will ! assume that you chose the name "<font color='green'>AiM</font>". If ! you chose something different, simply replace ! "<font color='green'>AiM</font>" by your choice in all filenames and ! URLs below. <p/> If you already have a working AiM installation ! then you have to make an important choice. Do you want to ! <ol> ! <li>keep the old installation and install AiM 3.0 in a different ! subdirectory of the webapps directory. You will then have two ! completely independent installations. The new AiM server will not know ! about the students and quizzes on the old installation unless you copy ! the data over as explained in <a href="#copy">step 5</a> below. ! </li> ! <li>update by overwriting your old installation with AiM 3.0. In this ! case you should unzip the new AiM into the <font ! color='green'>C:/Tomcat/webapps/ROOT/</font> directory (or to wherever ! you chose to install the old AiM). The old subjects, quizzes and ! student data will then still be available in the updated AiM ! installation. ! </li> ! </ol> ! <p/> ! </li> ! <li> ! Open the maple subfolder of your new AiM installation. (If you ! installed AiM in the default location then the folder is <a ! href="file://c:\Tomcat\webapps\AiM\WEB-INF\maple" ! target="new">c:\Tomcat\webapps\AiM\WEB-INF\maple</a>. Just clicking ! the link should open the folder in an Explorer window.) In the ! folder you will find a Maple worksheet <font ! color='green'>AutoConfWin.mws</font>. Open it in Maple (for example ! by double-clicking on it). In this worksheet you can first make ! changes to the default configuration, as explained there. Then ! execute the worksheet. The worksheet will find out most of the ! necessary configuration information automatically. If it complains ! of any problems, you may wish to set <font color='green'>waffle := ! true</font> and run it again to get a more verbose report. Using ! this information you can then review the settings at the top of the ! worksheet and make the necessary changes before executing ! AutoConfWin.mws again. You can iterate this procedure as often as ! you like until you get an installation without error messages.<p/> ! </li> ! <li> ! The installation is complete. Now start your Tomcat server. The ! Tomcat installation will have installed a shortcut "Start Tomcat" for ! this purpose in the Start menu.<p/> ! </li> ! <li> ! Point your webbrowser at the URL of the AiM server. This will be ! something like <font color='green'><a ! href="http://localhost:8080/AiM/admin.html">http://your.host.name:8080/AiM/admin.html</a></font>, ! where you may have to replace <font color='green'>AiM</font> by the ! name of the subdirectory of the <font ! color='green'>Tomcat/Webapps/</font> directory into which you ! unzipped AiM. You should click on 'Zone login' to log on as the ! administrator (with empty password). After logging in, you can set ! a password, create new subjects and so on.<p/> Students will be ! able to log in at <font color='green'><a ! href="http://localhost:8080/AiM/">http://your.host.name:8080/AiM/</a></font> ! (without the <font color='green'>admin.html</font>). ! </li> ! <li> ! (Optional) You can copy data from an old AiM installation to your ! new installation. All the data is contained in the directory <font ! color='green'>root</font> inside the <font ! color='green'>WEB-INF</font> subdirectory of your old AiM ! installation. You can copy the entire contents into the ! corresponding <font color='green'>root</font> directory of your new ! installation. However you also need to make a global search and ! replace in all files in that directory. If your old installation for ! example was in <font color='green'>C:/Tomcat/webapps/ROOT/</font> ! and your new one is in <font ! color='green'>C:/Tomcat/webapps/AiM/</font> then you want to replace ! every occurrence of <font color='green'>ROOT</font> by <font ! color='green'>AiM</font> in all the files. ! </li> </ol> *************** *** 146,151 **** minimal tex file. If any of these things fail, it will display an error report when you try to log in as the administrator; this will ! hopefully be self-explanatory. If necessary, you can ask for help in the ! <a href="http://maths-physics.org.uk/aiminfo/mod/forum/view.php?id=14">AiM Forum</a>. <p/> Some other kinds of errors may give you a Java stacktrace in your --- 200,206 ---- minimal tex file. If any of these things fail, it will display an error report when you try to log in as the administrator; this will ! hopefully be self-explanatory. If necessary, you can ask for help ! from the <a href="mailto:aim...@li...">AiM ! developers</a>. <p/> Some other kinds of errors may give you a Java stacktrace in your *************** *** 202,208 **** </ul> - <hr> ! Last modified by Gustav Delius on 27/08/03 </body> --- 257,262 ---- </ul> <hr> ! Last modified by Neil Strickland on 06/09/03 </body> |
From: <nps...@us...> - 2003-09-06 19:59:29
|
Update of /cvsroot/aimmath/AIM In directory sc8-pr-cvs1:/tmp/cvs-serv11204 Added Files: .cvsignore Log Message: Updated by TortoiseCVS --- NEW FILE: .cvsignore --- admin.html index.html |
From: <nps...@us...> - 2003-09-06 19:58:12
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv11012 Modified Files: .cvsignore Log Message: Updated by TortoiseCVS Index: .cvsignore =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/.cvsignore,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** .cvsignore 6 Sep 2003 19:57:37 -0000 1.2 --- .cvsignore 6 Sep 2003 19:58:09 -0000 1.3 *************** *** 1,2 **** --- 1,3 ---- Config.mpl ServletConfig.mpl + lib |
From: <nps...@us...> - 2003-09-06 19:57:44
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv10924 Modified Files: .cvsignore Log Message: Updated by TortoiseCVS Index: .cvsignore =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** .cvsignore 6 Sep 2003 19:56:51 -0000 1.1 --- .cvsignore 6 Sep 2003 19:57:37 -0000 1.2 *************** *** 1 **** --- 1,2 ---- Config.mpl + ServletConfig.mpl |
From: <nps...@us...> - 2003-09-06 19:57:26
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv10812 Added Files: .cvsignore Log Message: Updated by TortoiseCVS --- NEW FILE: .cvsignore --- Config.mpl |
From: <nps...@us...> - 2003-09-06 13:13:39
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple/aim In directory sc8-pr-cvs1:/tmp/cvs-serv9312/WEB-INF/maple/aim Modified Files: Question.mpl Log Message: Index: Question.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/Question.mpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Question.mpl 6 Sep 2003 10:46:28 -0000 1.6 --- Question.mpl 6 Sep 2003 13:13:36 -0000 1.7 *************** *** 2092,2104 **** if not qtrymode then if focused then - # KM jscript :="javascript:MoveFocus('%s');"; - # END KM if focusindex > 1 then - # KM - # DIST href := sprintf("javascript:MoveFocus('%s');", - # DIST labels[focusindex - 1]); href := sprintf(jscript,labels[focusindex - 1]); - # END KM nav['AddContents', ["td",[["a","href" = href],__("Previous")]]]; --- 2092,2098 ---- *************** *** 2106,2114 **** for label in labels do - # KM - # DIST href := sprintf("javascript:MoveFocus('%s');", - # DIST label); href := sprintf(jscript,label); - # END KM nav['AddContents', ["td",[["a","href" = href],label]]]; --- 2100,2104 ---- *************** *** 2116,2124 **** if focusindex < nops(labels) then - # KM - # DIST href := sprintf("javascript:MoveFocus('%s');", - # DIST labels[focusindex + 1]); href := sprintf(jscript,labels[focusindex + 1]); - # END KM nav['AddContents', ["td",[["a","href" = href],__("Next")]]]; --- 2106,2110 ---- *************** *** 2136,2148 **** [["a","href" = "javascript:Mark();"],__("Mark")]]]; fi; - # KM jscript := "javascript:Unfocus();"; - # END KM nav['AddContents', ["td", - # KM - # DIST [["a","href" = "javascript:Unfocus();"],__("Unfocus")]], [["a","href" = jscript],__("Unfocus")]], - # END KM ["td",`aim/HelpLink`(__("Help"))]]; else # not focused --- 2122,2129 ---- |
From: <nps...@us...> - 2003-09-06 13:05:35
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple/aim In directory sc8-pr-cvs1:/tmp/cvs-serv8179/WEB-INF/maple/aim Modified Files: Quiz.mpl Log Message: Fixed links from mark summary back to quiz in focused mode Index: Quiz.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/Quiz.mpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Quiz.mpl 25 Aug 2003 21:47:19 -0000 1.4 --- Quiz.mpl 6 Sep 2003 13:05:31 -0000 1.5 *************** *** 1027,1044 **** to the student. ", - # KM - # DIST proc(this) proc(this, focused_::boolean # optional: default = false ) - # END KM local totalmark,totalvalue,numattempted,attemptedvalue, histories,history,marksummary,questionvalue,mark, ! # KM ! # DIST percentage,label; ! percentage,label,focused,href,jscript; if nargs>1 then focused:=focused_ else focused:=false fi: - # END KM totalmark := 0.; --- 1027,1038 ---- to the student. ", proc(this, focused_::boolean # optional: default = false ) local totalmark,totalvalue,numattempted,attemptedvalue, histories,history,marksummary,questionvalue,mark, ! percentage,label,toplabel,focused,href,jscript,i; if nargs>1 then focused:=focused_ else focused:=false fi: totalmark := 0.; *************** *** 1067,1074 **** fi; - # KM if focused then jscript:="javascript:MoveFocus('%s');"; ! href := sprintf(jscript,label); marksummary['AddContents', ["tr",["td",[["a", "href" = href ], label]], --- 1061,1072 ---- fi; if focused then jscript:="javascript:MoveFocus('%s');"; ! toplabel := label; ! i := searchtext(".",label); ! if (i > 0) then ! toplabel := substring(toplabel,1..i-1); ! fi; ! href := sprintf(jscript,toplabel); marksummary['AddContents', ["tr",["td",[["a", "href" = href ], label]], *************** *** 1076,1087 **** [["td","align" = "right"],history['MarkString']]]]; else - # END KM marksummary['AddContents', ["tr",["td",[["a", "href"=cat("#",label)], label]], [["td","align" = "right"],sprintf("%3.2f",questionvalue)], [["td","align" = "right"],history['MarkString']]]]; - # KM fi; - # END KM od; --- 1074,1082 ---- |
From: <nps...@us...> - 2003-09-06 10:46:55
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv21404/WEB-INF/maple Modified Files: SafeParse.mpl Log Message: Index: SafeParse.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/SafeParse.mpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SafeParse.mpl 25 Aug 2003 21:47:18 -0000 1.3 --- SafeParse.mpl 6 Sep 2003 10:46:51 -0000 1.4 *************** *** 624,627 **** --- 624,630 ---- report['BadName'] := nam; + # The line below is unsafe against hacking, but gives a more useful error + # message. + # report['BadName'] := sprintf("%s has value %A",nam,eval(convert(nam,name))); fi; |
From: <nps...@us...> - 2003-09-06 10:46:31
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple/aim In directory sc8-pr-cvs1:/tmp/cvs-serv21359/WEB-INF/maple/aim Modified Files: Question.mpl Log Message: Fixed the 'bad name' error (caused by `Local/Save` without matching `Local/Restore`). Index: Question.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/Question.mpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Question.mpl 26 Aug 2003 21:39:39 -0000 1.5 --- Question.mpl 6 Sep 2003 10:46:28 -0000 1.6 *************** *** 617,621 **** # some kind of marking error has occurred attempt['SetMarkingError',msg]; - `Local/Restore`(savedframe); RETURN(eval(attempt)); fi; --- 617,620 ---- *************** *** 1952,1955 **** --- 1951,1956 ---- ###TODO: a better way to log this end try; + + `Local/Restore`(savedframe); fi; |
From: <gus...@us...> - 2003-09-06 10:41:18
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv20655/WEB-INF/maple Modified Files: Aim.mpl Log Message: Have added an optional parameter "SeedPassword". If this is set equal to the subject password then the seed is set to the value given in the "Seed" parameter. Index: Aim.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/Aim.mpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Aim.mpl 1 Sep 2003 05:53:28 -0000 1.4 --- Aim.mpl 6 Sep 2003 10:41:15 -0000 1.5 *************** *** 365,369 **** "idnote" = DefaultZone['IDNote'], "emaillink" = subj['AdminEmailLink'], ! "servleturl" = Config['ServletURL'], copy(`aim/SendReminder/Template/Unregistered`)))); fi; --- 365,369 ---- "idnote" = DefaultZone['IDNote'], "emaillink" = subj['AdminEmailLink'], ! "servleturl" = Config['ServletURL'], copy(`aim/SendReminder/Template/Unregistered`)))); fi; *************** *** 658,661 **** --- 658,673 ---- evalb(command = "NewQuizVersion"); # END KM + + # GWD: If the optional parameter "SeedPassword" is set to + # the subject password then the seed given by the parameter + # "Seed" should be used. + if (assigned(param["SeedPassword"]) and assigned(param["Seed"])) then + if (subj['AdminPassword'] = param["SeedPassword"]) then + quizcontext['UseRecordedSeed'] := false; + quizcontext['UseSeedParameter'] := true; + quizcontext['GenerateSeed'] := false; + end if; + end if; + ########### quizcontext['InviteAnswers'] := not(showsol); *************** *** 842,848 **** quizinstance := eval(quizversion['MakeInstance', ! eval(rawtable), ! eval(history), ! eval(quizcontext)]); if quizcontext['SaveHistory'] then --- 854,860 ---- quizinstance := eval(quizversion['MakeInstance', ! eval(rawtable), ! eval(history), ! eval(quizcontext)]); if quizcontext['SaveHistory'] then *************** *** 882,884 **** ###################################################################### - --- 894,895 ---- |
From: <gus...@us...> - 2003-09-06 08:24:31
|
Update of /cvsroot/aimmath/moodle/mod/aim_quiz In directory sc8-pr-cvs1:/tmp/cvs-serv2228/mod/aim_quiz Modified Files: lib.php Log Message: some more work done on the creation of pdf from quiz page. Index: lib.php =================================================================== RCS file: /cvsroot/aimmath/moodle/mod/aim_quiz/lib.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** lib.php 2 Sep 2003 18:47:54 -0000 1.7 --- lib.php 6 Sep 2003 08:24:25 -0000 1.8 *************** *** 372,379 **** // find the row which gives the totals if (preg_match("/<td(?:\s[^<>]*?|)>Total<\/td>(?:.(?!<td\s|<td>))*.?<td(?:\s[^<>]*?|)>((?:.(?!<\/td>))*?.?)<\/td>(?:.(?!<td\s|<td>))*.?<td(?:\s[^<>]*?|)>((?:.(?!<\/td>))*?.?)<\/td>/si", $data, $matches)) { ! if (empty($CFG->aim_quiz_grade_multiplier)) ! $CFG->aim_quiz_grade_multiplier = 1.0; ! $max_grade = (int) (((float) html_entity_decode($matches[1])) * ((float) $CFG->aim_quiz_grade_multiplier)); ! $grade = (int) (((float) html_entity_decode($matches[2])) * ((float) $CFG->aim_quiz_grade_multiplier)); } } --- 372,379 ---- // find the row which gives the totals if (preg_match("/<td(?:\s[^<>]*?|)>Total<\/td>(?:.(?!<td\s|<td>))*.?<td(?:\s[^<>]*?|)>((?:.(?!<\/td>))*?.?)<\/td>(?:.(?!<td\s|<td>))*.?<td(?:\s[^<>]*?|)>((?:.(?!<\/td>))*?.?)<\/td>/si", $data, $matches)) { ! if (empty($CFG->aim_quiz_grade_multiplier)) ! $CFG->aim_quiz_grade_multiplier = 1.0; ! $max_grade = (int) (((float) html_entity_decode($matches[1])) * ((float) $CFG->aim_quiz_grade_multiplier)); ! $grade = (int) (((float) html_entity_decode($matches[2])) * ((float) $CFG->aim_quiz_grade_multiplier)); } } *************** *** 432,440 **** // remove styles (as we haven't loaded the AiM stylesheet) ! $out = preg_replace("/<div(?:\s[^<>]*?|)>/i", "", $out); ! $out = preg_replace("/<\/div>/i", "", $out); ! $out = preg_replace("/<span(?:\s[^<>]*?|)>/i", "", $out); ! $out = preg_replace("/<\/span>/i", "", $out); ! $out = preg_replace("/(?<=<)(\w*(?:\s[^<>]*?|))\sclass=(?(?=\")\"[^\"<>]*?\"(?=\W)|\S*?(?=>))/i", "\\1", $out); ////// HACK - sort out non-xml complient AIM output --- 432,440 ---- // remove styles (as we haven't loaded the AiM stylesheet) ! // $out = preg_replace("/<div(?:\s[^<>]*?|)>/i", "", $out); ! // $out = preg_replace("/<\/div>/i", "", $out); ! // $out = preg_replace("/<span(?:\s[^<>]*?|)>/i", "", $out); ! // $out = preg_replace("/<\/span>/i", "", $out); ! // $out = preg_replace("/(?<=<)(\w*(?:\s[^<>]*?|))\sclass=(?(?=\")\"[^\"<>]*?\"(?=\W)|\S*?(?=>))/i", "\\1", $out); ////// HACK - sort out non-xml complient AIM output *************** *** 518,545 **** function aim_quiz_pdf($aim_quiz, $course, $data) { /// Function which extracts the latex from the AiM quiz page and converts it to pdf ! /// This still has to be written, I am only experimenting at the moment. $latex = "\\documentclass[12pt]{article}\n \\begin{document}\n \\begin{center} ! \\bf ".$course->fullname.": ".$aim_quiz->name." ! \\end{center}"; ! $questions = explode("<div class=\"question\"",$data); ! array_shift($questions); ! foreach ($questions as $key => $question) { ! $latex .= "\n\n{\\bf Question:}\n"; ! $chunks = explode("</latex>",$question); ! array_pop($chunks); ! foreach ($chunks as $chunk) { ! preg_match("/(?<=<latex>)[\s\S]*\$/","$chunk",$piece); ! $latex .= $piece[0]; ! } } $latex .= "\n\n\\end{document}"; $fp=fopen("temp.tex","w"); fwrite($fp,$latex); fclose($fp); ! $latexoutput = system("pdflatex -interaction=batchmode temp.tex"); return true; } --- 518,587 ---- function aim_quiz_pdf($aim_quiz, $course, $data) { /// Function which extracts the latex from the AiM quiz page and converts it to pdf ! /// This is not yet complete ! /// The strategy is: ! /// 1) use regexps to convert anything on the quiz page that ! /// we want to keep into latex, ! /// 2) collect all the latex together ! /// 3) pass it through pdflatex $latex = "\\documentclass[12pt]{article}\n \\begin{document}\n \\begin{center} ! {\\bf " . $course->fullname . ": " . $aim_quiz->name . "} ! \\end{center}"; ! // remove everything before the first question ! $data = preg_replace("/^[\s\S]*?(?=id=\"question)/", ! "",$data); ! ! // remove all answers and solutions ! $data = preg_replace("/class=\"lastanswer\"[\s\S]*?((?=id=\"question)|$)/", ! "",$data); ! ! // remove questionheaders including descriptions ! $data = preg_replace("/class=\"questionheader\"[\s\S]*?class=\"questionbody/", ! "",$data); ! ! // Questions ! $data = preg_replace("/id=\"question(\d+)\"/i", ! "<latex>\n\n\vspace{5mm}\\noindent{\\bf Question \$1:}\n\n</latex>",$data); ! ! // Parts ! $data = preg_replace("/id=\"question(\d+).(\d+)\"/i", ! "<latex>\n\n\vspace{2mm}{\\bf Part \$2}\n\n</latex>",$data); ! ! // replace radio buttons by circles ! $data = preg_replace("/(type=\"radio\"[^\/]*value=\")[A-Z]\"/", ! "<latex>\n\n $\circ$ </latex>",$data); ! ! // replace checkboxes by diamonds ! $data = preg_replace("/(type=\"checkbox\"[^\/]*value=\")[A-Z]\"/", ! "<latex>\n\n $\diamond$ </latex>",$data); ! // replace input box by .... ! // preg_match_all("/<latex>([\s\S]*)?<\/latex>/", $data, $matches); ! // $latex .= implode(" ", $matches[0]); ! ! // extract anything inside <latex> ..</latex> and append it to $latex ! // this is not done elegantly, but who cares. ! $chunks = explode("</latex>",$data); ! array_pop($chunks); ! foreach ($chunks as $chunk) { ! preg_match("/(?<=<latex>)[\s\S]*$/","$chunk",$piece); ! $latex .= $piece[0]; } + $latex .= "\n\n\\end{document}"; $fp=fopen("temp.tex","w"); fwrite($fp,$latex); fclose($fp); ! ! // The next step is to call pdflatex to convert the latex to pdf ! // Unfortunately I have the problem that PHP hangs after executing ! // any command using exec or similar. ! // Does anyone know a solution? Is it a problem with the particular ! // version of PHP or apache that I am using? ! ! // $latexoutput = system("pdflatex -interaction=batchmode temp.tex"); ! // exec(cmd); return true; } |
From: <gus...@us...> - 2003-09-05 14:00:36
|
Update of /cvsroot/aimmath/AIM/doc In directory sc8-pr-cvs1:/tmp/cvs-serv4738/doc Modified Files: format.html Log Message: added comment about the use of linalg matrix rather than LinearAlgebra Matrix Index: format.html =================================================================== RCS file: /cvsroot/aimmath/AIM/doc/format.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** format.html 4 Sep 2003 03:37:36 -0000 1.4 --- format.html 5 Sep 2003 14:00:20 -0000 1.5 *************** *** 458,462 **** The attached text should be a maple expression giving the right answer ! to the question. <a name='prompt'><h3>prompt>/ap></h3></a> --- 458,462 ---- The attached text should be a maple expression giving the right answer ! to the question. <a name='prompt'><h3>prompt>/ap></h3></a> *************** *** 506,510 **** and that the student should see an array of input boxes in which to enter the matrix elements. One can also use the syntax ! MATRIX(rows,cols,size) to indicate the size of the input boxes. </li> <li>The name 'string'. This means that the student's answer will be --- 506,514 ---- and that the student should see an array of input boxes in which to enter the matrix elements. One can also use the syntax ! MATRIX(rows,cols,size) to indicate the size of the input boxes. The student's answer ! will be treated in AiM as a table-based matrix as used in the linalg package. ! Thus also the teacher's answer needs to be a table-based matrix. If you like ! to work with rtable-based matrices as used by the LinearAlgebra package then ! you should convert the teacher's answer with convert(A,matrix). </li> <li>The name 'string'. This means that the student's answer will be |
From: <gr...@us...> - 2003-09-05 09:57:11
|
Update of /cvsroot/aimmath/AIM/WEB-INF/classes In directory sc8-pr-cvs1:/tmp/cvs-serv28076/classes Modified Files: AliceRequest.class Log Message: Corrected typo. quizName -> QuizName ... now the Quiz is actually listed in the Recent Requests table of the monitor.html page. - GG Index: AliceRequest.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/AliceRequest.class,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 Binary files /tmp/cvsFyV95l and /tmp/cvsqpJtYx differ |
From: <gr...@us...> - 2003-09-05 09:57:11
|
Update of /cvsroot/aimmath/AIM/WEB-INF/java In directory sc8-pr-cvs1:/tmp/cvs-serv28076/java Modified Files: Alice.java Log Message: Corrected typo. quizName -> QuizName ... now the Quiz is actually listed in the Recent Requests table of the monitor.html page. - GG Index: Alice.java =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/java/Alice.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Alice.java 1 Sep 2003 20:22:23 -0000 1.7 --- Alice.java 5 Sep 2003 09:57:07 -0000 1.8 *************** *** 1018,1022 **** command = r.getParameter("Command"); subject = r.getParameter("SubjectName"); ! quiz = r.getParameter("quizName"); mathdisplay = r.getParameter("MathDisplay"); } else { --- 1018,1022 ---- command = r.getParameter("Command"); subject = r.getParameter("SubjectName"); ! quiz = r.getParameter("QuizName"); mathdisplay = r.getParameter("MathDisplay"); } else { *************** *** 1024,1028 **** command = mprequest.getParameter("Command"); subject = mprequest.getParameter("SubjectName"); ! quiz = mprequest.getParameter("quizName"); mathdisplay = mprequest.getParameter("MathDisplay"); } --- 1024,1028 ---- command = mprequest.getParameter("Command"); subject = mprequest.getParameter("SubjectName"); ! quiz = mprequest.getParameter("QuizName"); mathdisplay = mprequest.getParameter("MathDisplay"); } |
From: <gr...@us...> - 2003-09-05 09:14:08
|
Update of /cvsroot/aimmath/AIM/WEB-INF/classes/tth In directory sc8-pr-cvs1:/tmp/cvs-serv20625/classes/tth Modified Files: TtH.class TtHReader.class Log Message: The earlier changes to exec in Maple.java added a 3rd argument: "html". Without it check was always failing, and so processes were being condemned after one use. - GG Index: TtH.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/tth/TtH.class,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsiFtgEc and /tmp/cvskPrCrh differ Index: TtHReader.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/tth/TtHReader.class,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsx1gKSd and /tmp/cvsujEyxh differ |
From: <gr...@us...> - 2003-09-05 09:14:07
|
Update of /cvsroot/aimmath/AIM/WEB-INF/java In directory sc8-pr-cvs1:/tmp/cvs-serv20625/java Modified Files: Maple.java Log Message: The earlier changes to exec in Maple.java added a 3rd argument: "html". Without it check was always failing, and so processes were being condemned after one use. - GG Index: Maple.java =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/java/Maple.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Maple.java 30 Aug 2003 22:40:55 -0000 1.4 --- Maple.java 5 Sep 2003 09:13:48 -0000 1.5 *************** *** 192,199 **** try { ! exec("2+2",p); return( s.toString().trim().equals("4") ); } catch (Exception e) { return(false); } } --- 192,211 ---- try { ! exec("2+2",p,"html",""); return( s.toString().trim().equals("4") ); } catch (Exception e) { return(false); + } + } + + public synchronized String checkout() { + StringWriter s = new StringWriter(); + PrintWriter p = new PrintWriter(s); + + try { + exec("2+2",p,"html",""); + return( s.toString().trim() ); + } catch (Exception e) { + return("Aargh!"); } } |
From: <gr...@us...> - 2003-09-05 09:14:07
|
Update of /cvsroot/aimmath/AIM/WEB-INF/classes In directory sc8-pr-cvs1:/tmp/cvs-serv20625/classes Modified Files: Alice.class AliceLog.class AliceRequest.class Maple.class MaplePool.class Log Message: The earlier changes to exec in Maple.java added a 3rd argument: "html". Without it check was always failing, and so processes were being condemned after one use. - GG Index: Alice.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/Alice.class,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvsUtrKo6 and /tmp/cvsq2Tsv2 differ Index: AliceLog.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/AliceLog.class,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvsJ2nKk7 and /tmp/cvsW9emt4 differ Index: AliceRequest.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/AliceRequest.class,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 Binary files /tmp/cvswEYlu8 and /tmp/cvsY7mbN6 differ Index: Maple.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/Maple.class,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvsxRSbG9 and /tmp/cvsWbfE88 differ Index: MaplePool.class =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/classes/MaplePool.class,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 Binary files /tmp/cvss16PSa and /tmp/cvsmGPewb differ |
From: <mo...@us...> - 2003-09-04 03:37:40
|
Update of /cvsroot/aimmath/AIM/doc In directory sc8-pr-cvs1:/tmp/cvs-serv902 Modified Files: format.html Log Message: added the declarations: global ans1; to the top of the solution procs in the example question "primes". Otherwise the question gives an error when a composite number is entered (under Maple 9) Index: format.html =================================================================== RCS file: /cvsroot/aimmath/AIM/doc/format.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** format.html 2 Sep 2003 07:11:56 -0000 1.3 --- format.html 4 Sep 2003 03:37:36 -0000 1.4 *************** *** 269,272 **** --- 269,273 ---- ap> $p_1 =$ s> [proc(ans) + global ans1; if isprime(ans) then if ans > lowerbound then *************** *** 292,295 **** --- 293,297 ---- ap> $p_2 =$ s> [proc(ans) + global ans1; if not type(p1, posint) then # Make sure the student did in fact answer the first part!! |
From: <mo...@us...> - 2003-09-03 15:49:14
|
Update of /cvsroot/aimmath/AIM/WEB-INF/maple In directory sc8-pr-cvs1:/tmp/cvs-serv1834 Modified Files: Random.mpl Log Message: A minor tweak Index: Random.mpl =================================================================== RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/Random.mpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Random.mpl 1 Sep 2003 20:22:23 -0000 1.5 --- Random.mpl 3 Sep 2003 15:49:11 -0000 1.6 *************** *** 398,402 **** `Package/Assign`( ! `Nice/Monomial`::procedure, "Produces a monomial of the form @a*x^n@ where @a@ is randomly selected from @arange@ and @n@ is randomly selected from @deg@ if those arguments are present. If @deg@ or @arange@ are not passed as arguments the default value is @1..3@ for both. The argument @x@ is mandatory and can be any algebraic expression or Inert Expression.", proc(x::{algebraic,InertExpr},deg,arange) --- 398,402 ---- `Package/Assign`( ! `Nice/Monomial`::InertExpr, "Produces a monomial of the form @a*x^n@ where @a@ is randomly selected from @arange@ and @n@ is randomly selected from @deg@ if those arguments are present. If @deg@ or @arange@ are not passed as arguments the default value is @1..3@ for both. The argument @x@ is mandatory and can be any algebraic expression or Inert Expression.", proc(x::{algebraic,InertExpr},deg,arange) *************** *** 419,423 **** `Package/Assign`( ! `Nice/Binomial`::procedure, "Produces a \"nice\" binomial from its arguments (which is more complicated than it sounds). If one looks through the problems assigned in a typical calculus or precalc book, one will notice that there are certain rules that authors tend to follow when designing \"nice\" questions. This procedure attempts to produce a \"nice\" random binomial in @x@ that is a sum of a monomial in @x@ and a constant term in a random order. The defaults for the degree of the monomial and the two coefficients can be overriden by supplying the appropriate arguments. The argument @x@ is mandatory and can be any algebraic expression or Inert Expression.", proc(x::{algebraic,InertExpr},deg,arange,brange) --- 419,423 ---- `Package/Assign`( ! `Nice/Binomial`::InertExpr, "Produces a \"nice\" binomial from its arguments (which is more complicated than it sounds). If one looks through the problems assigned in a typical calculus or precalc book, one will notice that there are certain rules that authors tend to follow when designing \"nice\" questions. This procedure attempts to produce a \"nice\" random binomial in @x@ that is a sum of a monomial in @x@ and a constant term in a random order. The defaults for the degree of the monomial and the two coefficients can be overriden by supplying the appropriate arguments. The argument @x@ is mandatory and can be any algebraic expression or Inert Expression.", proc(x::{algebraic,InertExpr},deg,arange,brange) *************** *** 509,513 **** `Package/Assign`( ! `Nice/Trinomial`::procedure, "Produces a \"nice\" trinomial in @x@. See #Nice/Binomial# for more info.", proc(x::{algebraic,InertExpr},deg,arange,brange,crange) --- 509,513 ---- `Package/Assign`( ! `Nice/Trinomial`::InertExpr, "Produces a \"nice\" trinomial in @x@. See #Nice/Binomial# for more info.", proc(x::{algebraic,InertExpr},deg,arange,brange,crange) |