Category Archives: en

Posts in english

Happy PI day!

I’ve got to learn my decimals again, shame on me!

Posted in en, geek, math | Leave a comment

Compare files in two directories

This is how you do it: $ diff < (cd /path/one/ && find .)

Posted in en, geek | Tagged | Leave a comment

Django random object manager

Several times in the past I needed to fetch a list of random objects. And Today I decided to make a Mixin class to add a get_random() method to my managers: # -*- coding: utf-8 -*- from random import sample … Continue reading

Posted in django, en, Python | Tagged , , | 3 Comments

What I’m doing to the pictures I upload anywhere

$ mogrify -fill white -pointsize 16 -annotate +20+20 ‘If you\’re seeing this picture in Facebook, the person who uploaded it is an ass’ -thumbnail 800×800 -quality 75 picture.jpg

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

Ubiquity script for Goo.gl

Since google just made their URL shortener service public, I decided I would start using it . Going to the page and pasting a URL is too much work, Installing a firefox extension is too much bloat. So since I … Continue reading

Posted in en, geek, Google, javascript, tech, web | Tagged , , | Leave a comment

Learning jQuery 1.3

Right after finishing my review on the Django template development book I got contacted again by the Packt folks to do the same for the Learning jQuery 1.3 book. I was most pleased with the request. Now, this book has … Continue reading

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

Generating Javascript Widgets with reversed URL endpoints in Django

I just read Elf Stenberg’s solution on how to serve static Javascript with reversed URLs in Django, I was going to leave this as a comment but I better explain it here When developing Django Widgets that require Javascript interaction … Continue reading

Posted in django, en, geek, javascript, programacion | Tagged , | 1 Comment

Django 1.0 Template Development

Last month I got an email from Packt telling me about their latest book on Django Template development. I was invited to give it a read and see how I liked it. Now, I’m a lazy and slow reader. But … Continue reading

Posted in django, en, geek, programacion, tech, web | Tagged , , | 3 Comments

Google reader on a Netbook

I got a Lenovo S10 some months ago, and like all netbooks it has a 1024x~600 resolution which is fine for most web browgins but it happens to be too short for some applications, one of them being Google Reader. … Continue reading

Posted in css, en, firefox, geek, Google | 2 Comments

So it has a snake inside doing all the magic!

Great drawing used by the Nebula team at Nasa to show proudly that they use Django for their development.

Posted in django, en, geek, programacion, tech | 1 Comment