Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Authoring edX XML

Joe Martis
October 09, 2014

Authoring edX XML

Joe Martis

October 09, 2014
Tweet

Other Decks in Education

Transcript

  1. Agenda   •  Introduc7on   •  Metaphors   •  Studio

      •  XML   •  LaTex2edX   •  Q/A  
  2. Me   •  Joe  Mar7s  –  MITx  Educa7onal  Technologist  

    •  Been  with  MITx  for  607  days   •  @  OCW  for  3  years  prior   •  No  Studio,  List  of  XML  tags,  GO!  
  3. Metaphor   A  figure  of  speech  in  which  a  term

     or  phrase  is   applied  to  something  to  which  it  is  not  literally   applicable  in  order  to  suggest  a  resemblance.  
  4. Authoring  Support       •  @  edX  =  Studio

      •  @  MITx  =  Studio  /  XML  /  LaTeX2edX  /   Backstage  /  etc.  
  5. Studio  Pros   •  Studio:   – Drag  n’  Drop  

    – WYSIKWYG   – VERY  GUI   – Import/export   – Very  low  entry  barrier   •  No  coding  experience  needed      
  6. Studio  Cons   •  Studio:   –  Slow    

    –  Bulky   –  ‘black  box’   –  Not  easy  to  bulk  edit   –  Complex  file  names   –  Not  all  func7onality  supported  in  Studio   –  Limited  backups  /  painful  restora7on   –  Author  collisions   –  Poor  version  control  
  7. edge.edx.org  vs.  edx.org   •  studio.edge  à  preview.edge  à  edge.

      •  Slightly  ahead  of  edX  produc7on  code   •  Completely  isolated  from  courses.edx.org   – Safe  playground   q   Used  for  tes7ng   q   Used  as  a  training  spot  for  new  course  teams  
  8. Studio  Publishing  (RES)   Edit  files  in  Studio    

    Looks  good  on   Staging.mitx.mit.edu         Push  to  lms.mitx.mit.edu   via  ‘Export  to  git’  
  9. EXPORT  TO  GIT  (RES)   EXPORT  to  GIT    

    Commits  to  github.mit.edu/Studio2LMS/       lms.mitx.mit.edu     webhook   gitreload  
  10. edX  XML  Pros   •  Full  control  over  code  

    •  Easy  to  bulk  edit   •  Quicker  to  edit   •  Custom  file  names   •  Complete  source/version  control  (git)   •  Freedom!  
  11. edX  XML  Cons   •  Not  ‘supported’  by  edX  

    •  Ligle  documenta7on   •  Easy  to  break   •  Risk  of  tags  being  deprecated   •  Freedom!  
  12. XML  Workflow  (RESIDENTIAL)   Edit  files  locally     Commit

     to  MASTER   branch  github     Staging.mitx.mit.edu   PR  MASTER  to  LIVE     Approve  PR     lms.mitx.mit.edu   PREVIEW   PRODUCTION  
  13. XML  Workflow  (RES)   •  webhook   •  gitreload  

    Commits  should  appear  on  site  within  seconds   else   XML  error  
  14. XML  Workflow  (MOOC)   Edit  files  locally     Commit

     to  MASTER   branch  github     lms-­‐inator.mitx.mit.edu   PR  MASTER  to  LIVE   approve  PR       tar  LIVE       Import  @     studio.edx.org   PREVIEW   PRODUCTION  
  15. XML  Tree   •  course.xml   – org/course  number/pointer   • 

    /course/termyear.xml   – chapter  pointers/course   image/display  name/start/ end/grace/adv.  mod/     •  /policies/termyear/ policy.json   – Course  metadata/content   restric7ons    
  16. LaTeX2edX  Pros   •  Easy  to  maintain  source   • 

    Familiar  tool   •  Many  versions  of  script   •  Lack  of  support  for  current  Studio  feature  set   •  High  entry  barrier   •  Lack  of  support  from  edX   LaTeX2edX  Cons  
  17. LaTeX2edX  Workflow   Edit  files  locally  in  LaTex    

      Execute  latex2edx  locally   Commit  to  github       Now  in  XML  workflow  
  18. edX  LaTeX  tags   \begin{edXcourse}{6.041x}{2014_Spring}     %Chapter:  Welcome  to

     6.041x   \begin{edXchapter}{Unit  0:  Overview}     \begin{edXsec7on}{Lec.  0:  Course  overview}     \begin{edXver7cal}{Course  character  and  objec7ves}     \edXvideo{download_track="true"  download_video="true"   display_name="Course  character  and  objec7ves"   youtube='1.0:CySStZiDeUE'  source='hgps://s3.amazonaws.com/edx-­‐ course-­‐videos/mit-­‐6041x/MIT6041XT114-­‐C0101_100.mp4'  track='/ sta7c/subs/srt/Course_overview1.srt'}  
  19. Problem   A  single  dot  is  placed  on  a  very

     long  length  of  yarn  at  the  tex7le  mill.  The  yarn  is  then  cut  into  pieces.  The  lengths  of  the  different  pieces  are  independent,  and  the  length  of  each  piece  is   distributed  according  to  the  same  PDF  $f_X(x)$.  Let  $R$  be  the  length  of  the  piece  that  includes  the  dot.  Determine  the  expected  value  of  $R$  in  each  of  the  following  cases.     In  each  part  below,  express  your  answer  in  terms  of  $\lambda$  using  \edXxml{<a  href="/courses/MITx/6.041x/1T2014/courseware/Unit_0_Overview/ Homework_mechanics_and_standard_nota7on6/2"  target="_blank">standard  nota7on</a>}.  Enter  'lambda'  for  $\lambda$.       \begin{enumerate}   \item  Suppose  that  $f_X(x)  =  \begin{cases}\lambda  e^{-­‐\lambda  x},  &  x\geq  0,\\  0,  &  x<0.\end{cases}$     \edXinline{$\E[R]=\,$}  \edXabox{type="formula"  size="20"  expect="2/lambda"  samples="lambda@0:10#20"  tolerance="3\%"  math="1"  inline="1"}     \item  Suppose  that  $f_X(x)  =  \begin{cases}\frac{\lambda^3  x^2  e^{-­‐\lambda  x}}{2},  &  x\geq  0,\\  0,  &  x<0.\end{cases}$     \edXinline{$\E[R]=\,$}  \edXabox{type="formula"  size="20"  expect="4/lambda"  samples="lambda@0:10#20"  tolerance="3\%"  math="1"  inline="1"}     \end{enumerate}       \begin{edXsolu.on}     \begin{enumerate}   \item  Here,  the  lengths  of  the  pieces  of  yarn  are  independent  and  exponen7ally  distributed  with  parameter  $\lambda$.  As  explained  on  pages  322-­‐324  of  the  text,  due  to  the  memorylessness  of   the  exponen7al,  the  distribu7on  of  the  length  of  the  piece  of  yarn  containing  the  dot  is  a  second  order  Erlang.    Thus,  $\E[R]=2\E[X]=2/\lambda$.     \item  Here,  $X$  is  an  Erlang  of  order  3.  Think  of  sec7ons  on  the  yarn,  each  exponen7ally  distributed  with  parameter  $\lambda$.  We  can  then  interpret  each  piece  of  yarn  as  {\em  three}   consecu7ve  sec7ons  of  exponen7ally  distributed  lengths.  The  piece  of  yarn  with  the  dot  will  have  the  dot  in  one  of  these  three  sec7ons.  By  the  standard  random  incidence  analysis,  the  expected   length  of  that  sec7on  will  be  $2/\lambda$.  However,  the  piece  of  yarn  containing  the  dot  also  consists  of  two  other  sec7ons,  each  with  an  expected  length  of  $1/\lambda$.  Thus,  the  total   expected  length  of  the  piece  of  yarn  containing  the  dot  is  $4/\lambda$.     %In  general,  for  processes  in  which  the  interarrival  interval  lengths  are  i.i.d.\  with  common  distribu7on  $f_X(x)$,  the  expected  length  of  the  interval  containing  an  arbitrary  point  is  $\frac{\E[X^2]} {\E[X]}$.  For  each  part  of  the  present  problem,  this  formula  is  certainly  valid.     \end{enumerate}     \end{edXsolu.on}