Chamilo LMS 1.9 issue embedding videos

Just in case you ever fall on that issue, please note that there is an option to enable as platform admin in Chamilo LMS 1.9 that allows for the use of iframe in the online editor area.

I leave a link to the related task in Spanish in our tracking system, in case you would need it.

https://support.chamilo.org/issues/6992

 

Categories: Chamilo, English Tags: , ,

gem install mysql2 on Debian Wheezy with MariaDB 10

Just in case you would be in this situation (and given the fact I couldn’t find online information about it), if you are ever installing the mysql2 gem on a Debian Wheezy system with MariaDB 10 (I would guess a rather rare situation), you might get this error:

# gem install mysql2 -v=0.3.11
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
 ERROR: Failed to build gem native extension.

 /usr/bin/ruby1.9.1 extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=.
 --curdir
 --ruby=/usr/bin/ruby1.9.1
 --with-mysql-config
 --without-mysql-config
 --with-mysql-dir
 --without-mysql-dir
 --with-mysql-include
 --without-mysql-include=${mysql-dir}/include
 --with-mysql-lib
 --without-mysql-lib=${mysql-dir}/lib
 --with-mysqlclientlib
 --without-mysqlclientlib
 --with-mlib
 --without-mlib
 --with-mysqlclientlib
 --without-mysqlclientlib
 --with-zlib
 --without-zlib
 --with-mysqlclientlib
 --without-mysqlclientlib
 --with-socketlib
 --without-socketlib
 --with-mysqlclientlib
 --without-mysqlclientlib
 --with-nsllib
 --without-nsllib
 --with-mysqlclientlib
 --without-mysqlclientlib
 --with-mygcclib
 --without-mygcclib
 --with-mysqlclientlib
 --without-mysqlclientlib


Gem files will remain installed in /var/lib/gems/1.9.1/gems/mysql2-0.3.11 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/mysql2-0.3.11/ext/mysql2/gem_make.out

 

If you find yourself in that situation, the solution is apparently to first issue an

apt-get install libmariadbd-dev

And then repeat the gem install mysql2 command. Done.

Accord inter-institutionnel Alliance Française (Lima) et BeezNest

Cette année 2014, la branche péruvienne de BeezNest (nous sommes maintenant présents en Belgique, non officiellement en France, en Espagne, au Pérou et probablement très bientôt dans un nouveau pays d’Amérique Latine) a signé un accord inter-institutionnel avec l’Alliance Française de Lima, qui vise à assurer la formation du personnel de BeezNest à la langue française ainsi que la disponibilité professionnelle d’une plateforme Chamilo pour tous les étudiants de l’Alliance.

Récemment, nous avons pu constater que l’Alliance respectait avec force son engagement, promotionnant publiquement son utilisation de Chamilo.

 

L'Alliance Française de Lima est fière d'utiliser Chamilo

L’Alliance Française de Lima est fière d’utiliser Chamilo

Eh oui, comme on le note en bas, un des 4 arguments de promotion c’est “Plateforme Chamilo – Apprentissage en ligne”. Ce n’est d’ailleurs pas la seule affiche qui le montre.

Nous sommes généralement ouverts à ce genre de propositions donnant-donnant. N’hésitez pas à nous faire une offre!

Categories: Chamilo, French Tags: , ,

Intercontinental fiber channel cables

Ever wondered where internet (and general telecommunications) cables were laid out in the ocean?
This map, available on Level3 website, could help you out.

Map of fiber cables worldwide

This could help you out understanding, for example, how much delay you can expect between Peru and Brazil (see the missing cable, there?) :-p

Creating new tasks in chamilo course-sessions

In the category of little scripts that can make your life easier when managing huge Chamilo portals, this is a little one that creates one tasks-folder called “ALP” for the “Assignments” (work) tool in each active course for a portal where you have thousands of sessions, with one course per session.

The script works for version 1.9.8 of Chamilo, but might need some adaptations to run on an older version, in particular considering the addDir() function from the main/work/work.lib.php library which was created there recently.

You should put the file into any “one-level” directory under the Chamilo base, so that it can find “../main/inc/global.inc.php”, and then run it on the command line using php5-cli, or load it from a webserver accessing it directly by its path.

The script only affects active sessions (sessions with a start and end dates that are “around” the current date).

The file is downloadable as a .doc file for safety purposes. Download it and rename it to “.php” before you open it, otherwise you’ll get an error: create_tasks


