Archive for the ‘Mafufadas’ Category.
2010-08-01, 22:19

From XKCD
Casualidad de la vida. recientemente dije por Twitter lo siguiente:
Debatir si existe o no existe “Dios” es como debatir si el 0 es positivo o negativo. La realidad es que ambos son el mismo número.
Para mí, +0 == -0 y la comparación me gusta. Y sí, ya me criticaron… pero en fin.
En código me lo imagino así:
function dios_existe() {
if (sign(0) == 1) return True;
if (sign(0) == -1) return False;
return dios_existe() /* jaja, porque esto pasa con el ser humano */
}
2010-08-01, 22:18

From XKCD
What a coincidence. I recently said the following over Tweeter (translated from Spanish):
To debate if “God” exists or not is like arguing if 0 is positive or negative. The thruth is both are the same number.
For me, +0 == -0 and I like the analogy. And yes, I have already been criticized… but, oh well.
In code I think it could be like this:
function dios_existe() {
if (sign(0) == 1) return True;
if (sign(0) == -1) return False;
return dios_existe() /* haha, because that's just what happens with human beings */
}
2010-02-12, 1:45

Por azares del destino encontré que Google ya tiene una pizca de Tijuana lista en el Street View de Google Maps.
Al parecer alguien vio el carro en junio de 2009, se la pasó a algún amigo y éste lo blogueó! :-O
Actualización 1: La mejor foto que publicaron los de tijuanayo.com es la del vehículo de Google siendo cuestionado por la policía.
Actualización 2: También en tijuanayo.com observaron que ya está en línea e hicieron un post al respecto.
Grandioso ¿no? Ojalá pronto podamos tener el resto de los servicios. Particularmente, saber cómo llegar de A a B con optimizaciones, como en San Diego, pero específicas a la localidad. Estas son las optimizaciones que me imagino en Google Maps para Tijuana:
- Usar sólo transporte público
- Usar sólo automóvil
- Evitar boulevares y aprovechar vías rápidas
- Evitar tráfico (en tiempo real)
- Evitar baches y charcos (en tiempo real)
- Evitar balaceras (en tiempo real)
- Parar por una gasolinera non-rata (en tiempo real?)
- Evitar el tren (en tiempo real)
:-)
2009-12-24, 13:55
This is a translation of my previous post Etiqueta en el citado de mensajes de e-mail.
Introduction
The most ignored Internet Etiquette rule is that of the posting style when replying to an e-mail message.
By “quoting” I mean the inclusion of a previous message in a new one (for example, a reply) with the intent of stating the relevance of the answer itself in the original context. I would say “Dan, I don’t know what are you talking about. Please quote the original e-mail in your reply next time in order to know what were you replying to.”
Almost every e-mail client do quote the original message in the reply, at least by default. That is good, and it contributes to the “netiquette”, but its abuse has made it completely useless.
Continue reading ‘Etiquette in e-mail message quoting’ »
2009-12-22, 11:52
Este es un ejemplo de lo que NO se debe hacer al diseñar un software.
[Sun Dec 20 14:37:42 -0800 -- alvarezp@octavio:~/patch-test]
$ ls -l
total 24
-rw-r--r-- 1 alvarezp alvarezp 7127 Dec 20 14:37 slpcall.bak
-rw-r--r-- 1 alvarezp alvarezp 7127 Dec 20 14:37 slpcall.c
-rw-r--r-- 1 alvarezp alvarezp 7232 Dec 20 14:37 slpcall.c.2
[Sun Dec 20 14:37:43 -0800 -- alvarezp@octavio:~/patch-test]
$ diff -u slpcall.c slpcall.c.2 > p
[Sun Dec 20 14:37:57 -0800 -- alvarezp@octavio:~/patch-test]
$ cat p
--- slpcall.c 2009-12-20 14:37:36.000000000 -0800
+++ slpcall.c.2 2009-12-20 14:37:36.000000000 -0800
@@ -66,6 +66,11 @@
slpcall->slplink = slplink;
+ slpcall->wait_for_socket = FALSE;
+ slpcall->xfer = NULL;
+ slpcall->dc = NULL;
+ slpcall->branch = NULL;
+
msn_slplink_add_slpcall(slplink, slpcall);
slpcall->timer = purple_timeout_add_seconds(MSN_SLPCALL_TIMEOUT, msn_slpcall_timeout, slpcall);
[Sun Dec 20 14:38:00 -0800 -- alvarezp@octavio:~/patch-test]
$ diff -u slpcall.bak slpcall.c # .bak is a backup of original
[Sun Dec 20 14:38:19 -0800 -- alvarezp@octavio:~/patch-test]
$ patch < p
patching file slpcall.c
Hasta aquí, todo bien.
[Sun Dec 20 14:38:53 -0800 -- alvarezp@octavio:~/patch-test]
$ cp slpcall.bak slpcall.c
[Sun Dec 20 14:39:02 -0800 -- alvarezp@octavio:~/patch-test]
$ mkdir x
[Sun Dec 20 14:39:04 -0800 -- alvarezp@octavio:~/patch-test]
$ mv slpcall* x/
[Sun Dec 20 14:39:06 -0800 -- alvarezp@octavio:~/patch-test]
$ ls -l
total 8
-rw-r--r-- 1 alvarezp alvarezp 410 Dec 20 14:37 p
drwxr-xr-x 2 alvarezp alvarezp 4096 Dec 20 14:39 x
[Sun Dec 20 14:39:08 -0800 -- alvarezp@octavio:~/patch-test]
$ diff -u x/slpcall.c x/slpcall.c.2 > px
[Sun Dec 20 14:39:20 -0800 -- alvarezp@octavio:~/patch-test]
$ cat px
--- x/slpcall.c 2009-12-20 14:39:02.000000000 -0800
+++ x/slpcall.c.2 2009-12-20 14:37:36.000000000 -0800
@@ -66,6 +66,11 @@
slpcall->slplink = slplink;
+ slpcall->wait_for_socket = FALSE;
+ slpcall->xfer = NULL;
+ slpcall->dc = NULL;
+ slpcall->branch = NULL;
+
msn_slplink_add_slpcall(slplink, slpcall);
slpcall->timer = purple_timeout_add_seconds(MSN_SLPCALL_TIMEOUT, msn_slpcall_timeout, slpcall);
[Sun Dec 20 14:39:22 -0800 -- alvarezp@octavio:~/patch-test]
$ patch < px
patching file slpcall.c.2
Hunk #1 FAILED at 66.
1 out of 1 hunk FAILED -- saving rejects to file slpcall.c.2.rej
¿La solución?
patch -p0 < px
2009-11-06, 10:54
Estaba revisando mi correo electrónico y quise mover un mensaje de una carpeta IMAP a otra en Opera, cuando de pronto:

El texto dice:
Uno o más de los mensajes seleccionados no tienen el cuerpo descargado localmente, ¿Desea que Opera descargue los cuerpos faltantes antes de la exportación (sumamente recomendado)?
:-D
2009-06-15, 22:25
Today I passed the Cisco Composite exam, which extends my CCNA certification for three more years, and is a great leap towards certification in the CCNP program.
I just have to wait for Cisco to mark my exam as “valid”. I don’t find any reason for them not to.
I gotta take some rest for a few days. Next stop: ISCW.