<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://supermanhamuerto.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://supermanhamuerto.com/feed.php">
        <title>supermanhamuerto.com - java</title>
        <description></description>
        <link>https://supermanhamuerto.com/</link>
        <image rdf:resource="https://supermanhamuerto.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-19T13:13:13+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:2by2rubikcube&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:addingcomponentsprogramatically&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:allavailabletimezones&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:ayuda&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:comoinstalarlosmodspasoapaso&amp;rev=1686774417&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:concurrentqueue&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:configuringtomcat&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:connecttomantis&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:crearunproyectojsfconeclipse&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:createmd5hashinjavawithspring&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:determinesentimentinspanish&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:developmentmode&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:durationtotext&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:dynamiclanguagesupport&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:eclipse&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:evaluateexpressionsgivenasparameter&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:ficheros&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:fiststepswithhibernate&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:genericloggerasbean&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:hibernate&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:hotdeploymenteclipse&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:howtomakealinklooklikeabutton&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:index&amp;rev=1728148385&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:infocenter&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:instalacionsencillaservidor&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:installationunderlinux&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:installjdk8alternativesubuntu&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:integratinglogconfigurationinspring&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:java7onlinux&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:javabeans&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:javadoc&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:javaservice&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:javaservicelinux&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:jboss&amp;rev=1728147643&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:jdbc&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:jsf&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:jsp&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:junit4&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:ldapconfigfromtheground&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:ldapextloginmodule&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:log4j&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:logginwithfacebookandspringsecurity&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:mapbeanspring&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:maven&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:mimetypes&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:minecraft&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:numerosaleatorios&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:passparametersamongpages&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:pruebasprimefaces&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:queuetester&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:recursiverelationsinhibernate&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:searchinsideajarfile&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:sonar&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:splitapplicationcontextxmlintovariousfiles&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:spring&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:springsecurityprogrammaticallycreateuser&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:standarddeviation&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:staticminisiteinjboss&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:testpi4j&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:thelastpacketsuccessfullyreceivedfromserver&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:tomcat&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:validatorinprimefaces&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:webxml&amp;rev=1670014949&amp;do=diff"/>
                <rdf:li rdf:resource="https://supermanhamuerto.com/doku.php?id=java:writingerrorsinlog&amp;rev=1670014949&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://supermanhamuerto.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>supermanhamuerto.com</title>
        <link>https://supermanhamuerto.com/</link>
        <url>https://supermanhamuerto.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:2by2rubikcube&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>2by2rubikcube</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:2by2rubikcube&amp;rev=1670014949&amp;do=diff</link>
        <description>The Rubik&#039;s cube 2 by 2



Because I&#039;m not good at all at solving this puzzle, I&#039;ve decided to give Java an opportunity to solve it for me. 

So, I&#039;ve made a program to solve the rubik&#039;s cube. If you want to simply run the program, here it is:



Just uncompress the contents of this zip file and you will find a file called</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:addingcomponentsprogramatically&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>addingcomponentsprogramatically</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:addingcomponentsprogramatically&amp;rev=1670014949&amp;do=diff</link>
        <description>Adding JSF components programmatically

I&#039;ve had to search a lot through internet in order to discover how to create JSF components programmaticaly. At the end, I didn&#039;t have to use it in the application I was creating, but I thought it worth to keep the research in some way.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:allavailabletimezones&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>allavailabletimezones</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:allavailabletimezones&amp;rev=1670014949&amp;do=diff</link>
        <description>List all available timezones that are in your JVM

If you read the documentation of TimeZone class in the API (this one points to version 7 of the API), you will find that there aren&#039;t a list of all the available timezones, instead of this you will find this text:</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:ayuda&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ayuda</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:ayuda&amp;rev=1670014949&amp;do=diff</link>
        <description>Integrar Ayuda en Aplicaciones Java

Java Help

Java Help es un sistema desarrollado por Sun. 

&lt;http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=javaHelp&gt;

Ejemplo Sencillo con Java Help

Help Authoring Tools

Es decir, herramientas para hacer ficheros de ayuda. Veamos algunas: 

&lt;http://sourceforge.net/projects/helpmaker&gt;

&lt;http://www.angelicsoftware.com&gt;

