Uncategorized

Objective-HyperGraph is born!

It has been a while since I started working on a city transportation testbed framework, codename “Keiko“, and, during the process I found some obstacles that I have overcome one way or another; but I have also realized of the importance of data structures, and the programming language I am using, Objective-C, lacks plenty of them (as opposed to, for instance, Java).

For that reason, and since transportation is a great area to study traversal (routing) algorithms, as well as the typical problems of finding the minimal path (and its derivatives), I decided to start a parallel project to create a small library of common data structures. Starting with… hyper-graphs! And its name is… Objective-HyperGraph!

Why hyper-graphs and not just graphs? Well… because hyper-graphs are just an abstraction (and powerful) of graphs, hence, it would not make much sense augmenting the design later on to allocate hyper-graphs when a graph is a hyper-graph with the constraint of no more than two nodes per edge (while a hyper-graph can have… any!).
Ok… this project is also a consequence of my M.Sc. thesis :) where I studied hyper-graphs heavily… and I guess I married them (sort of ;)

I shall say that I am not actively using this library with Keiko, but I have modified its design to use it in a future version. It is not that I do not trust Objective-HyperGraph project, but rather a question of efficiency, Keiko is using two-dimensional adjacency matrices (to be honest… three-dimensional ;) and at this stage of development I would have to throw away all that, hence I prefer to continue testing and debugging that design so Objective-Hyper-Graph can benefit from it later on (and Keiko will benefit as well).
At the same time, Objective-HyperGraph aims at being more than a library for graphs/hyper-graphs in Objective-C. I would like to see an efficient and simple library of data structures in Objective-C and… open-source!

So… let’s bring those queues, stacks, lists, vectors, trees, heaps,… are you up to the challenge of collaborating with classical algorithms? Or why not your own algorithms?
Check it out at Google Code ;)

Uncategorized

Seminario: “Identificación en la web social”

Hace unos días, a través de un compañero de la asociación a la que pertenezco, “Grupo Universitario de Informática“, tuve conocimiento de que se estaba buscando la colaboración de la asociación en las Jornadas de Nuevas Tecnologías (cuyo horario ya está disponible), que organiza anualmente la Delegación de Alumnos de la Escuela Técnica Superior de Ingenieros de Telecomunicación, con alguna charla, conferencia, seminario y/o similar.
Así que, aprovechando que estaba preparando una charla y posterior taller para otro evento que se celebrará en breve (y del que daré más detalles en cuanto me lo confirmen…), he creído conveniente reutilizarlo para estas jornadas por la temática y público de las mismas.

read more »

Uncategorized

Memories

This month, February, which has just started is bringing a lot of memories from the last three years, and lucky me… I just found a picture that I took three years ago when I was travelling on my way to a nice place in Spain, Laredo :)

Back then, I think I did not know why I was taking a picture, and probably it was just a test, but now, that I see the picture, I even think it was a deja vú. I realize now that after all, our life is just a bag-pack of memories that we move from one place to another, sometimes we lose some of them because we replace them with others, but those that are important or marked our lives will not be left in some station.

Not the best picture, I know; it was not meant for that… but I think it is a good image for reflection :)

Uncategorized

Inception

Inception is a word that I did not know until I heard about the same name’s movie… and it means birth, but I guess it is a fancier word. In any case, it is the starting point of the new year, but also the photography project that I would to pursue this year (and the upcoming ones).
I used to have this project of “One year, 52 pictures”, but it is quite difficult processing a picture per week, at least when I was studying, perhaps now I can do it; but just in case… I will make sure it is at least the project “One year, 12 thoughts”, that is, a thought represented by a picture every month (and I will also try to keep with the weekly one, but I cannot guarantee it…).

Anyways… I hope you like this one, which is a very simple picture, but the thought is quite complex as being born is the outcome of a marvelous and tedious process that only nature is capable of doing, and we, as humans, have a privilege by having the ability as well, and a new year, depicted usually by the month of January, means for many people a new start, or a celebration of being alive one more year.
Here you have a couple years old spring in one of Uppsala’s river sides, Fyrisån.

Inception
Uncategorized

Los humos están de malos humos

