Skip to content

Commit 7037c8d

Browse files
authored
Merge branch 'main' into dependabot/bundler/html-proofer-5.2.1
2 parents 765295e + dc8573f commit 7037c8d

File tree

6 files changed

+48
-16
lines changed

6 files changed

+48
-16
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ GEM
243243
gemoji (>= 3, < 5)
244244
html-pipeline (~> 2.2)
245245
jekyll (>= 3.0, < 5.0)
246-
json (2.18.1)
246+
json (2.19.3)
247247
kramdown (2.4.0)
248248
rexml
249249
kramdown-parser-gfm (1.1.0)

_docs/instructor/assignment_preparation/personalized_exams.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ redirect_from:
77

88

99
We provide scripts to prepare personalized exams for each student,
10-
facilitating randomized assigned seating, QR codes, and notes/crib sheets:
10+
facilitating randomized seating assignments, QR codes, and notes/crib sheets:
1111

1212

1313
* (Optional) Collect student left or right handedness.
@@ -32,7 +32,7 @@ facilitating randomized assigned seating, QR codes, and notes/crib sheets:
3232
```
3333
3434
35-
* Prepare a "blank" test as a .pdf file. Be sure to empty space on
35+
* Prepare a "blank" test as a .pdf file. Be sure to leave empty space on
3636
the first page to allow placment of the large box with student
3737
information and the QR code.
3838
@@ -46,12 +46,12 @@ facilitating randomized assigned seating, QR codes, and notes/crib sheets:
4646
instructions to prepare personalized exams.
4747
4848
Note that in addition to the QR code on the first page, the
49-
student's name and email address is placed in the upper right corner
49+
student's name and email address are placed in the upper right corner
5050
of all following pages.
5151
5252
![](/images/instructor/personalized_exam/personalized_page_1.png){:width="380px"}
5353
![](/images/instructor/personalized_exam/personalized_page_2.png){:width="380px"}
5454
5555
5656
* _TODO: Write instructions for printing a large set of personalized exams
57-
with our specific copier._
57+
with our specific copier._

_docs/student/student_errors.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ title: Debugging Submitty Output
88

99
Your code is not tested locally first, Submitty should be used as the
1010
final submission server, not as a debugger. Before submitting anything
11-
make sure that you are able to run your code locally without error.
11+
make sure that you are able to run your code locally without errors.
1212
In addition the instructor may decide to use hidden tests which still
1313
reveal the grade. Often these tests check corner cases and exactly what those
1414
could vary by your program but common cases to consider are positive,
15-
negative, zero, and floating point values and how your code performs give
15+
negative, zero, and floating point values and how your code performs given
1616
unexpected but valid input.
1717

1818
Often times there may be a missing punctuation or small typo in the output
@@ -45,21 +45,21 @@ perform operations slower than hashmaps or trees-like structures. If your code
4545
gets a kill signal and you are using specific data structures be sure you are
4646
using them correctly
4747

48-
If you are using python, ineffeicant use of dictionaries, and sets can cause this error to occur.
48+
If you are using python, inefficient use of dictionaries, and sets can cause this error to occur.
4949

5050
![](/images/killSignal.png)
5151

5252
### Segmentation Fault
5353

5454
For anyone who has ever programmed in a language with explicit memory management such as C/C++
55-
you are probably familiar with the infamous and seemingly unhelpful error know as Segmentation Fault.
55+
you are probably familiar with the infamous and seemingly unhelpful error known as Segmentation Fault.
5656
In short however a SegFault is the result of a memory access violation.
5757

5858
This can occur for a number of reasons, first case we will look at is going out of bounds.
5959
If while iterating over a list your index is out of the range of the list this can
6060
result in a memory SegFault.
6161

62-
Another possibly is when using pointers, if a pointer on the stack is initialzied to NULL
62+
Another possibility is when using pointers, if a pointer on the stack is initialzied to NULL
6363
or never initialized in the first place but you try to dereference it this is the same thing
6464
as a NUllPointerException in Java and is a very common issue when dealing with pointers
6565
which are commonly found when dealing with Tree structures and and linked lists.
@@ -70,6 +70,6 @@ but since submitty is a teaching tool lets assume the problems given are
7070
not so large that you run out of memory trying to solve it. A common example
7171
of this is infinite recursion. Make sure the base case is eventually called.
7272

73-
There are other reasosn for SegFaults but these are very common examples.
73+
There are other reasons for SegFaults but these are very common examples.
7474
However what ever the reason DrMemory/Valgrind and gdb are excellent tools to
7575
help with more advanced errors if print debugging isn't cutting it.

_docs/student/testing_networks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: Testing Networked Applications Locally
99
We are currently hosting the docker images that will be used for grading on the
1010
[Docker Hub](https://hub.docker.com/u/submitty/).
1111

12-
You can can "pull" the most recent submitty images using the commands:
12+
You can "pull" the most recent submitty images using the commands:
1313
```
1414
docker pull submitty/python:2.7
1515
docker pull submitty/python:3.6
@@ -34,7 +34,7 @@ docker create -i -t -v SOURCE_CODE_DIRECTORY:SOURCE_CODE_DIRECTORY -w SOURCE_COD
3434
``-i`` boots the container in interactive mode, allowing submitty to pipe standard
3535
input to the containers.
3636

