martes, 13 de octubre de 2009

<Audio> play

I've created a simple script that will add an audio player next to each mp3, ogg or oga link, using the HTMLv5 audio element (it requires a web browser that supports it).
The size and style of the audio player controls depends on the browser you are using.

You can check it out at UserScripts:

The script is in fact shorter than this entry :P ..very simple but I still found it interesting to do.

Any suggestion, modification or just feedback is welcome.

Dulce introducción al caos (sweet introduction to chaos)

Extremoduro - Dulce introducción al caos

"Literal" English translation for spanish learners

I'm sorry if the english is grammatically incorrect here, but I think it's still understandable and it might be better this way so that it can help people learning Spanish to see the relationship between the words from both languages.

¿Cómo quieres que escriba una canción?
How do you want that I write a song?

Si a tu lado no hay reivindicación.
If at your side there's no demand.

La canción de que el tiempo no pasara,
The song about the time not running,

donde nunca pasa nada.
where it never happens anything.

Una racha de viento nos visitó,
A gust of wind visited us,

y al árbol ni una rama se le agitó.
and to the tree no branch was shaked.

La canción de que el viento se parara,
The song about the wind stopping,

donde nunca pasa nada.
where it never happens anything.

Un otoño el demonio se presentó,
In Autumm the demon introduced himself,

fue cuando el arbolito se deshojó.
it was when the leaves of the little tree fell.

La canción de que el tiempo se atrasara,
The song about the time going back,

donde nunca pasó nada.
where it never happens anything.

Una racha de viento nos visitó,
A gust of wind visited us,

pero nuestra veleta ni se inmutó.
but our vane didn't even noticed.

La canción de que el viento se parara,
The song about the wind stopping,

donde nunca pasa nada.
where it never happens anything.

Mientras tanto pasan las horas,
Meanwhile the hours run out,

sueño que despierto a su vera,
I dream that I wake up next to her,

me pregunto si estara sola,
I wonder if she will be alone,

y ardo dentro de una hoguera.
and I burn inside a fire.

Como quieres que escriba una canción?
How do you want that I write a song?

Si a tu lado he perdido la ambición.
If next to you I've lost the ambition.

La canción de que el tiempo no pasara,
The song about time not running,

donde nunca pasa nada.
where it never happens anything.

Se rompió la cadena que ataba el reloj a las horas,
It was broken the chain that tied the clock to the hours,

se paró el aguacero, ahora somos flotando dos gotas,
it was stopped the rain, now we are two floating drops,

agarrado un momento a la cola del viento me siento mejor,
grabbing for a while the tail of the wind I'm feeling better,

me olvidé de poner en el suelo los pies y me siento mejor.
I forgot of putting on the ground the feet and I'm feeling better.

¡volar, volar!
fly! fly!

Una racha de viento nos visitó,
A gust of wind visited us,

y a nosotros ni el pelo se nos movió.
and to us not even the hair moved.

La canción de que el viento se parara,
The song about the wind stopping,

donde nunca pasa nada.
where it never happens anything.

Ya no queda una piedra en pie,
There's no stone left in place,

porque el viento lo derribó,
because the wind demolished it,

no, no hay esa canción.
no, there's no that(such) song.

Ya no queda nada de ayer,
There's left nothing from yesterday,

porque el viento se lo llevó,
because the wind took it,

no, no hay esa canción.
no, there's no that(such) song.

lunes, 12 de octubre de 2009

Depente (It depends)

Jarabe de palo lyrics: Depende

"Literal" English translation for spanish learners

Que el blanco sea blanco
That the white is white

y que el negro sea negro,
and that the black is black,

que uno y uno sean dos
that one and one is two

porque exactos son los números........ depende.
because exacts are the numbers........ it depends.

Que aquí estamos de prestao,
That here we are temporarily,

que hoy el cielo está nublao,
that today the sky is cloudy,

que uno nace y luego muere,
that one is born and later dies,

y este cuento se ha acabao........ depende.
and this tale has ended........... it depends.

