<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Liferay Latino Blog &#187; General</title>
	<atom:link href="http://www.lrlatinoblog.com.ar/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lrlatinoblog.com.ar</link>
	<description>La comunidad latina de Liferay</description>
	<lastBuildDate>Sat, 19 Nov 2011 18:47:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Agregar un editor WYSIWYG a un portlet</title>
		<link>http://www.lrlatinoblog.com.ar/2011/11/19/agregar-un-editor-wysiwyg-a-un-portlet/</link>
		<comments>http://www.lrlatinoblog.com.ar/2011/11/19/agregar-un-editor-wysiwyg-a-un-portlet/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 18:45:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[desarrollo]]></category>
		<category><![CDATA[Diseño]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[CKEditor]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com.ar/?p=210</guid>
		<description><![CDATA[Interesante nota de Erik Andersson en el site de Liferay donde explica como agregar un editor WYSIWYG a un portlet propio, y como se puede personalizar cambiando las barras de herramientas existentes o creando las propias. &#160;]]></description>
			<content:encoded><![CDATA[<p>Interesante <a href="http://www.liferay.com/web/erik.andersson/blog/-/blogs/11490753" target="_blank">nota</a> de Erik Andersson en el site de <a href="http://www.liferay.com" target="_blank">Liferay</a> donde explica como agregar un editor WYSIWYG a un portlet propio, y como se puede personalizar cambiando las barras de herramientas existentes o creando las propias.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2011/11/19/agregar-un-editor-wysiwyg-a-un-portlet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comprimir CSS y JavaScript</title>
		<link>http://www.lrlatinoblog.com.ar/2011/04/09/comprimir-css-y-javascript/</link>
		<comments>http://www.lrlatinoblog.com.ar/2011/04/09/comprimir-css-y-javascript/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 18:28:06 +0000</pubDate>
		<dc:creator>joyola83</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Optimizacion]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com/?p=69</guid>
		<description><![CDATA[YUI Compressor es una herramienta que permite la reducción del tamaño de archivos Javascript y CSS permitiendo una optimización del tiempo de transferencia entre el servidor web y el browser. Los archivos Javascript son comprimidos eliminando comentarios y espacios en &#8230; <a href="http://www.lrlatinoblog.com.ar/2011/04/09/comprimir-css-y-javascript/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>YUI Compressor</strong> es una herramienta que permite la reducción del tamaño de archivos Javascript y CSS permitiendo una optimización del tiempo de transferencia entre el servidor web y el browser.</p>
<p>Los archivos Javascript son comprimidos eliminando comentarios y espacios en blanco, como asi tambien ofuscando variables locales utilizando nombres cortos.  Los archivos CSS son comprimidos haciendo uso de expresiones regulares basadas en CSS minifier.</p>
<p><strong>Instalación de YUI Compressor</strong></p>

<div class="wp_syntax"><div class="code"><pre class="powerscript" style="font-family:monospace;">sudo aptitude install yui-compressor</pre></div></div>

<p><strong>Comprimir y Obfuscar Javascript</strong></p>

<div class="wp_syntax"><div class="code"><pre class="powerscript" style="font-family:monospace;">cat *.js &gt; original.js
yui-compressor -type js -o compressed.js original.js</pre></div></div>

<p><strong>Comprimir CSS</strong></p>

<div class="wp_syntax"><div class="code"><pre class="powerscript" style="font-family:monospace;">cat *.css &gt; original.css
yui-compressor -type css -o compressed.css original.css</pre></div></div>

<p><strong>Utilizar YUI Compress con ANT</strong></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;yuicompressor.classpath&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${yuicompressor.dir}&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
         <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/yuicompressor-2.2.5.jar&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
         <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/YUIAnt.jar&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
         <span style="color: #009900;">&lt;!– include <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;**/rhino*.jar&quot;</span>/ –<span style="color: #000000; font-weight: bold;">&gt;</span></span>
   <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/path<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> 
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;js.compress&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;yuicompress&quot;</span> <span style="color: #000066;">classname</span>=<span style="color: #ff0000;">&quot;com.yahoo.platform.yui.compressor.YUICompressTask&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">refid</span>=<span style="color: #ff0000;">&quot;yuicompressor.classpath&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
       <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/taskdef<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;yuicompress</span> <span style="color: #000066;">warn</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">munge</span>=<span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #000066;">preserveallsemicolons</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000066;">outputfolder</span>=<span style="color: #ff0000;">&quot;${js-min.dir}&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fileset</span> <span style="color: #000066;">dir</span>=<span style="color: #ff0000;">&quot;${js.dir}&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;javascript/*.js&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fileset<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/yuicompress<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p><strong>Utilizar YUI Compress con Maven</strong></p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;project<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>net.alchim31.maven<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>yuicompressor-maven-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;executions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;execution<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;phase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>package<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/phase<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;goals<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;goal<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>compress<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/goal<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/goals<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/execution<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/executions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;failOnWarning<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/failOnWarning<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;nosuffix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/nosuffix<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;force<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/force<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;aggregations<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;aggregation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                      <span style="color: #808080; font-style: italic;">&lt;!-- Elimina los archivos declarado en agregations (default: false) --&gt;</span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;removeIncluded<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/removeIncluded<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                      <span style="color: #808080; font-style: italic;">&lt;!-- Inserta una linea despues de concatenar los archivos (default: false) --&gt;</span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;insertNewLine<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/insertNewLine<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                      <span style="color: #808080; font-style: italic;">&lt;!-- Es el archivo generado a partir de comprimir cada JS --&gt;</span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;output<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>${project.basedir}/${webcontent.dir}/js/compressed.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/output<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                      <span style="color: #808080; font-style: italic;">&lt;!-- Los archivos JS que deben comprimirse --&gt;</span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;includes<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>                
                          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;include<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>javascript/*.js<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/include<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/includes<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
                      <span style="color: #808080; font-style: italic;">&lt;!-- Los archivos JS que deben omitirse --&gt;</span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;excludes<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	                 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;exclude<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>...<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/exclude<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/excludes<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/aggregation<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/aggregations<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/build<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
...
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/project<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2011/04/09/comprimir-css-y-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sentencia: try-with-resource (Java 7)</title>
		<link>http://www.lrlatinoblog.com.ar/2011/03/24/sentencia-try-with-resource-java-7/</link>
		<comments>http://www.lrlatinoblog.com.ar/2011/03/24/sentencia-try-with-resource-java-7/#comments</comments>
		<pubDate>Thu, 24 Mar 2011 19:57:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com.ar/?p=140</guid>
		<description><![CDATA[Los resources son objetos que deber ser cerrados despues que se terminaron de utilizar. Pomemos mencionar a InputStream o OutputStream como ejemplos de resources. Para cerrar un InputStream debemos escribir el siguiente código: InputStream in = null; try &#123; in &#8230; <a href="http://www.lrlatinoblog.com.ar/2011/03/24/sentencia-try-with-resource-java-7/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Los <strong>resources</strong> son objetos que deber ser cerrados despues que se terminaron de utilizar. Pomemos mencionar a <strong>InputStream</strong> o <strong>OutputStream</strong> como ejemplos de <strong>resources</strong>.</p>
<p>Para cerrar un InputStream debemos escribir el siguiente código:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">InputStream</span> in <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
   <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
      in <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileInputStream</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/prueba.txt&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      ...
   <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      ...
   <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">finally</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>in <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
         in.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>La sentencia try-with-resources nos permitira cerrar automaticamente los resources declarados.</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">InputStream</span> in <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileInputStream</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/tmp/prueba.txt&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> buf <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #000066; font-weight: bold;">byte</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1024</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
   in.<span style="color: #006633;">read</span><span style="color: #009900;">&#40;</span>buf<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>buf<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Solamente las clases que implementan la interface <strong>AutoCloseable</strong> pueden ser cerradas automaticamentes cuando se declaran en un try-with-resources.</p>
<p>Clases que implementan <strong>AutoCloseable</strong></p>
<div id="_mcePaste">
<ul>
<li><span style="line-height: 19px;">InputStream</span></li>
<li><span style="line-height: 19px;">OutputStream</span></li>
<li><span style="line-height: 19px;">Reader</span></li>
<li><span style="line-height: 19px;">Writer</span></li>
<li><span style="line-height: 19px;">Connection</span></li>
<li><span style="line-height: 19px;">Statement</span></li>
<li><span style="line-height: 19px;">ResultSet</span></li>
</ul>
</div>
<p>Para más información:</p>
<p><a href="http://download.java.net/jdk7/docs/technotes/guides/language/try-with-resources.html">http://download.java.net/jdk7/docs/technotes/guides/language/try-with-resources.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2011/03/24/sentencia-try-with-resource-java-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 4</title>
		<link>http://www.lrlatinoblog.com.ar/2011/03/23/firefox-4/</link>
		<comments>http://www.lrlatinoblog.com.ar/2011/03/23/firefox-4/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 15:28:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com.ar/?p=128</guid>
		<description><![CDATA[Finalmente se ha liberado Firefox 4 trayendo un monton de novedades. Para actualizar esta nueva versión en Ubuntu desde el repositorio PPA hay que ejecutar los siguientes 3 comandos: sudo add-apt-repository ppa:mozillateam/firefox-stable sudo apt-get update sudo apt-get install firefox ubufox &#8230; <a href="http://www.lrlatinoblog.com.ar/2011/03/23/firefox-4/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Finalmente se ha liberado Firefox 4 trayendo un monton de novedades.</p>
<p>Para actualizar esta nueva versión en Ubuntu desde el repositorio PPA hay que ejecutar los siguientes 3 comandos:</p>
<blockquote><p><strong>sudo add-apt-repository ppa:mozillateam/firefox-stable<br />
sudo apt-get update<br />
sudo apt-get install firefox ubufox</strong></p></blockquote>
<p>Como se en en Ubuntu 10.10:</p>

<div class="ngg-galleryoverview" id="ngg-gallery-1-128">


	
	<!-- Thumbnails -->
		
	<div id="ngg-image-1" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.lrlatinoblog.com.ar/wp-content/gallery/firefox-4/add-ons-manager-mozilla-firefox_023.png" title=" " class="shutterset_set_1" >
								<img title="Addons" alt="Addons" src="http://www.lrlatinoblog.com.ar/wp-content/gallery/firefox-4/thumbs/thumbs_add-ons-manager-mozilla-firefox_023.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-2" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.lrlatinoblog.com.ar/wp-content/gallery/firefox-4/liferay-latino-blog-la-comunidad-latina-de-liferay-mozilla-firefox_021.png" title=" " class="shutterset_set_1" >
								<img title="Lr Latino Blog" alt="Lr Latino Blog" src="http://www.lrlatinoblog.com.ar/wp-content/gallery/firefox-4/thumbs/thumbs_liferay-latino-blog-la-comunidad-latina-de-liferay-mozilla-firefox_021.png" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2011/03/23/firefox-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>La importancia de comentar código</title>
		<link>http://www.lrlatinoblog.com.ar/2009/12/02/la-importancia-de-comentar-codigo/</link>
		<comments>http://www.lrlatinoblog.com.ar/2009/12/02/la-importancia-de-comentar-codigo/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 17:35:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com.ar/?p=108</guid>
		<description><![CDATA[En Humofriki podemos encontrar un comic muy interesante y divertido.  El comic habla de la importancia de comentar nuestro código. Espero que les guste: link]]></description>
			<content:encoded><![CDATA[<p>En Humofriki podemos encontrar un comic muy interesante y divertido.  El comic habla de la importancia de comentar nuestro código.</p>
<p>Espero que les guste: <a href="http://www.humorfriki.com/la-importancia-de-comentar-el-codigo?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+HumorFriki+%28Humor+Friki+|+Porque+Los+Frikis+Tambi%C3%A9n+Re%C3%ADmos%29" target="_blank">link</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2009/12/02/la-importancia-de-comentar-codigo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webinar de Alfresco</title>
		<link>http://www.lrlatinoblog.com.ar/2009/11/30/webinar-de-alfresco/</link>
		<comments>http://www.lrlatinoblog.com.ar/2009/11/30/webinar-de-alfresco/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 02:12:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[desarrollo]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[CMS]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com.ar/?p=106</guid>
		<description><![CDATA[El miercoles 2 de diciembre a las 12 pm (-5GMT) hay un webinar de Alfresco donde se discutira las caracteristicas de las distintas versiones de Alfresco; Enterprise 3.2, Community 3.2 y Traditional ECM.  Esto nos permitira tomar una mejor decisión &#8230; <a href="http://www.lrlatinoblog.com.ar/2009/11/30/webinar-de-alfresco/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>El miercoles 2 de diciembre a las 12 pm (-5GMT) hay un webinar de Alfresco donde se discutira las caracteristicas de las distintas versiones de Alfresco; Enterprise 3.2, Community 3.2 y Traditional ECM.  Esto nos permitira tomar una mejor decisión para tomar una buena decisión para la necesidades de nuestros clientes.</p>
<p>Para registrarse al webinar: <a title="Registrase al Webinar de Alfresco" href="http://app.en25.com/e/er.aspx?s=757&amp;lid=365&amp;elq=c3193d06a4884344bd83f57de9a39e36" target="_blank">link</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2009/11/30/webinar-de-alfresco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Utilizar otra base de datos</title>
		<link>http://www.lrlatinoblog.com.ar/2009/11/03/utilizar-otra-base-de-datos/</link>
		<comments>http://www.lrlatinoblog.com.ar/2009/11/03/utilizar-otra-base-de-datos/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 03:41:21 +0000</pubDate>
		<dc:creator>joyola83</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[service-builder]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com.ar/?p=96</guid>
		<description><![CDATA[En ciertos casos es necesario conectarse a otra base de datos, y utilizar los servicios de Liferay para conectarse a la misma. Este link muestra como hacerlo.]]></description>
			<content:encoded><![CDATA[<p>En ciertos casos es necesario conectarse a otra base de datos, y utilizar los servicios de Liferay para conectarse a la misma.</p>
<p>Este <a href="http://www.liferay.com/web/guest/community/wiki/-/wiki/Main?_36_title=Connecting%20to%20an%20External%20Database%20and%20Building%20Services%20Against%20It" target="_blank">link</a> muestra como hacerlo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2009/11/03/utilizar-otra-base-de-datos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nueva funcionalidad para el panel de control en LR 5.2.3</title>
		<link>http://www.lrlatinoblog.com.ar/2009/04/14/nueva-funcionalidad-para-el-panel-de-control-en-lr-523/</link>
		<comments>http://www.lrlatinoblog.com.ar/2009/04/14/nueva-funcionalidad-para-el-panel-de-control-en-lr-523/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 00:46:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com/?p=92</guid>
		<description><![CDATA[A partir de LR 5.2.3 podremos contar con: Se podra modificar la configuración para subir archivos, aca podremos definir el tamaño maximo y los tipos de archivos permitidos tanto para Image Gallery, Document Library, Web Content Images y Shopping Cart &#8230; <a href="http://www.lrlatinoblog.com.ar/2009/04/14/nueva-funcionalidad-para-el-panel-de-control-en-lr-523/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A partir de LR 5.2.3 podremos contar con:</p>
<p>Se podra modificar la configuración para subir archivos, aca podremos definir el tamaño maximo y los tipos de archivos permitidos tanto para Image Gallery, Document Library, Web Content Images y Shopping Cart Images.</p>
<p style="text-align: center;"><img class="aligncenter" title="panel de control" src="http://cdn.www.liferay.com/image/image_gallery?uuid=f0c4e31e-6aec-4c38-b5a7-868e53b76410&amp;groupId=11325&amp;t=1239741435393" alt="" width="474" height="372" /></p>
<p style="text-align: left;">También se podra modificar la configuración del servidor de mail a traves del Panel de control.</p>
<p style="text-align: center;"><img class="aligncenter" title="panel de control" src="http://cdn.www.liferay.com/image/image_gallery?uuid=fb87a29c-2bef-417b-bb3d-33691e402009&amp;groupId=11325&amp;t=1239741287585" alt="" width="538" height="427" /></p>
<p style="text-align: left;">Fuente</p>
<p style="text-align: left;">http://www.liferay.com/web/bswaim/blog/-/blogs/configure-your-file-upload-settings-from-control-panel;jsessionid=2D1D5CD386D5137341F407137BDFBC6A</p>
<p style="text-align: left;">http://www.liferay.com/web/bswaim/blog/-/blogs/new-way-to-change-pop-smtp-settings</p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2009/04/14/nueva-funcionalidad-para-el-panel-de-control-en-lr-523/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex [off topic]</title>
		<link>http://www.lrlatinoblog.com.ar/2009/02/26/flex-off-topic/</link>
		<comments>http://www.lrlatinoblog.com.ar/2009/02/26/flex-off-topic/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 02:32:14 +0000</pubDate>
		<dc:creator>joyola83</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com/?p=86</guid>
		<description><![CDATA[Dejo un link que me pasaron el otro día un compañero del trabajo, son unos cuantos videos de Flex.  Son muy interesantes, y es para arrancar desde cero.  También proponen unos ejercicios para resolver con su correspondiente corrección. http://www.adobe.com/devnet/flex/videotraining Espero &#8230; <a href="http://www.lrlatinoblog.com.ar/2009/02/26/flex-off-topic/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Dejo un link que me pasaron el otro día un compañero del trabajo, son unos cuantos videos de Flex.  Son muy interesantes, y es para arrancar desde cero.  También proponen unos ejercicios para resolver con su correspondiente corrección.</p>
<p><a href="http://www.adobe.com/devnet/flex/videotraining" target="_blank">http://www.adobe.com/devnet/<span class="nfakPe">flex</span>/videotraining</a></p>
<p>Espero que les sirva mucho.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2009/02/26/flex-off-topic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Retomando el Blog</title>
		<link>http://www.lrlatinoblog.com.ar/2009/02/26/retomando-el-blog/</link>
		<comments>http://www.lrlatinoblog.com.ar/2009/02/26/retomando-el-blog/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 02:15:30 +0000</pubDate>
		<dc:creator>joyola83</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.lrlatinoblog.com/?p=83</guid>
		<description><![CDATA[Hace tiempo que he dejado este blog colgado, después de unas buenas vacaciones que me tome en enero y ahora que acabo de terminar la facultad y me he recibido de Ingeniero en Sistemas; me gustaria continuar escribiendo en este &#8230; <a href="http://www.lrlatinoblog.com.ar/2009/02/26/retomando-el-blog/">Sigue leyendo <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hace tiempo que he dejado este blog colgado, después de unas buenas vacaciones que me tome en enero y ahora que acabo de terminar la facultad y me he recibido de Ingeniero en Sistemas; me gustaria continuar escribiendo en este blog, y tratare de hacerlo periodicamente.</p>
<p>Mi idea es tratar de migrar de WordPress a Liferay en los próximos días, y estoy buscando colaboradores que se sumen a esta iniciativa, que tengan las ganas de contribuir y escribir.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lrlatinoblog.com.ar/2009/02/26/retomando-el-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