Espacio sin humosLeyendo diversos medios de comunicación de las últimas dos semanas (las mismas que la llamada “Ley Antitabaco” disfruta de “vida”…) uno puede llegar a la conclusión de que acabamos de criminalizar al fumador por vía parlamentaria, con el beneplácito (y yo creo que también algo de recreo) de la sociedad.

Vaya por delante que no soy fumador, al menos en activo, pero he sido fumador (pasivo) desde hace muchos años. Y nadie, absolutamente nadie, me preguntó si me importaba inhalar esa mini-atmósfera de color translúcido de cada bar o café al que acudía (teniendo en cuenta que el grado de translucidez era inversamente proporcional al volumen del recinto y directamente proporcional al número de fumadores en el ejercicio de dicha actividad).
Aún así respeto a todos los fumadores y no dejo de tener amigos que fuman a los cuales aprecio y respeto, aunque bien saben que no me agrada nada el humo y siempre que fuman en mi presencia procuran echar el humo en otra dirección, lo cual es de agradecer.

Ahora resulta que las libertades de los fumadores se han limitado… ¡a dónde vamos a parar! ¡Ya no se puede tomar el café con cigarro en mano! (Aunque para mí es como el salmón nórdico al humo… es decir, café ahumado). ¡Y que es eso de tener que fumar a decenas de metros de la entrada de un hospital! ¿Dónde quedarán esas cortinas de humo que separaban los virus y bacterias del área de espera de la sección de urgencias de la calle?
Es sarcástico e irónico… pero yo no entiendo como se puede argumentar el hecho de que yo, como no fumador (activo), pudiese acudir a cualquier bar y/o café independientemente de si había fumadores o no, y ahora son (muchos de) estos fumadores los que no pueden acudir a los mismos porque no es legal encender su “pitillo” en el interior…

Por desgracia, esta Ley… legisla lo banal… es decir… el respeto a los demás a vivir. Nadie tiene la obligación de fumar, y dado que se ha demostrado que los fumadores pasivos se contaminan al mismo nivel (o incluso más) que los fumadores activos, es de recibo que los primeros puedan elegir, pero dado que nadie les da a elegir (todavía estoy esperando el día en el que alguien me pregunte si me molesta la bocanada de humo con la que acaba de deleitar a mi peinado) el Estado ha de intervenir, y así lo ha hecho.

Tengo la convicción de que no se pretende evitar que nadie fume (pues bien sabe papá Estado que los ingresos por los impuestos gravados al tabaco son un buen pico para las arcas con las que se pagan los sueldos de los parlamentarios que diariamente acuden a la Carrera de San Jerónimo), pero al menos se intenta evitar que los que no quieran fumar, no lo hagan obligatoriamente pasivamente.
Bien es cierto que hay quien pueda argumentar que beber alcohol es un acto igual de voluntario que lo puede ser fumar (o incluso consumir sustancias estupefacientes), e igual de dañino que el tabaco, pero la diferencia entre el alcohol y el tabaco es precisamente ese humo… el alcohol daña al consumidor única y exclusivamente, pero el tabaco lo hace tanto al consumidor como a todo aquel que tenga la suerte de estar cerca…

Decían (y siguen diciendo) los hosteleros que se les va a acabar el negocio, que van a perder muchos clientes… y me pregunto yo… ¿acaso hay más fumadores que no fumadores? Porque (por suerte) creo que los que no somos fumadores somos una inmensa mayoría, y si bien es cierto que antes podíamos acceder a un recinto dónde se podía fumar, creo que dicho derecho (de entrada) no se ha perdido, salvo que ahora el cigarro se queda fuera.
Entiendo que pueda haber un cierto desasosiego al principio, pero como en todo, es cuestión de adaptarse, y creo que a la larga todos estaremos agradecidos, fumadores y no fumadores, convertiéndo esas catastróficas consecuencias económicas en una leyenda urbana…

Por una vez, puedo presumir de que mi patria tiene ahora una de las Leyes más restrictivas… y quizás ello se deba a la experiencia en otros países, aprendiendo de los errores y fallos de otras Leyes. Así que no hay mal que por bien no venga, o como dice el refrán… más vale tarde que nunca.