Se trata de un procesador de textos que permite guardar en formato .chm, el más popular hoy en día en entornos windows.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:comoinstalarlosmodspasoapaso&amp;rev=1686774417&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-06-14T20:26:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>comoinstalarlosmodspasoapaso</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:comoinstalarlosmodspasoapaso&amp;rev=1686774417&amp;do=diff</link>
        <description>Instalar un servidor de minecraft con mods

Descargar minecraft forge

La versión de minecraft forge debe coincidir con la versión de 
minecraft que queremos. En mi caso me propongo construir un 
servidor de mods de la 1.19.2, así que me he descargado el 
minecraft forge versión 1.19.2:</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:concurrentqueue&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>concurrentqueue</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:concurrentqueue&amp;rev=1670014949&amp;do=diff</link>
        <description>A concurrent version of a queue

This queue class is concurrent: it allows many threads to write in the queue or to read from the queue. If you are interested, I made a highly paralell program to test it.


package com.copytables.util;

public class ConcurrentQueue&lt;T&gt;
{
    private class ElementHolder&lt;Q&gt;
    {
        public Q data; 
        public ElementHolder&lt;Q&gt; next;
        
        @SuppressWarnings(&quot;unused&quot;)
        public ElementHolder()
        {
            this.data = null;
          …</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:configuringtomcat&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>configuringtomcat</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:configuringtomcat&amp;rev=1670014949&amp;do=diff</link>
        <description>Configuring and setting up Tomcat

Intro

Conventions used in this document

CATALINA_HOME refers to the path of your Tomcat installation. In Unix, you should 
refer it as $CATALINA_HOME, while in Windows it will be referred as %CATALINA_HOME%.

Security</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:connecttomantis&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>connecttomantis</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:connecttomantis&amp;rev=1670014949&amp;do=diff</link>
        <description></description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:crearunproyectojsfconeclipse&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>crearunproyectojsfconeclipse</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:crearunproyectojsfconeclipse&amp;rev=1670014949&amp;do=diff</link>
        <description>Crear un proyecto JSF sencillo con eclipse

Comenzaremos abriendo eclipse. Click en file -&gt; other y seleccionaremos “web -&gt; dynamic web project”.

Para conseguir que en “target runtime” aparezca Tomcat 6, lo hablaremos en otro momento. 

Tenemos que seleccionar</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:createmd5hashinjavawithspring&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>createmd5hashinjavawithspring</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:createmd5hashinjavawithspring&amp;rev=1670014949&amp;do=diff</link>
        <description>Create a md5 hash in java with eclipse

Spring does have a not-well-known utility called 
DigestUtils who allows
you to create md5 hashes easily. Here is an example:


import org.springframework.util.DigestUtils;

public class Example
{

public static void main( String[] args )
{
  System.out.println(  DigestUtils.md5DigestAsHex( &quot;Hello world&quot;.getBytes() )  );
} // main

}</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:determinesentimentinspanish&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>determinesentimentinspanish</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:determinesentimentinspanish&amp;rev=1670014949&amp;do=diff</link>
        <description>Determine the sentiment of a text in Spanish

Intro

It&#039;s surprising that up today (07/05/2014), the search on internet of this information gives very few results. Sentiment determination is critical for mining the user&#039;s opinion information. In today&#039;s age, with the vast use of social networks, the users opinion and their emotions (anger, hapiness) and their sentiment (positive or negative) is very important to detect how users react -by example- regarding a particular brand, political party or…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:developmentmode&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>developmentmode</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:developmentmode&amp;rev=1670014949&amp;do=diff</link>
        <description>Configurar modo desarrollo en varios servidores de aplicaciones

Tomcat 7.0

Abrimos el fichero $TOMCAT_HOME/conf/web.xml y editamos la parte “servlet” de jsp. Buscamos donde 
pone &lt;servlet&gt; &lt;servlet-name&gt;jsp y añadimos estas entradas:


        &lt;!-- put tomcat in development mode --&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;development&lt;/param-name&gt;
            &lt;param-value&gt;true&lt;/param-value&gt;
        &lt;/init-param&gt;
        &lt;init-param&gt;
            &lt;param-name&gt;modificationTestInterval&lt;/param-n…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:durationtotext&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>durationtotext</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:durationtotext&amp;rev=1670014949&amp;do=diff</link>
        <description>Convert a time duration into a text

Output in Spanish. I think it would be translatable easily. 


durationToText -&gt;  21 minutos y 57,432 segundos
durationToText -&gt; 3 días, 14 horas, 19 minutos y 0,516 segundos




    private String durationToText( long start, long end )
    {
        NumberFormat format = new DecimalFormat( &quot;###&quot; );
        NumberFormat formatSeconds = new DecimalFormat( &quot;##.###&quot; ); 
        long milliseconds = end - start; 
        long months;
        long modMonths;
      …</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:dynamiclanguagesupport&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>dynamiclanguagesupport</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:dynamiclanguagesupport&amp;rev=1670014949&amp;do=diff</link>
        <description>Dynamic Language Support in Spring

Spring supports the use of scripts. In other words, create a bean in Groovy, Jruby and call it as a normal bean from our application. 

However, when I tried to use this feature of Spring, even with the last up-to-date version (3.1.1), many errors arise, due to the lack of proper libraries.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:eclipse&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>eclipse</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:eclipse&amp;rev=1670014949&amp;do=diff</link>
        <description>Eclipse

	*  Notas sobre plugins eclipse que instalo
	*  The fastest way to make a deployment in eclipse</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:evaluateexpressionsgivenasparameter&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>evaluateexpressionsgivenasparameter</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:evaluateexpressionsgivenasparameter&amp;rev=1670014949&amp;do=diff</link>
        <description>How to evaluate expressions given as parameter

Sometimes it comes in handy to evaluate an expression given as a parameter, to leave open certain parts of the application (how a particular formula is calculated, the set of business rules of the application, etc.). For this, the Spring Expression Parser comes to rescue. Here are two references I&#039;ve used to implement my own case.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:ficheros&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ficheros</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:ficheros&amp;rev=1670014949&amp;do=diff</link>
        <description>Manejo de Ficheros en Java

Página del tutorial sobre manejo de ficheros</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:fiststepswithhibernate&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>fiststepswithhibernate</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:fiststepswithhibernate&amp;rev=1670014949&amp;do=diff</link>
        <description>Put hibernate into your life

I&#039;ve created from zero various projects with hibernate, and because it a step somewhat complex, I&#039;ve decided to document it, so in the following stages it will be easier to achieve. 

Get the mysql driver

Ok, if you are using oracle, you have to change this step for the proper download of the oracle JDBC driver.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:genericloggerasbean&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>genericloggerasbean</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:genericloggerasbean&amp;rev=1670014949&amp;do=diff</link>
        <description>Implementing a logger as a bean in Spring


	&lt;!--  a generic logger --&gt;
  &lt;bean id=&quot;log&quot;
        class=&quot;org.apache.commons.logging.impl.LogFactoryImpl&quot;
        factory-method=&quot;getLog&quot;
        scope=&quot;singleton&quot;&gt;
    &lt;constructor-arg type=&quot;java.lang.String&quot; value=&quot;Mercurio&quot;/&gt;
  &lt;/bean&gt;</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:hibernate&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>hibernate</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:hibernate&amp;rev=1670014949&amp;do=diff</link>
        <description>Hibernate

	*  Hibernate Reference Documentation 
	*  First Steps with Hibernate
	*  Hibernate one to many annotation tutorial
	*  Hibernate save blob
	*  Recursive relations in hibernate
	*  The last packet successfully received from the server was X milliseconds ago
	*  Standard Deviation formula in hibernate</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:hotdeploymenteclipse&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>hotdeploymenteclipse</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:hotdeploymenteclipse&amp;rev=1670014949&amp;do=diff</link>
        <description>The fastest way to make a deployment in eclipse

&lt;WRAP center round info 60%&gt;
Update about Tomcat

When I started this tutorial, I&#039;ve found that every single change
in a web page under JBoss forces this to restart the application. 

Unfortunately it is not the case with Tomcat: Tomcat ignores everything
else except web.xml, and this is a bit cumbersome if you are changing 
jsf or jsp pages frequently, because these changes aren&#039;t detected 
and refected by Tomcat. On the contrary, the pages appea…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:howtomakealinklooklikeabutton&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>howtomakealinklooklikeabutton</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:howtomakealinklooklikeabutton&amp;rev=1670014949&amp;do=diff</link>
        <description>How to make a link look like a button

From time, appears the need of making a link to look like a button. If you search through internet you will see lots of solutions, however, it is surprising that nobody have came across this solution. If you have a link:</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:index&amp;rev=1728148385&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-05T17:13:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>index</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:index&amp;rev=1728148385&amp;do=diff</link>
        <description>Apuntes de Java

Varias notas sobre java. 

&lt;WRAP column 30%&gt;
Application servers

	*  Jboss
	*  Tomcat

Frameworks and Tools

	*  Eclipse
	*  Maven
	*  JSF
	*  JSP
	*  Junit4
	*  Spring
	*  Hibernate
	*  Example of configuration of log4j
	*  Log4j is not process safe

Standards

	*  ESTANDAR JAVA
	*  &lt;http://wiki.metawerx.net/wiki/Web.xml&gt; - toda la documentación sobre “web.xml”
	*  Web.xml
	*  Javadoc made easy
	*  Java Beans
	*  MimeTypes

&lt;/WRAP&gt;</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:infocenter&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>infocenter</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:infocenter&amp;rev=1670014949&amp;do=diff</link>
        <description>InfoCenter -- Four and final attempt

Eventually I&#039;ve found the steps for getting the eclipse infocenter as an standalone application.

Step 1: download the file of this guy

This guy: 

&lt;http://www.ipov.net/apps/blog/2011/01/eclipse-infocenter-help-as-web-app/&gt;

have done all the staff of isolating the infocenter as an standalone application for us. So the only thing we have to do is download the jar file who has provided and install it in a tomcat directory.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:instalacionsencillaservidor&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>instalacionsencillaservidor</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:instalacionsencillaservidor&amp;rev=1670014949&amp;do=diff</link>
        <description>Instalar un servidor en Minecraft sencillo

Intro

Pasos para la instalación de un servidor de Minecraft en linux de forma sencilla y elegante. Nada de complicados scripts o complejas secuencias de pasos.

Creando usuario

Crearemos un usuario que será el que aloje todos los datos del servidor. A mí me gusta crearlo con su propio grupo de seguridad (usuario minecraft, grupo minecraft).</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:installationunderlinux&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>installationunderlinux</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:installationunderlinux&amp;rev=1670014949&amp;do=diff</link>
        <description>Installation of Tomcat under Linux

Preface

These notes are about installing Tomcat in a production environment under apache. This notes were taken while I were installing such product in a machine on a DMZ, so security were my first concern in every step I took</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:installjdk8alternativesubuntu&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>installjdk8alternativesubuntu</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:installjdk8alternativesubuntu&amp;rev=1670014949&amp;do=diff</link>
        <description>Install jdk 8 in ubuntu with alternatives

Install directory of our version of java: /usr/lib/jvm/jdk1.8.0_20

Create a file .java-1.8.0.20-oracle.jinfo

Create a file .java-1.8.0.20-oracle.jinfo with the following content: 


alias=java-8-oracle
priority=100
section=non-free



jre ControlPanel /usr/lib/jvm/jdk1.8.0_20/jre/bin/ControlPanel
jre java /usr/lib/jvm/jdk1.8.0_20/jre/bin/java
jre javaws /usr/lib/jvm/jdk1.8.0_20/jre/bin/javaws
jre jcontrol /usr/lib/jvm/jdk1.8.0_20/jre/bin/jcontrol
jre …</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:integratinglogconfigurationinspring&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>integratinglogconfigurationinspring</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:integratinglogconfigurationinspring&amp;rev=1670014949&amp;do=diff</link>
        <description>Integrating Log Configuration in Spring

Background

As many people out there, I do prefer to have my configuration of the log files in the same file as the rest of the configuration, in other words, in the applicationContext.xml file. 

If you are using</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:java7onlinux&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>java7onlinux</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:java7onlinux&amp;rev=1670014949&amp;do=diff</link>
        <description>Install java 7 on linux by hand

Upgrading the alternatives system for a just downloaded Java

The best and more complete instructions I have found are these: &lt;http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7&gt;

I reproduce them for just in case the other site dissapears the entry.

The same for Java 8

Download and uncompress java</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:javabeans&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>javabeans</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:javabeans&amp;rev=1670014949&amp;do=diff</link>
        <description>Java Beans

Introducción

Los Java Beans -en castellano granos de café java- no son otra cosa que un modelo de componentes para Java. Se estandariza la forma de definir las propiedades (métodos get y set), cómo deben notificarse cambios en los estados del componente (propiedades ligadas, constraints) y cómo acceder a colecciones de elementos (propiedades índice).</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:javadoc&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>javadoc</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:javadoc&amp;rev=1670014949&amp;do=diff</link>
        <description>Javadoc made easy

Intro

This document is about adding javadoc content to your project. Because I&#039;ve read the help and 

Example of javadoc and its result


/**
 * The first sentence appears separated from the 
 * rest of the document, so be careful with 
 * the first dot, who denotes the end of the 
 * first sentence. 
 * 
 * &lt;p&gt;
 * &lt;b&gt;You can use html entities and tags, like &amp;lt;b&amp;gt;, &amp;lt;u&amp;gt;&lt;/b&gt;&lt;/p&gt;
 * &lt;p&gt;
 * Portions of code can be inserted this way:&lt;/p&gt; 
&lt;pre&gt;
public class Circle extend…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:javaservice&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>javaservice</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:javaservice&amp;rev=1670014949&amp;do=diff</link>
        <description>Create your own java windows services using the Jboss service wrapper

Introduction

Java doesn&#039;t fit well with windows services nor daemons. Probably in Java 7 or further versions, resources will be in place to support service integration. While this time comes, Jboss developed an smart wrapper for his Application Server.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:javaservicelinux&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>javaservicelinux</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:javaservicelinux&amp;rev=1670014949&amp;do=diff</link>
        <description>A simple script for creating a service in java

I&#039;ve developed recently a runlevel shell script for a java service. I&#039;ve developed a simple one based on the criteria that it must be adapted to every particular flavor of linux (Ubuntu and SuSE have their particular skeleton files to place a new server, so I imagine that in every case is different.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:jboss&amp;rev=1728147643&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-05T17:00:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>jboss</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:jboss&amp;rev=1728147643&amp;do=diff</link>
        <description>Jboss

Ultimamente me estoy peleando con jboss. Como de cualquier pelea, se aprende algo. Así que anotamos lo que hemos aprendido. 

	*  LdapExtLoginModule
	*  Configuring LDAP for an application from the ground
	*  Secure Jboss
	*  How to create a mini web site to serve static content

Version JBoss [The Oracle] 5.1.0.GA

Todo lo que cuente a partir de este punto es sobre esta versión. Como Jboss es tan caprichoso con las versiones, posíblemente haya cambios significativos entre una versión y l…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:jdbc&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>jdbc</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:jdbc&amp;rev=1670014949&amp;do=diff</link>
        <description>JDBC

JDBC on The Java Tutorials

Un ejemplo sencillo


// Creamos un objeto conexión especificando la clase 
// de driver que vamos a usar
Connection con = DriverManager.getConnection
           ( &quot;jdbc:myDriver:wombat&quot;, &quot;myLogin&quot;,&quot;myPassword&quot;);

Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(&quot;SELECT a, b, c FROM Table1&quot;);

// recorremos el resulset. rs está en la posición 0, 
// de tal forma que la llamada a rs.next() lo posiciona
// en el primer elemento 
while (rs.n…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:jsf&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>jsf</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:jsf&amp;rev=1670014949&amp;do=diff</link>
        <description>Java Server Faces

	*  Crear un proyecto JSF sencillo con eclipse
	*  Primefaces??? Probando, probando...
	*  Adding JSF components programmatically
	*  Pass parameters from one page to another
	*  Validator example in primefaces

Enlaces interesantes

El típico “Hello World”

&lt;http://www.exadel.com/tutorial/jsf/jsftutorial-kickstart.html&gt;

Un tutorial desde el principio, con un mini-proyecto de ejemplo. No sé porqué todo el mundo insiste en que usemos Ant o Maven para construir el proyecto, yo …</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:jsp&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>jsp</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:jsp&amp;rev=1670014949&amp;do=diff</link>
        <description>Java Server Pages

JNDI de Oracle + Tomcat

I don&#039;t know why, but the docummentation about how to properly set a JNDI oracle entry in Tomcat is not
correctly specified. Many documentns scattered here and there, but no one with a full working, modern example.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:junit4&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>junit4</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:junit4&amp;rev=1670014949&amp;do=diff</link>
        <description>JUnit4


Desde que empecé a estudiar esto del java, hace unos dos años, han cambiado muchas cosas, y se nota por el perfil de este artículo que voy a escribir. Mientras que antes hablaba de cómo se manejaba un fichero, o cómo se conectaba a una base de datos usando jdbc, ahora vamos a ir a un tema muy específico: integrar JUnit4 con Spring 3.0.2 y con Eclipse Helios.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:ldapconfigfromtheground&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ldapconfigfromtheground</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:ldapconfigfromtheground&amp;rev=1670014949&amp;do=diff</link>
        <description>Configuring LDAP for an application from the ground

I don&#039;t know if it is your case, but in mine, I have a BIG trouble when configuring a Jboss application to connect to LDAP (Active Directory). The documentation in the jboss website is not very detailed, and it appears as all the websites speak of well-know issues, so they don&#039;t detailed very much the steps need to be done to configure it.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:ldapextloginmodule&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ldapextloginmodule</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:ldapextloginmodule&amp;rev=1670014949&amp;do=diff</link>
        <description>LdapExtLoginModule

See javadoc here

The org.jboss.security.auth.spi.LdapExtLoginModule, added in jboss-4.0.3, 
is an alternate ldap login module implementation that uses searches for 
locating both the user to bind as for authentication as well as the 
associated roles.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:log4j&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>log4j</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:log4j&amp;rev=1670014949&amp;do=diff</link>
        <description>Example of configuration of log4j

I&#039;ve read excelent article of Ceki Gülcü about Log for Java
and I&#039;ve did my configuration file, just for the sake of keep the basic configuration tips handy: 


# 
# log4j.properties - log for java configuration file 
#
# See complete example at http://www.supermanhamuerto.com/doku.php?id=java:log4j


# log levels
#
# if you put here that &quot;any messages above info will  
# be displayed&quot;, what are we talking about???
#
# DEBUG &lt; INFO &lt; WARN &lt; ERROR &lt; FATAL
#
# we…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:logginwithfacebookandspringsecurity&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>logginwithfacebookandspringsecurity</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:logginwithfacebookandspringsecurity&amp;rev=1670014949&amp;do=diff</link>
        <description>Login With Facebook and Spring Security

Introduction

If you search in Internet about this issue, you will find various topics that discuss the issue. However, they aren&#039;t complete or accurate. Because of this, I&#039;ve decided to develop or to adapt my own solution, picking from here to there to reach a complete solution. This paper resumes my researches and conclusions.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:mapbeanspring&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mapbeanspring</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:mapbeanspring&amp;rev=1670014949&amp;do=diff</link>
        <description>A Map Bean (useful to store configuration information)


&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;

&lt;beans xmlns=&quot;http://www.springframework.org/schema/beans&quot;
       xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
       xmlns:aop=&quot;http://www.springframework.org/schema/aop&quot;
       xmlns:tx=&quot;http://www.springframework.org/schema/tx&quot;
       xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
       http://www.springfra…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:maven&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>maven</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:maven&amp;rev=1670014949&amp;do=diff</link>
        <description>Notes on Maven

Intro

Hi, these are my notes on Maven. Probably here are a lot of inaccuracies, because I am using this to clarify myself and to help me to order my mind in the process of using this tool in my projects. 

Some notes of the Maven Architecture</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:mimetypes&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>mimetypes</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:mimetypes&amp;rev=1670014949&amp;do=diff</link>
        <description>Cómo conocer el mimetype de un fichero

De esta página tan interesante -&gt; &lt;http://www.rgagnon.com/javadetails/java-0487.html&gt; he encontrado la manera de obtener el mimetype de un fichero dado. Aquí va el código de ejemplo: 


import javax.activation.MimetypesFileTypeMap;
import java.io.File;

class GetMimeType {
  public static void main(String args[]) {
    File f = new File(&quot;gumby.gif&quot;);
    System.out.println(&quot;Mime Type of &quot; + f.getName() + &quot; is &quot; +
                         new MimetypesFileT…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:minecraft&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>minecraft</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:minecraft&amp;rev=1670014949&amp;do=diff</link>
        <description>Canal Minecraft

	*  Cómo instalar los mods paso a paso
	*  Instalación de un servidor de Minecraft en linux</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:numerosaleatorios&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>numerosaleatorios</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:numerosaleatorios&amp;rev=1670014949&amp;do=diff</link>
        <description>Cómo crear y generar números aleatorios

&lt;http://java.sun.com/javase/6/docs/api/java/util/Random.html&gt;


import java.util.Random; 

Random rnd = new Random(); 

rnd.nextInt( 5 );  // devuelve un número entero aleatorio entre 0 y 4 

rnd.nextLong(); // retorna un entero largo</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:passparametersamongpages&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>passparametersamongpages</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:passparametersamongpages&amp;rev=1670014949&amp;do=diff</link>
        <description>Pass parameters from one page to another in jsf

Intro

I&#039;ve been looking around how to solve this typical problem: to pass one parameter from one page to other (for instance when we prompt the user to select one item on a list and, when clicking a button, switch to another page to edit this very item).</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:pruebasprimefaces&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pruebasprimefaces</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:pruebasprimefaces&amp;rev=1670014949&amp;do=diff</link>
        <description>Start a project from the ground in primefaces and eclipse

This page is a notebook about my findings with primefaces with eclipse. I want to start a project with this architecture: 

	*  primefaces in the view tier
	*  spring and hibernate in the business logic tier</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:queuetester&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>queuetester</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:queuetester&amp;rev=1670014949&amp;do=diff</link>
        <description>QueueTester

Getter class


package com.circularQueue;

public class Getter extends Thread
{
    private CircularConcurrentQueue&lt;String&gt; queue; 
    private String[] destArray; 
    private int from; 
    private int to; 
    
    public Getter( CircularConcurrentQueue&lt;String&gt; queue, String[] destArray, int from, int to )
    {
        this.queue = queue; 
        this.destArray = destArray; 
        this.from = from; 
        this.to = to;
    }
    
    @Override
    public void run()
    {
  …</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:recursiverelationsinhibernate&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>recursiverelationsinhibernate</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:recursiverelationsinhibernate&amp;rev=1670014949&amp;do=diff</link>
        <description>Recursive Entities in Hibernate

Tables can be related with themselves: the foreing key of the table points to the key of the table. 

This bizarre thing is very useful when you want to represent data which is hierarchically dependent in the real world: an organization (with many departments and sub-departments depending one of each other), human organizations (a boss with his employees) or more complex structures (a network of offices who depend on local branches, and those branches depend on t…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:searchinsideajarfile&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>searchinsideajarfile</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:searchinsideajarfile&amp;rev=1670014949&amp;do=diff</link>
        <description>How to search inside a Jar file

Intro

Sometimes it is useful to detect if a certain class is inside a jar file without the tedious process of rename it to .zip, uncompress and make a search. 

It is possible to instruct windows to do the search inside a jar file with a simple change in the registry.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:sonar&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sonar</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:sonar&amp;rev=1670014949&amp;do=diff</link>
        <description>Sonar

How to write a custom rule. 

As far as I&#039;ve investigated, the basic steps are: 

	*  download PMD
	*  In PMD you have a rule designer you can use for create a custom rule. For instance, 

see this article

	*  Once you have a custom rule created in PMD, I guess there is a method to pass this information to sonar, 

I&#039;ve not dive into it so far now</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:splitapplicationcontextxmlintovariousfiles&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>splitapplicationcontextxmlintovariousfiles</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:splitapplicationcontextxmlintovariousfiles&amp;rev=1670014949&amp;do=diff</link>
        <description>Splitting Application Context into various files

I don&#039;t know if it is your case, but I were looking for this many time. I have a project where I have a “tester” environment and a “real” environment. The problem is I have to keep two applicationContext.xml files: one for the testing and another one for the real application.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:spring&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>spring</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:spring&amp;rev=1670014949&amp;do=diff</link>
        <description>Spring

	*  Integrating log configuration in Spring
	*  Splitting Application Context into various files
	*  Dynamic Language Support in Spring
	*  Create a user programmatically in Spring Security
	*  Building a servlet with Spring
	*  Integrate OpenId with Spring Security
	*  Another example of integration of OpenId and Spring Security
	*  Login With Facebook and Spring Security
	*  A Map Bean (useful for store configuration information)
	*  Implementing a logger as a bean in Spring
	*  How to…</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:springsecurityprogrammaticallycreateuser&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>springsecurityprogrammaticallycreateuser</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:springsecurityprogrammaticallycreateuser&amp;rev=1670014949&amp;do=diff</link>
        <description>Create a user programmatically in Spring Security

Intro

Probably Google wouldn&#039;t honour this page at the top of the search engines when the user search for this stuff, however, here it goes my own solution to programmatically create a user using Spring Security.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:standarddeviation&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>standarddeviation</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:standarddeviation&amp;rev=1670014949&amp;do=diff</link>
        <description>Standard Deviation Formula in Hibernate

There isn&#039;t any standard deviation formula in hibernate: 

&lt;http://stackoverflow.com/questions/740293/is-it-possible-to-do-standard-deviation-in-nhibernate/17786363&gt;

However, I think that the better approximation is to calculate it using the following formula:


sqrt((sum(value*value)/count(value)) - (avg(value) * avg(value)))</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:staticminisiteinjboss&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>staticminisiteinjboss</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:staticminisiteinjboss&amp;rev=1670014949&amp;do=diff</link>
        <description>How to create a directory to serve only static content in Jboss

For Jboss 7

Under Jboss 7, things have changed in this issue: Jboss AS 7 enforces the deployment with archive files (.war, .ear and so on) instead of cut-and-paste of the filesystem in the deployment directory.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:testpi4j&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>testpi4j</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:testpi4j&amp;rev=1670014949&amp;do=diff</link>
        <description>TestPI4J: A testing framework for your PI4J Projects

Intro

Have you ever wondered to test your PI4J projects directly from your computer. Avoiding this routines of compile - copy into the pi - run?? Me to. This project is to allow precisely this: I&#039;ve made a testing PI4J library so you can test your development from your computer.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:thelastpacketsuccessfullyreceivedfromserver&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>thelastpacketsuccessfullyreceivedfromserver</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:thelastpacketsuccessfullyreceivedfromserver&amp;rev=1670014949&amp;do=diff</link>
        <description>The last packet successfully received from the server was X milliseconds ago

Intro

This crap will be useful for you if...

	*  Have tried the well known solutions: solution1, solution2
	*  Have searched in google for solutions to this problem and nothing works for you

This problem is soooooo common that the solutions described above should work in most of the cases</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:tomcat&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>tomcat</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:tomcat&amp;rev=1670014949&amp;do=diff</link>
        <description>Tomcat

	*  Installation of Tomcat under Linux
	*  Configuring and setting up Tomcat</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:validatorinprimefaces&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>validatorinprimefaces</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:validatorinprimefaces&amp;rev=1670014949&amp;do=diff</link>
        <description>Validator example in primefaces

Here is the example of a validator in primefaces. The example is based in the following use case: suppose we have a box calle “username” that has to be validated to see if the user entered new username exists previously in the database.</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:webxml&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>webxml</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:webxml&amp;rev=1670014949&amp;do=diff</link>
        <description>The intrinsincs of web.xml

I&#039;ve messing around searching for someone who explains me clearly the intrinsics
of the configuration of the web.xml file and finally I&#039;ve found something 
in a manual from oracle: 

&lt;http://download.oracle.com/docs/cd/E13222_01/wls/docs70/webapp/webappdeployment.htm&gt;

I attach here for the sake of not loose it:</description>
    </item>
    <item rdf:about="https://supermanhamuerto.com/doku.php?id=java:writingerrorsinlog&amp;rev=1670014949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2022-12-02T21:02:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>writingerrorsinlog</title>
        <link>https://supermanhamuerto.com/doku.php?id=java:writingerrorsinlog&amp;rev=1670014949&amp;do=diff</link>
        <description>Writing properly errors in log file

I&#039;ve search ways to properly write one error into Apache Commons Log and I&#039;ve haven&#039;t found anything. At last I&#039;ve decided to create my own method. Here it is (see below). I&#039;ve implemented it as an static method, but you can configure in your own way.</description>
    </item>
</rdf:RDF>
