Version 24

    This is a playground - do whatever you want.

     

    Change 2

     

    Ala ma kota a kot ma Alę

     

    Tomek is the best !

    (we all agree !):

     

    Damon,

     

    Rali,

     

    Lim,

     

    Bernardo,

     

    ... and others

     

    was(

    only if you fix the layout though

    the table is messed up

    )

     

     

    rali - do not madrzyj sie ! --OK, I wont, you fixed it

    and adam is (ok... maybe not) we all agree (see list above)

     

    god - i like the whole wiki idea !

     

    adam is (ok... maybe not)

    ...

     

    Jan Kochanowski

     

    XML book test

    A Treatise on Virtue and Friendship

     

     

         Virtue: we love it even in a foe and in strangers. Why? What does virtue consist of?

         First, it consists of wisdom which knows what should be sought and what avoided; second, of justice which gives everyone his due; third, of the loftiness of mind which disregards temporary things; fourth, of modesty in speech and action.

         Out of these four elements many others derive, and they in turn make men into civilized beings.

         In contrast, intelligence breeds learning which is manifold. The first among the branches of learning is the knowledge of knightly rights and duties, then the laws of the kingdom, and then the liberal arts.

         Thus two things ennoble man: his habits and his mind. The habits originate in virtue, and a good mind originates in learning. Both are important to have. But if you can acquire only one of them, take virtue over intelligence; for intelligence without virtue is like a sword held by a madman, whereas virtue, even deprived of intelligence, is useful and laudable.

         People love both virtue and learning, but they also cherish material goods and advantages. Simple people in particular are easily attracted by generosity and gifts. However, friendship made from generosity does not last because the gift is cherished more than you, and when you have nothing to give such a friendship dissolves as well. Those who remember a good deed are very few.

         Thus if you give, remember two things. First, give in such a way as not to bring yourself into dire poverty. Second, give to those who are worthy: doing good to them, you do good to yourself.

         There is also verbal giving. You can be useful to another person if you give him good advice, or a timely warning: you can earn gratitude this way also.

         You can also be useful to your neighbor by doing things that are of use to him. Here, however, you must be careful not to transgress against virtue and decency for the sake of doing him a favor. You can praise him, however, and best of all not in his presence but behind his back. This you can do for a friend.

         However, it is impossible to be liked by all (for what one cherishes, another loathes). Thus the best policy for those who seek prestige and friendship is to behave in a virtuous way at all times, for anyone will respect that. If such a person does not win friendship and respect, it is not his fault but the fault of those who do not love virtue.

         It is not good to have too many friends, for if love is divided into too many parts, it is not as strong as one that is not, and who loves but little is also loved little.

         My advice then is to have few trustworthy friends. Aspire to enter a friendship such as that between Pylades and Orestes, Piritous and Theseus, Damon and Phinthias, Scipio and Scaevola.

         To acquire such friends, you can use the advice given above, but you also need other qualities of mind, and you need to be patient. Remember to be loyal and generous yourself, as long as this does not impinge on virtue.

         Remember also that like attracts like, and people of the same habits and professions feel attracted to each other. Thus soldiers like soldiers, and hunters find much in common with other hunters.

         As gold in a fire, so a friend is proven in need. Remember then that if your friend is in need, you have an opportunity to prove yourself and to show him that you are truly a friend of his. In contrast, flatterers will follow you like a shadow on a bright day as long as you are successful and prosperous; but when the wheel of fortune turns the other way, they become like the shadow on a cloudy day: they disappear. It is fit for a righteous man to stand firmly with his friend against fortune, which is fickle.

         And because the foundation of friendship is virtue, you have first of all to become good yourself, and then, being righteous yourself, look for friends among the righteous.

         Slothful, spendthrift, greedy and quarrelsome people make poor friends. Good deeds, hope, love, learning, patience and flattery - all that gains us love of others.

         Do you remember what Hercules did to be loved?

         Remember, two causes awaken love in men. One is being worthy of love, or being virtuous. The other is the self-love of the person who loves you.

     

    +Translated by Cedric Spak who graduated from Rice University in Spring 1993.

    "The Sarmatian Review", September 1993, Volume XIII, Number 3.+

     

     

    bliblib.

     

    fkowekfpowekpfkowpe

     

    fkweopfkwpeoqkfew

    f

    wqf

    ew

    fw

    e

    few

    f

    we

    fewqfewkpf weqp kfpw ekpqkfpwqeo pfkfwpqekpfkqwpefp wkpef kpqwkepf kwqpke fpkwpe fkpqwok epkwqpfkwpqokepf kqwpek fpqwokepf qwpekfpwq kepfkpqwkepf kqwpoe fpqowkpfe kqwpekfpqwk efpkoqwpoe fpoqkwpefk pqwokpefokq wpefokpqw efpowefpkqwpeo fpqwok efpokwe.

     

    T??M?? GENERAATORI ON KOEK??YT??SS?? JA SYNTAKSI VOI VIEL?? MUUTTUA YLL??TT??EN.  ??LK???? SIIS RIPOTELKO NIIT?? DIAGRAMMEJA IHAN JOKA SIVULLE, TAI JONKUN PIT???? SIIVOTA NE SITTEN...

     

    Puh.  Noin.  Niin, nyt on olemassa diagrammigeneraattori.  Syntaksi on lyhyk??isyydess????n seuraava:

     

    [{GoDiagram  
    label='T??h??n jotain teksti??'
    first='white'
    
    | . . . .
    | 1 . 2 .
    | . X . .
    | . . . .
    +--------
    }]
    
    

     

    josta tulee:

     

     

     

    Huomaa, ett?? v??litt??m??sti kuvan j??lkeen olevat kommentit tulevat kuvan oikealle puolelle.  Tripla-backslash (\) katkaisee ja aloittaa siististi uudelta rivilt??.

     

    \

     

    Parametrit:

     

    • label : Teksti joka sijoitetaan kuvan alle.  Valinnainen.  Voi sis??lt???? ihan mit?? vaan wikiteksti??, ml. hyperlinkkej??, jne.  Huomaa kuitenkin, ett?? erikoismerkit pit???? erist???? \-merkill??, esmes \' ==> '.  Samaten jos haluat rivinvaihdon, sinun pit???? kirjoittaa nelj?? '\' -merkki?? :-/.

    • first : Numeroiduissa siirroissa merkitsee kumpi onpi ensin, musta eli valkoinen.  'white' tarkoittaa sit??, ett?? ykk??sell?? merkitty siirto on valkoisen.  T??m??kin on valinnainen, ja jos sit?? ei ole m????ritelty, niin silloin ykk??nen on mustan siirto.

     

    Merkit:

    • |, +, - = laidat.|

    • . = tyhj??

    • , = hoshi

    • X,  = musta

    • O = valkea

    • Xt, Ot = kolmiolla (t for triangle) merkitty mustan tai valkean kivi.

    • 1,2,3,...,99.  Numeroitu siirto.

    • a,b,c,d,...z.  Kirjain.

     

    -


     

    Vikaraportteja ja ehdotuksia.

     

    T??m?? on todellakin vasta ensimm??inen iteraatio.  Jos havaitset ongelmia, puutteita, tjms.  kirjaa ne t??nne, kiitos!  Jos fiksaat probleemeja, sen parempi!  Koodin saa t????lt?? tai suoraan CVS:st??... --[JanneJalkanen|JanneJalkanen]

     

     

    -


     

    Ei my??sk????n varmaan kannattaisi laittaa giffej?? taulukkoon, koska t??ll??in niiden v??liin n??ytt??isi pystysuunnassa tulevan pieni ep??esteettinen rako. Esim.

    ja koodiin varmistus ett?? diagrammit p??dd??t????n samankokoisiksi sivusuunnassa tyhjill?? kuvilla?

     

    --[PaavoPietarila|Paavo Pietarila] 08-11-02

     

    Bjoo, kokeilin sek?? siis sit??, ett?? kuvat laitetaan siihen per??kk??in (kuten sun generaattorissasi), mutta se tuntui generoivan viel?? enemm??n ongelmia kuin tuo taulukko.  Tuo taulukko ei pikaisesti Mozillalla ja Konquerorilla testattuna n??ytt??nyt generoivan ongelmia.  Mik?? selain?

     

    --[JanneJalkanen|JanneJalkanen], 08-11-02

     

    Selain oli Mozilla 1.1. Kotona linuxilla tuli rakoja ja t??iss?? wintoussilla ei.. olikohan hallu? No, voi johtua mist?? vaan varmaankin. --[PaavoPietarila|Paavo Pietarila] 08-11-02

     

    Hm.  Mulla Mozilla toimii p????s????nt??isesti ihan oikein, mutta sitten IE 5.5 n??ytt???? t??ysin satunnaisesti heittelev??n sinne tyhji?? rakoja.  N??keek?? joku muu samaa ongelmaa?

     

    --[JanneJalkanen|JanneJalkanen], 09-11-02.

     

    -


     

    Ne diagrammit vois laittaa ihan v??rill?? ja toi laudan reuna paksummalla marginaalilla ?

     

    --[Kijoe|Kijoe]

     

    M?? olen ihan onneton v??rien kanssa (katsokaa vaikka mit?? rutinaa JSPWiki 1.8.2 sai aikaiseksi :-)... Jos joku muu osaisi sanoa mit?? v??rej?? minne, se olisi hyv??.

     

    --[JanneJalkanen|JanneJalkanen]

     

    Eih??n tota marginaali itseasiassa tarvitakkaan kunhan vain laudan v??ritt????. V??riksi k??visi joku oranssin, oranssin ruskean tai ruskean s??vy.

     

    --[Kijoe|Kijoe]

     

    Mun mielest?? ei v??rej??, toi mustavalkea on kivan asiallisen tuntuinen. Jos haluaisi hyv??nn??k??isen laudan, niin sitten pit??isi k??ytt???? jotain joka on ainakin yht?? hyv?? kuin gGo:ssa (esim KGS:n tai cgobanin setti on minusta liiaksi marmorikuulalelun n??k??inen). gGo:ssakin se lauta itse n??ytt???? enemm??nkin roiskeelta talouspaperissa kuin laudalta. Lyhyesti: Minusta vastaavan

     

    test,test...

     

    MaGuggn

     

    -


    JAXR - An Overview

     

    JAXR is a set of API that provides for accessing of various kinds of registries.

    There are many XML regsitries as well as specs provided for the same like ebXML and UDDI (Universal Description, Discovery, and Integration).

    The JAXR information model help us in describing the content and metadata of the XML registries.

     

    The JAXR Components

     

    There are two parts to JAXR

    JAXR Client - Which uses the API to access the registry.

    JAXR Provider - Which is an implementation of the JAXR API to provide access to the specific registry provider.

     

    The basic interfaces for accessing the registry is

    Connection - This is the client session with the Registry Provider\

    RegistryService - This is obtained from the connection and helps the client to access the other interfaces.

     

    The Registry like any database contains information which can updated and selected. To do so there are two primary interfaces which are used

    BusinessQueryManager which allows the client to query on the Registry information.

    BusinessLifeCycleManager which allows the client to modify the registry information.

     

    Implementation

    The JAXR API can be downloaded from the SUN Webservices site http://java.sun.com/webservices/downloads/1.5/index.html. We need to have all the jars because JAXR uses other webservices API like SAAJ and JAXB. Once installed, we need to have the jaxr-api.jar and jaxr-impl.jar in our path. We would also need the JAXB and SAAJ API to be present as they are required by the JAXR implementation.

     

    Connection factories can be obtained by setting the properties. There are usually two URLs used. One one for querying and one for publishing or updating. Since we are using the JBossWS the URLs that we will be using are

     

    String queryURL = "http://localhost:8080/juddi/inquiry";

    String publishURL = "http://localhost:8080/juddi/publish";

     

    We then get a new instance of the ;:Connection object from the ;:ConnectionFactory and create a Connection.

     

    +factory = ConnectionFactory.newInstance();

    factory.setProperties(props);

    conn = factory.createConnection();+

     

    Once we get a connection we can get the ;:RegistryService object from it and then get the BusinessQueryManager and the ;:BusinessLifeCycleManger objects from the RegistryService.

     

    RegistryService rs = connection.getRegistryService();

    BusinessQueryManager bqm = rs.getBusinessQueryManager();

    BusinessLifeCycleManager blcm = rs.getBusinessLifeCycleManager();

     

    Now since we have these two objects we can run queries and updates on the registry

     

    Querying

    The ;:usinessQueryManager interface provides a set of methods to query the registry. Some important menthods are findOrganizations, findAssociations and findServices.

     

    findOrganizations: This method takes Collections of various objects as their input. Using these objects, this method creates the query which is used to lookup the registry. These objects include

    1) The patterns to lookup. These are text Strings. We can use Wildcard characters here.

    2) The qualifiers used between the patterns (AND the patterns, OR the patterns etc.)

    3) The classification of the Organization. For e.g. the organization can be classified on what it sells or on where it is located.

    4) The specification of the RegistryObjects to look up.

    5) The ExternalLinks which are URI to resources outside the Registry.

    6) The ExternalIdentifiers to the Registry, which may be the SSN or perhaps the

    All this put together we can query the registry by calling this method.

    BulkResponse bulkResponse = bqm.findOrganizations(findQualifiers, namePatterns, classfications, specifications, externalIdentifiers, externalLinks);

    Collection orgs = response.getCollection();

     

    Using other criteria for searches

    There are various classification schemes and identifiers present for various organizations. If we have knowledge of these taxonomies we can query on the registry with that data.

     

    If the service offiers data which is in the form of WSDL then we can use the same in the form of specifications. It is actually the concept which is used a proxy for holding information about the specification. The BusinessQueryManager provides a method, findConcepts which we can use to search a registry based on the WSDL Specification.

     

    We can also search for services and bindings using the findServices and the findServiceBindings. Once we locate a service which we need to use we can invoke the same using the WebServices API which is provided by Java.

     

    Besides these we can query on Associations and Classification Schemas as well just to name a few.

     

    Creating Organizations

    One of the complex objects on the JAXR API is the Organization object. This usually has a name, a description and a key Object to identify this Organization. The keys are never created by the user but are returned by the registry from the method creating the Organization. The Organization also contains classifications and other other details about the itself like email address, contacts etc.

     

    We use the BusinessLifeCycleManager to call the methods to create objects and store them in the Registry.

     

    +Organization organization = blcm.createOrganization(s);

    String intString = blcm.createInternationalString("An organization to test?");

    org.setDescription(s);+

     

    As above we can add other attributes to the Organization like contacts and Classifications.

     

    Creating Services

    One of the most essential use of a Registry is that different systems use it to offer their Services. Its not essential to just have the service. We also require the ServieBinding to be present for the service. These ServiceBindings provide the access to the Service. The JAXR API provide an easy way to add not just Services, but their bindings as well.

     

    Similar to Organizations, Services have names and keys as well. And they are created by the BusinessLifeCycleManager

     

    +InternationalString string = blcm.createInternationalString("New Service Here"));

    Service service = blcm.createService(s);

    string = blcm.createInternationalString("This Service needs a description too?");

    service.setDescription(is);

     

    ServiceBinding binding = blcm.createServiceBinding();

    string = blcm.createInternationalString("Service binding huh?");

    service.setDescription(is);+

     

    Publishing

    Once Organizations, Services and ServiceBindings are saved they can now be published using the save methods. These methods update the registry on the provider.