Bienvenidos/as a la España del Siglo XXI… :) Ahora sí :)

Uncategorized

Fight the future!

Lately, I am wondering what is the meaning of future, in its metaphorical sense. We have a rather fixed path for our life’s events, although we have some choices that we might change it or not; however, given our stupidity mostly, we ignore those chances that are offered to us to deviate from that fixed path. We do not correct our lives, that is something that we all should know, because there is nothing wrong in the way we live our own life, it is all a consequence of each single chance we take (or ignore).

As a matter of fact, our life starts with the context in which we are born. Some people will not ever see water coming out from a tap, at least on a continuous basis, some others will be able to basically spend huge amounts of money on whatever is on sale,… and so on.
What I want to say is that the situation that is created for our life influences many of our future, but it does not mean that we are condemned by it, either for good or for bad (in fact, now I am wondering about the meaning of good or bad).

This dilemma comes from the analysis of my life so far, sometimes I think I have refused many chances and so wasted opportunities that later on I see turning into something I desire, but some other times I believe to be the luckiest guy in the world (my little world of course). I am not talking about objects, I am talking about opportunities that could have allowed me to fully define myself in some way, and my selfish refusal left me incomplete.
Although sometimes we are forced to refuse these opportunities because it is not the right moment neither the right place, but  at the same time we are just delaying what should not be delayed and what should be part of our personality. Nobody knows when the next opportunity will show up…

There are so many secrets inside me, that not even my inner myself will ever find out a reasonable explanation for them (if it finds them…); but at least, all the experiences that I have had the opportunity to live help me understand a very few of these secrets, and little by little I get to know the real me… a process that I do not think will ever end, but at least, will help fight for my own future rather than fighting my own future.

No one but me can decide and choose who am I, how I am, and what I want to be and where. This is what I should be, me and myself.

Uncategorized

Svensk tänkande? (Swedish thinking?)

Today I believe I fully understand what yesterday I said to my grandmother on the phone when she asked about the life in Spain and Sweden. I told her that now I see some things in the country I was born, Spain, that I don’t understand why they are the way they are compared to the Swedish manner.
However, this is not about how you do something, for instance, in terms of efficiency, but rather how you think about yourself and the people who surround you as you interact with them. That is, how the society is.

I got back home a few minutes ago from a walk to a shopping mall… pure consumerism :) but I didn’t buy anything as I couldn’t find what I was supposed to buy. On the way back home, I deviated from the route and ended up in the groceries store and bought some things to eat, nothing in particular special. I paid, and headed home.
Paradoxically, when I was passing by another shopping mall, I saw a woman who seemed to be walking in order to intercept my course, and somehow I prepared myself for it, but not enough (and I’m glad I didn’t).
The woman, who didn’t look like poor nor the aspect was bad, stopped me and did ask for money to buy food. At that moment I was quite shocked, because I wasn’t expecting that and I thought for a fraction of a second till I realize I could do something instead of giving her money (I do think that if you give money to someone asking for it, you should say no because no one can tell you if they will really spend it on what they say they need it).
I told the woman if it wouldn’t be better that I gave her food instead, as I just left the groceries store, and I asked what kind of food she would like as I might not have bought it…
She replied back that something soft, so she could it because she didn’t have enough teeth. I had some soft food she could eat, and lucky her, it was a 2-pack that I splitted and gave her one pack. After that, the woman thanked me, and I continued with my walk back home.

To be honest, I don’t know if this woman lied or not, but the fear and sadness her face had when she said that food (instead of money) was also right made me think how bad is the situation in Spain that is driving people to this kind of desperation.
Perhaps I was fooled, but the fact that she was in front of a shopping mall where there’s a supermarket and she accepting food make me think that she really needed something to eat.

I wonder how many people would have reacted the same way I did, because what I did was a reflex, I didn’t have much time to think because everything happened very fast. You see poor people in the streets asking for money and no one looks at them; yes, it’s not people’s fault neither their responsibility, but I think that society should help those who need it the most (and let’s face it… I’m also part of that society who ignores these situations, I am not any saviour).
I am very lucky to have the life I currently have thanks to mostly my parents, but not everyone has the same opportunities; besides, things happen and change your life in a fraction of a second, whether you deserve it or not, you want it or not, whether you like it or not,…

