gsettings set org.gnome.desktop.background show-desktop-icons false
Category Archives: Blog
Guardar archivo codificando como UTF-8 en VIM
En lugar de usar el habitual :w se debe usar :w ++enc=utf8 y eso es todo :)
Para mas info: :help ++enc
Como usar fuentes de Mac (dfont) en Linux
Utilice fondu para convertir los archivos dfont en archivos ttf y luego utilice fontmanager para instalar las fuentes en formato ttf.
Como montar imágenes dmg en Linux
Primero, toca determinar si la imágen esta comprimida o no usando el comando file: $ file nombre_imagen.dmg. Si devuelve algo como VAX COFF executable not stripped – version 376, la imágen está comprimida. Si devuelve algo como Macintosh HFS Extended version 4 data, la imágen no está comprimida.
Para montar una imágen no compprimida:
1 2 | modprobe hfsplus mount -t hfsplus -o loop nombre_imagen.dmg /media/nombre_imagen |
Y para montar una que no esté comprimida:
1 2 3 | dmg2img -i nombre_imagen.dmg -o nombre_imagen-uncompressed.img modprobe hfsplus mount -t hfsplus -o loop nombre_imagen-uncompressed.img /media/nombre_imagen/nom |
Incrementar o decrementar un numero en VIM
Simplemente ponga el cursor sobre un número y <C-x> ó <C-a>.
Partituras para bajo de "Best of Fela Kuti".
El otro día me puse a sacar y transcribir los bajos del CD "Best of Fela Kuti". Hace poco estaba evaluando Musescore y aproveché para poner las transcripciones en digital. Es la primera ves que escribo algo en lenguaje musical así que recibo sugerencias, regaños, correcciones, etc.
Aqui van:
Running PureData patches on a Beagle Board.
PureData patch Running on a BeagleBoard from Rafael Vega on Vimeo.
If you don't want to read the whole thing and just want to play a PD patch on your
BeagleBoard, read part 2 of this article.
0. Motivation.
-
There is a large number of open-source software tools for working with audio. From low level programming tools to full-fledged digital audio workstations. On another side, there are musicians, producers and sound designers who use many hardware tools and there are few open-hardware alternatives for musical applications.
-
Audio designers, musicians and producers don't usually have software development skills and need graphic tools for audio processing. Many of them want to take their algorythms to stage or to the studio "in a box".
This is a small step towards the possible development of an open and portable audio processing platform.
Convertir NSData a NSDictionary
1 2 3 | CFPropertyListRef plist = CFPropertyListCreateFromXMLData(kCFAllocatorDefault, (CFDataRef)data, kCFPropertyListImmutable, NULL); NSDictionary* dict = [(NSDictionary*)plist autorelease]; NSLog(@"%@",[dict description]); |
PEAR en Mac OS Lion.
Pear es un comando que sirve para instalar paquetes de php. Así se activa en Mac OS Lion:
1 2 | sudo php /usr/lib/php/install-pear-nozlib.phar sudo pear upgrade pear |
Y en php.ini:
1 | include_path = ".:/php/includes:/usr/lib/php/pear" |
Luego para instalar algún paquete (PHPUnit, por ejemplo):
1 2 3 4 | sudo pear channel-discover pear.phpunit.de sudo pear channel-discover pear.symfony-project.com sudo pear channel-discover components.ez.no sudo pear install phpunit/PHPUnit |
Incluir cakephp como un submodulo de GIT.
1. Crear una nueva instalación de cake (cake 2.0 edge en este caso):
1 2 3 4 | cd /path/to/project/repo git clone git://github.com/cakephp/cakephp.git server cd server git checkout origin/2.0 |
2. Borrar la carpeta y el repositorio de cake y agregarlos de nuevo como sudmodulo:
1 2 3 4 5 6 7 8 | rm -rf lib rm -rf .git rm .gitignore git commit -m "Estructura de directorios para la nueva app basada en cake 2.0" cd .. git submodule add git://github.com/cakephp/cakephp.git server/cake20 cd server/cake20 git checkout origin/2.0 |
3. Configure cake para que entienda la nueva estructura de directorios.
1 2 3 | cd server/cake20 rm -rf app ln -s ../app ./app |
Cambie esta línea en app/webroot/index.php y en /app/webroot/test.php:
1 | define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'cake20' . DS . 'lib'); |
4. Listo! Guarde sus cambios:
1 | git commit -m "Configuración base de cakephp" |
5. Ñapa: Un .gitignore mas sensible:
1 2 3 4 5 6 7 8 9 | server/app/tmp !server/app/tmp/cache/models/empty !server/app/tmp/cache/persistent/empty !server/app/tmp/cache/views/empty !server/app/tmp/logs/empty !server/app/tmp/sessions/empty !server/app/tmp/tests/empty server/app/Config/database.php server/app/Config/passwords.php |
6. Para después clonar el repo y que todo funcione:
1 2 3 4 5 6 7 | cd /path/to/project git clone http://url/del/repo.git repo cd repo git submodule init git submodule update cd server/cake2.0 ln -s ./app ../app |