Moodle 2: Get number of students in a course

Posted by jason on June 15, 2011, 7:45 p.m.
Tags: moodle php programming web

I searched around and couldn't find anything about getting the # of students in a course in Moodle 2. So I wrote a function to do it. I basically just copy-pasted the needed stuff from the /user/index.php file. Yes, this function is ridiculously long, considering the simple question ...


Testing a Website Before DNS Propogates

Posted by jason on June 10, 2011, 9:45 p.m.
Tags: dns linux web

When I want to migrate a website to a new server--or even launch a new site--I like to do it well in advance and make sure everything is behaving as expected.

As an example, if I migrate jasonmaur.com to a new server that has shared hosting with Apache VirtualHosts ...