-
Recent Posts
Github badge
StackOverflow badge
How to read this blog
This blog should be read like all other specifications. First, it should be read cover-to-cover, multiple times. Then, it should be read backwards at least once. Then it should be read by picking random sections from the contents list and following all the cross-references.Promote JS
Category Archives: en
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 .)
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
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
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 Google, javascript, ubiquity
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 book, javascript, review
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
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
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
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.
