Spiga
Blog Widget by LinkWithin

Dreamers and Sleepers

There are two kind of people: the dreamers and the sleepers. The dreamers are who dream about their future, dream when sleeping, dream when working, dream when meeting people…and dream about what they want to be, dream and work hard to achieve what they want to reach. The sleepers only sleep, and sometimes, dream, but dream sleeping, not working hard to achieve their dreams, and sometimes they steal the dreams of other people, making other dreams as own but perverting the dream by talking about them but nor working to achieve them.

I love dreamers, even when their dream don’t let them see the ground. Fight for your dreams and never let any sleeper stole your own ilusions.

Galicia and the most powerful European Computer

Extracted from Barrapunto:

"El Centro de Supercomputación de Galicia acaba de anuciar la próxima instalación en su sede de Santiago de Compostela de un nuevo ordenador de características extraordinarias. Un convenio de colaboración entre el CESGA, HP e Intel, la Xunta de Galicia y el CSIC prevé la construcción del mayor supercomputador de memoria compartida de Europa, al que se le llamará "Finis Terrae". Según informan en la nota de prensa, esta infraestructura "contará con una arquitectura de memoria compartida de más de 19.000 GB y un sistema de almacenamiento jerárquico de 390.000 GB en disco y un petabyte en librería robotizada de cintas. El superordenador trabajará con software libre como Linux, Lustre, Globus, etc."

Celtic Rulez!!! XD

"Haciendo el Indio con Cherokee"

This is the title of a Conference from Alo, tomorrow at the UEM. Cherokee is a fast web server created by Alo that has grown too much recently.

More information about Cherokee: here and here.

SIRIo: Defining the web service

We have two ways of creating a java web service using Axis:

*Creating first the source code, generate the services.xml and the create a *.aar file (Axis Archive) for the web service for deploying it (more information about this way here)

*Creating first the WSDL and then generate the code skeleton for a posterior implementation of the Business Logic.

I’m going to implement the SIRIo Web Service using the second possibility. First we must define the WSDL of the web service. For creating it we should state in mind which are going the public methods and the parameters for those methods. For the SIRIo beta web service we define only one method:

Public method correctAddress( address : Address ) : AddressResult[]

We should also define the non standard datatypes as are Address and AddressResult.

Address [
Town Code: String;
Postal Code: String;
Road Type: String;
Road Name: String;
Road Number: int;
]

AddressResult[
Address: Address;
Probability: Float;
Reason: String;
]

The address definition is evident as it contains all the information related with an address. The AddressResult is the proposed address (if the input address is not correct) plus a probability of being the correct address and a reason of why the system thinks this is a correct address.

When we hace all this defined, we are allowed to create the wsdl file containing all this information (and some more) in a more structured way. The wsdl defining the SIRIo web service is in the AINetSolutions web for SIRIo.

SIRIo Infrastructure

For developing the SIRIo Web Service, I’ve been testing some tools. What I’m going to use finally are:

-Apache Tomcat as Servlet container
-Apache Axis 2.0 as Simple Object Access Protocol (SOAP) implementation.
-MySql as database management system
-Php as scripting language to develop the html based client to access the Web Service
-Apache 2 as web service (with php5 installed as mod)
-Java 1.5 as main development language for the Web Service.

Installing java 1.5 is very simple; download the files from here and install with the installer for your OS. For installing Apache, Mysql and Php, there is a lot of documentation (depending also on the OS you are going to run your web-service), but for developing the Java based Web-Service itself there is not so much information available. I’m going to describe all the steps for developing this web service as a reference point for developing a java based web service (I would release some articles about the SIRIo development, explaining all the steps)

The first step is to install Apache, Mysql and php. There are a lot of bundles containing all these applications, for example XMMS (which I referenced some time ago in this web log). Next we should install Apache Tomcat which is a very simple step explained in the Tomcat documentation. Next we are able to instal Axis 2.0, deploying the Axis2.0 war we can download from the Axis webpage (the information for installing Axis is here).

Now we have everything installed and ready to develop our own web service.

SIRIo

Today I've been working on SIRIo that is the result of the development of a new technology developed for retrieving information from possibly non-well formulated queries.

For example, if you want to search for information about "Arturo Soria" you should put "Arturo Soria" in the web search engine and you'd be able to access that information. But suppose you make a mistake when writing your query, just as an error or because you don't know how to write it well. The resultant query could be something like "Harturo Sarria", and the web engine could not give you any information.

SIRIo makes a normalization of the information it contains and also a normalization of the query, and then makes some different queries trying to retrieve the most relevant information. For example, if our database contains information about the roads in Madrid, searching for "Harturo Sarria" would return information about the road "Arturo Soria" without needing the user to guide any search process.

Bye, Bye, Lem

Yesterday, Stanislaw Lem died in Cracovia at the age of 84. He has been one of the most important Science Fiction Writers ever. His most known book is Solaris, which has been adapted twice to the cinema.

Rest in peace.

Axis 2.0

Apache Axis2 is an implementation of the SOAP recomendation from the W3C. Axis2 helps us a lot in the development of a web service or where trying to access an existing web service from our application, due to the tools that generates the WSDL automatic generation and the automatic generation of java code that encapsulates the SOAP communication.

Brilliant requirement

I was looking for information about how to call a Web Service from Java, as I'm working on the definition for the next work on the subject "Programacion Concurrente y Distribuida", and I found the next web: CoffMan where I found a paragraph that made me laugh: "Recordad, que si usais Windows, debeis de Cambiar de Sistema Operativo o Sustituir los ":" por ";" punto y coma."

A really brillian requirement!! :D

El mundo de Yarek


As this weekend I couldn't concentrate as I would, I've read "El mundo de Yarek", a very interesting book from Elia Barceló. Is a very interesting text about the limits of the human moral and the relativity of everything.

"El especialista en vida alienígena Lennart Yarek, miembro eminente de la Academia Interplanetaria de Estudios Ahumanos, es juzgado culpable del genocidio de los habitantes del planeta Viento, los aarea, a quienes, según la acusación, catalogó como especie animal no inteligente con el fin de utilizar en su propio beneficio la disponibilidad de su mundo para la colonización humana. Ahora, Yarek se enfrenta a la más terrible de las condenas: veinte años de destierro en un planeta deshabitado, estéril, con la sola compañía de un ordenador, sus recuerdos y sus pesadillas.

Con este punto de partida -y un buen montón de fantásticos giros en la trama esperando a cada vuelta de página-, El mundo de Yarek nos envuelve en la experiencia extrema de un hombre que irá pasando del pánico a la frustración, la culpa, el hastío y el mesianismo.

Como todos los buenos textos de ciencia ficción, esta novela se vale del género como gran metáfora para tratar con sutileza asuntos profundamente humanos. La soledad, el sentimiento de culpa, la ambición, el estatus ambiguo de las categorías de verdad y realidad son algunas de las claves desde las que abordar su lectura. Pero sobre todo -y también aquí El mundo de Yarek es un magnífico representante del género en que se inscribe- se trata de una novela trepidante e imaginativa que atrapa al lector desde el principio y no lo suelta hasta su inesperado final."