Feb 24 2009

¿Usas demasiado ‘cd’? Tenemos la solución, j

blaxter

Esta pequeña gran utilidad, j, te permite saltar a directorios donde hayas estado anteriormente.

Simplemente incluye en tu .bashrc:

source /path/to/j.sh

A partir de ese momento j irá aprendiendo en qué directorios estás y cuánto tiempo estás en ellos, para que posteriormente al ejecutar $ j something, hará un cd al directorio más usado que sea =~ /something/. Por ejemplo:

 
:~$ j red
:~/devel/redmine$

Quizá pueda parecer una tontería, pero después de usarlo te aseguro que no opinarás lo mismo.


Feb 14 2009

Last.fm automagic Badges reborn

blaxter

I used to be a user of this badges for last.fm, I really like the one telling you how many songs per week you listen. A few weeks ago the author no longer maintains this badges and a lot of people got an image of "not longer available", but the author also give you the code, so this morning I fork it in my github, and make some minor changes for adapting it to my hosting (and my habits).

So here we have a running and functional Last.fm automagic Badges, enjoy it:


User:

Type:

Style:

Color:

Copy/paste the above BBcode to your profile settings.


Feb 10 2009

How to change a light bulb?

blaxter

- How many prolog programmers does it take to change a light bulb?
- No

That's because:

 
?- change_bulb(prolog_programmer, X)
no.

Obviously.


Feb 8 2009

La nueva Formula 1, explicada por Vettel

blaxter

No queda mucho para comience, el 29 de marzo en Melbourne, la nueva temporada de Formula 1. Una temporada con importantes y radicales cambios técnicos en los coches (como kers y neumaticos slicks). Red Bull Racing ha hecho un vídeo en el que Sebastian Vettel nos explica todos estos cambios, imprescindible verlo:

En resumen, nos lo vamos a pasar pipa.


Feb 4 2009

Añadir soporte de links spotify en firefox

blaxter

Quien dice spotify, podría decir ed2k o el protocolo que vuesa merced guste. El proceso siempre es el mismo:

  1. Abrir about:config en firefox
  2. Añadir par de booleanos (valores lógicos):
    • network.protocol-handler.external.spotify a true
    • network.protocol-handler.warn-external.spotify a false
  3. Añadir una cadena network.protocol-handler.app.spotify con valor /usr/bin/spotify
  4. Crear un ejecutable (en este caso en /usr/bin/spotify y teniendo en cuenta dónde lo instalamos anteriormente)
     
    #!/bin/sh
    exec wine "C:\Program Files\Spotify\spotify.exe" /uri "$@"