Category Archives: en

Posts in english

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. Continue reading

Posted in css, en, firefox, Google, html | Leave a comment

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. Continue reading

Posted in en, programacion | Leave a comment

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. Continue reading

Posted in django, en, programacion, Python | Leave a comment

Squeeze more readable space out of Google Reader’s new layout

I am not happy with the removal of Google Reader social features. I really enjoyed discovering new feeds following people.

Anyway, I don’t mind the new look but it leaves too little readable space. A couple of years ago I blogged about how to use Firefox’s userContent.css to optimize the layout. Continue reading

Posted in css, en, firefox, geek, tech | Tagged , , | 1 Comment

Install PIL with Jpeg support on Ubuntu Oneiric 64bit

I am posting this because it took me ages to figure out how to solve this one.

I could not get PIL to compile with JPEG, Zlib or freetype support on my virtualenv. I am using Ubuntu Oneiric Beta1 on a Lenovo Thinkpad X220. That is a 64bits installation. Continue reading

Posted in en, geek, programacion, Python | Tagged , , , | 5 Comments

Show http:// protocol in URL bar for Firefox 7+

Firefox 7 beta was just rolled out yesterday to users on the Beta channel (that would include me). One of the various improvements and changes is that now Firefox follows Opera and Chrome in hiding the http:// protocol prefix from … Continue reading

Posted in en, firefox, geek | Tagged , | 13 Comments

UnicodeEncodeError on Django uploaded files

This has been an error that’s been bugging me for months. For some reason in production settings only in the production server only, whenever a user uploaded a files with a non ascii filename, I’d get this error UnicodeEncodeError: ‘ascii’ … Continue reading

Posted in django, en, programacion, Python, tech, web | Leave a comment

CSS3 gradients in Webkit

I’m just writing this to record a shorthand answer to a doubt I had. Old format Webkit gradients only support percentage color stops Recently, Webkit added support for standards CSS3 gradients, so your syntax will be the same for different … Continue reading

Posted in css, en, html, programacion, web | Tagged | Leave a comment

Mogrify using too much memory

I wanted to shrink pictures a folder with thousands of files. They were unnecessarily huge. So I made a script to resize them. Imagemagick’s mogrify takes all the RAM it can in the system to handle huge files, making the … Continue reading

Posted in en, geek, linux, programacion, tech | Tagged | Leave a comment

Magenta CSS

When setting a background color always set a foreground color Continue reading

Posted in css, en, geek, html | Tagged , | 1 Comment