Ultimos Posts 1. 27/12/2011 19:15 - Usabilidad de las entradas del cine Ayer fuí a ver Misión Imposible a Cineplanet . Como es de costumbre, hice una breve cola, fuí amáblemente atendido y recibí el ticket de entrada: Como siempre, confío plenamente que la entrada es para la función que pedí y procedo a memorizar la información que me confirma la chica que atiende por que va a ser imposible encontrar esos datos en la entrada . Como se puede ver gran pa... 2. 04/12/2011 13:06 - Update on Google reader reading space This week Google launched its new top bar , which changed Google Reader’s DOM making the userContent rules I explained last month useless . Well, here’s the fix for the new Topbar. This time it is much easier: /* userContent.css */ @-moz-document url-prefix(http://www.google.com/reader/) { #gb { display: none; } } Now you have more reading space in Google reader.... 3. 01/12/2011 23:36 - Como agregar un campo a todos los elementos en una collección Mongo Lo acabo de poner en inglés ., pero también lo buscarán en español. Asó que aquí va. Escribo esto por que encontrar la respuesta me tomó más de lo que esperaba. Finalmente estaba en StackOverflow , pero la pondré acá de nuevo explicando como funciona. Como las bases de datos Mongo no tienen esquema, no existe comando ALTER TABLE para agregar un nuevo campo a todos los elementos, lo... 4. 01/12/2011 23:26 - Add a key to all items on a MongoDB collection Again, I am posting this because it took me more than expected to find this easy answer. I found it on StackOverflow , but I will repost and explain here. Since Mongo is a schemaless database, there is no “ ALTER TABLE “, so what you need to do is update all the items. The MongoDB documentation on Updates is not very clear on how to do this. And the SQL to Mongo mapping... 5. 27/11/2011 02:26 - Sepia images with Django, Python and Sorl-thumbnail Meet Sorl-sepia , a Sorl engine backend (PIL only so far) to turn your images into sepia tones. See the README file for instructions . The interesting trick about sepia images is that they are just gray-scale pictures with a different color palette. In this case the sepia color I’m using is #FFF0C0. Doing this on PIL is quite straight forward ( from effbot’s blog ): # Y... |