[LON-CAPA-users] Importing library routines

Robley Light lon-capa-users@mail.lon-capa.org
Tue, 29 Aug 2006 16:35:11 -0400


This is a multi-part message in MIME format.

------=_NextPart_000_00A9_01C6CB89.1968E260
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

An interesting way to group problems.  Thanks for making the code available
so others can see how you do this.
 
Since each question is a separate part, I presume you limit the tries to 1
per part?
 
Robley Light

*************************************************************
Robley J. Light                         Professor of Chemistry and
Biochemistry
Department of Chemistry          Phone:   (850) 644-3844
   and Biochemistry                   Email:  rlight@chem.fsu.edu  
Florida State University             Fax:      (850) 644-8281
Tallahassee, FL 32306-4390    Home Page:
http://www.chem.fsu.edu/editors/rlight   
                    

 


  _____  

From: lon-capa-users-admin@mail.lon-capa.org
[mailto:lon-capa-users-admin@mail.lon-capa.org] On Behalf Of
Robert_Brewington@er.monroe.edu
Sent: Tuesday, August 29, 2006 12:54 PM
To: lon-capa-users@mail.lon-capa.org
Subject: Re: [LON-CAPA-users] Importing library routines



My setup constructs a randomized set of problems for students. It does a
construct like
      <part><import> prob7.library </import></part>
      <part><import> prob5.library </import></part>
      <part><import> prob72.library </import></part>
      <part><import> prob14.library </import></part>
      <part><import> prob23.library </import></part>
      <part><import> prob53.library </import></part>
      <part><import> prob11.library </import></part>

where each of 15 problem numbers is generated by a piece of code.
 
Using problems instead of the library did not work; I think it was because I
cannot import problems, they have to be libraries. I have tried to make all
my code available to everyone; you can look at 
 
brewington/Chemistry/RegentsReview/FinalMaster.problem
 
to see how it works. 
 
I can then set up a series of problem sheets (say, 50 of them). Each student
then sees 50 sheets of 15 problems each, where the problems have been
randomly selected from the main pool of several hundred problems. Each
student sees different problems with different randomizations.
 
It works pretty well, although it unfortunately does not allow statistics on
the problems. I guess problems are indexed by their positions on sequences,
not by an actual problem or part id. 
 
Last spring I had to have Guy manually move/rename stuff, partly due to my
learning curve and partly because I do not have the access to do these
operations. I am reluctant to keep bugging him for my problem manipulations.
He has lots of serious stuff to do. On the other hand, I don't know if I
have enough time in the day to do this through the web interface... Only a
few days now until school starts!
 
I expect to add more problems to the pool twice a year, a couple of hundred
each time. It is very awkward not having the ability to do mass deletes,
moves, renames, and so on. Apparently people running their own servers have
root access, so they routinely go in and do things with shell scripts. I
have the knowledge & experience to do this, but do not have that access
since I am hosted on the educog machine. In addition, I am perhaps unusual
in my structure and overall number of problems. 
 
Thanks,
brew
-----lon-capa-users-admin@mail.lon-capa.org wrote: -----



To: lon-capa-users@mail.lon-capa.org
From: Gerd Kortemeyer <korte@lite.msu.edu>
Sent by: lon-capa-users-admin@mail.lon-capa.org
Date: 08/29/2006 10:46AM
Subject: Re: [LON-CAPA-users] Importing library routines

Hi Brew,

On Aug 29, 2006, at 10:38 AM, Robert_Brewington@er.monroe.edu wrote:

> I am importing a couple of hundred questions into LonCapa.
>
> For my system, I need these to come in as libraries, not as  
> problems. Currently, I have to do several thousand mouse clicks to  
> 1) rename each file to library, and 2) replace the <problem> tags  
> with <library>. I just did 50 questions, and it took 600 mouse  
> clicks and 250 screen loads just to rename the files.

I am not sure ... why "library"?

- Gerd.

_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users



_______________________________________________ LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users


------=_NextPart_000_00A9_01C6CB89.1968E260
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D812133619-29082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>An interesting way to group problems.&nbsp; =
Thanks for=20
making the code available so others can see how you do =
this.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D812133619-29082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D812133619-29082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Since each question is a separate part, I =
presume you limit=20
the tries to 1 per part?</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D812133619-29082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D812133619-29082006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Robley Light</FONT></SPAN></DIV>
<P align=3Dleft><FONT=20
size=3D2>*************************************************************<BR=
>Robley=20
J.=20
Light&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;=20
Professor of Chemistry and Biochemistry<BR>Department of=20
Chemistry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Phone:&nbsp;&nbsp; (850) 644-3844<BR>&nbsp;&nbsp; and=20
Biochemistry&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Email:&nbsp; rlight@chem.fsu.edu&nbsp;&nbsp;<BR>Florida State=20
University&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (850) 644-8281<BR>Tallahassee, FL=20
32306-4390&nbsp;&nbsp;&nbsp; Home Page:&nbsp; <A=20
href=3D"http://www.chem.fsu.edu/editors/rlight"=20
target=3D_blank>http://www.chem.fsu.edu/editors/rlight</A>&nbsp;&nbsp;&nb=
sp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
</FONT></P>
<DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT>&nbsp;</DIV><BR>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
  <HR tabIndex=3D-1>
  <FONT face=3DTahoma size=3D2><B>From:</B> =
