martes, julio 29, 2008

Installing services

Today I had a dejavu, I had to use the following command 3 times on different tasks and even on different machines, but for different purposes


$ ln -s . foo


soft links are really helpful to work-around a strange behavior.

lunes, julio 21, 2008

Openmoko

Is Openmoko for the mass market?, well the answer is simple NO, believe me I want to have an opemoko smartphone, but it cost US$500 against the US$200 of the iphone, it has a faaaar from be a great software stack and the lack of eye candy for the mass market and for be an iphone-killer that's a must.



openmoko has a lot of potential, especially for a linux developer, _we_ need to develop good software with eye-candy.

domingo, julio 20, 2008

RIP brother in arms.



It's always hard loose a friend, but it's even harder when he is still a young boy, rest in peace raúl (aka darth debian), every body will be there with you sooner or later, wait for us with a shell to hack in the heaven, we always remember you.

jueves, julio 10, 2008

El coyote atrapa al correcaminos

Gracias youtube, me haz permitido ver el mítico mommento en que el coyote atrapa al correcaminos :D

lunes, julio 07, 2008

Just use Pencil

if you want to create UI prototypes (web or desktop app) then use the Pencil, but not an analogical one, use the software called Pencil it's awesome. ... and can run over firefox or like a standalone program (yes, it uses xulrunner)

screeenshot of Pencil

jueves, julio 03, 2008

Fayerwayer

Para todos los que hemos leido de vez en cuando algún artículo de fayerwayer se ha dado cuenta que los chicos de fayerwayer tienen mucha llegada con las empresas (no tengo idea a que se dedican para ganarse la vida), han ido a expos de nokia, tienen un contrato con paris.cl, les regalan cosas para que sorteen con sus lectores, etc..., por lo tanto cuando sacan críticas a una empresa, ya sean para bien o para mal, me es muy dificil no mirar con desconfianza sus palabras, ya que seamos sinceros, si las empresas te regalonean no vas a querer enrostrarles en su cara que son wnas y que deben hacer X o Y, por lo tanto las palabras de Alexander Schek (Mr.Chips) las veo con cuidado, en especial porque Mr chips está metido en el rubro de las tiendas virtuales.

El otro punto a destacar es que dell se ha mandado el mismo cagazo antes y aun no aprende, y estoy seguro que volverá a pasar, por lo que no es un error aislado, sino que es una constante, deben asumir el riesgo de su negocio y mejorar su equipo de QA, además cuando vas a comprar a una tienda y compras un pantalón en 20 lukas y la siguiente semana la tienda tira el gran remate gran de el mismo pantalón 2x1 a 10 lukas, uno no va llorando donde la tienda pk se lo cagaron, asume hidalgamente y putea, pero nada más, por lo tanto deberia ser la actitud de Dell, asumir hidalgamente su error, mejorar sus procesos internos y entregar los laptop.

Update: un punto no menor que rescata José Roa (extracto sacado de Invertia.com) es el siguiente:

las empresas están obligadas a respectar las ofertas que le realizaron a los consumidores en los términos que la realizaron (...) Así como nadie pretende que sea un error el que una empresa cobre muchas veces el precio por el mismo producto en otro local, así tampoco debe llamar a ese juicio el hecho que una empresa cobre un precio menor. Ese es un trato asimétrico


PD: no quiero que se interprete mal, pensando que digo que los de fayerwayer son unos vendidos, sino que simplemente es necesario mirar con detención las criticas (de todo el mundo, no solo de fayerwayer, ... sí, incluso esta), porque todos *tenemos* tejado de vidrio.

get the thumbnail of a file with python

with this function you can obtain the the path where is stored (returns None if the thumbnail doesn't exists) the thumbnail of the given uri.


import md5
import os.path

def thumbnail_path_from_uri(uri, size='normal'):
"""Construct the path for the thumbnail of the given uri

Arguments:
- `uri`: the uri that points to the file that is looking for the thumbnail.
- `size`: the size of the thumbnail (normal or large)
"""


assert isinstance(uri, basestring), \
TypeError("The uri must be a str")

assert isinstance(size, basestring) and (size == 'large' or size=='normal'), \
TypeError("The size for thumbnail can be normal or large")

hash = md5.new()
hash.update(uri)
path = os.path.join(os.path.expanduser('~'), ".thumbnails", size, str("%s.png" % hash.hexdigest()))

if os.path.exists(path):
return path
else:
return None

miércoles, julio 02, 2008

a photo manager

damn it!, f-spot is pretty nice, but it doesn't work for me, because my video driver sucks, it hang up when you use some functionality that has some code with glx.

I tried to made a quick photo viewer (usgin the photos.db of f-spot) with python and GtkIconView, but I want to implenet the list store (backend) in a OOP-way, and avoi the data duplication, something that is trying to figure it out in the pygtk mailing list, my other option is make a fork of f-spot, but not to make a better software, instead to eliminate all the glx code, and have a simpler f-spot, but I dont know how many animations could be around.

so, anyone has some photo manger like f-spot?.

PS: picasa is not usefull to me, I'm a fucking freetard (If you are a reader of linux hater's blog, the you what I'm talking about).