Data structures
* tuples - ( ) - inmutable
* lists - [ ] - changeable
* dictionary - { } changeable # Hash concept in Perl
keys()
values()
__contains__(key)
* Strings are immutable
* None
* True
* False
To access the last element: [-1] # Same idea as in Perl
For lists:
append()
extend()
pop(0) or pop() # The last element of the list is removed
Wednesday, August 10, 2011
Tuesday, August 9, 2011
Navidad 2010
PARA ESTA NAVIDAD 2010 y PARA TODO TIEMPO
Padre, cuando el mundo me empuja a buscar el poder y ejercerlo,
cuando la sociedad nos impulsa a someter al semejante...
Que me rebose tu Palabra de Amor, Señor...
Que me sostenga mi confianza en Ti...
Y que me mueva la vocación de servir al prójimo,
que mi ánimo sea humilde,
que mi Fuerza seas Tú,
que mi paz sea contar Contigo...
Señor, que sea testimonio de entrega generosa,
que me haga pequeño para ser grande Contigo,
que me haga último para ser el primero a tu lado.
Señor, enséñanos a mirar a las personas
igual que Tú las miras… ¡Dispuesto a Servirlas!
Señor, Tú que eres Bueno y Misericordioso,
danos un corazón sencillo, humilde, atento y amable
que no busque ser servido, sino servir.
Enséñanos a mirar al mundo con los ojos que Tú lo miras.
Tú, Señor, sabes mucho mejor que nosotros
aquello que nos conviene, antes que te lo pidamos.
Ten Misericordia de nosotros y no nos dejes caer en la tentación
del poder, prestigio o vanagloria que nos alejen de Ti,
y enséñanos a saber pedirte no lo que deseamos,
sino lo que realmente nos conviene y Tú quieres darnos.
Señor, ayúdanos Tú a ser generosos y serviciales
con nuestros hermanos más cercanos que nos rodean
en nuestro trabajo, familias, en cualquier lugar donde estemos,
para ser capaces de compartir con ellos
todos los dones que Tú nos regalas cada día
para ponerlos al servicio de las personas que lo necesiten. Amén.
'Obras son amores y no buenas razones'
The Gracious Time
By William Shakespeare
Some say that ever 'gainst that season comes
Wherein our Saviour's birth is celebrated,
The bird of dawning singeth all night long:
And then, they say, no spirit date stir abroad;
The nights are wholesome; then no planets strike,
No fairy takes, nor witch hath power to charm,
So hallow'd and so gracious is the time.
Friday, August 5, 2011
Convert WAV files to MP3 in Ubuntu
#!/bin/bash
# name of this script: wav2mp3.sh
# wav to mp3
for i in *.wav; do
if [ -e "$i" ]; then
file=`basename "$i" .wav`
lame -h -b 192 "$i" "$file.mp3"
fi
done
# name of this script: wav2mp3.sh
# wav to mp3
for i in *.wav; do
if [ -e "$i" ]; then
file=`basename "$i" .wav`
lame -h -b 192 "$i" "$file.mp3"
fi
done
Thursday, August 4, 2011
Purpose
I want to live my life like a pilgrim, with gratitude and humility, not as a tourist.
Jeb Spencer
Taken from: http://theway-themovie.com/blog/2010/11/news/the-way-a-love-letter-to-spain-and-galicia/#comment-1604
Tuesday, August 2, 2011
Friday, July 29, 2011
Sonría, por favor
Ayer mi sobrina de cuatro años le preguntaba a su madre: "Mamá, ¿por qué la gente va por la calle enfadada? Van todos tan serios..." Tanta sabiduría enmarcada en tan escasos años, aplastante y maravillosa en su lógica infantil que ya la quisiéramos los adultos en muchas ocasiones. Crecemos en edad, y así vamos aprendiendo a sumar preocupaciones, sarcasmo, rencor, estulticia, hipocresía, ... Y así salimos cada mañana al mundo, con la máscara de la seriedad por bandera, alienados de nuestra condición humana. Lejos quedan los patios de juegos de nuestra infancia, adormecida la inocencia de esos primeros años donde sólo importaba el hoy y las inmensas posibilidades que nos esperaban tras cada hora. Solo tenemos que echar un vistazo a los plúmbeos noticiarios de cada día para comprobar lo necesario que es recuperar la sonrisa, relacionarnos a través de ella, incorporar su magia a nuestra realiad cotidiana para acercar un poco más esa olvidada visión de la niñez. Y además todo son ventajas: es gratis, contagiosa, terapeútica y nos hace mucho más guapos a todos.
"Una sonrisa es más barata que la luz eléctrica, pero ilumina lo mismo". Abbé Pierre
Thursday, July 28, 2011
Greyhounds sufferings
FREE AT LAST
Racing days are over
Thought the pain would go away
But soon I learned a different fate
Was headed straight my way
He reached his hands into my cage
And pushed me out once more
I glanced at all my weary friends
As he led me out the door
It hurts to walk; it hurts to stand
Been through all I could endure
But all my pains are nothing that
Somebody's love could not cure
I'm pushed against a concrete wall
And know I've failed the test
He said I wasn't fast enough
And reached into his vest
I close my eyes and cower
As I shake, my senses dull
Then I feel the barrel of a gun
Against my skull
Isn't there a better way
To entertain a crowd?
But my thoughts are interrupted
By a noise so hard and loud
I'm just another failure
Racing to my final day
And sometimes all the winners
Will lose a race someday
They call it an "exciting sport"
They say that it's humane
But a sport that always ends in death
To me, is not a game
Copyright 2001 Lynn Kargol
BLOOD SPORT (A greyhound’s last words)
"I lie on my side. I am dying.
A female blue-brindle greyhound,
Living to run.
Speed was my gift from the gods.
The gift, a headlong dash to death.
Once I dreamed of running in an open field.
No muzzle, no pain, running freely.
I am in a field now.
Eighteen acres of death.
The bullet was meant for my brain.
To be a quick death. Painless.
The bullet entered my neck.
The pain rages… when will it end?
Will there be another bullet to speed my death?
No. Bullets are not to be wasted on dogs.
We were dollar signs
Hurtling down the track.
Together a flash of colors:
Brindle, blue, black, red, white, fawn.
I was too slow to last.
Too slow to make it to age two.
A throw-away life.
When death comes I will not be alone.
There are scores of us. Thousands.
Brindle, blue, black, red, white, fawn.
We, who never knew an open field,
Have found our own field.
It is soaked with our blood.
Once I dreamed of being held in someone’s arms.
Caressed, petted, loved.
All dreams are ended now in this field.
The darkness is taking me over.
Lime is thrown on my defeated, discarded body.
My heart howls out ...
Let my dying matter,
Let my dying be the last.
The light dims out.
Remember, remember, remember."
Copyright 2002 Juliet Law Packer
Taken from http://www.grey2kusaedu.org/education/poems.html
Racing days are over
Thought the pain would go away
But soon I learned a different fate
Was headed straight my way
He reached his hands into my cage
And pushed me out once more
I glanced at all my weary friends
As he led me out the door
It hurts to walk; it hurts to stand
Been through all I could endure
But all my pains are nothing that
Somebody's love could not cure
I'm pushed against a concrete wall
And know I've failed the test
He said I wasn't fast enough
And reached into his vest
I close my eyes and cower
As I shake, my senses dull
Then I feel the barrel of a gun
Against my skull
Isn't there a better way
To entertain a crowd?
But my thoughts are interrupted
By a noise so hard and loud
I'm just another failure
Racing to my final day
And sometimes all the winners
Will lose a race someday
They call it an "exciting sport"
They say that it's humane
But a sport that always ends in death
To me, is not a game
Copyright 2001 Lynn Kargol
BLOOD SPORT (A greyhound’s last words)
"I lie on my side. I am dying.
A female blue-brindle greyhound,
Living to run.
Speed was my gift from the gods.
The gift, a headlong dash to death.
Once I dreamed of running in an open field.
No muzzle, no pain, running freely.
I am in a field now.
Eighteen acres of death.
The bullet was meant for my brain.
To be a quick death. Painless.
The bullet entered my neck.
The pain rages… when will it end?
Will there be another bullet to speed my death?
No. Bullets are not to be wasted on dogs.
We were dollar signs
Hurtling down the track.
Together a flash of colors:
Brindle, blue, black, red, white, fawn.
I was too slow to last.
Too slow to make it to age two.
A throw-away life.
When death comes I will not be alone.
There are scores of us. Thousands.
Brindle, blue, black, red, white, fawn.
We, who never knew an open field,
Have found our own field.
It is soaked with our blood.
Once I dreamed of being held in someone’s arms.
Caressed, petted, loved.
All dreams are ended now in this field.
The darkness is taking me over.
Lime is thrown on my defeated, discarded body.
My heart howls out ...
Let my dying matter,
Let my dying be the last.
The light dims out.
Remember, remember, remember."
Copyright 2002 Juliet Law Packer
Taken from http://www.grey2kusaedu.org/education/poems.html
Subscribe to:
Posts (Atom)
