moodle | Online Assignment submission Project | Math library
kandi X-RAY | moodle Summary
kandi X-RAY | moodle Summary
basic Online Assignment submission Project, which uses procedural oriented PHP and MySQL, also uses HTML, CSS and JAVASCRIPT.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of moodle
moodle Key Features
moodle Examples and Code Snippets
Community Discussions
Trending Discussions on moodle
QUESTION
I have tried to use sandbox payment using moodle and payment is successful and shown in payhere dashboard. but in moodle, the student is not enrolling and again show a payment option.
but from payhere side, the call for notify is not receiving to proceed with enrollment but after send details with postman it work perfectly.
...ANSWER
Answered 2021-May-30 at 09:18This can be happened because of Cloudflare. If you are using Cloudflare, check the firewall logs.
QUESTION
I have tried to do some research but all the answers dont quite address my simple problem.
In my Moodle Course database I do a SQL Query to see what student completed a class within a 24 hour period. This works well, except if a student completes TWO courses in a 24 hour period it only lists the first course course they took.
Is there a way I can have the report show ALL the courses a student took in a given period of time?
ANSWER
Answered 2021-May-25 at 15:39Try to remove your GROUP BY u.username. I don't understand well how it behaves with moodle, but there is no room for it in a SQL query like yours.
QUESTION
I am on Moodle 3.10 on IIS. I am trying to hide the message that popups: "Your site is not yet registered".
I once edited a php and commented it out, but since a recent upgrade I lost it and it is back. I don't remember which file or area I updated to hide this.
...ANSWER
Answered 2021-May-19 at 08:33Go to the file moodle/admin/search.php
Then find and comment the line echo $adminrenderer->warn_if_not_registered();
, the line number should be 56.
The end result should look like this.
QUESTION
I have used the R/exams exercise from http://www.R-exams.org/templates/automaton/, more specifically the automaton.Rmd version of the exercise with the aim of importing the exercise from a Moodle platform via exams2moodle()
.
Having used three different Moodle platforms, the result was always similar to the one shown in the following image:
Whereas, the results when using exams2pdf()
, are optimal, as seen below:
Where can the fault be?
...ANSWER
Answered 2021-May-19 at 23:46When compiling the exercise to PDF, the TikZ code is rendered by pdfLaTeX, just like the rest of the exercise text. This part works for you.
However, when compiling the exercise to XML for Moodle, the TikZ code is first rendered to PDF by pdfLaTeX (like above) and subsequently converted to PNG using the R package magick
. Then the Markdown text is converted to HTML and the PNG graphic embedded in the HTML. Apparently all but one of these steps work for you. The conversion of the PDF graphic to PNG fails because you don't have magick
installed.
In case you have problems with the installation of magick
, see the introductory vignette for more details.
QUESTION
I am migrating a Moodle site to MySQL8 and have had no problems with the core system. However, some of our reports depend on two custom stored procedures, one of which is as follows:
...ANSWER
Answered 2021-May-17 at 15:20ROW_NUMBER
is a reserved keyword in MySQL 8.0. See https://dev.mysql.com/doc/refman/8.0/en/keywords.html
If you need to use this as an identifier, enclose it in back-ticks each time you use it.
QUESTION
Frequently, when generating questions based on parameters, some generated questions have to be eliminated because, within such a questions, it sometimes happens that some items are the same.
My code is the following.
The question:
...ANSWER
Answered 2021-May-18 at 03:11In general it is hard to catch such problems outside of the Rmd exercise files. Instead it would be better to write the R code in the exercise in such a way that it assures that the question list only contains unique items - and if that is not the case to keep on re-sampling the parameters until there is a version that works.
Part of the problem to catch the problem in general is also that it might depend on the random number generator and its seed because the problem might just occur very rarely.
In your special case, this is a bit different because you make a full grid of all possible combinations so that each exercise file does not have any random elements anymore. Here the best solution is to run an exams2xyz()
interface (or the underlying xexams()
function) once, inspect the output, eliminate the problematic exercise, and then run the desired exams2xyz()
interface again.
Relying on your myquestions
vector with four static variants of the dynamic question01.Rmd
exercise template you could do:
QUESTION
I have defined the variables and data necessary to generate a frequency table in RMarkdown, to export it to Moodle, using R-exams:
...ANSWER
Answered 2021-Apr-28 at 12:07Problem: You have an exercise with formatting in Markdown and use xtable()
to insert a table in LaTeX. This mixture of Markdown+LaTeX is no problem when converting the exercise to PDF. Internally, this preserves the LaTeX table and just converts the Markdown parts to LaTeX as well before rendering the LaTeX to PDF. However, the same is not possible automatically when converting the Markdown exercise to HTML for Moodle. The converter then does not separate the LaTeX part automatically to convert it to HTML.
In short: The different markups must be sufficiently in sync. Markdown+LaTeX markup for PDF output works and Markdown+HTML for HTML output works. But what would be even better is to have the markup fully in sync, i.e., LaTeX+LaTeX or Markdown+Markdown. Such exercises can then be rendered to either PDF or HTML automatically.
Possible solutions:
Markdown+Markdown: Markdown table markup in R/Markdown (Rmd) exercise
I would recommend that you simply produce tables in Markdown viaknitr::kable()
rather thanxtable::xtable()
. Thus, the code chunk for the table simply becomes
QUESTION
I created quizzes in r/exams that contain "num" and "string" Answer fields which I am using in Moodle. I would like to give negative points (e.g. -0.25% of the possible points for that answer) for incorrect answers. In theory there are functions in r/exams that allow this (exams_eval), but for me they only work in choice questions, not in numeric questions.
I also tried different "rule" settings and variations of the r/exams command but did not got it working. Are negative points not possible for numeric exams?
R/exams Command:
...ANSWER
Answered 2021-Apr-21 at 23:45This is a good question. Indeed exams2moodle()
should be improved to throw a warning in case of such an eval
specification. (Incidentally we just discussed this among the authors earlier this week.)
To the best of my knowledge it is not possible to assign negative points to num
or string
elements within cloze
exercises. If you look at the official documentation at https://docs.moodle.org/310/en/Embedded_Answers_(Cloze)_question_type#Syntax_for_numerical_Cloze_questions you see that it is discussed how to provide a feedback text in case of a wrong answer. But this is always associated with 0%. If you just enter something like -25% in the corresponding embedded answer, this can be imported into Moodle but is actually ignored.
The only parameter that might be useful is the penalty
argument - but I'm not sure how this works in Moodle. It is easy to specify in exams2moodle()
and in the Moodle XML code but I couldn't find examples for the effects this has in a Moodle quiz.
QUESTION
I'm new in swift and I'm struggling trying to understand how to use DispatchQueue
to make a network request. Here's what a have so far:
Network Request with a function request
:
ANSWER
Answered 2021-Apr-17 at 00:43As mentioned in the comments, you are returning coursesList
before the asynchronous code can complete. The method executes practically instantaneously, and doesn't wait around for the async block to complete. So instead of returning the courses from the function, you can provide a completion
block and pass back the response from there.
Here is a rough implementation. It may not compile so you may need to make some tweaks, especially with the error handling. I've also gone ahead and incorporated the very handy Result
type, which consolidates the success and failure cases into one value. You can read more about this here, for example.
QUESTION
ANSWER
Answered 2021-Mar-23 at 10:07I solved the issue by editing the following file: ./htdocs/lib/dml/mysqli_native_moodle_database.php I changed this line :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install moodle
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page