Building notes, projects, and occasional rants


last update:

Binary XMPP

Last February, Google's Android Team shocked the XMPP world by having the gall of saying that they where moving to a Binary encoding of their GTalk API in the M5 release. Of course this sent shock waves through the XMPP community, not because they where totally wrong, but because they didn't have the vision to solve it. We of course understand that they have their hands full (of vapor, some bad mouths would say.

In case you are wondering...

... why BitTorrent is so popular: Starting Transmission now, should be here in 15 minutes, I guess.

MySQL errno 150 - ERROR 1025

I get the 150 errno a lot when upgrading schemas. Usually this is a indication that the action I was trying to perform is not possible given the current foreign key constraints in place. Last night I got a variation on the theme: ERROR 1025 (HY000): Error on rename of './e3/#sql-17f3_f894' to './e3/cls_ev_items' (errno: 150) The table was this: CREATE TABLE `cls_ev_items` ( `id` int(11) NOT NULL auto_increment, `evaluation_id` int(11) NOT NULL, `criteria_id` int(11) NOT NULL, `value` varchar(50) default NULL, `modified_at` datetime NOT NULL, `rank` int(11) NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `report` (`evaluation_id`,`criteria_id`), KEY `criteria_id` (`criteria_id`), CONSTRAINT `cls_ev_items_fk_evaluation_id` FOREIGN KEY (`evaluation_id`) REFERENCES `cls_evaluations` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `cls_ev_items_fk_criteria_id` FOREIGN KEY (`criteria_id`) REFERENCES `cls_ev_criteria` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 I was trying to drop the report index to replace it with a new one.

Too busy, except for presents

Just a quick note to say that my fathers day present arrived today, a Booq Python XL. Its a wonderful backpack, and my 17" is floating inside a bit. Love it.

$%&#$% Music labels

So, a couple of days ago Alicia Keys did a concert in Portugal, and Radio Comercial is always playing what I assume to be her major hit, No one. I got curious about the rest of her music so I decided to buy one album to see if I like it. So I clicky-click to the iTunes store only to be greeted by this: Now, this is not some obscure artist.

Dear lazyweb: CSS question

This is something that I want to do for quite some time, but I haven't figure it out how. If I have a HTML table styled with width: 80% but the total size of the content on each <td> is smaller than the 80% size, then the browser will try to make all the columns the same width, and add extra spaces at the right side of the cell. What I wanted is to specify that some columns should shrink to the smallest possible size without causing line breaks in the content.

Happy fathers day

To all fellow fathers out there, happy fathers day! I'm going to give myself a present today, I'll post pictures when I get it, but in the meantime, damn you Carlos! On a parting note, have you called your father already? Don't do it like me who always leaves this for last and then forgets about it.

Israel response to the US

Great response of Israel to US about copyright laws. Choice quote: Israel objects that it is under no obligation to implement such a system, and notes that it chose the current arrangement for a reason. "A 'takedown' system which operates on the basis of a mere allegation of infringement would be an invitation to censorship and abuse of process," it says in the filing. "It is not the role of the ISP or Host to become a policeman of content.

Elections 2008

I've been following the Democrat primaries with a particular interest. The weight of super-delegates and the delegate count, and how low can the democratic party can go if their candidate in the end is the one with less delegates. I'm not pro-Obama, nor pro-Clinton. My opinion doesn't count either. But if it did, I think that the latest Obama speech in Pennsylvania would force me to choose. I haven't seen such a good speed in a long time (and I'm the strange kind of person that actually likes to listen to speeches, when properly delivered).

IETF Wayback machine

So the IETF has a solution for all our bandwidth problems, taking us back to 2000 levels. No, its not a super-chip design for a mega-hiper-refixe-router, its something that you can find installed on most PCs and Macs. But fear not, as you can read at the bottom of the article, the porn industry is well aware of the technology and they will take care of bringing us back to the future in no time.