domingo, 19 de diciembre de 2010

¡No al cierre de webs! ¡Red SOStenible!

Habilitar CKEditor para Chrome y Safari en Moodle

Para que el editor WYSIWYG CKEditor pueda "funcionar" correctamente en Chrome y Safari modificaremos

Fichero: /lib/moodlelib.php

Donde nos topamos con :


function can_use_html_editor() {
global $USER, $CFG;

if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) {
if (check_browser_version('MSIE', 5.5)) {
return 'MSIE';
} else if (check_browser_version('Gecko', 20030516)) {
return 'Gecko';
}
}
return false;
}


usaremos este código :


function can_use_html_editor() {
global $USER, $CFG;

if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) {
if (check_browser_version('MSIE', 5.5)) {
return 'MSIE';
} else if (check_browser_version('Gecko', 20030516)) {
return 'Gecko';
}
else {

return 1;

}
}
return false;
}


Fichero /lib/editor/htmlarea/htmlarea.php

Donde nos topamos con:



HTMLArea.checkSupportedBrowser = function() {
if (HTMLArea.is_gecko) {
if (navigator.productSub < 20021201) {
alert("You need at least Mozilla-1.3 Alpha.\n" +
"Sorry, your Gecko is not supported.");
return false;
}
if (navigator.productSub < 20030210) {
alert("Mozilla < 1.3 Beta is not supported!\n" +
"I'll try, though, but it might not work.");
}
}
if(HTMLArea.is_safari) {
return false;
}
return HTMLArea.is_gecko || HTMLArea.is_ie;
};


deberíamos ....


HTMLArea.checkSupportedBrowser = function() {
if (HTMLArea.is_gecko) {
if (navigator.productSub < 20021201) {
alert("You need at least Mozilla-1.3 Alpha.\n" +
"Sorry, your Gecko is not supported.");
return false;
}
if (navigator.productSub < 20030210) {
//alert("Mozilla < 1.3 Beta is not supported!\n" +
// "I'll try, though, but it might not work.");
return 'HTMLArea.is_gecko';
}
}
if(HTMLArea.is_safari) {
//return false;
return 'HTMLArea.is_gecko';
}
return HTMLArea.is_gecko || HTMLArea.is_ie;
};


Visto en http://lewiscarr.co.uk/

lunes, 22 de noviembre de 2010

Charla Servidores UNIX/Linux

El pasado fin de semana tuve el placer de impartir en formato charla+taller una ponencia sobre Servidores Linux, enmarcada dentro de unas "Xornadas sobre software libre, internet seguro" en A Coruña. Este próximo fin de semana, 26 y 27 de Noviembre de 2010 haré lo propio en Santiago de Compostela.

Divida en jornada teórico-evangelizadora, resumí muy brevemente la historia del SSOO GNU/Linux siguiendo como guión esta presentación:




En la jornada matutina del día siguiente y en horario de10:30 a 13:30, tomando como base una distribución Ubuntu Server 10.10 tratamos temas relacionados con:
  • Mini introducción al terminal
  • Introducción apt en Debian GNU/Linux
  • Instalación y configuración de SAMBA.
  • Hablamos además de : nano, touch, rsync, ext4, ext3, reiserfs, zfs, upstart, init.d, gz, virtualbox, lvm.....
La verdad es que ha sido un placer, sobre todo por la atención, tanto de los asistentes como por parte de la gente de Academia Postal, en especial Manuel Bustabad. ¡Gracias por todo!

Apache2 , SSL y passphrase

Si utilizais Apache2 con SSL es probable que cuando instaléis el certificado en vuestro sitio y reinicies el servicio, Apache2 se "queje" pidiendo la contraseña del certificado. Saltar este paso es muy sencillo.

1.- Editamos el fichero /etc/apache2/mod-enabled/ssl.conf
2.- Cambiamos SSLPassPhraseDiaglog builtin por SSLPassPhraseDialog exec:/usr/sbin/asslpass
donde asslpass contiene

#!/bin/bash
echo "mi-pass-del-certificado"
3.- chmod +x /usr/bin/asslpass para otorgar permisos de ejecución y asunto resuelto.

martes, 26 de octubre de 2010

¡Apoya a Wikipedia!

Apoya Wikipedia
Hoy he aportado un euro ( 1€ ) a Wikipedia. Estoy redactando un proyecto y me he acordado leyendo un artículo en Wikipedia de la veces que he sacado partido a este magnífico proyecto colaborativo. Cierto, puedo donar más dinero, pero no considero que el importe de la donación sea lo importante, es el propio acto en sí. Siento que mi pequeña deuda con este proyecto, al menos durante un corto período de tiempo está saldada.


Dear Alberto,

Thank you for your gift of EUR 1.00 to the Wikimedia Foundation, received on October 26, 2010. I’m very grateful for your support.
Your donation celebrates everything Wikipedia stands for: the power of information to help people live better lives, and the importance of sharing, freedom, learning and discovery. Thank you so much for helping to keep Wikipedia freely available for its 380 million readers around the world.

These funds support technology and people. The Wikimedia Foundation develops and improves the technology behind Wikipedia, and sustains the infrastructure that keeps it up and running. The foundation has a staff of about fifty, which provides technical, administrative, legal and outreach support for the global community of volunteers who write and edit Wikipedia.
Many people love Wikipedia, but a surprising number don't know it's run by a non-profit. Please help us spread the word by telling a few of your friends.

And again, thank you for supporting free knowledge.

Sincerely Yours,


Sue Gardner
Executive Director

* To donate: http://donate.wikimedia.org
* To visit our Blog: http://blog.wikimedia.org
* To follow us on Twitter: http://twitter.com/wikimedia
* To follow us on Facebook: http://www.facebook.com/wikipedia


This letter can serve as a record for tax purposes. No goods or
services were provided, in whole or in part, for this contribution.
The Wikimedia Foundation, Inc. is a non-profit charitable corporation
with 501(c)(3) tax exempt status in the United States. Our address is 149 New Montgomery, 3rd Floor, San Francisco, CA, 94105. Tax-exempt number: 20-0049703