Be advised that I’m not looking for any kind of appreciation nor recognition, but I thought that this is something to think about as I believe my reaction is pretty much influenced by the Swedish society during all the time I’ve spent so far in Sweden.
Swedish society isn’t much different from the Spanish one, but there’s something quite related to respect of everyone and everything which is different, and makes the Swedish society to not only look like but actually be that advanced and respected by many people.

Have I a Swedish thinking? Perhaps… but at least I know that I’m very lucky of being a Spaniard influenced by Swedish society.

Uncategorized

Vida

Hoy comienza la Cumbre del Clima de las Naciones Unidas (COP15) en la capital de Dinamarca, Copenhague. Y he creído oportuno rescatar esta instántanea que tomé hará dentro de nada un año, que en pocos días dará fin por cierto. Creo que representa lo que se pretende tratar en esta cumbre sobre el famoso cambio climático y lo complicado que resulta desenredar la madeja de los intereses económicos y medioambientales (a pesar de que no crea en estas cosas… pues no hacen más que tratar los mismos problemas y luego en la siguiente reunión no han solucionado nada de lo que hablaron en la anterior).

Disfruten de la vida que uno de los elementos más básicos, el agua, ha propiciado en nuestro planeta.

Uncategorized

Abriendo la mente

Un cambio siempre lleva consigo una nueva filosofía, o al menos, una nueva forma de abordar las cosas… así que creo, que el cambio en el blog, queda representado con esta fotografía que llevaba más de un año en el trastero. Con esto también retomo la publicación de una fotografía a la semana (de verdad que lo intentaré… pero lo complicado no son las fotografías… si no el tiempo que empleo en el procesado; consecuencias del perfeccionismo al que mi mente está sujeto…).

He aquí una panorámica tomada desde un pequeño pueblecito en Noruega, Vanvikan. Un lugar perfecto para relajar la mente.

Plo plo

Actualización (07/12/2009)
Parece que al menos una de mis mejores amigas no está segura de cuánto de real tiene esta fotografía y cuánto no… así que creo que debe ser el lector quien juzgue… pero como comento en la descripción de la fotografía en Flick.r, la fotografía es un pseudo-HDR :)

Uncategorized

A de gripe a(lpha)

Ayer a eso de las 13:00 me dirigí a que me inyectasen unos pocos de virus de la famosa gripe a, no antes de haber llenado el estómago… si tengo que espicharla… que sea con el estómago lleno.

Una vez rellené el formulario correspondiente (con la curiosa, pero no tan agradable, duda de si seré alérgico al tiomersal, la gentamicina y el formaldehído…) me dirigí a la mesa donde el médico de turno autorizaba la prescripción de la vacuna… y me puse a la cola de los incautos, algunos de ellos también escepticistas (yo mismo…). Una señorita muy amable me dijo que pasase (en un correcto sueco), cogió la hoja y me preguntó qué brazo quería (aunque ya lo había elegido con el médico, el izquierdo, que soy diestro…), y le repetí que el izquierdo (en un correcto inglés… pues ultimamente entiendo el sueco pero respondo en inglés :).
La buena mujer me dijo que me quitase el jersey (pues el quitarme el abrigo fue algo que me recomendó el médico… supongo que se pensará que soy uno de esos que van en manga corta debajo del abrigo…), y yo empecé a mentalizarme de que me tenía que mentalizar, mientras la enfermera preparaba la jeringa (basicamente, venía empaquetada y sólo abrió el paquete individual).

Así que nada, la mujer en medio de mi confusión… no se inmutó y atacó sin piedad. Pero se lo agradezco, porque si me deja pensármelo… podría haber salido de allí por patas…
Una vez terminó el proceso, me preguntó si había sido para tanto, y yo, con cara de pocos amigos… y a regañadientes afirmaba positivamente.

Pero no todo fue tan malo… ayer me gané unos pocos de virus… y un bombón :P (que me supo a gloria todo hay que decirlo, y me acordé de cuando era pequeño y me pusieron una vacuna en los aposentos).
Alguna ventaja tenía que tener el niño que todos llevamos dentro :) ¿no?