JavaScript preg_match

In the context of a nasty (wrong) SCORM package, I had to find a method of quickly parsing a time representation like "PT03H23M34S" and transform it into "03:23:34". After a few quick searches on how to do user string.replace(), I had to change the method, because apparently replace() doesn't allow for selection identifiers (2 and the likes) in the replacement string, or at least I didn't find how to do it. So I ended up with this:
if (/[A-Z]{2}d{2}Hd{2}Md{2}S/i.test(param)) { param = param.split(/D+/).join(' ').trim().split(/S/).join(':');}
It *is* kind of a one-liner.

Add some live stream to your LMS with Livestream and Chamilo

We've had a lot of teachers ask us for streaming capabilities and, over time, we've grown tired of setting up videoconference servers for a few bucks a month because teachers just can't afford the budget. While there are many tools around to do video streaming or classroom conferences, most of the operations to set them up seem to be a pain in the neck for most people desperately wanting to benefit from these features, and while Chamilo is preparing its first tests with BigBlueButton as a free, open-source videoconference classroom environment, this might still take a while to come out so I t

Adding events management to Drupal 6

Being a repetitive task for me, it's probably a good idea for me to write this down. Installing events and events subscription management to Drupal 6 is as easy as installing a few modules and doing a quick setup.
  1. download and install the event module
  2. download and install the signup module
  3. enable the event module and all its sub-modules (don't check datepicker if you want to go fast, as it will require additional CSS and JS to work)
  4. enable the signup module (requi