Moodle Tips!
Moodle vr 1.9 Maintenance Mode PDF Print E-mail
Written by Ken Task   
Thursday, 26 January 2012 15:36
AddThis Social Bookmark Button

Most of this from Moodle Docs with my own additions:
http://docs.moodle.org/19/en/Maintenance_mode

Might be a step needed IF one is migrating a site to a version 2 in place (something I wouldn't really recommend just yet).

Create a file called maintenance.html in /moodledata/1/
As long as that file resides there and is available users will be able to login, but their first click on any course presents them with a "Site is undergoing Maintenance." with whatever you've put into the html file you created.  Users cannot get into courses.

Administrators can login but they too will see a "Maintenance" link in the bread crumb bar.

After the upgrade/update/maintenance is completed (and tested), make the site available again by hiding the html file.
As root user in moodledata/1/ folder
mv maintenance.html .maintenance.html
This hides the html file from Apache but it's still there for Administrator to use next time.

Users should be able to login in now and go about their business.

With open source software it is not unusual to have to do such things often so rather than have to re-create the page, use this script after creating the page the first time:

nano maintmode
cp .maintenance.html maintenance.html

That copies the hidden 'dot'maintenance.html file to a visible maintenance.html file.

After upgrading BE SURE TO ERASE THE maintenance.html file in the 1 folder of the Moodle.

cd moodledata/1/
rm maintenance.html

If one is really good at scripting, the script could be improved with an 'on' or 'off' parameter passed to the script which would then make the html file visible or hidden.

There is a similar process for Moodle 2 and for command line server admins, might be worth checking out.

http://docs.moodle.org/20/en/Maintenance_mode

 

 
Have Recent Problem with Gradebook Display? PDF Print E-mail
Written by Ken Task   
Tuesday, 24 January 2012 12:10
AddThis Social Bookmark Button

Recent upgrades to php for taking care of the denial of service exploit have now included a PHP directive for max_input_vars.
Without setting in php.ini, it defaults to 1000 which won't render the gradebook as before.

Uhhh, do hope php has been upgraded or your site could suffer a denial of service fate! :(

This could result in an issue with Moodle gradebook where there are more than x users to display in the grade book.
See:
http://moodle.org/mod/forum/discuss.php?d=184102#p846640

To find out if that's the issue, do as a poster suggest and search the error logs:

On a CentOS box as root user:
fgrep max_input_vars /var/log/httpd/error_log

If you have the issue something like this will be found:

[Mon Jan 23 16:25:18 2012] [error] [client x.x.x.x] PHP Warning:  Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0, referer: http://site/moodle/grade/report/grader/index.php?plugin=grader&id=99&sesskey=PqQGn8IIuL&edit=1

The fix:  edit /etc/php.ini and include the setting:

; added 2012-01 gradebook issue
max_input_vars = [something above 1000]

the ; line above is a comment - good idea to add comments of your own when changing ini for php.

Must restart apache: /sbin/service httpd restart

Check your php info in Moodle and you should see the new settings for the variable.

or while you are at the command line already:

php -i |grep max_input_vars

should show:
max_input_vars => 5000 => 5000

 

Last Updated on Tuesday, 24 January 2012 16:02
 
Free GeoReader Android App and Web Site PDF Print E-mail
Written by Ken Task   
Wednesday, 04 January 2012 20:44
AddThis Social Bookmark Button

GeoReader - Talking Point
Historical landmarks, local trivia, hiking routes, stories, scavenger hunts and more ...imagine the possibilities! Have your talking points read to others as they pass by.

http://www.mygeoreader.com/

Search for TCEA using GeoReader

Example curricular application:  since I taught Social Studies ... bet every town in Texas has some historial landmarks either in the city/town limits or near by.  Now wouldn't be interesting to use TCEA Social Studies Collaborative and ask those that desired to do so, share their local history and interesting points via GeoReader and Moodle.  http://moodle.tcea.org/sscolab/

Web site says iphone app coming soon.

See the videos at the web site.

 
Moodle 2 Moving Forward … PDF Print E-mail
Written by Ken Task   
Thursday, 05 January 2012 18:04
AddThis Social Bookmark Button

Y'all might remember a thing mentioned called LTI (Learning Tool Integration).
http://moodle.tcea.org/index.php/news-topmenu-40/130-lti-learning-tool-integration

Original Source:
http://www.imsglobal.org/toolsinteroperability2.cfm

Some BIG players: Blackboard, Educational Testing Service, EDUCAUSE, Flordia Virtual School, Follett, Microsoft, Moodle, MoodleRooms, McGraw Hill Education, and Pearson Education.


Affiliates listed ONE Texas ISD: Round Rock Independent School District.

Hmmmm … missing in action: Epsilen (but they are a closed system … cept for New York Times content).

Well, in M2.2+ there is now an LTI tool (consumer) and just today an add-on for M2.2 called LTI Provider.
http://docs.moodle.org/22/en/LTI_Provider

Have it installed in two instances of M2.2 for the Moodle Academy 2012 and in a Sandbox.

It takes some tinker time, but it does work.

Attending the Moodle Academy at the TCEA Conference?

Check it out: http://moodle.tcea.org/moodleacademy2012/ and a Sandbox http://moodle.tcea.org/sandbox2/

Shameless Moodle Academy 2012 ad: Moodle 2 the Good, the bad, and the Ugly!  (GBU!)

Last Updated on Thursday, 05 January 2012 18:10
 
Math Calculators for Moodle PDF Print E-mail
Written by Ken Task   
Sunday, 11 December 2011 18:04
AddThis Social Bookmark Button
In the true tradition of Web 2.0 (the embedded web), a resource for math tools for your web sites (or Moodle).

Copy HTML code of the tool (below) and paste it into your Moodle:
Derivative calculator, Integral calculator, Definite integrator, Limit calculator, Fractions calculator
Equation solver, Expression simplifier
Factoring calculator, Inverse function, Expression calculator, Matrix calculator, Matrix arithmetic, Prime numbers, Number factorizer, Fibonacci numbers, Bernoulli numbers, Euler numbers, Factorial calculator, Combinatorial calculator, Statistics calculator and a Graphing Calculator

When clicking the buttons contained in the tools, one is take to their web site in a new window and there is a 'return link' to take users back to original site.
If one were to use as an Assignment in Moodle, there is a button to click for the direct link to the page constructed by students.
Has a 'help' link for in-correctly entered values.

See a Derivative Calculator in action in a Moodle 2:
http://moodle.tcea.org/kensmoodle2/mod/page/view.php?id=328
(Sandbox course requires no login/account be created)

Since all the tools are embedded, this will also work in version 1.9.x of Moodle as well.
 
OwnCloud as Repo in Moodle 2 PDF Print E-mail
Written by Ken Task   
Sunday, 11 December 2011 15:48
AddThis Social Bookmark Button
Got a Sandbox course in an upgraded 2.2 Moodle using OwnCloud repo:
http://moodle.tcea.org/kensmoodle2/course/view.php?id=14

http://owncloud.org

OwnCloud setup as a WebDAV in Moodle even though it's a standalone service on another server.  Could mean mega admin if NOT using some common authentication method - LDAP.  Think there is a plugin now for OwnCloud that will do MS Active Directory LDAP … if using a MacOSX server (InfoDirectory) or eDirectory of Novell, then more 'investigation' required.  Same is true of mount points, me thinks.

In Moodle setup of a WebDAV repo:
Name: Whatever you want to call it
WebDAV type: http
WebDAV server: just the FQDN of the host.  Example: sos.tcea.org
WebDAV path: /path on other server relative to web root (/owncloud/
files/webdav.php
Autentication: WebDAV basic
no port
If one doesn't use server user and password, no prompt for login?
(this could possibly be fixed).

So the repo one is setting up has already been created in OwnCloud.
And in the Moodle config of it, if one already gives a login and
password to access, what can others do in the OwnCloud collection to
which you've pointed?

Have a link to a video in OwnCloud (WebDAV) as a URL resource … the
video has to be shared in OwnCloud and the share link has to be used.
Moodle has no interface to the administration of a WebDAV space - just
like Google Docs.

So once I have it linked (popup in new window) then users can see the
URL:
http://sos.tcea.org/owncloud/apps/files_sharing/get.php?token=94d400b...

One will get some practice at duplicating a resource tinkering with
which method is 'better'! ;)

Other methods chosen to view may have some issues or un-desired
'experience' or ability for end user … embedded, auto?

It's somewhat like GoogleDocs Repo … think Teachers would desire to
use the one that would show the UPDATED doc/resource should there be
updates made.  Different student who is turning in an assignment,
isn't it?  Don't want the student to be able to turn a doc in and then
go back to Google or OwnCloud repo to change/update the doc, do we?
Hmmmm, some intelligent and enterprising youngsters could setup a
'business' (docs4class.org), could they not?

That's the kinda of exploration one needs to put Moodle 2 through ...
afraid one has to think Yin/Yang from the viewpoint of Teachers and
Students (while, at the same time, Moodle Server Admin - who has less
control than in 1.9.x to fix issues - fewer back-door methods available).

 
Upload PowerPoint Syndrome Solution PDF Print E-mail
Written by Ken Task   
Thursday, 20 October 2011 08:02
AddThis Social Bookmark Button
As one who works with ISD's and online learning via Moodle, observed teachers basically transferring their old file sharing methods to online file sharing by uploading their files - PowerPoints, Word, Excel.
If one considers the end point (student owned technology) and the 'client' accessing/using the content (students) simply uploading Word docs, PowerPoints, and other file types may not address technology to which students have access when away from the ISD computers/lab/network.

So here's an online tool - FREE - to help break the 'upload syndrome': SlideGo

The following 'lifted' from their interactive slide show on their front page:

HTML with Bells & Whistles
• Make HTML snippets with animations and multimedia then embed them in web pages.
• The output is optimized for search engines and fully accessible.
• Reuse ready templates to make photo books, product catalogs...

Interactive Textbooks
• Build textbook with localized and interactive content to teach students better.
• Work collaboratively with other authors on the same project.
• Download output as a lesson object to use in learning management system like Moodle.

Quizzes & Games
• SlideGo combines Powerpoint-like interactions with quizzes, surveys, crosswords, games...
• Ideal for schools for building quick and fun assessments to reinforce learning points.
• Invite students or Facebook friends to attempt quizzes, then review or publish scores to your community.

Storybooks for iPad
• SlideGo animations utilize latest web technologies like HTML5 and CSS3. They look lively on mobile devices such as iPad or Galaxy Tab.
• They can also be compiled immediately into mobile apps using Phonegap.
• One-click publishing to market places will also be available.

Online Presentation
• SlideGo editor works like any presentation software – let’s use it to make slideshows!
• You will be able to present remotely with synchronized slides yet not losing any animation effects.
• And just like Powerpoint – there are endless other uses of SlideGo.

http://www.slidego.com/home/

Note: requires Facebook account to save your work.
 
Moodle 2 DB Test PDF Print E-mail
Written by Ken Task   
Tuesday, 18 October 2011 13:20
AddThis Social Bookmark Button
Moodle 2 has under Development a 'Functional DB test' link.
In order to get fullest use, must install xdebug for php.
Here's how:
Download: http://xdebug.org/download.php
(I downloaded the 2.1.2 source [a tar.gz for a CentOS server] and compiled but there are binaries for Windows.)

http://moodle.tcea.org/docs/xdebugreadme.txt

NOTE: extensions for php on CentOS box are in:
/usr/lib/php/modules/

To find where other such .so files might reside on your system:
find / -name mysql.so

To see if xdebug successfully installed as an extension to php, run the Server -> PHP Info and
look for xdebug section.

Also, need to add a line to your php.ini to load the xdebug extension as a zend extension in the Dynamic Extensions section of php.ini

zend_extension='/usr/lib/php/modules/xdebug.so'

Test to see if loaded properly:
php -m

at the bottom of the output of showing modules loaded one will see:

[Zend Modules]
Xdebug

Then access the version 2 Moodle as an admin level user and try out the DB test.

'spirit of sharing', Ken
Last Updated on Tuesday, 18 October 2011 14:22
 
How to Add Mac Pages, Keynote, and Numbers icons for file types in Moodle … PDF Print E-mail
Written by Ken Task   
Thursday, 15 September 2011 17:21
AddThis Social Bookmark Button
Why?  There are some ISD's who are 1:1 with Macs that use Pages and other Mac specific software in their Moodles.  May as well be 'fair'! :) 

Interestingly enough, …

"Compatibility

"As of August 2010, Pages does not support OpenDocument file format. At the same time, Pages is restricted to Mac OS X only. While there is no program that can view or edit a .pages file using Windows or Linux, some content can be retrieved because a .pages file is actually a bundle. A user can open a .pages file in an unpackaging program, or by renaming files as .zip files in Windows (XP and onwards), and will find either a .jpg or .pdf preview in its entirety for viewing and printing, though only possible if the creator of the .pages file elected to include a preview. The user will also find a .xml file with unformatted text. This process can also be used for users of the 2008 version of Pages to open documents saved in the 2009 version of Pages, which are not backwards compatible. iWork can also export documents into a number of formats; unfortunately, formatting is often lost during the export process. There is no third-party converter available at this time that can change the file type and save the formatting. However, the Google Docs Viewer can open Pages files."

https://secure.wikimedia.org/wikipedia/en/wiki/Pages

Now the how-2:

Download to /var/www/icons/ directory:
http://sos.tcea.org/apple-app-icons.zip

Download to  /moodle/pix/f/ directory:
http://sos.tcea.org/apple-app-icons.zip

and unzip the zips and changer permissions on all files: chown apache:apache *.png

In /moodle/lib/filelib.php of the Moodle, add the following:

'keynote' => array ('type'=>'application/x-iWork-keynote-sffkey', 'icon'=>'apple-keynote.png'),
'numbers' => array ('type'=>'application/x-iwork-numbers-sffnumbers', 'icon'=>'apple-numbers.png'),
'pages' => array ('type'=>'application/x-iwork-pages-sffpages', 'icon'=>'apple-pages.png'),
'webloc' => array ('type'=>'application/octet-stream', 'icon'=>'apple-keynote.png'),

You'll see a section of that file which include other such associations.
It is alphabetical so insert appropriately (dunno if that really makes a difference, assuming it might).

Restart your apache web server.

Surf to a course that has .pages, or .numbers, or .keynote, or .webloc files in them and see if icons show.

One can also make these same associations in httpd.conf (on a typically installed CentOS server /etc/httpd/conf/)
Add the following lines to the same section with similar definitions for icons:

AddIcon /icons/apple-pages.png .pages
AddIcon /icons/apple-keynote.png .keynote
AddIcon /icons/apple-numbers.png .numbers
AddIcon /icons/apple-webloc.png .webloc

If you allow directory listing and have those types of files uploaded to a raw directory listing, surf to that
directory and see if the icons show.

Or, try this URL: http://moodle.tcea.org/iconstest/
or try this: http://moodle.tcea.org/icons/
and look for the Apple specific icons.

'spirit of sharing' ... and being 'fair'!
 
Backup and Archive Script for Moodles on Linux PDF Print E-mail
Written by Ken Task   
Thursday, 21 July 2011 14:58
AddThis Social Bookmark Button

Create a directory /home/winserver.  Created by root user.  No permission changes needed root:root is ok.

The following is for CentOS servers (RHE flavored).
Replace [value] with appropriate values for your situation.


Archive script runs after backup below

Archive script

echo 'Mounting Windows Server';
mount -t cifs -o username=[username],password='[password]',rw,uid=500,gid=500 //[winserverIP]/[folder] /home/winserver;
echo 'Archiving sqls and tars - be patient!';
echo 'Archiving sqls ...';
cp /home/backup/*-$(date +%Y%m%d).sql /home/winserver;
echo 'Archiving tars ...';
cp /home/backup/*-$(date +%Y%m%d).tar /home/winserver;
echo 'Archiving completed.  Listing files.';
ls /home/winserver;
echo 'Unmounting Windows Server';
umount /home/winserver;
echo 'If no files found, unmount OK!';
ls -l /home/winserver;
echo 'Done Archiving.';


Backup Script

cd /home/backup;
tar -cvf /home/backup/moodle-$(date +%Y%m%d).tar /var/www/moodledata /var/www/html/moodle;
mysqldump -u [mysql-user] -p[password] [db] > /home/backup/[db]-$(date +%Y%m%d).sql;
echo 'Done ... listing ...';
ls -l /home/backup;

The above scripts are used on production servers.  Dis-calmer (author did spell it correctly): your mileage might vary.  Author not responsible for it's use or mis-use, etc..

NOTE: the scripts could be converted to something 'Windows'.  If anyone does, please share back!

 

Last Updated on Thursday, 21 July 2011 14:59
 
Un-documented Admin Level Utilities in Moodle 1.9.x? PDF Print E-mail
Written by Ken Task   
Saturday, 16 July 2011 09:46
AddThis Social Bookmark Button

Interesting 'finds' in a CVS updated Moodle 1.9.12+.  Un-documented?

In [YOURMOODLE]/admin/[name_of_file_below].php - which should mean only admin level users can execute AND must be logged on to execute.

innodb.php

Appears to be a script "Convert all MySQL tables from MYISAM to InnoDB".

If moving to 2.1 this step is either before (preparing to move) OR after moving to 2.1. With this, one could accomplish that BEFORE the move.  No 5 or 6 step guru-ish knowledge of phpMyAdmin required (just 'guts' to try it!  BACKUP BEFORE ATTEMPTING!).
Truth in advertising: have NOT tried it yet!

health.php

appears to show problems with Moodle - and makes recommended solutions.
Here's one:

The user account your are connecting to the database server with is set up without a password.

and another (which I've seen recently on Moodle.org):

Your PHP configuration includes an enabled setting, session.auto_start, that must be disabled in order for Moodle to work correctly. Notable symptoms arising from this misconfiguration include fatal errors and/or blank pages when trying to log in.

Dis-calmer (nope, spelled it right!) ... like programmers who make no claims and who take no responsibility for user actions/abilities, the author of this article also makes similar 'dis-calmer' - take no responsibility for using them, don't 'support' them.  If you didn't make a backup before trying, why NOT? ;)

 
«StartPrev123456NextEnd»

Page 1 of 6
 
Total Views: 1539