<?php
/**
* This script creates tasks directories in each course, at the session level,
* only for sessions active at the time of running the script
* In order for the script to set the right permissions, it has to be launched
* either as www-data or root
* @author Yannick Warnier
*/
require_once '../main/inc/global.inc.php';
require_once '../main/work/work.lib.php';
$date = date('Y-m-d h:i:s');
$workName = 'ALP';
$courseInfos = array();

/**
* Get the sessions list
*/
$sd = 'date_start';
$ed = 'date_end';
$sql = "SELECT id FROM session WHERE $sd '$date'";
$res = Database::query($sql);
if ($res === false) {
die("Error querying sessions: ".Database::error($res)."\n");
}
/**
* Get the course-session couple
*/
$sessionCourse = array();
while ($row = Database::fetch_assoc($res)) {
$sql2 = "SELECT c.id AS cid, c.code as ccode FROM course c, session_rel_course s WHERE s.id_session = ".$row['id']." AND s.course_code = c.code";
$res2 = Database::query($sql2);
if ($res2 === false) {
die("Error querying courses for session ".$row['id'].": ".Database::error($res2)."\n");
}
if (Database::num_rows($res2) > 0) {
while ($row2 = Database::fetch_assoc($res2)) {
$sessionCourse[$row['id']] = $row2['cid'];
if (empty($courseInfos[$row2['ccode']])) {
$courseInfos[$row2['cid']] = api_get_course_info($row2['ccode']);
}
}
}
}
/**
* Now create the tasks using the addDir function
*/
foreach ($sessionCourse as $sid => $cid) {
$sql = "SELECT id, title FROM c_student_publication
WHERE filetype = 'folder'
AND c_id = $cid
AND session_id = $sid";
$res = Database::query($sql);
if ($res === false) {
echo "Error querying table c_student_publication: $sql\n";
echo "The error message was: ".Database::error($res)."\n";
continue;
}
if (Database::num_rows($res) > 0) {
//Task found, skip
$row = Database::fetch_assoc($res);
echo "Task ".$row['title']." already found in course $cid, session $sid\n";
continue;
}
$params = array(
'new_dir' => $workName,
'description' => '',
'qualification' => 0,
'weight' => 0,
'allow_text_assignment' => 0
);
$res = addDir($params, 1, $courseInfos[$cid], null, $sid);
if ($res === false) {
echo "Could not create task $workName in course $cid, session $sid, for some reason\n";
} else {
echo "Task $workName created in course $cid, session $sid. Task ID is $res\n";
}
}
echo "All done!\n";

Categories: Chamilo, English, php, Techie Tags: , ,

Certifícate como administrador de E-learning con Chamilo LMS

March 13, 2014 Leave a comment

header Mayor información: https://www.beeznest.com/curso-chamilo/index.html

Truco para las XOs 1.0 que no encuentran su Access Point

February 8, 2014 Leave a comment

En un mensaje en la lista server-devel del proyecto “una laptop para cada niño”, se desarrolló una conversación interesante el 7 de Febrero del 2014, en la cual Anna explica que no sabía que el problema de las XOs 1.0 de no encontrar su Access Point era tan común.

Ella propone una solución, que es de correr, en el terminal de la XO 1.0, el comando

iwlist eth0 scan | grep

varias veces hasta que aparezca en la lista. Una vez el aparezca, ella regresa a la vista de vencindaje de red y le da click al círculo y se asocia.
Dice que esto funciona para toda la duración de la ejecución de la laptop, pero que hay que volver a empezar una vez reinicia. Agrega que solo ocurre con unas de las XOs, y la gran mayoría funciona perfectamente.

Pero este correo viene en respuesta a otro correo de James Cameron, que propone un script para arreglar este problema automáticamente.
También indica que el problema, algunas veces, proviene de una antena rota (de recepción o de emisión, ya que hay una de cada una) y que se puede hacer una prueba de antena como descrito en: http://wiki.laptop.org/go/Antenna_testing

Anteriormente, en la misma conversación (“XO-1 classrooms” don’t reliably connect to many/most Wifi AP’s”), Adam Host mencionaba un procedimiento de prueba involucrando por lo mínimo 10 XO’s que, dice, funciona mucho mejor con dos modelos específicos de Access Points. Se puede encontrar toda la discusión (en Inglés) en su historial Mailman: http://lists.laptop.org/pipermail/server-devel/

Categories: OLPC, Spanish Tags: ,
Follow

Get every new post delivered to your Inbox.

Join 60 other followers

%d bloggers like this: