31 Jan 2006

30secondrule

I don't need there services but I really like their website and there philosophy: "simplicity and client first".

I known this sound really "marketing" but at least there website is a proof of concept for simplicity.

30 Jan 2006

The best blonde joke ever

Normally I'm not the type of person who likes jokes based on stereotypes, but here's a blonde joke that amused me.

Technorati tags:

27 Jan 2006

Waterfall2006

Thanks julien for the link, it's just too funny: waterfall2006
We're sorry but registration is not yet ready. Our software developers have a really wonderful design. They're almost done entering it into it a UML tool. They've told us not to worry and that finishing it will be "trivial" because "all that's left is the coding."


Technorati tags:

Java 1.5 features - About time to use them for real...

Java 1.5 is out for quite a long time now but I've never actually used the new features like:
Technorati tags:

19 Jan 2006

No Patents

An interesting article [fr] by julien about the patents war and there consequences in IE (flash animations...).

Technorati tags:

16 Jan 2006

Version nightmare ?

I spend more time changing software versions than actually coding!
These days I updated:
  • Rails 0.14 > 1.0
  • Radrails 0.4 > 0.5.2
  • Subclise ? > ?
  • MySql 4.1 > 5.0
  • MySql Query Browser ? > ? (don't remember)
  • Eclipse WTP 0.7 > 1.0
  • ...
I'm tired of changing versions...

Technorati tags:

12 Jan 2006

How to change cocoon ajax fade affect


<script type="text/javascript">
var myFader = function(elt) {
new cocoon.ajax.Fader(elt, "#EBCA7A").start();
}
cocoon.ajax.BrowserUpdater.highlight = myFader;
</script>

Credit goes to philou and vincent ;)

Nice javaworld introduction about SOA

I'm not much into the SOA buzz and this javaworld article introduction summarize my opinion in a funnny way:
(...)Its core premise is beautifully simple and applies to all technologies, all platforms, and all industry verticals?Java Platform, Enterprise Edition (JEE), .Net, all variants of LAMP (the use of MySQL with Linux, Apache, and Perl, Python, or PHP), Ruby on Rails, the public sector, commercial, airlines, healthcare?the list is almost endless. The answer: Because SOA has become a bandwagon for desperate IT sales forces trying to shore up revenues with unneeded toolkits and runtimes, and a flag of conveniences for vendors who want to give their applications a quick buzzword botox injection. Read on as Humphrey Sheil explains where SOAs fit in the JEE world, how a pragmatic SOA can add real business value, and how best to leverage SOA in your JEE application.
Technorati tags:

Duck Typing

Today I discovered the expression: "Duck Typing".
Amongst other languages, ruby seems to heavily rely on this way of coding:
if it walks like a duck, and talks like a duck, then it might as well be a duck.
More about this suject:
Technorati tags:

9 Jan 2006

XSD schema validation for XSL (and auto-completion in eclipse)

Update: I you are interested only by the eclipse part of this post take a look at a more recent/specialize post: "XSD schema validation for XSL and auto-completion in eclipse (second edition)"

If you want information about xerces, ant, xsl and validation keep reading this one ;) Good luck!



I wanted to have auto-completion and validation on xsl in eclipse. I did it but it was hard!

First You need to understand how xsd works. For syntax examples see xerces doc at the bottom of the page.
You can add those lines to your stylesheet:

<xsl:stylesheet xsl="http://www.w3.org/1999/XSL/Transform" xsi="http://www.w3.org/2001/XMLSchema-instance" schemalocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd" version="2.0">

But according to the w3c spec you can override the schema location with a global attribut.
The W3C doc about this: http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation
"2.6.3 xsi:schemaLocation, xsi:noNamespaceSchemaLocation
The xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes can be used
in a document to provide hints as to the physical location of schema documents
which may be used for ·assessment·. See How schema definitions are located on
the Web (§4.3.2) for details on the use of these attributes."
In eclipse-3.1 you can do it in Window>Preferences>Web and XML>XML Catalogue:

In Xerces you can do it with a property - see the doc.

In Ant you can set xerces property in xmlvalidate ant task (but there was a bug, I provided a patch here)
An ant build file snippet to validate xsl:

<xmlvalidate failonerror="yes" lenient="no" warn="yes">
<attribute name="http://xml.org/sax/features/validation" value="true">
<attribute name="http://apache.org/xml/features/validation/schema" value="true">
<attribute name="http://xml.org/sax/features/namespaces" value="true">

<property name="http://apache.org/xml/properties/schema/external-schemaLocation" value="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd">

<fileset dir="xsl-schemaLocation" includes="*.xsl">
</fileset>
</property></attribute></attribute></attribute></xmlvalidate>

Interesting resources I found will investigating all this:

Technorati tags:

When testing is fun

Well sometimes my job is funny ;)

For exemple I'm testing a meta-search engine that makes queries to other search engines and aggregates the results.

When looking for the word "rouen", the "Catalogue collectif des BU de France" (an university seach engine) returns those results (it looks like students'theses) :
  • Évaluation de la durée de vie et diagnostic des bobinages statoriques de la machine asynchrone ... - Pascal Le Clec'h - Le Clec'h
  • Modélisation et étude expérimentale de la combustion du charbon pulvérisé - Xiaofang You - You
  • Synthèse d'analogues phenylpyridiniques du rhazinilame - par Anne-Laure Bonneau - Bonneau
  • Méthodes à noyaux pour la représentation et la discrimination de signaux non-stationnaires - Vincent Guigue - Guigue
  • Antibiothérapie probabiliste aux urgences du CHI d'Elbeuf - Sendilcoumare Kalimouttou Kalimouttou
Funny :)

5 Jan 2006

The new philou web site.

Take a look at the new website: cestdelamerde.com of one of my coworker named after his favorite sentence ;)