Superkb brand new Wiki

Update: We have moved the Wiki to a new server: http://superkb.org/wiki/. Thanks to SourceForge and its MediaWiki implementation, the Superkb project now has its own Wiki. For now, it is only in English. I’m really looking forward to adding a full Spanish equivalent. I think this will make it a lot easier to keep the … Leer más

Operación contraintuitiva de «patch»

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 … Leer más

Remplazo interactivo en vim

Una nota rápida para que no se me olvide la siguiente vez. Para remplazar texto en vim, confirmando cada remplazo, basta con agregar la opción «c» al comando «s». Si nuestro comando original era %s/viejo/nuevo/g entonces se usa %s/viejo/nuevo/gc. Cada posible remplazo se sombrea y vim solicita confirmación con las siguientes opciones: y = yes, … Leer más