chorus {

Depende, ¿de qué depende?,
It depends, what does it depend on?

de según como se mire todo depende.
on how you look at it, everything depends.


Qué bonito es el amor,
How beautiful love is,

más que nunca en primavera,
more than ever in spring,

que mañana sale el sol
that tomorrow raises the sun

porque estamos en agosto........ depende.
because we are in August........ it depends.

Que con el paso del tiempo
That with the running of the time

el vino se hace bueno,
the wine turns good,

que todo lo que sube baja
that everything that goes up goes down

de abajo a arriba y de arriba a abajo........ depende.
from down to up and from up to down.......... it depends.


Que no has conocido a nadie
That you have known no one

que te bese como yo,
that kisses you like I do,

que no hay otro hombre en tu vida
that there's no other man in your life

que de ti se beneficie........ depende.
that from you is getting...... it depends.

Y si quieres decir sí
And if you want to say yes

cada vez que abres la boca,
every time you open your mouth

que te hace muy feliz
that it makes you very happy

que sea el día de tu boda............ depende.
that is the day of your marriage... it depends.



La rosa de los vientos (The rose of the winds)

Mägo de Oz song lyrics: La rosa de los vientos

"Literal" English translation for spanish learners

Si siembras una ilusión
If you seed an illusion

y la riegas con tu amor
and you water it with your love

y el agua de la constancia
and the water of the constance

brotará en ti una flor
it will grow in you a flower

y su aroma y su calor
and its smell and its warmth

te arroparán cuando algo vaya mal
will cover you when something goes wrong

Si siembras un ideal
If you seed an ideal

en la tierra del quizás
in the land of the "maybe"

y lo abonas con la envidia
and you fertilize it with the envy

será difícil arrancar
it will be hard to remove

la maldad
the evilness

de tu alma si hecha raíz
of your soul if it grows root

chorus {

y que mi luz te acompañe
and that my light be with you

pues la vida es un jardín
because the life is a garden

donde lo bueno y lo malo
where the good and the bad

se confunden y es humano
are mixed and it's human

no siempre saber elegir
to not know always what to choose

Y si te sientes perdido,
And if you are feeling lost,

con tus ojos no has de ver.
with your eyes you must not see.

Hazlo con los de tu alma
Do it with the ones in your soul

y encontrarás la calma
and you will find the calm

Tu rosa de los vientos seré
Your rose of the winds I'll be


Si siembras una amistad
If you seed a friendship

con mimo plántala
with tenderness plant it

y abónala con paciencia
and fertilize it with patience

Pódala con la verdad
Cut it with the truth

y transplántala con fé
and transplant it with faith

Pues necesita tiempo y crecer
because it needs time and to grow

Si te embriagas de pasión
If you are drunk of passion

y no enfrías tu corazón
and you dont cold your heart

tartamudearán tus sentidos y quizás
your senses will stutter and maybe

hablarás con el calor y no la razón
you'll speak with the hot and not the reason

Es sabio contar hasta diez
It's wise to count to ten


martes, 6 de octubre de 2009

Instant Translate Bookmarklet

I've made a bookmarlet to instant translate a selection of text.

Drag this link and drop it into your bookmark bar: [Translate(en)]

You just have to select any text in a website (not too much or else it won't work) and it will automatically translate any text from any language into english (for other languages just edit the lang='en'; at the beggining of the url to suit your language code). If there's no selection of text it will translate the whole website instead.

jueves, 27 de agosto de 2009

Microshop photo fail

Not long ago, a Photoshop Disaster was found in the Microsoft Polish website.Microsoft photoshopped a black man out of a picture for their Polish website and replaced it with a white guy.

Now, there's a meme initiated in techcrunch about modificated versions of the picture.
So.. I decided to give a try for the contest :P
And.. given that Microsoft company and marketing decisions are so upside down... I thought that perhaps if I did this I could try to fix it.

lunes, 4 de mayo de 2009

The Magic "System Request" key in Linux

There's something useful that I keep forgetting when I'm using Linux, something that I would like to keep a record about, and I thought that a good way to do it would be by writing it in this blog.

The System Request key, "SysRq" in English keyboards ("Pet Sis" in Spanish ones, short for "Petición de Sistema") is the useless-looking key that is sitting right next to your (also useless-looking) "Pause" key.

However, this key plays an important role for a Linux System administrator, because it can be used to send system calls directly to the kernel. Sometimes, speaking directly to the kernel is the only way to save the day.

For example... imagine that suddenlty your whole system hangs. It's frozen... there's some process using 100% of the resources of the system.. your mouse doesn't move.. the Control+Alt+F2 key doesnt work... you can't do anything! Arghh!! what to do!!??

In Windows the only possible solution to this situation would be to forcefully disconnect your PC, make it loose any data you had sent and take the risk to damage your hard disk, motherboard, CPU and all the hardware that you were using at that time.

However, if you are using the Linux kernel, there's still some chance for salvation.... sending a System Request...

Press AltGr+SysRq+R (unRaw, releasing your keyboard from X control)
Press AltGr+SysRq+E (tErminate, sending a SIGTERM to close gracefully the running programs)
Press AltGr+SysRq+I (kIll, send a SIGKILL to inmediatelly close the remaining programs)
Press AltGr+SysRq+S (Sync, saving the data to the disk so that you won't loose the last changes)
Press AltGr+SysRq+U (Unmount all the disks, so that they won't be damaged)
Press AltGr+SysRq+B (reBoot the system)


If you are like me, you'll forget this shortcuts easily.
You can do like me, and write in a blog about that... or try to remember it by using some hints. Here are some of them:
"Reboot Even If System Unbelievably Broken"
BUSIER backwards
"Raising Elephants Is So Utterly Boring"
You can also Sync the disks before terminating programs if you want:
"Raising Skinny Elephants Is Utterly Boring" (because if they are fat it would rather be utterly deadly...)

Note: if you are not using a QWERTY keyboard the keys can be different for you
You can also read more about other SysRq shorcuts here:

sábado, 2 de mayo de 2009


Lately I've started watching a series that has kept me stuck to the screen the whole day!

"Heroes" is a science fiction drama about normal people who suddenly start discovering that they have some special abilities. Even thought the series is called "Heroes" you won't see the stereotypical superhero that wear bright colors, long panties and is wearing the underwear on top, this people is just normal people... they just suddenly discover that they have special abilities, slowly growing on them.

The plot of each season has small story arcs built into the series' overall large story arc plot. Each season of Heroes is designed to involve ordinary people who discover extraordinary powers, and how these abilities take effect in the character's lives. There's a mix of small stories that create a tangled pattern that keeps you wondering how they relate each other...

I'm not really very fond of American comics about superheroes (with only a few exceptions...) but this series is really cool!! ...I specially like some characters like the japanese guy (Hiro Nakamura) who is a funny boy (you may say "otaku") who one day discovers that he can control time and goes screaming YATAAAA!!! running all around his workplace. There are also some charismatic characters like a painter who can paint scenes from the future when he is on drugs. I won't say much more to avoid any more spoiling...

So... in case you want to start watching a bit.. I'll post here the first 3 episodes (I've always thought that you have to watch at least 3 episodes of a series before being able to judge). However... be warned.. they are long (40min each!)... but they are also addicting!

(Note: The videos in Tu.TV (you can find also more episodes there) are low quality, and sometimes they suddenly stop. If that happens you can also find the videos in seriesyonkis, but if you don't know spanish you'll have to choose the english audio version with spanish subtitles)

Heroes Season 1 Episode 01


Heroes Season 1 Episode 02


Heroes Season 1 Episode 03


There are also some graphic novels (comics) about Heroes.

You can find the comics in the official page or also in the wikipedia article about this comics.

There's also a wiki where you can find a lot more information about the Heroes series, but I recommend you all to not enter if you have not watched at least a few seasons, because it's filled with spoilers.

Now I'll go.. I still have much to watch ;) ...see ya! -Teleports himself- >.<

jueves, 30 de abril de 2009

Apt-linker: easy way to install apps by clicking "apt-get install" links

Since the day that Ubuntu Gutsy was released it has been including a useful tool that allows package installing directly from the browser by means of "apt://" links:

However, the usage of this tool is not very extended in the web. that's why I've thought of writting a small script for automatically creating apturls

I hope that this script is able to ease the life of GNU/Linux users in Ubuntu (or Debian) who browse the Internet searching for software, tutorials, etc. and find apt-get/aptitude lines all around.

What this script does is to turn lines of text like this:

sudo apt-get install emacs emacs-goodies-el windows-el jde js2-mode
aptitude install freepats timidity-interfaces-extra timidity-el tuxguitar

into clickable links that will launch a graphical installer for each of the packages in the line.
Like this:

sudo apt-get install emacs emacs-goodies-el windows-el jde js2-mode
aptitude install freepats timidity-interfaces-extra timidity-el tuxguitar

If this links don't work for you then it means that you are not using Ubuntu or that you have a Debian derivative that doesn't have the apturl package installed. You can try to install it doing this:

sudo aptitude install apturl
# (this might be probably the last time you'll have to copy that on a terminal)

If you want to install this script on Firefox you will need first to install the Greasemonkey add-on (there's also versions of this add-on for other browsers, but I've not tried that).

Once you have Greasemonkey installed you will be able to install the script from HERE (and you may want to browse that website too, there are a lot of other interesting scripts).

For the making of this script I've used the GREAT help of the findAndreplace algorithm by James Padolsey, thanks!

The Ethernal Flame (God wrote in Lisp)

I was taught assembler in my second year of school.
It's kinda like construction work -- with a toothpick for a tool.
So when I made my senior year, I threw my code away,
And learned the way to program that I still prefer today.

Now, some folks on the Internet put their faith in C++.
They swear that it's so powerful, it's what God used for us.
And maybe it lets mortals dredge their objects from the C.
But I think that explains why only God can make a tree.

For God wrote in Lisp code
When he filled the leaves with green.
The fractal flowers and recursive roots:
The most lovely hack I've seen.
And when I ponder snowflakes, never finding two the same,
I know God likes a language with its own four-letter name.

Now, I've used a SUN under Unix, so I've seen what C can hold.
I've surfed for Perls, found what Fortran's for,
Got that Java stuff down cold.
Though the chance that I'd write COBOL code
is a SNOBOL's chance in Hell.
And I basically hate hieroglyphs, so I won't use APL.

Now, God must know all these languages, and a few I haven't named.
But the Lord made sure, when each sparrow falls,
that its flesh will be reclaimed.
And the Lord could not count grains of sand with a 32-bit word.
Who knows where we would go to if Lisp weren't what he preferred?

And God wrote in Lisp code
Every creature great and small.
Don't search the disk drive for man.c,
When the listing's on the wall.
And when I watch the lightning
Burn unbelievers to a crisp,
I know God had six days to work,
So he wrote it all in Lisp.

Yes, God had a deadline.
So he wrote it all in Lisp.

This song is part of the Roundworm album.