Skip to content

Instantly share code, notes, and snippets.

@djun-kim
Created March 10, 2013 19:44
Show Gist options
  • Save djun-kim/5130100 to your computer and use it in GitHub Desktop.
Save djun-kim/5130100 to your computer and use it in GitHub Desktop.
Sample WeBWorK Course Config File for Rserve integration
#!perl
################################################################################
# WeBWorK Online Homework Delivery System
# Copyright � 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of either: (a) the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any later
# version, or (b) the "Artistic License" which comes with this package.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the
# Artistic License for more details.
################################################################################
# This file is used to override the global WeBWorK course environment for
# requests to this course. All package variables set in this file are added to
# the course environment. If you wish to set a variable here but omit it from
# the course environment, use the "my" keyword. Commonly changed configuration
# options are noted below.
# Database Layout (global value typically defined in global.conf)
#
# Several database are defined in the file conf/database.conf and stored in the
# hash %dbLayouts.
#
# The database layout is always set here, since one should be able to change the
# default value in global.conf without disrupting existing courses.
#
# global.conf values:
# $dbLayoutName = 'sql_single';
# *dbLayout = $dbLayouts{$dbLayoutName};
$dbLayoutName = 'sql_single';
*dbLayout = $dbLayouts{$dbLayoutName};
# Allowed Mail Recipients (global value typically not defined)
#
# Defines addresses to which the PG system is allowed to send mail. This should
# probably be set to the addresses of professors of this course. Sending mail
# from the PG system (i.e. questionaires, essay questions) will fail if this is
# not set.
#
# global.conf values:
# $mail{allowedRecipients} = ['example@example.com'];
$mail{allowedRecipients} = ['example@example.com'];
# By default, feeback is sent to all users who have permission to
# receive_feedback. If this list is non-empty, feedback is also sent to the
# addresses specified here.
#
# * If you want to disable feedback altogether, leave this empty and set
# $permissionLevels{submit_feeback} = undef;
# This will cause the
# feedback button to go away as well.
#
# * If you want to send email ONLY to addresses in this list, set
# $permissionLevels{receive_feedback} = undef;
#
# It's often useful to set this in the course.conf to change the behavior of
# feedback for a specific course.
# global.conf values:
# $mail{feedbackRecipients} = [];
# Users for whom to label problems with the PG file name (global value typically "professor")
#
# For users in this list, PG will display the source file name when rendering a problem.
#
# global.conf values:
# $pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = ['professor'];
$pg{specialPGEnvironmentVars}{PRINT_FILE_NAMES_FOR} = ['admin'];
${pg}{modules} = [
[qw(DynaLoader)],
[qw(Exporter)],
[qw(Data::Dumper)],
[qw(GD)],
[qw(AlgParser AlgParserWithImplicitExpand Expr ExprWithImplicitExpand utf8)],
[qw(AnswerHash AnswerEvaluator)],
[qw(WWPlot)], # required by Circle (and others)
[qw(Circle)],
[qw(Complex)],
[qw(Complex1)],
[qw(Distributions)],
[qw(Fraction)],
[qw(Fun)],
[qw(Hermite)],
[qw(Inequalities::common)],
[qw(Label)],
[qw(LimitedPolynomial)],
[qw(ChoiceList)],
[qw(Match)],
[qw(MatrixReal1)], # required by Matrix
[qw(Matrix)],
[qw(Multiple)],
[qw(PGrandom)],
[qw(Regression)],
[qw(Statistics::RserveClient)],
[qw(Statistics::RserveClient::Connection)],
[qw(Statistics::RserveClient::Exception)],
[qw(Statistics::RserveClient::Funclib)],
[qw(Statistics::RserveClient::Parser)],
[qw(Statistics::RserveClient::ParserException)],
[qw(Statistics::RserveClient::REXP)],
[qw(Statistics::RserveClient::REXP::Double)],
[qw(Statistics::RserveClient::REXP::Expression)],
[qw(Statistics::RserveClient::REXP::Factor)],
[qw(Statistics::RserveClient::REXP::GenericVector)],
[qw(Statistics::RserveClient::REXP::Integer)],
[qw(Statistics::RserveClient::REXP::Language)],
[qw(Statistics::RserveClient::REXP::List)],
[qw(Statistics::RserveClient::REXP::Logical)],
[qw(Statistics::RserveClient::REXP::Null)],
[qw(Statistics::RserveClient::REXP::Raw)],
[qw(Statistics::RserveClient::REXP::String)],
[qw(Statistics::RserveClient::REXP::Symbol)],
[qw(Statistics::RserveClient::REXP::Unknown)],
[qw(Statistics::RserveClient::REXP::Vector)],
[qw(Select)],
[qw(Units)],
[qw(VectorField)],
[qw(Parser Value)],
[qw(Parser::Legacy)],
[qw(Applet FlashApplet JavaApplet CanvasApplet)],
[qw(PGcore PGalias PGresource PGloadfiles PGanswergroup PGresponsegroup Tie::IxHash)],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment