Category Archives: Code

Storing serialized object in a Django model field

This is a personal solution to the fore stated problem. I wanted to keep a syndicated data (dictionary) in a text column, no ordering or filtering operations needed, just bare storage. I am going to override both constructor and save() method to sync the record with an object property, holding the data. The code is [...]

Newsletter form security

I came along a simple django app for an opt-in/opt-out newsletter with a csv export feature in admin, nothing fancy.

Javascript issues in Internet Explorer

Behaviour: Object doesn’t support this property or method.

Installing OpenCV

OpenCV is a library of programming functions for real time computer vision, further details here. This is a tutorial for building OpenCV from source on a Linux operating system without having root permissions. We will also build git, cmake, python, libtiff and fix a lot of common misbehaviours.

My Solar light tracker

I was talking to you in a recent article about controlling pwm servos with Atmega. Well, I finally finished my project and I can show it to you.

IcanView – Icanhascheezburger Reader

This is a small and fun Java application that extracts the latest posts on icanhascheezburger.com so you can easily browse them back and forward.

Large numbers operations in Octave or Matlab

This year we gave our students in the Numerical Methods class their first homework, in the very first weeks of the semester. My colleague suggested to ask them to write procedures for operating with very large numbers. Here you have my solution.

Controlling two Futaba servo motors with Atmel ATmega16

I came across this subject while building my school project (a solar tracker). These are some interesting methods of programming hardware for a software-new-media guy like me and so I am very anxious to tell you all about it. Code available for free download.

Approximating large sparse matrix multiplication

This is an year old presentation. Interesting theme with doubtful results. Please use the first link in the final slide for more accurate info on the theme. The presentation is rather funny and synthetic so that you can just grasp the basic concept.

Multiprocessor topology simulator

This is a python script that simulates time steps in the following pipeline multi-processor topology: We consider that a task needs to get from left to right or vice-versa. One task is described by the number of computations that need to be done on each level. The connections have limited transmission capacity (or throughput) per [...]