Monthly Archives: March 2005

Ajax or not Ajax

What is really wondering me is not the technology behind the name, but is how the name itself (a contraction for Asynchronous data retrieval and JavaScript/Ecmascript) became so popular in a so short time. It was about a month ago that it has been introduced, by a (now famous) J.J. Garret article. In the meantime, looking at this glorious spreading, there has been also someone who did not accepted it as-is, as many did (myself being one of them: I do like the name, and I think that a stack like this should have a name for the love of all the nerds out there).

So, here are the contenders:

  • J. J. Garrett named it. On his blog a lot of people did comply about this (dangerous?) use of a trademarked name of Colgate-Palmolive company. They really did not like to work with a SOAP :)
  • Tantek Celik did not like the term too, and proposed it’s own replacement: CADEX. Pronounced “kay-decks”, and stands for CSS Asynchronous DOM Ecmascript XML/XHTML.
  • Then came Hixie (Ian Hickson), stating that we all should call an apple a apple. He does not like at all not the name, not its meaning, but the fact that now we all call by another name something that did already existed with its own name. (Which name could him have been proposed for TCP/IP? TCP and IP?)

By the way, J. J. Garret is also the inventor of the Visual Vocabulary aka the Garrett Diagrams. They are shipped with Mac OSX OmniGraffle as the Garrett IA shapes.


PHP is weird

Today I run across this strange PHP behaviour. Say, you need to build an associative array from an array. For a task like that, I wrote this:

    $idx=0;
    foreach($planets as $planet)
       $results[$idx++] = $planet;

Guess what? It won’t work. $result is built as a normal array, not associative. And it could be reasonable, after all… but:

    $idx=0;
    foreach($planets as $planet)
      {
        $idx++;
        $results[$idx] = $planet;
      }

Note the increment of $idx wrapped out from the square brackets. Well, after the loop, $result is a shiny new associative array. Ah!


favicon.ico killed

Since yesterday (when I opened this blog) my apache access log it’s been filled with silly favicon.ico requests. They sum up to over 4000! Time to say STOP to favicon logs entry.

First I enabled the mod_setenvif module and then I put these instructions in my virtual host configuration:

 SetEnvIf Request_URI "^/favicon.ico$" dontlog
 customlog /logs/access.log combined  env=!dontlog

That’s all… bye bye favicon.

Oh, and here there’s another approach to the favicon.ico plague: Getting rid of favicon.ico. (It still logs favicon requests though).


I contenuti di questo sito sono distribuiti con una licenza Creative Commons 2.5 eccetto dove diversamente specificato.

Tema WordPress Punto5 sviluppato da Claudio Cicali; icone del set famfamfam silk e komodomedia.

© 2005-2010
Claudio Cicali