lon-capa-users-admin@mail.lon-capa.org=20
  [mailto:lon-capa-users-admin@mail.lon-capa.org] <B>On Behalf Of=20
  </B>Robert_Brewington@er.monroe.edu<BR><B>Sent:</B> Tuesday, August =
29, 2006=20
  12:54 PM<BR><B>To:</B> =
lon-capa-users@mail.lon-capa.org<BR><B>Subject:</B> Re:=20
  [LON-CAPA-users] Importing library routines<BR></FONT><BR></DIV>
  <DIV></DIV><FONT face=3D"Default Sans =
Serif,Verdana,Arial,Helvetica,sans-serif"=20
  size=3D2>
  <DIV>My setup constructs a randomized set of problems for students. It =
does a=20
  construct like</DIV>
  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;part&gt;&lt;import&gt; =
prob7.library=20
  &lt;/import&gt;&lt;/part&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;part&gt;&lt;import&gt; prob5.library=20
  &lt;/import&gt;&lt;/part&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;part&gt;&lt;import&gt; prob72.library=20
  &lt;/import&gt;&lt;/part&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;part&gt;&lt;import&gt; prob14.library=20
  &lt;/import&gt;&lt;/part&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;part&gt;&lt;import&gt; prob23.library=20
  &lt;/import&gt;&lt;/part&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;part&gt;&lt;import&gt; prob53.library=20
  &lt;/import&gt;&lt;/part&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  &lt;part&gt;&lt;import&gt; prob11.library=20
  &lt;/import&gt;&lt;/part&gt;<BR></DIV>
  <DIV>where each of 15&nbsp;problem numbers is generated by a piece of=20
  code.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Using problems instead of the library did not work; I think it =
was=20
  because I cannot import problems, they have to be libraries. I have =
tried to=20
  make all my code available to everyone; you can look at </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>brewington/Chemistry/RegentsReview/FinalMaster.problem</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>to see how it works. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I can then set up a series of problem sheets (say,&nbsp;50 of =
them). Each=20
  student then sees 50 sheets of 15 problems each, where the problems =
have been=20
  randomly selected from the main pool of several hundred problems. Each =
student=20
  sees different problems with different randomizations.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>It works pretty well, although it unfortunately does not allow =
statistics=20
  on the problems. I guess problems are indexed by their positions on =
sequences,=20
  not by an actual problem or part id. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Last spring&nbsp;I had to have Guy manually move/rename stuff, =
partly due=20
  to my learning curve and partly because I do not have the access to do =
these=20
  operations. I am reluctant to keep bugging him for my&nbsp;problem=20
  manipulations. He has lots of serious stuff to do. On the other hand, =
I don't=20
  know if I have enough time in the day to do this through the web =
interface...=20
  Only a few days now until school starts!</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I expect to add more problems to the pool twice a year, a couple =
of=20
  hundred each time. It&nbsp;is very awkward not having the ability to =
do mass=20
  deletes, moves, renames, and so on. =
Apparently&nbsp;people&nbsp;running their=20
  own servers&nbsp;have root access, so they&nbsp;routinely go in and do =
things=20
  with shell scripts. I have the knowledge &amp; experience to do this, =
but do=20
  not have that access since I am hosted on the educog machine. In =
addition, I=20
  am perhaps unusual in my structure and overall number of problems. =
</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks,</DIV>
  <DIV>brew</DIV><FONT =
color=3D#990099>-----lon-capa-users-admin@mail.lon-capa.org=20
  wrote: -----<BR><BR></FONT>
  <BLOCKQUOTE=20
  style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">To:=20
    lon-capa-users@mail.lon-capa.org<BR>From: Gerd Kortemeyer=20
    &lt;korte@lite.msu.edu&gt;<BR>Sent by:=20
    lon-capa-users-admin@mail.lon-capa.org<BR>Date: 08/29/2006=20
    10:46AM<BR>Subject: Re: [LON-CAPA-users] Importing library=20
    routines<BR><BR><FONT face=3D"Default Monospace,Courier =
New,Courier,monospace"=20
    size=3D2>Hi Brew,<BR><BR>On Aug 29, 2006, at 10:38 AM,=20
    Robert_Brewington@er.monroe.edu wrote:<BR><BR>&gt; I am importing a =
couple=20
    of hundred questions into LonCapa.<BR>&gt;<BR>&gt; For my system, I =
need=20
    these to come in as libraries, not as &nbsp;<BR>&gt; problems. =
Currently, I=20
    have to do several thousand mouse clicks to &nbsp;<BR>&gt; 1) rename =
each=20
    file to library, and 2) replace the &lt;problem&gt; tags =
&nbsp;<BR>&gt; with=20
    &lt;library&gt;. I just did 50 questions, and it took 600 mouse=20
    &nbsp;<BR>&gt; clicks and 250 screen loads just to rename the=20
    files.<BR><BR>I am not sure ... why "library"?<BR><BR>-=20
    =
Gerd.<BR><BR>_______________________________________________<BR>LON-CAPA-=
users=20
    mailing list<BR>LON-CAPA-users@mail.lon-capa.org<BR><A=20
    href=3D"http://mail.lon-capa.org/mailman/listinfo/lon-capa-users"=20
    =
target=3Dblank>http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</=
A><BR></FONT></BLOCKQUOTE><BR></FONT>____________________________________=
___________=20
  LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org=20
  =
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</BLOCKQUOTE></BO=
DY></HTML>

------=_NextPart_000_00A9_01C6CB89.1968E260--