-
Continue reading →: Defining function args as list of arguments for Python
Python offers a way to define functions args as a tuple. The syntax is similar to C language, we’ll use *args to refer the tuple of arguments which are used in the function invocation. def test_args(*args): for arg in args: print “another arg:”, arg test_args(1, “two”, 3) Results: another arg:…
-
Continue reading →: Photoblogeando
Recientemente, he tenido la suerte de toparme con un photoblog bastante curradillo del cual he extraido la cabecera actual de este blog. Dejo aquí el enlace: http://fotoblog.librodeapuntes.es
-
Continue reading →: San Xurxo, the great lonely beach
This is a well known beach by the Ferrol people. It is a very beautiful place, with a lot of pretty views. This place has some kind of magic … nature, the brave sea, waves, bad weather in autum … all of these things give to this beach his intense…
-
Continue reading →: The best documentation in the blackboard, … always
This diagram is chairing my work office. It has been drawn in a little blackboard so that it is easilly visible for all members of the team. Many times, look up it is more useful than a big effort of our mind. The diagram show the different tables…
-
Continue reading →: Is not the same …
Usually, we don’t note little, but relevant, differents in the code that we are reviewing. For example, the two next classes, apparently, are equivalents: class A: l = [] __init__(self): … class B: def __init__(self): self.l = [] … But, really, this two classes are differ in their behavior:…
-
Continue reading →: Facebook hace un guiño al 503
No me parecía justo dejar pasar sin mencionar la pequeña dedicatoria que Facebook ha realizado a este blog hoy, día 23 de Septiembre de 2010. Durante un tiempo aproximado de 20 minutos, el website de Facebook recibió a sus visitantes con el siguiente mensaje de error: Service Unavailable – DNS…
-
Continue reading →: Chardet: encoding auto detect for Python
Last week, I has been fighting against the hordes of the character encoding. My new task in tha job-tasks-pool is develop a friendly web app to manage configuration files of cluster apps. Ohh, great idea!, why didn’t I realize it before? (irony) . Only I need 4 things: one parser…
-
Continue reading →: Object factory using the Python import mechanism
Today something related to Python programing … These snippets were rescued from a forgotten repository into my old Inspiron 6000. Speaking clearly, this post is about one app (purpose of it is not relevant) which internal handlers class can be setting in configuration time. This idea is cool when you…
-
Continue reading →: ClusterSSH: A GTK parallel SSH tool
From some time ago, I’m using a amazing admin tool named clusterSSH (aka cssh). With this tool (packages available for GNU/Debian like distributions, at least), we can interact simultaneously against a servers cluster. This is very useful, when your are making eventual tasks in similar servers (for example, Tomcat Cluster…



