Category Archives: Configuration

Solr – configure stemming

Useful link:



We assume xampp is at e:\xampp.

  1. Download Xdebug for your version of PHP from the official site.
  2. Copy the dll downloaded to: e:\xampp\php\ext
  3. Edit php.ini and disable output buffering.
  4. Add the code at the end of the page to php.ini (at xampp directory)
  5. Restart apache

Continue reading Install XDEBUG to XAMPP

Syntax highlighing in Moodle

The main idea is that we need syntax highlighting to quiz questions.

Here are the requirements:

  1. a plugin that is updated frequently, preferable by more than 1 person.
  2. support for syntax highlighting to as many languages as possible, not only in editing mode within the editor but in the view mode of questions, pages etc.
  3. it has to be free.
  4. it is better that it is accessible from the buttons of the editor so that it is easily accessible from students who want to create quiz content.
  5. it should support moodle 3.3+

Continue reading Syntax highlighing in Moodle


Question creator role in moodle

The role of Question creator may be used to enable students to create questions for use in quizzes.

Warning: Capabilities with XSS risks associated to them are allowed for the role of question creator. Thus, this role should be assigned with care.

Role set-up

Continue reading Question creator role in moodle


Where is my hosts file?

The hosts file contains static entries for domain name resolution.

Here is a handy table:

OS Path
Windows Windows\System32\Drivers\etc\hosts
Linux /etc/hosts
Mac OS Β /etc/hosts

Session lost after each servlet request

If you access the web application via http://localhost then cookies might not be accepted. Thus session could be lost. This happens with netbeans and tomcat after a single logout has been executed.

Continue reading Session lost after each servlet request


Disable firefox push notifications

Type about:config and change the following to false:

  • dom.push.enabled
  • dom.webnotifications.enabled