Miss the profile pics when upgrading Moodle to 1.8.13 on Debian? I found this

On the upgrade from 1.8.2 to 1.8.13 the way /var/lib/moodle profile pics where handle changed in a subtle way. From users/x to user/0 user/1000 user/2000 this is a very good idea, but I can’t find info about it on README.Debian or any other documentation, would be nice to add to the docs or/and ad a script to fix, as as moodle admin I just figure out today that all my users had the default happy face when not had uploaded their picture.

Anyway I fixed using mv and wildcards.
On users/ dir did:
mv 1??? ../user/1000/ -v
mv 2??? ../user/2000/ -v
mv 3??? ../user/3000/ -v
mv 1?? ../user/0/ -v
mv ?? ../user/0/ -v
and so on, of course a better and nice way must exist but that worked for me, in any case I want to share this with you and probably with any other puzzled moodle admin.

I found that this change goes back to moodle 1.8.3 [1] to address the ext2 limitation of 32000 directories [2], also a script was added on the admin section [3] and can be used via web or CLI. Anyway I think it’s good idea to add information on the package documentation.

[1] http://moodle.org/mod/forum/discuss.php?d=82208
[2] http://tracker.moodle.org/browse/MDL-8605
[3] admin/fixuserpix.php located normally on Debian on /usr/share/moodle/admin

Publicado en Educación, General, Sin categoría, sysadmin | 2 comentarios

Yo si voy al EDUSOL

Se cierra la recepción de trabajos el 10 de octubre.

Publicado en Debraye, Educación, General | Deja un comentario

Work


http://xkcd.com/386/ Duty Calls.

Publicado en Debraye, General, planetalinux, sysadmin, Web | Deja un comentario

Latino Comedy Project

Lastima que hayan hecho pocos, muy buen humor y excelente trabajo, curioso que no haya una versión subtitulada.

Su sitio oficial

Publicado en Debraye, General, planetalinux, Web | Deja un comentario

Según las estadísticas

1) En Japón se consumen pocas grasas y el índice de ataques al corazón en ese país es menor que en Inglaterra y Estados Unidos.

2) Por otro lado, en Francia se consumen bastantes grasas y, aun así, el índice de males cardíacos es menor que en Inglaterra y Estados Unidos.

3) En la India apenas se bebe vino tinto y el índice también es menor que en Inglaterra y Estados Unidos.

4) En España se bebe demasiado vino tinto, y es menor que en Inglaterra y Estados Unidos.

5) En Argelia apenas se hace el amor y es menor que en Inglaterra y Estados Unidos.

6) En Brasil se hace mucho el amor, y el índice de ataques al corazón es menor que en Inglaterra y Estados Unidos.

Conclusión: bebe, come y coge lo que te dé la gana; lo que mata es el inglés.

Publicado en Arqueologia Infiernetica, Debraye, General, sysadmin | Deja un comentario

Teorema del salario de Dilbert

El Teorema del salario de Dilbert establece que:

Los Ingenieros y los Científicos, nunca pueden ganar tanto como los Ejecutivos y los Comerciantes.
Se lo demuestra matemáticamente a partir de los siguientes dos postulados que son del dominio popular:

– Postulado Numero.1: Knowledge is Power (el Conocimiento es Poder)
– Postulado Numero.2: Time is money (el Tiempo es Dinero)

Todos conocemos el siguiente principio de la física: Power= Work/Time
(Potencia es = Trabajo/Tiempo)

– Pero considerando que Knowledge es = Power
– Tenemos que: Knowledge = Work/Time (Conocimiento es = Trabajo/Tiempo)

Y como Time es = Money
Tenemos que: Conocimiento (Knowledge) es = Trabajo (Work) / Dinero (Money)

Ahora, si en ésta ecuación, despejamos la variable «Dinero»

Obtenemos que:

Dinero es = Trabajo / Conocimiento

Así se demuestra que, cuando Conocimiento se aproxima a cero (0), el dinero tiende a infinito, independientemente de la cantidad de trabajo realizado. Con lo que queda demostrado que: CUANTO MENOS SEPAS;
MAS GANARAS.

Nota: Si no has entendido la demostración de este Teorema, no te preocupes seguramente estarás gozando de un jugoso sueldo.

