Archive for November, 2006

Episodio 0042 - Como pronunciar correctamente algunas cosas

Thursday, November 30th, 2006

Download en mp3 | Suscribete GRATIS a este podcast | Skypeanos

All of Mp3 sera cerrado

Como se pinta la linea amarilla en los juegos de futbol americano

Reto Python (Voy por aqui)

Pronunciacion de palabras tecnologicas

John Dvorak habla sobre el impacto de Vista

Musica de Tosca en el fondo

A Wall Street Journal le Gusta el Wii..

Holiday Gadget Guide

Gadget de la Semana: Ipod Nano en tu Oreja

Venezuela en el World Press Photo

El Top 10 de Gente Desnuda en Google Earth

An useful example on how to extend Javascript

Wednesday, November 29th, 2006

Today I found out I could extend the functionality of __EXISTING__ html classes with javascript.

I was manipulating DOM objects, better known as HTMLElement objects, and I needed a way to print the HTML that represents the tag of the object, not what’s contained by the tags… a friend told me there was a method called “outerHTML”, and I thought he was joking, but it certainly makes sense after the precious “innerHTML” method (which is one of the only things which I thank IE for).

So, the same story for outerHTML, it is not supported by mozilla browsers, but little did I know, that existing class functionality can be extending using the prototypes… see how you can add .outerHTML compatibility to your page, just paste this in one of generic libraries:

//In order to allow .outerHTML in Firefox, we add this.
var _emptyTags = {
   "IMG":   true,
   "BR":    true,
   "INPUT": true,
   "META":  true,
   "LINK":  true,
   "PARAM": true,
   "HR":    true
};

HTMLElement.prototype.__defineGetter__("outerHTML", function () {
   var attrs = this.attributes;
   var str = "<" + this.tagName;
   for (var i = 0; i < attrs.length; i++)
      str += " " + attrs[i].name + "=\"" + attrs[i].value + "\"";

   if (_emptyTags[this.tagName])
      return str + ">";

   return str + ">" + this.innerHTML + "";
});

Now If you’re doing something say with scriptaculous…

someTD = Builder.node(’td’, {’valign’:'top’},[someNode, someNode2, someNode3])

and you need to get the HTML for someTD, all you do is:

someTD.outerHTML

and it will work on both IE and Firefox.

Enjoy.

Enjoy.

135 degrees lean is the way to sit baby

Wednesday, November 29th, 2006



135 degrees lean is the way to sit baby

Originally uploaded by Gubatron.


Scientists concluded that sitting in a 90degree position is actually bad for your back… so lean back, lean back, lean back, but only up to 135 degrees.

Puffing the Hookah at Habibi Lounge

Wednesday, November 29th, 2006

Thanks for the pictures Tati

Habibi Lounge
114 E 1st street (Houston)
New York, NY 10009
(212) 982-0932

Can the sun be covered with a finger?

Wednesday, November 29th, 2006


All these people showed up last weekend to support Manuel Rosales.

Wonder what’s gonna happen when Chavez cheats on the results, civil war?

Got an XBOX 360

Monday, November 27th, 2006

After a lot of analisys on what to buy, considering price, availability and specs, me and my friends decided to get Xbox 360s to wait for probably June or July 2007 to buy a PS3 when the prices drop.


See the entire flickr set here

I got Gears of War and Need for Speed = Carbon.

My Xbox live gamer tag is GUBATRON.

Cheers to the people of Planeta Ligero podcast, I sure gave them a lot of shit for talking and defending this product, I must say I consider them being right about it after trying it.