Una forma de formatear desde la línea de comandos una partición en en Linux en modo rápido es con el siguiente comando.
mkntfs -Q -v -L ntfs500g /dev/sdc1
-Q modo rápido
-v verbose (comentarios que ocurren al ejecutar el comando) http://www.webune.com/forums/linux-verbose-option-explained.html
-L label, etiqueta de la nueva unidad formateada
para eso tienes que ser root por lo que es util este otro comando
$su -c "mkntfs -Q -v -L ntfs500g /dev/sdc1"
nota:
con $df -T identificas en que formato estan las particiones
Ver más en http://www.clopezsandez.com/2010/06/formateo-de-unidades-ntfs.html
Blog de eCómputo creado por Richard's Site Allabord sobre tecnología, programación, soporte a errores en equipos de cómputo, TIC's y mucho más.
febrero 25, 2011
febrero 21, 2011
Emacs - Buffer is read-only: #
Si tenemos permiso de escritura a un archivo, pero no tenemos permiso de escritura en el directorio donde reside este, es decir no podemos crear el archivo temporal en el directorio donde esta ubicado el archivo que queremos modificar. Emacs nos da el error como Buffer is read-only o write protected
Para eso podemos apuntar los archivos de backup y los de guardado automático a una dirección distinta que en la que esta ubicado el archivo a editar. Para esto editamos el archivo .emacs en nuestro HOME y agregamos la siguiente indicación
;; apuntar los archivos de backup
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
;; apuntar los archivos que se guardan automaticamente
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
Para eso podemos apuntar los archivos de backup y los de guardado automático a una dirección distinta que en la que esta ubicado el archivo a editar. Para esto editamos el archivo .emacs en nuestro HOME y agregamos la siguiente indicación
;; apuntar los archivos de backup
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
;; apuntar los archivos que se guardan automaticamente
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))
febrero 08, 2011
Moodle - nostatstodisplay
Si aparece este error
error/moodle/nostatstodisplay
[Opción 1]
Hay que seguir las instrucciones de:
http://docs.moodle.org/en/error/moodle/nostatstodisplay
Stats
This page can appear if you have not enabled statistics. To enable statistics, log into your Moodle as an administrator. Then, in the Site Administration menu, under Server --> Statistics ensure that they are enabled.
If you have enabled Statistics recently you should note that statistics are collected by a background task and take some time to become available. Try again later, but do note the time for statistics job to be run in the Site Administration page noted above.
[Opción 2]
y de :
http://docs.moodle.org/en/Statistics
Statistics
From MoodleDocs
Jump to: navigation, search
Location: Administration > Server > Statistics
If you enable site statistics, Moodle will gather statistics about each course and for the whole site, and produce graphs displaying them.
The statistics graphs and tables show how many hits there have been on various parts of your site during various time frames. They do not show how many distinct users there have been. They are processed daily at a time you specify. You must enable statistics before you will see anything.
Enabling site statistics
1. Access Administration > Server > Statistics (or Site Administration > Advanced features in 2.0 onwards).
2. Tick the "Enable statistics" checkbox.
3. As stats processing is quite resource intensive, it is recommended that you should set the stats processing to start in the early morning.
4. Click the "Save changes" button.
TIP: Set the stats processing to start an hour before your automated course backups are scheduled to start, then set the maximum runtime to 1 hour. This ensures that stats are not being processed at the same time as course backups are being made.
Statistics not working?
If statistics isn't working and you have checked all the obvious (such as whether it's enabled), check Administration > Modules for any old hidden modules in the database which miss the files in the moodle/mod folder on your server. If you find any, they should be deleted.
You can also try limiting the length of time logs are kept for to reduce the size of the tables. Go to Administration > Server > Cleanup to set this.
To run stats manually, go to the database, go to the mdl_config table and set statslastdaily, statslastweekly and statslastmonthly to 0 (leave statslastmonthly alone if you think it might be large logtables causing the problem). Then go to Administration > Server > Statistics and set statsruntimestarthour to 5 mins ago. Then visit http://www.yoursite.com/admin/cron.php. You should see output there saying that stats are processing, but be patient if it appears to hang - this can take between 5 mins and several hours depending on how big your site is, so just leave it going.
[Opción 3]
http://tracker.moodle.org/browse/MDL-16415
[Opción 4]
http://moodle.org/mod/forum/discuss.php?d=121225
error/moodle/nostatstodisplay
[Opción 1]
Hay que seguir las instrucciones de:
http://docs.moodle.org/en/error/moodle/nostatstodisplay
Stats
This page can appear if you have not enabled statistics. To enable statistics, log into your Moodle as an administrator. Then, in the Site Administration menu, under Server --> Statistics ensure that they are enabled.
If you have enabled Statistics recently you should note that statistics are collected by a background task and take some time to become available. Try again later, but do note the time for statistics job to be run in the Site Administration page noted above.
[Opción 2]
y de :
http://docs.moodle.org/en/Statistics
Statistics
From MoodleDocs
Jump to: navigation, search
Location: Administration > Server > Statistics
If you enable site statistics, Moodle will gather statistics about each course and for the whole site, and produce graphs displaying them.
The statistics graphs and tables show how many hits there have been on various parts of your site during various time frames. They do not show how many distinct users there have been. They are processed daily at a time you specify. You must enable statistics before you will see anything.
Enabling site statistics
1. Access Administration > Server > Statistics (or Site Administration > Advanced features in 2.0 onwards).
2. Tick the "Enable statistics" checkbox.
3. As stats processing is quite resource intensive, it is recommended that you should set the stats processing to start in the early morning.
4. Click the "Save changes" button.
TIP: Set the stats processing to start an hour before your automated course backups are scheduled to start, then set the maximum runtime to 1 hour. This ensures that stats are not being processed at the same time as course backups are being made.
Statistics not working?
If statistics isn't working and you have checked all the obvious (such as whether it's enabled), check Administration > Modules for any old hidden modules in the database which miss the files in the moodle/mod folder on your server. If you find any, they should be deleted.
You can also try limiting the length of time logs are kept for to reduce the size of the tables. Go to Administration > Server > Cleanup to set this.
To run stats manually, go to the database, go to the mdl_config table and set statslastdaily, statslastweekly and statslastmonthly to 0 (leave statslastmonthly alone if you think it might be large logtables causing the problem). Then go to Administration > Server > Statistics and set statsruntimestarthour to 5 mins ago. Then visit http://www.yoursite.com/admin/cron.php. You should see output there saying that stats are processing, but be patient if it appears to hang - this can take between 5 mins and several hours depending on how big your site is, so just leave it going.
[Opción 3]
http://tracker.moodle.org/browse/MDL-16415
[Opción 4]
http://moodle.org/mod/forum/discuss.php?d=121225
febrero 04, 2011
Moodle - Querys interesantes
En este sitio se pueden encontrar Querys interesantes de Moodle
http://moodle.org/mod/forum/discuss.php?d=115539
http://moodle.org/mod/forum/discuss.php?d=115539
febrero 03, 2011
sdhc de 16gb en Aspire 5670
En una Acer Aspire 5670 no podía leer una memoria SD HC de 16GB hasta que encontré este blog, que aunque en inglés explica como hacerlo.
Blog:
http://www.jawish.org/blog/index.php?url=archives/311-Using-4GB-SDHC-Cards-with-the-TI-PCIxx12-Integrated-FlashMedia-Controller-based-card-readers.html&serendipity[csuccess]=moderate#feedback
Liga del driver genéico:
http://h10025.www1.hp.com/ewfrf/wc/genericSoftwareDownloadIndex?softwareitem=ob-58364-1&cc=us&lc=en&dlc=en
Blog:
http://www.jawish.org/blog/index.php?url=archives/311-Using-4GB-SDHC-Cards-with-the-TI-PCIxx12-Integrated-FlashMedia-Controller-based-card-readers.html&serendipity[csuccess]=moderate#feedback
Liga del driver genéico:
http://h10025.www1.hp.com/ewfrf/wc/genericSoftwareDownloadIndex?softwareitem=ob-58364-1&cc=us&lc=en&dlc=en
enero 14, 2011
Moodle - Call to undefined method
En hojear lista de usuarios si muestra página en blanco, en vez del contenido hay que activar la depuración ver http://blogdeecomputo.blogspot.com/2011/01/moodle-depurar-errores.html
Si aparece esto
Fatal error: Call to undefined method MoodleQuickForm_hidden::MoodleQuickForm_hidden() in moodle\lib\pear\HTML\QuickForm\element.php on line 363
la respuesta oficial es que Moodle 1.9.4 o 1.9.3 no funciona con PHP 5.3
Solución 1 (recomendada). Actualizar Moodle a una versión actualizada.
Solución 2. Regresar PHP a una versión anterior como PHP 5.2
Solución 3. Modificar los elementos siguientes:
------------------
var $_helpbutton='';
Agregar esto:
------------------
var $_helpbutton='';
Agregar esto:
------------------
var $_helpbutton='';
var $_hiddenLabel=false;
Agregar esto:
------------------
Fatal error: Call to undefined method MoodleQuickForm_text::MoodleQuickForm_text() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/text.php despues de:
var $_helpbutton='';
var $_hiddenLabel=false;
Agregar esto:
function MoodleQuickForm_text($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_group::MoodleQuickForm_group() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/group.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_group($elementName=null, $elementLabel=null, $elements=null, $separator=null, $appendName = true) {
parent::HTML_QuickForm_group($elementName, $elementLabel, $elements, $separator, $appendName);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_checkbox::MoodleQuickForm_checkbox() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/checkbox.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_checkbox($elementName=null, $elementLabel=null, $text='', $attributes=null) {
parent::HTML_QuickForm_checkbox($elementName, $elementLabel, $text, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_submit::MoodleQuickForm_submit() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/submit.php despues de:
class MoodleQuickForm_submit extends HTML_QuickForm_submit {
Agregar esto:
function MoodleQuickForm_submit($elementName=null, $value=null, $attributes=null) {
parent::HTML_QuickForm_submit($elementName, $value, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_static::MoodleQuickForm_static() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/static.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_static($elementName=null, $elementLabel=null, $text=null) {
parent::HTML_QuickForm_static($elementName, $elementLabel, $text);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_passwordunmask::MoodleQuickForm_passwordunmask() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/passwordunmask.php despues de:
class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
Agregar esto:
function MoodleQuickForm_passwordunmask($elementName=null, $elementLabel=null, $attributes=null) {
parent::MoodleQuickForm_password($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_password::MoodleQuickForm_password() in moodle/lib/form/passwordunmask.php on line 18
Modificar /moodle/lib/form/password.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_password($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_password($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_textarea::MoodleQuickForm_textarea() in moodle/lib/form/htmleditor.php on line 16
Modificar /moodle/lib/form/textarea.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_textarea($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_file::MoodleQuickForm_file() in moodle/lib/form/file.php on line 56
Modificar /moodle/lib/form/file.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_file($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_radio::MoodleQuickForm_radio() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/radio.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_radio($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_radio($elementName, $elementLabel, $attributes);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_button::MoodleQuickForm_button() in /var/www/html/moodle-exaleconomia-2011/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/button.php despues de:
var $_helpbutton='';
function MoodleQuickForm_button($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
parent::HTML_QuickForm_button($elementName, $elementLabel, $options, $attributes);
}
Si aparece esto
Fatal error: Call to undefined method MoodleQuickForm_hidden::MoodleQuickForm_hidden() in moodle\lib\pear\HTML\QuickForm\element.php on line 363
la respuesta oficial es que Moodle 1.9.4 o 1.9.3 no funciona con PHP 5.3
Solución 1 (recomendada). Actualizar Moodle a una versión actualizada.
Solución 2. Regresar PHP a una versión anterior como PHP 5.2
Solución 3. Modificar los elementos siguientes:
------------------
Fatal error: Call to undefined method MoodleQuickForm_hidden::MoodleQuickForm_hidden() in moodle\lib\pear\HTML\QuickForm\element.php on line 363
Modificar /moodle/lib/form/hidden.php después de:var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_hidden($elementName=null, $value='', $attributes=null) {
parent::HTML_QuickForm_hidden($elementName, $value, $attributes);
}
------------------parent::HTML_QuickForm_hidden($elementName, $value, $attributes);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_header::MoodleQuickForm_header() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/header.php despues de:var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_header($elementName = null, $text = null) {
parent::HTML_QuickForm_header($elementName, $text);
}
------------------parent::HTML_QuickForm_header($elementName, $text);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_select::MoodleQuickForm_select() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/select.php después de:var $_helpbutton='';
var $_hiddenLabel=false;
Agregar esto:
function MoodleQuickForm_select($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
parent::HTML_QuickForm_select($elementName, $elementLabel, $options, $attributes);
}
------------------parent::HTML_QuickForm_select($elementName, $elementLabel, $options, $attributes);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_text::MoodleQuickForm_text() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/text.php despues de:
var $_helpbutton='';
var $_hiddenLabel=false;
Agregar esto:
function MoodleQuickForm_text($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_text($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_group::MoodleQuickForm_group() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/group.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_group($elementName=null, $elementLabel=null, $elements=null, $separator=null, $appendName = true) {
parent::HTML_QuickForm_group($elementName, $elementLabel, $elements, $separator, $appendName);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_checkbox::MoodleQuickForm_checkbox() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/checkbox.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_checkbox($elementName=null, $elementLabel=null, $text='', $attributes=null) {
parent::HTML_QuickForm_checkbox($elementName, $elementLabel, $text, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_submit::MoodleQuickForm_submit() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/submit.php despues de:
class MoodleQuickForm_submit extends HTML_QuickForm_submit {
Agregar esto:
function MoodleQuickForm_submit($elementName=null, $value=null, $attributes=null) {
parent::HTML_QuickForm_submit($elementName, $value, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_static::MoodleQuickForm_static() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/static.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_static($elementName=null, $elementLabel=null, $text=null) {
parent::HTML_QuickForm_static($elementName, $elementLabel, $text);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_passwordunmask::MoodleQuickForm_passwordunmask() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/passwordunmask.php despues de:
class MoodleQuickForm_passwordunmask extends MoodleQuickForm_password {
Agregar esto:
function MoodleQuickForm_passwordunmask($elementName=null, $elementLabel=null, $attributes=null) {
parent::MoodleQuickForm_password($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_password::MoodleQuickForm_password() in moodle/lib/form/passwordunmask.php on line 18
Modificar /moodle/lib/form/password.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_password($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_password($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_textarea::MoodleQuickForm_textarea() in moodle/lib/form/htmleditor.php on line 16
Modificar /moodle/lib/form/textarea.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_textarea($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_textarea($elementName, $elementLabel, $attributes);
}
------------------
------------------
Fatal error: Call to undefined method MoodleQuickForm_file::MoodleQuickForm_file() in moodle/lib/form/file.php on line 56
Modificar /moodle/lib/form/file.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_file($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_file($elementName, $elementLabel, $attributes);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_radio::MoodleQuickForm_radio() in moodle/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/radio.php despues de:
var $_helpbutton='';
Agregar esto:
function MoodleQuickForm_radio($elementName=null, $elementLabel=null, $attributes=null) {
parent::HTML_QuickForm_radio($elementName, $elementLabel, $attributes);
}
------------------
Fatal error: Call to undefined method MoodleQuickForm_button::MoodleQuickForm_button() in /var/www/html/moodle-exaleconomia-2011/lib/pear/HTML/QuickForm/element.php on line 363
Modificar /moodle/lib/form/button.php despues de:
var $_helpbutton='';
function MoodleQuickForm_button($elementName=null, $elementLabel=null, $options=null, $attributes=null) {
parent::HTML_QuickForm_button($elementName, $elementLabel, $options, $attributes);
}
enero 13, 2011
Moodle - Depurar errores
Usando moodle 1.9.3 (Build: 20081015)
Para poder ver los mensajes de error que moodle muestra hay que entrar como administrador.
Dentro del panel de Administración del Sitio seleccionar Servidor / Depurando
En "Depurar mensajes" (debug) Seleccionar "DESARROLLADOR: mensajes extra de depuración Moodle para desarrolladores".
Documentación sobre el tema en:
http://docs.moodle.org/en/Debugging#How_to_turn_on_debugging
How to turn on debugging
Go into the admin screens, and look under Administration > Server > Debugging (In Moodle 2.0 it is Site administration ▶ Development ▶ Debugging). Set the...
* Debug messages to ALL, and
* Display debug messages to Yes.
(You must do both). There is rarely any advantage in going to Developer level, unless you are a developer, in which case it is strongly recommended.
Once you have got the error message, and copied and pasted it somewhere, you are recommended to turn debugging back off again.
.
Para poder ver los mensajes de error que moodle muestra hay que entrar como administrador.
Dentro del panel de Administración del Sitio seleccionar Servidor / Depurando
En "Depurar mensajes" (debug) Seleccionar "DESARROLLADOR: mensajes extra de depuración Moodle para desarrolladores".
Documentación sobre el tema en:
http://docs.moodle.org/en/Debugging#How_to_turn_on_debugging
How to turn on debugging
Go into the admin screens, and look under Administration > Server > Debugging (In Moodle 2.0 it is Site administration ▶ Development ▶ Debugging). Set the...
* Debug messages to ALL, and
* Display debug messages to Yes.
(You must do both). There is rarely any advantage in going to Developer level, unless you are a developer, in which case it is strongly recommended.
Once you have got the error message, and copied and pasted it somewhere, you are recommended to turn debugging back off again.
.
Suscribirse a:
Entradas (Atom)
¿Cómo poner el conteo de las filas en una consulta en MySql?
¿Cómo poner el conteo de las filas en una consulta en MySql? SELECT @rownum := @rownum + 1 AS contador, /*Contador*/ t.* /* nombre d...
-
En una Acer Aspire 5670 no podía leer una memoria SD HC de 16GB hasta que encontré este blog, que aunque en inglés explica como hacerlo. B...
-
En hojear lista de usuarios si muestra página en blanco, en vez del contenido hay que activar la depuración ver http://blogdeecomputo.blogsp...
-
¿Cómo poner el conteo de las filas en una consulta en MySql? SELECT @rownum := @rownum + 1 AS contador, /*Contador*/ t.* /* nombre d...