Sharing Videos With Dropbox

Recently I had the need to share a video with someone who wasn’t on Facebook. Normally this wouldn’t be a problem and I would just use WhatsApp to send them the video. However because the video had been edited it was on my computer and getting it to my phone would take precious time.

The simple alternative is…

It’s easy to create an account and a great way to store and share things. To share the video I simply created a new folder by logging into my account and navigating to the following button (highlighted in yellow): 


Then I named the folder something appropriate and navigated inside it by double clicking it in the folder view you should be presented with after logging in. Dropbox supports the dragging and dropping of files so I simply dragged the file from my desktop and dropped it into the empty folder on Dropbox. Then to share you simply need to right click the file in the Dropbox folder and select share link, shown below..


Then copy and paste the link given and give to anyone you dare to share the video with! Hope you enjoyed.


Pythagoras’ Theorem In APL

Below is Pythagoras’ theorem interpreted into APL. To the left of the function simply enter a 2 element numeric vector for example 3 4 and to the right enter a scalar for example 10.

Pythagoras Theorum APL

A result of 1 means the triangle is right angled, a result of zero means it is not a right angled triangle.

The left vector represents the two shortest legs of the triangle and the right scalar represents the hypotenuse. Below are a couple of examples:

Pythag proof APL

Give it a try…

How To Fix Moodle’s Re-Direct and Access Issues

Recently I have been experimenting with Moodle and I have to say I have been impressed. However the installation was less than straight forward for me. The actual installer was very simple to follow however the bugs that proceeded were a nightmare.

The first error I came across was one which prevented me from going anywhere but my personal profile page. This is the re-direct bug. A picture of the screen displayed in chrome can be found below:


This error is fairly straight forward to fix however it did take some research. Anyway to amend this and access Moodle simply navigate to:


And open in a program such as notepad++. Then find this line (line 795 for me) in the text:

redirect($CFG->wwwroot, get_string(‘wwwrootmismatch’, ‘error’, $CFG->wwwroot), 3);

And replace it with this one:

redirect($CFG->wwwroot, get_string(‘wwwrootmismatch’, ‘error’, $CFG->wwwroot), 0);

This should fix the issue and you should now have a fully accessible site. SHOULD. But I didn’t… When trying to access the site from another computer (which was also inside the network) I got this error:


This error also required some hunting to find a solution but eventually a definitive one was found… Delete the moodledata folder. Please make backups and I am not liable for any damages or loss of data on your systems. This solved the problems for me.

There was one last issue that I run into however it was purely because of how I was hosting the site and how people were accessing this but just in case I will explain: after all of these solutions had been applied some people were just receiving a blank screen when punching in the IP of the hosting machine.

The solution to this is to navigate to:


Then open with a program such as Notepad++. Then locate the following line (line 20 for me):

$CFG->wwwroot   = ‘http://localhost’;

And change it for this line where ‘*.*.*.*’ is replaced with the IP of your hosting machine:

$CFG->wwwroot   = ‘http://*.*.*.*’;

I hope this resolves issues for some of you using Moodle, once it’s working it is incredibly powerful and well made however getting to that stage was a bit of a mission for me.

The Final Day

Sorry for the belated post I was resting my brain. The final day was a learning experience however more to do with implementing the knowledge we had already learnt.

What a journey this course has been. A very challenging experience however I have obtained an incredible amount of understanding in the past 5 days. Our teacher was very knowledgeable and understanding and provided an education that can not be faulted.

Our last day consisted of the following topics:

  • Nested matrix’s and arrays and the bizarre results you sometimes obtain from them.
  • Enclosing and disclosing variables
  • Mixing and splitting variables
  • The lamination symbol and how to use it
  • Using the display function effectively
  • Checking the depth of variables

The course has been intense both in pace and content and in turn we have quickly developed a basic understanding of APL. However we have only scratched the surface in terms of using it and it’s potential. I look forward to learning more and more about this language and how it can be used.