WeBWorK Main Forum

Why when viewing homework problems none of default display modes is used?

Re: Why when viewing homework problems none of default display modes is used?

by Alexander Basyrov -
Number of replies: 0
Christian,

Maybe using a 'hardcopy' in pdf format is an easier way to see all problems on one page? I'm pretty sure you thought about that though.

I do not know if there is a configuration option that changes default display mode in the homework sets editor. That could be useful in 99% of cases, and it is probably not too hard to implement.

The 'infinite loop' situation is just another possible worst case scenario. The code in a .pg file might contain an infinite loop -- just add something like while(1==1){ ; } into the .pg code and you have it. If there are 5 such problems in a problem set, the server will attempt to render those buggy problems waiting for 60 seconds (or whatever the timeout on .pg files is set) for each problem to produce output. In the worst case you will not see the homework sets editor page at all; in the best case it could take anywhere between 1 minute and 5 minutes for the page to load. Not rendering problems on the first load avoids that.

-- Alex