Log of /trunk/pg/macros/dangerousMacros.pl
Parent Directory
Revision
4088 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun May 21 00:44:40 2006 UTC (7 years ago) by
gage
File length: 50676 byte(s)
Diff to
previous 3547
added findAppletFile to dangerous macros.
This is still not in its final form which should involve checking the url
rather than the file location.
Revision
3547 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 22 01:26:04 2005 UTC (7 years, 9 months ago) by
jj
File length: 50035 byte(s)
Diff to
previous 3502
Part of change dealing with bug 813.
Possible things still to do here:
change names of variables to reflect that they contain commands and
not scripts
have a variable for the path to cat
remove the scripts themselves
Revision
3502 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 13 05:54:10 2005 UTC (7 years, 9 months ago) by
jj
File length: 49984 byte(s)
Diff to
previous 3359
If a problem file sets $refreshCachedImages=1 inside the pg file, then
cached copies of on the fly graphics are ignored and the graphic is
regenerated.
Revision
3359 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 5 21:58:51 2005 UTC (7 years, 10 months ago) by
sh002i
File length: 49890 byte(s)
Diff to
previous 3225
chech tthPreamble path and mtime to deal with changes to the file
between runs. this is necessary now that dangerousMacros.pl is cached.
Closes bug #798.
Revision
3225 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 14 01:42:25 2005 UTC (8 years ago) by
dpvc
File length: 49552 byte(s)
Diff to
previous 3180
Changed loadMacros() to use search for amcros files via a
user-cusomizable path of directories. This is specified in the
global.conf file, and can include any number of directories.
The path can include "." to mean look in the .pg file's directory.
This makes it possible to store special macros files with the code
that uses them.
By default, the path is ".", the course/templates/macro directory,
then the pg/macros directory (in that order). This duplicates the
current behaviour, except for the ".", which is new.
You must also make the updates to the global.conf,
webwork2/lib/WeBWorK/PG.pm, and webwork2/lib/WeBWorK/PG/Local/pm files.
Revision
3180 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Feb 19 16:47:36 2005 UTC (8 years, 3 months ago) by
gage
File length: 49269 byte(s)
Diff to
previous 2988
Small correction that makes sure that _init subroutines are read
properly. The original works on some versions of perl, but not on
others.
Revision
2988 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Nov 5 17:54:12 2004 UTC (8 years, 6 months ago) by
jj
File length: 49258 byte(s)
Diff to
previous 2932
Avoids some name collisions for images converted from gif to png in
hardcopy, specifically if two problems have different gif images
with the same name (but the gifs are in different directories). Now one
png won't overwrite the other.
Revision
2932 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 19 00:08:04 2004 UTC (8 years, 7 months ago) by
dpvc
File length: 49249 byte(s)
Diff to
previous 2698
Updated i(), j() and k() functions to check if the Parser is loaded,
and if not, return a value that will cause perl to report a better
error than calling the parser outside of its normal context.
Since the current answer checkers call perl directly to evaluate their
expressions, when a variable is used by a student that is not a
variable used by the checker, this can cause perl to try to parse
those variables as function calls, or other perl constructs (like
matches if you use 'm' or translations if you use 'y'). This is bad
(and is not a problem with the new parser).
In particular, if the student uses 'k' in a formula for which k is not
defined, for example, perl will try to call the k() function.
Revision
2698 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 28 13:52:33 2004 UTC (8 years, 8 months ago) by
dpvc
File length: 49150 byte(s)
Diff to
previous 2608
Add better error reporting in PG translator. In particular, these
changes add two new features:
1) produce a full stack trace when a .pg file dies, and
2) convert (eval nnn) references to filenames, when
possible, in warn and die messages while processing a
.pg file.
There is also a change in the webwork tree that is needed to make this
all work, so be sure to apply updates in both trees.
Revision
2574 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 4 20:23:11 2004 UTC (8 years, 9 months ago) by
dpvc
File length: 48920 byte(s)
Diff to
previous 2558
Make Parser live nicely with Complex1.pm.
In particular, make the i() function determine whether it should
call the Complex::i() function or the Parser version.
Revision
2392 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 24 21:00:26 2004 UTC (8 years, 11 months ago) by
dpvc
File length: 48695 byte(s)
Diff to
previous 2274
Removed skip and rule from problem header generated in TeX mode here,
and let the snippets handle it (they were producing redundent rules).
Also removed some unwanted spaces in htmllink().
(Accidentally committed experimental change to dangerousMacros.pl, and
don't know how to prevent it at this point, so I'll commit a change
back to the original in a moment.)
Revision
2232 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 31 15:44:43 2004 UTC (8 years, 11 months ago) by
jj
File length: 48447 byte(s)
Diff to
previous 2166
Re-use on-the-fly graphs, unless problem seed has change, source file has changed, or the problem is being rendered without being part of a real set.
Revision
2153 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 22 15:53:00 2004 UTC (9 years ago) by
gage
File length: 48067 byte(s)
Diff to
previous 2151
Removed warning messages. The macroDirectory and courseScripts directory are now defined from the %envir
variable which is shared directly with the new Safe compartment rather than via calls to $main::macroDirectory
which seemed to be unstable in some instances. I've left the FIXME sign in place just in case there
are still problems.
Revision
1690 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Dec 28 19:46:57 2003 UTC (9 years, 4 months ago) by
gage
File length: 49352 byte(s)
Diff to
previous 1312
Zeroed the variable storing the responses to questionnaires. Should
fix the error on questionnaires revealed by the persistance of mod_perl
modules.
Changed warning message in dangerousMacros.pl to more accurately describe
what is wrong when the gif2eps script cannot be executed. (Based on actual
experience running a course on webwork.math.rochester.edu -- I couldn't remember
what my own warning message implied.)
--Mike
Revision
1311 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 1 15:36:43 2003 UTC (9 years, 10 months ago) by
gage
File length: 49266 byte(s)
Diff to
previous 1305
Changed the defintion of *i to be inside the Complex package.
this and the change to dangerousMacros seems to have cured bug #116
In dangerousMacros, I've added sub i {Complex::i}; after sub i;
--Mike
Revision
1250 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 23 15:43:11 2003 UTC (9 years, 11 months ago) by
gage
File length: 48009 byte(s)
Diff to
previous 1091
Made changes required to allow caching of these files.
My tests indicate that these changes are compatible with webwork1.8
One possible problem might be the mail-to answer macros
which access the environement variable directly
I think I have this properly patched, but it has not been
tested yet.
--Mike
Revision
1091 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 9 21:53:11 2003 UTC (9 years, 11 months ago) by
gage
File length: 47340 byte(s)
Diff to
previous 1080
Added > /dev/null tags to the commands which run tex and dvi for
HTML_img mode. These will probably work now for the most part.
I don't know how well this will work if there is an error in
getting either tex or dvips to run.
For many problems using WeBWorK1.8 and typeset3 mode thing work fine.
Please submit example problems where the images don't show up or some
other image related error occurs as bugs to
http://webwork3.math.rochester.edu/bugzilla
--Mike
Revision
1069 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jun 9 02:01:41 2003 UTC (9 years, 11 months ago) by
gage
File length: 47692 byte(s)
Diff to
previous 1050
Bringing this version into sync with the latest version in
courseScripts.
In particular dvipng is active in this script to make HTML_img
useable in WeBWorK2.0. Not yet finished with this.
--Mike
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.