Microsoft Azure Database for MySQL: Use PHP (not) to Connect and Query Data

Back on the road of blogging again. So our client who is a big European organization has Microsoft Azure Cloud services and having consultant company for support. Since we would like to run Moodle we need PHP + MySQL.  We got an Ubuntu app server. Funny isn’t is to run Linux machines in the Microsoft […]

Changing State of an Object on a Different Layer Using Articulate Storyline

So I have the following scenario: I have a layer with a button to show another layer (showing an example).  The new layer does not cover all part of the screen and the button is visible and that might be confusing for the users. So I want to hide the button and when the user closes […]

Moodle – .vtt Captions do not Work with Internet Explorer

Another thing that works in every other browser but does not work in Internet Explorer. So my solution is to set the MIME type for the .vtt files. This can be done under the Site administration / Server / File types (Moodle >= 2.9). Click on “Add a new file type” button. Set Extension to […]

Moodle plugin: Aardvark theme – Anchor Offset to Adjust for Fixed Header

I have using Aardvark theme for many years (thanks Shaun). With my latest Aardvark theme deployment I had a problem that the fixed header was relative big (160 pixel) and when using hash tag links in the courses the content of the anchors was covered by the header. I needed to offset the anchors for […]

MAC OS X – Renaming Multiply Filenames to Lowercase in a Directory

You will need the Terminal for this operation. Open Terminal and navigate to the directory using the cd command where you want to change the case of the files. Then run the following command: for FILE in `ls -A1 *`; do FILENAME=`echo ${FILE} | sed ‘s/ /\\ /g’`; echo mv ${FILENAME} `echo ${FILENAME} | tr […]