La wikipedia tiene una entrada interesante sobre este teorema

Publicado en Sin categoría | Deja un comentario

Mini How-to/Cheatsheet

How to create a Debian install inside a chroot with Debootstrab

debootstrap –arch i386 lenny $CHROOTDIR http://ftp.us.debian.org/debian

debootstrap lenny|testing|unstable

Remember you can use release name (lenny) or type testing; the important difference is that if you use, say, squeeze, which is now testing, when it becomes stable, you stay on squeeze; if you use testing, you stay on testing even when squezee is released. –arch can be omitted ftp.us.debian.org if not set it’s the default setting

Configure the chroot

First, mount the /proc filesystem.

mount -t proc proc $CHROOTDIR/proc
mount -t devpts devpts $CHROOTDIR/dev/pts # Don’t worry if this doesn’t work
for you.

Enter the chroot
LANG=C chroot $CHROOTDIR/ /bin/bash

The LANG it’s important to avoid errors with programs that require setting locales, if you wish you can do apt-get install locales o dpkg-reconfigure locales.

Important to not confuse chroot with normal system

export PS1=»CHROOT:\w# »

Also you can create

/etc/debian_chroot

and put something like «lenny» and when do chroot that adds to the prompt.

Commands to configure the chroot

You only run them once.

cd /dev; /sbin/MAKEDEV generic; cd –

To prevent problems with locales entering the chroot

LANG=C chroot $CHROOTDIR /bin/bash

Sometimes MAKEDEV will fail from inside chroot you can do outside the chroot as root

Also sometimes debotstrab forgot to get the signing key for the archive-repositories, most of times doing apt-get update && apt-get upgrade fixes it, if not you need to install debian-archive-keyring.

At the end one can free space with apt-get clean and with deborphan.

Its good idea to umount $CHROOTDIR/proc and $CHROOTDIR/dev/ when shutting down the machine.

Publicado en General, planetalinux, sysadmin, Trabajo | Deja un comentario

Lo que era

Conectar de Iztacalco a Xochimilco en 1999.
[terminal]
TraceRoute: 48 data bytes to tochtli.uam.mx [148.206.101.11]

1:Rcvd pkt type 11: [148.233.229.231] du-148-233-229-231.telmex.net.mx in 167 msec.
2:Rcvd pkt type 11: [148.233.229.238] du-148-233-229-238.telmex.net.mx in 154 msec.
3:Rcvd pkt type 11: [200.38.142.106] mex10-106.uninet.net.mx in 148 msec.
4:Rcvd pkt type 11: [200.23.240.130] Backbone2-fddi-mexico.uninet.net.mx in 149 msec.
5:Rcvd pkt type 11: [204.59.165.37] gip-stock-5-pos9-0-0.gip.net in 187 msec.
6:Rcvd pkt type 11: [144.232.4.129] sl-bb10-stk-2-1.sprintlink.net in 183 msec.
7:Rcvd pkt type 11: [144.232.4.2] sl-bb1-stk-0-0-0.sprintlink.net in 183 msec.
8:Rcvd pkt type 11: [206.157.77.65] core4-hssi1-0.SanFrancisco.cw.net in 188 msec.
9:Rcvd pkt type 11: [204.70.9.131] corerouter1.SanFrancisco.cw.net in 190 msec.
10:Rcvd pkt type 11: [204.70.9.149] corerouter1.Dallas.cw.net in 225 msec.
11:Rcvd pkt type 11: [166.48.80.1] bordercore2.Dallas.cw.net in 237 msec.
12:Rcvd pkt type 11: [166.48.81.250] avantel.Dallas.cw.net in 279 msec.
13:Rcvd pkt type 11: [166.48.77.250] avantel.Dallas.cw.net in 269 msec.
14:No packet received from this hop.
15:Rcvd pkt type 11: [148.207.38.251] ? in 394 msec.
16:Rcvd pkt type 11: [148.207.25.254] uam.rtn.conacyt.mx in 409 msec.
17:No packet received from this hop.
18:No packet received from this hop.
19:Rcvd pkt type 11: [148.206.100.1] tlatlama1.uam.mx in 2275 msec.
20:Rcvd pkt type 0: [148.206.101.11] tochtli.uam.mx, 48 bytes in 758 msec.