37-
``-t`` Allocates a pseudo-TTY so that you can interact with your container.
37+
``-t`` allocates a pseudo-TTY so that you can interact with your container.
3838

3939
``-v`` mounts a directory on the host machine so that output persists after the
4040
docker exits. ``SOURCE_CODE_DIRECTORY:SOURCE_CODE_DIRECTORY`` specifies first
@@ -61,7 +61,7 @@ Once you have created a few containers, you can create a network with this comma
6161
```
6262
docker network create --driver bridge NETWORK_NAME
6363
```
64-
Where you can specify your own network_name.
64+
You can specify your own network_name.
6565

6666
Then, you can connect your containers to the network as follows:
6767
```

_docs/sysadmin/configuration/course_creation.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,27 @@ you can follow these [instructions](ansible_course_creation) to create a course
154154
For more information: [Database Overview](/sysadmin/troubleshooting/database_overview)
155155
156156
157-
3. Add existing instructor(s) to the course database:
157+
3. Add existing instructor(s) to the course database, and optionally add other
158+
types of users using the `adduser_course.py` helper script.
159+
To add an existing instructor:
158160
159161
```
160-
sudo /usr/local/submitty/sbin/adduser_course.py <USERNAME> <SEMESTER> <COURSE> null
162+
sudo /usr/local/submitty/sbin/adduser_course.py <INSTRUCTOR_USERNAME> <SEMESTER> <COURSE> --user_group 1
161163
```
164+
The general command format is:
165+
166+
```
167+
sudo /usr/local/submitty/sbin/adduser_course.py <USER_ID> <SEMESTER> <COURSE> [REGISTRATION_SECTION] [--user_group GROUP]
168+
```
169+
170+
- `REGISTRATION_SECTION` is optional and must be numeric.
171+
172+
- `--user_group` defines the user's role in the course and defaults to `1` (Instructor) if omitted.
173+
174+
- `1` – Instructor
175+
- `2` – Full Access Grader
176+
- `3` – Limited Access Grader
177+
- `4` – Student
162178
163179
164180
4. Create registration section(s):

_docs/sysadmin/installation/system_customization.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,23 @@ You can customize the login screen with markdown. By default, `# Login` is rende
372372

373373
Refer to [this](/student/communication/markdown) to learn more about markdown.
374374

375+
## Preserving system customization files on system re-installation
375376

377+
To prevent your system customization files (e.g., your institute logo on the login screen logo or your custom oage footer) from being overwritten or deleted from a system re-install, add these files to the follow JSON file:
378+
379+
The JSON file will be generated at `CONFIG_DIR/preserve_file_list.json` which is most likely `/usr/local/submitty/config/preserve_files_list.json`
380+
381+
the format will be as follows:
382+
383+
```
384+
[
385+
"/path/to/file",
386+
"/more/files/,
387+
...
388+
]
389+
```
390+
391+
These files will be preserved when INSTALL_SUBMITTY.sh is run on the system.
376392

377393
## Changing the multi-processing module of Apache2, Enabling HTTP2
378394

0 commit comments

Comments
 (0)