Blog

The subjectiveness of art

· listen

1 minute read

A Spanish television channel decided to make a neat experiment: they gave a clean canvas to children to paint it, were able to put the painting in ARCO (the biggest contemporary art in Spain), and recorded some opinions of the art (?) work from several people.

"It denotes a great experiment from the artist", "Yes, 15.000 euros is a reasonable price for it", "I can fell some sexual frustration from the artist" are some of the recorded opinions. It's a all new meaning for the world subjectiveness. You can watch the broadcasted show in the following Youtube video (in spanish):

RSS readers should click here to watch the video.

Loupe.js

· listen

1 minute read

Christian Effenberger developed Loupe.js, which allows you to add a magnifier to an object on your page. To use it, all you have to do is to download a Javascript file and a small PNG image, and insert the following line of code in the place you want to have the magnifier:

<div><img id="..." onLoad="initLoupe(this.id);" ...></div>

The result is something like this (click here to see it working):

A Greener Apple

· listen

1 minute read

After greenpeace call for action for the reduction of the usage of hazardous substances in Apple equipment (previous post here), Steve Jobs responded with this paper, entitled "A Greener Apple".

Thank you Steve.

20 questions

· listen

1 minute read

Think in something (almost anything!). With a maximum of 20 questions, 20Q will guess what you are thinking.

It's a very good example of what is a neural network, and it learns with every play, so, come on, take a 2 minute break and have a go.

lastChild in Mozilla browsers

· listen

1 minute read

For a while now I've been receiving some complaints about the comments in this blog: people using Mozilla based browsers weren't able to see the BlindDown effect when posting comments, and since they did not receive any other message about the comment being correctly posted, they posted it several times.

The error message received was this:

$(element).style has no properties[Break on this error] $(element).style.height = '0px';effects.js (line 369)

After some heavy Javascript debugging, I found out the bug: Mozilla browsers add nodes for white space (in my case, in between LI elements), so it was calling the wrong node for the BlindDown effect (it was calling a white space). Here goes the original code:

function commentAdded(request) {  new Effect.BlindDown($('commentList').lastChild);  $('commentform').elements[3].value = '';  $('commentform').elements[3].focus();}

The solution was to add a new javascript line before the Effect.BlindDown call, cleaning all white spaces. Here is the corrected code:

function commentAdded(request) {  Element.cleanWhitespace('commentList');  new Effect.BlindDown($('commentList').lastChild);  $('commentform').elements[3].value = '';  $('commentform').elements[3].focus();}

So, the lesson is: every time you use a lastChild call, be aware of the white spaces for the Mozilla browsers. Hope it helps, thanks to all who pointed the bug.

Update: after a lunch conversation, I've decided to post the bug in the Mozilla foundation bugzilla. If you want to, you can check the status by accessing bug #378593.