TraceRoute Statistics for tochtli.uam.mx
Start Time: Tue, 14 Sep 1999 09:54:16
20 packets transmitted, 17 packets received, 15% packet loss
round-trip (ms) min/avg/max = 148/376/2275

[/terminal]
Ir hasta Frisco, Dallas y regresar, 20 saltos… hoy

[terminal]
traceroute to www.xoc.uam.mx (148.206.99.90), 30 hops max, 40 byte packets
1 m254.redlocal (192.168.x.x) 1.653 ms 1.623 ms 23.444 ms
2 dsl-servicio-l200.uninet.net.mx (200.38.193.226) 35.311 ms 39.203 ms 41.778 ms
3 inet-mex-vallejo-56-ge0-0-0.uninet.net.mx (201.125.59.175) 47.100 ms 50.945 ms 53.587 ms
4 wan-uam-d34-0204-0015.uninet.net.mx (148.233.199.201) 56.799 ms 60.999 ms 64.682 ms
5 148.206.139.254 (148.206.139.254) 68.565 ms 72.888 ms 76.645 ms
[/terminal]
… topar con el firewall, pero el sexto sería ya en Xochimilco.

Publicado en Arqueologia Infiernetica, Debraye, General, planetalinux, sysadmin | Deja un comentario

The lifecycle of (mailing)lists

Originally Posted to Gleason Sackman’s Net-Happenings

Date: Wed, 5 Apr 1995 07:07:16 -0600
From: Mike Gurstein
To: Multiple recipients of list
Subject: Fwd: Life cycle of Lists (fwd)
———————
Forwarded message:
From: mforster@findhorn.org (Michael Forster)
To: communitarians@civic.net
Date: 95-03-31 07:57:23 EST

This seemed like a good time to post this item from the Humor List.
Michael Forster

THE NATURAL LIFE CYCLE OF MAILING LISTS

Every list seems to go through the same cycle:

1. Initial enthusiasm (people introduce themselves, and gush a lot about how wonderful it is to find kindred souls).

2. Evangelism (people moan about how few folks are posting to the list, and brainstorm recruitment strategies).

3. Growth (more and more people join, more and more lengthy threads develop, occasional off-topic threads pop up)

4. Community (lots of threads, some more relevant than others; lots of information and advice is exchanged; experts help other experts as well as less experienced colleagues; friendships develop; people tease each other; newcomers are welcomed with generosity and patience; everyone—newbie and expert alike—feels comfortable asking questions, suggesting answers, and sharing opinions)

5. Discomfort with diversity (the number of messages increases dramatically; not every thread is fascinating to every reader; people start complaining about the signal-to-noise ratio; person 1 threatens to quit if *other* people don’t limit discussion to person 1’s pet topic; person 2 agrees with person 1; person 3 tells 1 & 2 to lighten up; more bandwidth is wasted complaining about off-topic threads than is used for the threads themselves; everyone gets annoyed)

6a. Smug complacency and stagnation (the purists flame everyone who asks an ‘old’ question or responds with humor to a serious post; newbies are rebuffed; traffic drops to a doze-producing level of a few minor issues; all interesting discussions happen by private email and are limited to a few participants; the purists spend lots of time self-righteously congratulating each other on keeping off-topic threads off the list)

OR

6b. Maturity (a few people quit in a huff; the rest of the participants stay near stage 4, with stage 5 popping up briefly every few weeks; many people wear out their second or third ‘delete’ key, but the list lives contentedly ever after)

—-

From time to time I use more or less this very good summary of the list/forum/community to explain to more than one newcomer why there is a hype about something a very good time and then the abandon of it the best source that preserves it’s probably the first hit on google searching for list lifecycle I originally read it on a book about managing lists with majordomo around 2000 lots of things had happened but the majority of the reflexion keeps working, even when in their time was a humor post.

Publicado en Sin categoría | Deja un comentario

Lo bueno

Es que alguien lo subió a youtube (con sonido)

Digo mi cámara no tiene micrófono :P pero aquí esta el angulo que yo tome

:D seria el colmo que yo saliera en el otro video, que no es imposible ;), por cierto que fue el 7 de agosto cuando salí a hacer compras de ultimo minuto… como buen mexicano.

Publicado en Debraye, General, Web | Deja un comentario