Archive for the '[en]' Category

I love the STL

Saturday, February 4th, 2006

C++ is a great language, specially the STL, templates and generic programming. I love it.
For instance, imagine that you have to wipe some data in vectors after its use. This is common in secure programming, to avoid sensible data to remain in memory longer than really needed.
It’s very easy, just program your own allocator:

#include <memory>

template […]

Flirting with monism

Monday, July 4th, 2005

Julian ‘Cannonball’ Adderly introducing Josef Erich Zawinul theme Mercy, Mercy, Mercy at the fake club in Chicago which turned out to be at Capitol Records in L.A.:

You know, sometimes we are not prepared for adversity.
When it happens sometimes we’re caught short.
We don’t know exactly how to handle it when it comes up.
Sometimes we don’t know […]

stegotation (ps’05 chronicles hidden in a band list)

Tuesday, May 31st, 2005

L’esteganografia és l’art d’amagar dades en llocs insospitats, de manera que passin desapercebudes. He fet un petit programet que desa informació en l’ordre dels elements d’una llista. En una llista de n elements, hi ha n! formes d’ordenar-los. Per tant, hi caben fins a log2(n!) bits d’informació. Aquest programa aprofita això per desar una mini-llista […]

Dilbert’s Salary Theorem

Tuesday, April 5th, 2005

M’ha arribat això per email via Magoo. És per pixar-s’hi!

Dilbert’s Salary Theorem
Engineers, Teachers, Programmers and Scientists can never earn as much salary as business executives and sales people.
This theorem can now be supported by a mathematical equation based on the following three postulates:

Postulate 1: Knowledge is Power (Knowledge=Power)
Postulate 2: Time is Money (Time=Money)
Postulate 3: (as […]

Playing with images and MATLAB

Friday, March 18th, 2005

Us presento el meu gat, Trasto, per jugar amb elements estructurants i operacions morfològiques utilitzant MATLAB. Primer utilitzant elements estructurants plans, després de no plans i, finalment, de formes diferents.

I know I said I wouldn’t use MATLAB again but Octave instead. I lied. This afternoon I was a little bit bored and began playing with […]

RSS feeds for any category

Friday, March 18th, 2005

He afegit feeds RSS per cadascuna de les categories i també categories pels posts en llengües diferents al català. Així, si algú no entén el català pot seleccionar només el que li interessa. O si algú només vol veure el que escric sobre les festes que fem pot fer-ho també.

I’ve followed Pere’s path to include […]

Are experts wrong?

Wednesday, March 9th, 2005

Utilitzant per primera vegada un programari de gestió de projectes me n’he adonat que no funciona de la manera que esperava, essent un neòfit de la matèria. La consulta posterior a la llista de correu del programa em fa pensar en quantes vegades els novells en un camp concret tenen idees diferents degut a que […]

How to make a photo look as a drawing (the silly way)

Wednesday, March 2nd, 2005

I’ve been asked to explain how I converted the photo of our friend singing and playing her guitar into something that barely resembles a handmade drawing. This isn’t, of course, anything original and a lot of image editors have a function to do it, but I prefer it to follow the longest path because I’m […]

Certainty of change

Sunday, February 20th, 2005

A few days ago I was talking to my uncle, who works in the advertising bussiness as a creative. He explained me that now they face the problem that people are getting used to novelties being introduced all the time which sometimes mean somewhat of a sociological change; so companies are forced to reinvent their […]