Inigo Quilez   ::     ::  
1402 blog posts, written between 2008 and 2016. These are mostly short observations, funny thoughts and word playing. Some are embarrasingly corny, some more deep. I keep it here mostly a little time capsule for myself, organized by month:



<
August 2011
>
más eufemismos
2011-08-31
cuando lo aplica un humano, lo llaman metodología
cuando lo ejecuta una máquina, lo llaman algoritmo
meter aco, co, pro, compro, so, arre, entro
2011-08-29
acometo y cometo,
a veces prometo y me comprometo,
pero nunca someto, ni arremeto ni me entrometo

en la línea de este otro post
spells everywhere online
2011-08-27
you know when you register somewhere online and they ask you to retype some weird letter combinations? well, if you read those with spanish phonetics they really sound like spells from Harry Potter! (although they lack any meaning)



cuando te registras en alguna sitio web, amenudo te piden que teclees una combinación rara de caracteres. bueno, pues si los lees en castellano, fonéticamente, parece que estuvieras lanzando un hechizo de Harry Potter! (pero sin significado)
cagüenmismuertos
2011-08-25
nunca te pasa que tienes una idea super buena e inteligente, y que piensas "wooo, voy a apuntarme esto antes de que se me vaya el santo al cielo", y justo después de eso dices "baah, no hace falta apuntarla; es imposible que una idea como esta se me olvide, ni de palo". bueno, pues adivina, ¿sabes qué? ...
shit!
2011-08-24
you know when you come up with something very smart, and you think "oh boy, i should write this one down before i forget it", and then, right after that, you think "oh please, there is no way i can possibly forget this one, at all!"...? well, guess what.... :(
what's the matter with this one door?
2011-08-22
i was just saying that despite i have been crossing this door almost every day for the last two years, i still don't get it right and i keep pushing it inwards when i should be pulling it outwards. the most freaky thing here is that i had no problems at all to get used to every other routine that i had to adopt when moving here or to my new apartments - like opening the door of the bathroom without looking to the handle or switching the light of your bedroom on despite being in complete darkness, and in general all the regular abilities or skills you quickly develop though daily repetition.

i think there's definitely something weird going on between me and this one door.
¿qué pasa con esta puerta?
2011-08-21
llevo ya casi dos años que trabajo aquí. y aún así, cada día, sigo intentando abrir la puerta principal hacia adentro en vez de hacia afuera... siempre que me he mudado a una nueva casa, o a un nuevo trabajo, apenas me ha llevado un par de meses hacerme con esa rutina que te permite dar al interruptor de la luz a oscuras sin herrar, o abrir la puerta del cuarto de baño incluso cegado por las legañas, de manera automática. ¿por qué entonces, si incluso aquí en el trabajo me he hecho ya a mi despacho, tengo aún problemas con esta dichosa puerta?
one afternoon of coding
2011-08-17
this afternoon i decided to stay home. no roaming in the streets of the city, no sleeping in the park, no lunch with friends, no biking to the beach, no movies, no shopping, no nothing, not even internet or reading or writing, but a short coding session. i started and finished a small effect/sketch in a go. quality is no the best, but i needed to do this for a gig we have next week. besides, it's a good warming up for the upcoming coding days i will be having next months, those who are not 5, but 12 hours in a row. i can't wait!



after codding the dressing, shading an lighting, i programmed some procedural camera movements and animations for the gears and hammers, and exposed some of the parameters in the procedural animations though the keyboard. that way i could play music and improvise the camera changes and gear movements. that's what you see in the video in fact, me improvising for the first time with the just cooked effect, still warm from the oven, i mean, compiler.
skipping numbers
2011-08-15
when linearly searching for prime numbers, you don't really have to try every single number, but only every other number, cause half of them are even and therefore not prime. that gets rid of half the numbers you want to analyze. next, following the steps of Erastosthenes, you could decide not to try every other number, but one every three numbers. that would discard all multiples of three. rather than doing this as two separate steps, dicarding first multiples of two, and later multiples of three, both test could be done at once if the right jumping steps are taken:

5 6 7 8 9 10 11 12 13 14 15 16 17
. * . * * . * . * * .
. * . * . * . * .
. 2 . 4 . 2 . 4 .

if you start at 5, and you jump 2 numbers (until 7), then 4 (until 11), and then 2 again, then 4 again, and so forth, you keep skiping all multiples of 2 and 3 indeed. the pattern repeats every 6 units of course (5, 11, 17...), as that's the least common multiple of 2 and 3. so, now we are using two steps (2 and 4) to advance 6 units, which gives us a speed up of 3 compared to the brute force search, which tries every single number.

let's now try to take steps such that we automatically skip all multiples of 5 as well:


7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
. * * . * . * * . * . * * . * * * . * . * * * .
. * . * . * . * . * . * * . * . * * .
. * . . * . . * . * . * . * .
. 4 . 2 . 4 . 2 . 4 . 6 . 2 . 6 .

now the sequence of steps will allow us to skip 30 units (2*3*5). if we start counting at 11, the sequence is { 2 4 2 4 6 2 6 4 }, which is a 8 step sequence, meaning we are being 30/8 = 3.75 times more efficient than in brute force.

when taking 7 into account too, the step sequence skips 210 numbers in 48 steps, the sequence being {2 4 2 4 6 2 6 4 2 4 6 6 2 6 4 2 6 4 6 8 4 2 4 2 4 8 6 4 6 2 4 6 2 6 6 4 2 4 6 2 6 4 2 4 2 10 2 10}. the efficiency in this case is 210/48 = 4.375

we could keep doing this by adding more and more primes to skip in our search, but the sequences become really long very quickly, and the efficiency gained is not that impressive anymore:

primesperiodlength of sequencespeed up
221x 2.0
2, 362x 3.0
2, 3, 5308x 3.7
2, 3, 5, 721048x 4.4
2, 3, 5, 7, 112310480x 4.8
2, 3, 5, 7, 11, 13300305760x 5.2
2, 3, 5, 7, 11, 13, 1751051092160x 5.5
2, 3, 5, 7, 11, 13, 17, 1996996901658880x 5.8

en estos últimos 20 minutos
2011-08-14
un pavo me para para informarme que la iñicleta le mola. le miro, "gracias, me lo dicen amenudo", "ah, ¿sí?", sonrisa y continúo caminando. es ya bastante tarde, i veo a Lázara que sale de la tienda de zapatos donde trabaja en Union Square. no es ella la que cierra la tienda esta noche, pero lleva prisa igualmente así que decido no entretenerla. colina arriba me encuentro con Silvia, que viene del Ambassador con tres colegas. qué extraño, se ve que "hoy no estaba nada petado de peña como siempre". llego a casa. es hora de hacer una de skype con los amigos mientras preparo la cena.
in the last 20 minutes
2011-08-13
a guy stops me and informs me that my bike is a beautiful one. i look, "i get this very often", "oh really", smile, and keep walking. it's late evening, and i see Lazara quiting the shoe shop where she works next to Union Square. somebody else is closing the shop tonight, but she is in a hurry today, so i don't stop by say "hello". uphill i find Silvia, who comes from the Ambassador with three friends of her. how weird, apparently "it wasn't any crowded today". this feels like a small village. i arrive home. time to skype-ing with friends while i cook my dinner.
apaga y vámonos
2011-08-11
más allá de que los discursos descaradamente manipuladores, o de las posturas de cero compromiso y puro partidismo sin pudor, de distorsiónes de realidades y cegueras generalizada, mi problema real fue que lo que debería haber sido un debate sano e interesante se convirtió en una discusión de verduleras, inaguantable y coñazo.

es más, llegó un día que tuve la sensación de estar viviendo sumergido una sopa espesa, donde sociedad, cultura y ocio estaban sistemáticamente y enfermizamente impregnados de empalagosa política nacioanlista vasca y española. y cuando todo apestaba y giraba en torno a una Unica Preocupación (con mayúscula) la sensación de asfixia colmó el vaso, y fue el momento de decir "apaga y vámonos", o, menos finamente, "a la mierda ya con todo, joder".

así que no me preguntes más por política salvo que me preguntes de verdad, o me haras vomitar.
like in the movies
2011-08-09
something one must do at least once: first, force yourself into some melancholic mood, then go alone to an almost empty dive bar in some dark corner of downtown, some random cold night in the middle of the week, grab a drink, listen to the two same persons sing to the broken karaoke machine over and over again, smile and say hello to that old lady who once was in fact a gentleman, and then spend the rest of the night chatting with the bar tender. just for the sake of the experience.
sorprender
2011-08-08
la hermana pirómana
con gente que aún no conoces bien
2011-08-06
no hables de política ni religión. ni te enzarces con maqueros anti-pecés. bueno, ya te dije que no hablases de religión.
no lo entiendo
2011-08-05
tengo el diccionario delante, y en "preciosidad" encuentro los sinónimos belleza, encanto, hermosura, perfección y atractivo, pero se olvidaron del más importante, que es tu nombre.

¡cheesy cutrón a muerte!
tópicos típicos
2011-08-04
én la misma línea
épocas épicas
2011-08-03
éstas que me toca vivir ahora
una plaga preciosa
2011-08-02
sobre el tema de la terraformación de Marte, mi primera reacción, la natural, es a asumir que se va a dar algún tipo de debate global de carácter ético. de la misma manera que algunas zonas de la tierra son protegidas, y del mismo modo que se declaran parques naturales y reserva con la intención de conservar la diversidad biológica y geológica, o incluso como mera muestra de admiración hacia la naturaleza y nosotros mismos, también me parecería razonable pensar en proteger Marte y cederle su derecho a disfrutar de su propia evolución natural.

pero claro, no hay nada más natural en el hombre, y hablo literalmente en el sentido más biológico, que la obsesión por conquistar nuevos territorios, sin importar lo lejos que estén o adversos que sean, sin pensarse dos veces las consecuencias para las tierras conquistadas. en cuanto hay una escasez de recursos o un deseo de enriquecimiento, los humanos tiramos la ética al suelo y nos centramos en el reto. no hay duda de que se ha hecho mucha ciencia, arte, tecnología y cultura alrededor del proceso de la conquista de nuevos mundos. pero aún así, no puedo evitar sentir que hay algo incorrecto, o cuanto menos irrespetuoso, y tal vez peligroso, en no desarrollar un análsis y debate previo.

en cualquier caso estoy seguro de que nunca se considerarán inquietudes conservacionistas ni éticas de este tipo, ni se pondrá en tela de juicio el proceso de la terrafromación de Marte, mucho menos el dilema de si simplemente debería ejecutarse o no.


por lo tanto, lo único que me queda a lo que dar vuletas, es este oxímoron, que es uno de los que caracteriza a nuestra especie: nos movemos por una insaciable colección de motivaciones horrendas, pero aún así producimos una cantidad infinita de belleza en el proceso de alcanzar los objetivos que nos mueven. pues tenemos que reconocer que nuestra ávida obsesión por la posesión y el poder, nuestro consumo ciego de recusos y nuestro modelo insostenible de crecimiento como motor de riqueza han producido siempre, si bien no intencionadamente, y amenudo através de mecanismos atroces, un deseo de superación de retos, una actitud de curiosidad y búsqueda de conocimiento, un impulso creativo del arte y la ciencia y en general un enriquecimiento de la cultura.

no sé qué decir. somos una puta plaga preciosa
a beautiful plague
2011-08-01
my first natural reaction is to assume that the project of terraforming Mars will trigger a big ethical debate... in the same way we protect certain areas and declare national parks on earth in sake of protection of diversity, and also as a gesture of humble admiration to nature (to ourselves), one would perhaps argue that keeping Mars intact or at least not messing too much with it, and letting it enjoy the right to follow its own evolution would be something to consider.

however it's human's nature to conquer new territories, no matter how far they are, without thinking twice about the consequences for the conquered lands. whenever there is a need for resources, or the will to become richer, humans put any morality to rest and go straignt for the challenge. there is no question that much science, technology, art and culture and many other beautiful things have been developed around the process of conquering new worlds. but, still, i can't help but feeling there is something wrong or disrespectful in doing so, without any previous debate and questioning.

in any way, i'm sure there will not be any sort of debate about how to which extent the terraforming of Mars should be executed, if at all.

therefore, what i'm left with at this point is the meaning of the aforementioned sort of oxymiron that describes us as species - we are insatiably driven by the most awful set of motivations, yet we produce infinite beauty on the process of pursuing our targets. for we can't deny that all our despicable obsesion for ownership and power, blind waste of resources and unsustainable desire for economics growth have always produced, even if not so intended, and often through atrocious mechanisms, a will to overcome challenges, an attitude of curiosity and seek of discovery, a creative impulse for art and science, and in general an enrichment of culture.

we are such a beautiful plague.