Making web services with OAuth: Just what we need

Reading PHP Architect's November 2008 issue (and in particular the Google Gadgets article by Timothy Boronczyk), I remembered reading a name yesterday (on the Elgg.org features list) that I have seen very often and which I never  got to the bottom of: OAuth. Well, today I decided that this ignorance was enough and that it was time to get there and see what it is... and it just happens to be exactly what we need in Dokeos to secure our web services!

Dokeos 1.8.5 Quick Reference Sheets - Take 2

Here are some more of my reference sheets (one on plugins/tools development and one on security). dokeos-185-tools-and-plugins-quickref dokeos-185-security-quickref I think with that I cover all basic questions a new developer might have, except the system to install/upgrade a Dokeos install (changing SQL queries) and the way to actually query the database using the Database class.

SCORM 1.2 and the interaction index in Dokeos

Extending a little bit on my latest post about howto test SCORM interactions in Dokeos, I'd like to add an important piece of information about our implementation of the SCORM 1.2 standard (and specifically the interactions). Although the SCORM 1.2 Runtime Environment documentation is not very clear about this, there are two "hints" that interactions IDs must start at 0, and not at 1. First, the description of the SetValue() method on cmi.interactions.n.id says:
De

mbstring vs iconv benchmarking

Following up on my previous post about the differences between the mbstring and iconv international characters libraries (which resulted in a tentative conclusion that nobody knew anything about those differences), and particularly the comments by Nicola, we have combined forces (mostly efforts from Nicola, actually) to provide you with a little benchmarking, if that can help you decide. Nicola wrote the following script (which he gladly releases as public domain license) to test th

Testing interactions in Dokeos SCORM tool

Because one of the most complicated tools in Dokeos is the SCORM tool (found in dokeos/main/newscorm/ ), and because I am currently checking the inner-workings of the interactions inside this tool (Dokeos version 1.8.5), I thought it would be good to write down, once and for all, how I actually check whether the tool is right or wrong, and whether the content is actually the culprit or not.

Getting the right tools

The elementary tools for these tests are Firefox (I recommend version 3 for its better handling of JavaScript debuggi

Make a patch of the complete files modified by commits

I don't know how to call this post. I have a problem with patch (I'm too bad to get it t work properly) so I want to export a list of the files I have modified between two subversion commits. This is how I do it for now (I'm sure it's extremely perfectible).
svn co http://mysvnproject/trunk/project@1
This gets me the first version
svn update > diff-files.txt
This updates my copy to the latest version, but most importantly, it generates a list of files that have been updated or added.

Dokeos 1.8.5 Quick Reference Sheet

It's been ages since I first thought I should publish a quick reference sheet for Dokeos developers. It's now done. It's a first version but I think it will be really useful to new Dokeos developers. It is already useful for me (particularly for $httpHeadXtra and $htmlHeadXtra), so I don't doubt that bit. Dokeos 1.8.5 Quick Reference Sheet It is published under the Creative Commons BY-SA license (Paternity, Share-Alike) and I have the SVG format locally, so just ask me for it if you want to extend it.