<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Blog do Mangar - 2nd. Edition</title>
	<atom:link href="http://mangar.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mangar.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sat, 07 Jun 2008 20:58:19 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mangar.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Blog do Mangar - 2nd. Edition</title>
		<link>http://mangar.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mangar.wordpress.com/osd.xml" title="Blog do Mangar - 2nd. Edition" />
	<atom:link rel='hub' href='http://mangar.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Novo blog! blog.mangar.com.br</title>
		<link>http://mangar.wordpress.com/2008/06/07/novo-blog-blogmangarcombr/</link>
		<comments>http://mangar.wordpress.com/2008/06/07/novo-blog-blogmangarcombr/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 20:58:19 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Just For Fun]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/?p=57</guid>
		<description><![CDATA[Blog atualizado os novos posts serão incluídos em: blog.mangar.com.br<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=57&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Blog atualizado os novos posts serão incluídos em: <a href="http://blog.mangar.com.br" target="_self">blog.mangar.com.br</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/57/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/57/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=57&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/06/07/novo-blog-blogmangarcombr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Agile Programming in some companies&#8230;</title>
		<link>http://mangar.wordpress.com/2008/05/08/agile-programming-in-some-companies/</link>
		<comments>http://mangar.wordpress.com/2008/05/08/agile-programming-in-some-companies/#comments</comments>
		<pubDate>Thu, 08 May 2008 12:08:13 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[TI]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/?p=56</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=56&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.mangar.com.br/blog2/images/dilbert2666700071126.gif" alt="Agile Programming" width="519" height="179" /></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/56/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/56/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=56&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/05/08/agile-programming-in-some-companies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>

		<media:content url="http://www.mangar.com.br/blog2/images/dilbert2666700071126.gif" medium="image">
			<media:title type="html">Agile Programming</media:title>
		</media:content>
	</item>
		<item>
		<title>Permsize</title>
		<link>http://mangar.wordpress.com/2008/04/13/permsize/</link>
		<comments>http://mangar.wordpress.com/2008/04/13/permsize/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 13:52:55 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/?p=55</guid>
		<description><![CDATA[Are you getting problem with Eclipse with PermSize? Try this arguments when eclipse starts: -vmargs -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=55&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Are you getting problem with Eclipse with PermSize?</p>
<p>Try this arguments when eclipse starts:</p>
<p>-vmargs -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=55&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/04/13/permsize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Formating fields with jQuery</title>
		<link>http://mangar.wordpress.com/2008/04/05/formating-fields-with-jquery/</link>
		<comments>http://mangar.wordpress.com/2008/04/05/formating-fields-with-jquery/#comments</comments>
		<pubDate>Sat, 05 Apr 2008 02:52:02 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/?p=54</guid>
		<description><![CDATA[Field formating is a feature that all client application must have. Specially with web application it´s not &#8220;cool&#8221; to create masks and some interface features, at least for back end developers. So, that&#8217;s a good tool named: jQuery, it&#8217;s a javascript library, easy to use and very simple. This sample, was to create a mask [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=54&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Field formating is a feature that all client application must have.<br />
Specially with web application it´s not &#8220;cool&#8221; to create masks and some interface features, at least for back end developers.</p>
<p>So, that&#8217;s a good tool named: jQuery, it&#8217;s a javascript library, easy to use and very simple.</p>
<p>This sample, was to create a mask for Brazilian fields, like Zip code, Phone and Date.</p>
<p>1 &#8211; Downloads<br />
<span>jQuery lib: <a href="http://jquery.com/" target="_blank">http://jquery.com/</a></span><br />
<span>MaskedInput lib: <a href="http://digitalbush.com/projects/masked-input-plugin" target="_blank">http://digitalbush.com/projects/masked-input-plugin</a></span></p>
<p>2 &#8211; HTML code:</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;  src=&#8221;jquery-1.2.3.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;jquery.maskedinput-1.1.2.js&#8221;&gt;&lt;/script&gt;</p>
<div style="font-family:tahoma,new york,times,serif;font-size:10pt;">&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$.noConflict( );<br />
jQuery(function($){<br />
$.mask.addPlaceholder(&#8220;~&#8221;,&#8221;[+-]&#8220;);<br />
$(&#8220;#fieldDate&#8221;).mask(&#8220;99/99/9999&#8243;);<br />
$(&#8220;#fieldBrZip&#8221;).mask(&#8220;99999-999&#8243;);<br />
$(&#8220;#fieldPhone1&#8243;).mask(&#8220;(99) 9999-9999&#8243;);<br />
});<br />
&lt;/script&gt;</p>
<p>Date: &lt;input id=&#8221;fieldDate&#8221; type=&#8221;text&#8221; /&gt; 99/99/9999&lt;br&gt;<br />
BR. Zip: &lt;input id=&#8221;fieldBrZip&#8221; type=&#8221;text&#8221; /&gt; 99999-999&lt;br&gt;<br />
Phone: &lt;input id=&#8221;fieldPhone1&#8243; type=&#8221;text&#8221; /&gt; (99)9999-9999&lt;br&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=54&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/04/05/formating-fields-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu and Cairo-Dock</title>
		<link>http://mangar.wordpress.com/2008/03/17/ubuntu-and-cairo/</link>
		<comments>http://mangar.wordpress.com/2008/03/17/ubuntu-and-cairo/#comments</comments>
		<pubDate>Mon, 17 Mar 2008 04:05:34 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/?p=53</guid>
		<description><![CDATA[It&#8217;s very simple to install a similar MacOS bar in Gnome/Ubuntu. Get the Cairo-Dock look for the last version here: https://developer.berlios.de/project/showfiles.php?group_id=8724&#38;release_id=14331 Get the binary and the plugins (it will be useful) Run the binary and after the plugins Open a terminal and type: cairo-dock To make the Cairo-Dock open together with Gnome, open: System &#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=53&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s very simple to install a similar MacOS bar in Gnome/Ubuntu.</p>
<ol>
<li>Get the Cairo-Dock look for the last version here: <a href="https://developer.berlios.de/project/showfiles.php?group_id=8724&amp;release_id=14331" target="_blank">https://developer.berlios.de/project/showfiles.php?group_id=8724&amp;release_id=14331</a>  Get the binary and the plugins (it will be useful)</li>
<li>Run the binary and after the plugins</li>
<li>Open a terminal and type: cairo-dock</li>
</ol>
<p>To make the Cairo-Dock open together with Gnome, open: System &gt; Preferences &gt; Session &gt;  Startup Programs &gt; Add</p>
<p>Type:</p>
<ul>
<li>Name: Cairo</li>
<li>Command: cairo-dock</li>
<li>Press: Ok and Close.</li>
</ul>
<p>Now, every time that you run Gnome the Cairo-Dock will starts.</p>
<p>If you want to let your Gnome like MacOS, try <a href="http://www.taimila.com/?q=node/11" target="_blank">this</a> website, you will find some good features, like Firefox themes, Gnome themes.</p>
<p>Enjoy!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=53&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/03/17/ubuntu-and-cairo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Babylon and Linux = Babytrans</title>
		<link>http://mangar.wordpress.com/2008/02/17/babylon-at-linux-babytrans/</link>
		<comments>http://mangar.wordpress.com/2008/02/17/babylon-at-linux-babytrans/#comments</comments>
		<pubDate>Sun, 17 Feb 2008 15:09:51 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/?p=52</guid>
		<description><![CDATA[Recently arrived from Windows world with a very very good (not free) dictionary software called Babylon, I missed this kind of software at Linux world. Searching on the web, I found babytrans, actually it&#8217;s not as good as Babylon, missing some excellent features like just press CTRL and Right Click over the word and a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=52&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently arrived from Windows world  with a very very good (not free)  dictionary software called Babylon, I missed this kind of software at Linux world.</p>
<p>Searching on the web, I found babytrans, actually it&#8217;s not as good as Babylon, missing some excellent features like just press <i>CTRL</i> and <i>Right Click</i> over the word and a smart pop-up window blows up on the screen with the translation and the meaning of the word, Babytrans is a good choice ( and I think the unique) .</p>
<p>I have install Babytrans in my laptop with Ubuntu, and it was very easy to install and a bit boring to configure.</p>
<p>Let&#8217;s start with instalation:</p>
<p>By the Gnone interface, click on System &gt; Administration &gt; Synaptic Package Manager, insert the root password.</p>
<p>Click on Search button, and type: Babytrans, mark the option: babytrans, click in Apply, the software will be installed.</p>
<p>The next phase is configure it, go to the ftp: <b>ftp://ftp.ac-grenoble.fr/ge/languages/babylon_dict</b> and get the files: dictionary, english.dic.gz, and in my case, I would like to translete some words from english to portuguese, I got the EngToPor.dic.gz.</p>
<p>Logged as root, open a terminal windows and type:</p>
<p><b># mkdir /usr/local/share/babytrans<br />
# cp dictionary /usr/local/share/babytrans<br />
# mkdir /usr/local/lib/babytrans<br />
# cp *.gz  /usr/local/lib/babytrans </b><b> </b></p>
<p><b># gunzip /usr/local/lib/babytrans/EngToPor.dic.gz</b></p>
<p><b># gunzip /usr/local/lib/babytrans/english.dic.gz</b></p>
<p>The next step is configure the dictionary to open the right file, type: #vim /usr/local/share/babytrans/dictionary</p>
<p>and check if the dictionary file name is the same as you just copy to the lib/babytrans directory, in my case the English/Portuguese dictionary wasn&#8217;t, I just changes the line:</p>
<p>po = Portugues , EngtoPort.dic</p>
<p>to</p>
<p>po = Portugues , EngtoPor.dic</p>
<p>Now, the final step is, choose your default dictionary/language, now as your user (not as root) type:</p>
<p>$vim ~/.babytrans/config</p>
<p>find the line: language = XX</p>
<p>change it to: language = po</p>
<p>Finished! Now you just need to open Babytrans (Applications &gt; Other &gt; Babytrans), select a word in you browser, for exemple, and take a look at the babytrans window, the word is right there, explained.<br />
Babytrans is not a Babylon, but it can be useful in special cases that you have a doubt about a word in some text.</p>
<p>Enjoy!</p>
<p>Babytrans website: <a href="http://fjolliton.free.fr/babytrans/" target="_blank">Babytrans</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=52&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/02/17/babylon-at-linux-babytrans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>How to Install Skype on Ubuntu</title>
		<link>http://mangar.wordpress.com/2008/02/07/how-to-install-skype-on-ubuntu/</link>
		<comments>http://mangar.wordpress.com/2008/02/07/how-to-install-skype-on-ubuntu/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 17:39:26 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/2008/02/07/how-to-install-skype-on-ubuntu/</guid>
		<description><![CDATA[Open a command line &#8211; with root privilegies &#8211; and type: #vim /etc/apt/sources.list Insert the follow line: deb http://download.skype.com/linux/repos/debian/ stable non-free save and quite the editor (type: :wq! and Enter) Back in command line, just to update the repositories, type: #apt-get update Now type: #apt-get install skype Nice and Easy! Skype is installed and if [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=51&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Open a command line &#8211; with root privilegies &#8211; and type:</p>
<p>#vim /etc/apt/sources.list</p>
<p>Insert the follow line:</p>
<p>deb <a href="http://download.skype.com/linux/repos/debian/" target="_blank">http://download.skype.com/linux/repos/debian/</a> stable non-free</p>
<p>save and quite the editor (type: :wq! and Enter)</p>
<p>Back in command line, just to update the repositories, type:</p>
<p>#apt-get update</p>
<p>Now type:</p>
<p>#apt-get install skype</p>
<p>Nice and Easy! Skype is installed and if everything on instalation was fine, you can see the Skype icon on: Applications &gt; Internet &gt; Skype</p>
<p>Others packages for apt-get you can find in: <a href="http://www.apt-get.org/" target="_blank">http://www.apt-get.org</a></p>
<p>Enjoy!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=51&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2008/02/07/how-to-install-skype-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven2 &#8211; Part III &#8211; Project Template</title>
		<link>http://mangar.wordpress.com/2007/12/30/maven2-part-iii-project-template/</link>
		<comments>http://mangar.wordpress.com/2007/12/30/maven2-part-iii-project-template/#comments</comments>
		<pubDate>Sun, 30 Dec 2007 20:10:44 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Just For Fun]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/2007/12/30/maven2-part-iii-project-template/</guid>
		<description><![CDATA[Project Template Project Template (Archetype) Purpose maven-archetype-archetype Create your own project template (archetype). maven-archetype-j2ee-simple Creates a J2EE project (EAR), with directories and subprojects for the EJBs, servlets, etc. maven-archetype-mojo Create your own Maven 2 plugins. maven-archetype-quickstart Simple Java project, suitable for JAR generation. Maven 2 default. maven-archetype-site Documentation-only site, with examples in several formats. You [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=50&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li> Project Template</li>
</ul>
<table summary="Maven archetypes" border="1" cellpadding="10" cellspacing="0">
<tr>
<td valign="top" width="223"><b>Project Template (Archetype)</b></td>
<td valign="top" width="367"><b>Purpose</b></td>
</tr>
<tr>
<td valign="top" width="223">maven-archetype-archetype</td>
<td valign="top" width="367">Create your own project template (archetype).</td>
</tr>
<tr>
<td valign="top" width="223">maven-archetype-j2ee-simple</td>
<td valign="top" width="367">Creates a J2EE project (EAR), with directories and subprojects for the EJBs, servlets, etc.</td>
</tr>
<tr>
<td valign="top" width="223">maven-archetype-mojo</td>
<td valign="top" width="367">Create your own Maven 2 plugins.</td>
</tr>
<tr>
<td valign="top" width="223">maven-archetype-quickstart</td>
<td valign="top" width="367">Simple Java project, suitable for JAR generation. Maven 2 default.</td>
</tr>
<tr>
<td valign="top" width="223">maven-archetype-site</td>
<td valign="top" width="367">Documentation-only site, with examples in several formats. You can run this archetype on top of an existing Maven 2 project to add integrated documentation.</td>
</tr>
<tr>
<td valign="top" width="223">maven-archetype-webapp</td>
<td valign="top" width="367">Creates a web application project (WAR), with a simple Hello World JSP.</td>
</tr>
</table>
<p>Usage:</p>
<pre>mvn archetype:create
  -DgroupId=[your project's group id]
  -DartifactId=[your project's artifact id]
  -DarchetypeArtifactId=maven-archetype-webapp</pre>
<ul>
<li>Maven Commands</li>
</ul>
<table summary="Lifecycle commands" border="1" cellpadding="10" cellspacing="0">
<tr>
<td valign="top" width="163">mvn clean</td>
<td valign="top" width="427">Cleans out all Maven-2-generated files.</td>
</tr>
<tr>
<td valign="top" width="163">mvn compile</td>
<td valign="top" width="427">Compiles Java sources.</td>
</tr>
<tr>
<td valign="top" width="163">mvn test-compile</td>
<td valign="top" width="427">Compiles JUnit test classes.</td>
</tr>
<tr>
<td valign="top" width="163">mvn test</td>
<td valign="top" width="427">Runs all JUnit tests in the project.</td>
</tr>
<tr>
<td valign="top" width="163">mvn package</td>
<td valign="top" width="427">Builds the JAR or WAR file for the project.</td>
</tr>
<tr>
<td valign="top" width="163">mvn install</td>
<td valign="top" width="427">Installs the JAR or WAR file in the local Maven repository (use this if you have multiple interdependent local projects).</td>
</tr>
</table>
<p>Origem: <a href="http://today.java.net/pub/a/today/2007/03/01/building-web-applications-with-maven-2.html" target="_blank">java.net</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=50&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2007/12/30/maven2-part-iii-project-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven2 &#8211; Part II &#8211; EJB Party!</title>
		<link>http://mangar.wordpress.com/2007/11/17/maven2-part-ii-ejb-party/</link>
		<comments>http://mangar.wordpress.com/2007/11/17/maven2-part-ii-ejb-party/#comments</comments>
		<pubDate>Sat, 17 Nov 2007 22:55:33 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Maven]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/2007/11/17/maven2-part-ii-ejb-party/</guid>
		<description><![CDATA[Mais uma da série Maven2, desta vez com EJBs. Não são raras as vezes que desenvolvendo projetos que precisem de um pouco mais de robustes e controle de transações  utilizem EJB&#8217;s. Geralmente aplicações backend (utilizem EJBs) e frontend  (consomem EJBs) ficam empacotados no mesmo arquivo EAR, por tanto, o codigo do bean e as interfaces [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=48&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Mais uma da série Maven2, desta vez com EJBs.</p>
<p>Não são raras as vezes que desenvolvendo projetos que precisem de um pouco mais de robustes e controle de transações  utilizem EJB&#8217;s.</p>
<p>Geralmente aplicações backend (utilizem EJBs) e frontend  (consomem EJBs) ficam empacotados no mesmo arquivo EAR, por tanto, o codigo do bean e as interfaces de conexão entre os EJBs e o cliente ficam no mesmo pacote, até então nada de errado, nada de estranho.</p>
<p>No entanto, participando de uma aplicação que será consumida por clientes de forma remota, mas interna a empresa, algumas alternativas aparecem com prós e contras:</p>
<p><em>WebService</em></p>
<p>Prós: fácil de integrar com a grande maioria das aplicações que rodam na empresa, seja Delphi, VB, .Net e o próprio Java.</p>
<p>Contras: muito lento se comparado com modelos nativos.</p>
<p><em>Modelos nativos</em></p>
<p>Prós: hand-shake e troca de informação entre aplicações rápido.</p>
<p>Contra: fortemente acoplado, a aplicação deve saber se comunicar com a aplicação servidora de  forma nativa.</p>
<p>Algums vezes WebService pode ser a melhor solução em se tratando de integração de aplicações de diferentes linguagens, por exemplo Java e .Net.</p>
<p>Em uma cenário em que existe uma aplicação cliente e uma aplicacao servidora em java não existe razão para conectar as aplicações através de WebService, a melhor opção neste caso seria RMI-IIOP.</p>
<p>Não é muito elegante e muito menos seguro entregar para o desenvolvedor da aplicação cliente um pacote JAR com todo o codigo (mesmo que compilado) incluindo a implementação do Bean.</p>
<p>Para isso, o Mave2 utiliza um plugin que gera um pacote JAR apenas com as interfaces necessárias para integracao das partes, de forma fácil e simples.</p>
<ul>
<li>Passo 1:</li>
</ul>
<p>Inclua  o trecho de código no pom dos EJBs:</p>
<pre>&lt;build&gt;
&lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-ejb-plugin&lt;/artifactId&gt;
  &lt;configuration&gt;
    &lt;generateClient&gt;true&lt;/generateClient&gt;
    &lt;ejbVersion&gt;3.0&lt;/ejbVersion&gt;
    &lt;clientExcludes&gt;
      &lt;clientExclude&gt;br/com/mangar/ps/adm/business/dao/**/*&lt;/clientExclude&gt;
      &lt;clientExclude&gt;br/com/mangar/ps/adm/business/util/**/*&lt;/clientExclude&gt;
      &lt;clientExclude&gt;**/*Bean.class&lt;/clientExclude&gt;
    &lt;/clientExcludes&gt;
  &lt;/configuration&gt;
&lt;/plugin&gt;
&lt;/build&gt;</pre>
<p>Com esse código será gerado um pacote JAR como mesmo nome do pacote com os beans incluindo -client ao nome deste, que conterá todas as classes do pacote de EJB, exceto as classes do pacote dao, do pacote util e os Beans</p>
<ul>
<li> Passo 2</li>
</ul>
<p>Para gerar o pacote, basta informar na linha de comando:</p>
<pre>mvn ejb:ejb</pre>
<p>Mais informações podem ser encontradas em: <a href="http://maven.apache.org/plugins/maven-ejb-plugin/index.html" target="_blank">Maven EJB Plugin</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=48&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2007/11/17/maven2-part-ii-ejb-party/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
		<item>
		<title>Maven2 &#8211; Part I &#8211; It&#8217;s time to start&#8230;..</title>
		<link>http://mangar.wordpress.com/2007/11/15/maven2-part-i/</link>
		<comments>http://mangar.wordpress.com/2007/11/15/maven2-part-i/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 03:38:24 +0000</pubDate>
		<dc:creator>mangar</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Maven]]></category>
		<category><![CDATA[Metodologia]]></category>

		<guid isPermaLink="false">http://mangar.wordpress.com/2007/11/15/maven2-part-i/</guid>
		<description><![CDATA[Depois de muito relutar, nao teve jeito, tive que ceder a um &#8220;sisteminha de controle de build&#8221; e foi o Maven, nunca me soou bem ter uma aplicacao que definisse quais os diretorios e padroes eu deveria utilizar no desenvolvimento de uma aplicacao, assim como a utilizacao de PMD e Checkstyle sempre foram, e de [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=47&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Depois de muito relutar, nao teve jeito, tive que ceder a um &#8220;sisteminha de controle de build&#8221; e foi o Maven,<br />
nunca me soou bem ter uma aplicacao que definisse quais os diretorios e padroes eu deveria utilizar no<br />
desenvolvimento de uma aplicacao, assim como a utilizacao de PMD e Checkstyle sempre foram, e de certo modo<br />
continuam sendo, uma burocracia desnecessária e um inibido de criatividade do desenvolvedor, mas isso já é papo<br />
para outro post.</p>
<p>Para mim nunca fez sentido &#8220;embutir&#8221; uma ferramenta a mais no processo de desenvolvimento que nao agregasse valor algum<br />
para o desenvolvedor do sistema, mas estudando e utilizando o Maven percebi que realmente, &#8220;criatividade&#8221; na mao de desenvolvedor<br />
é uma arma, algumas vezes (quase sempre) deve ser definido o padrao de diretorios para recursos, classes, arquivos de configuracoes,<br />
conteudo web e etc&#8230;.</p>
<p>Vejamos alguns passos para utilizar essa ferramenta:</p>
<h3><strong>Instalando</strong></h3>
<p>Simples, rápido e indolor, va no site do projeto e facao download do binario: http://maven.apache.org/download.html<br />
Feito isso, descompacte o conteudo e crie uma variavel de ambiente chamada: M2_HOME apontando para este diretorio,<br />
altere a variavel de ambiente: &#8220;Path&#8221; incluindo no final: ;%M2_HOME%\bin</p>
<p>Abra uma linha de comando e digite:</p>
<pre>mvn --version</pre>
<p>se a resposta for algo do tipo:</p>
<pre>Maven version: 2.0.5</pre>
<p>Perfeito, o primeiro passo está dado, Maven2 instalado e funcionando.</p>
<h3><strong>Criando projetos</strong></h3>
<p>O Maven cria uma estrutura de diretorios de acordo com o tipo do projeto, este pode ser direcionado para projeto web,<br />
projeto EJB (business) ou apenas um jar, por defautl ele cria uma estrutura de diretorio JAR, para isso, va na linha<br />
de comando e digite:</p>
<pre>mvn archetype:create -DgroupId=mangar.corp -DartifactId=mangar-jar</pre>
<p>groupId = nome do pacote que será criado no repositorio<br />
artifactId = nome do projeto</p>
<p>existem mais alguns parametros que podem ser informados na linha de comando para criar uma arvore de diretorios para determinados<br />
tipos de projetos, uma delas é:</p>
<pre>-DarchetypeArtifactId=maven-archetype-webapp</pre>
<p>este criará uma estrutura para um projeto web, com WEB-INF.</p>
<p>A estrutura criada será:</p>
<pre>mangar-jar

   |-- pom.xml

       `-- src

           `-- main

           |   `-- java

           |       `-- App.java

           `-- test

               `-- java

                    `-- AppTest.java</pre>
<p>Se vc criou uma estrutura jar mas na verdade precisa de uma estrutura web, nao se desespere!<br />
Crie o diretorio, dentro do diretorio main: webapp e webapp\WEB-INF, crie tbem o arquivo web.xml dentro do WEB-INF,<br />
e altere o arquivo pom.xml a tag packaging de jar para war.</p>
<h3></h3>
<h3><strong>pom.xml</strong></h3>
<p>É aqui que mora todo o segredo do Maven, este é o arquivo onde ficam todos os segredos, dependencias, empacotamento,<br />
relatorios e todas as magicas que o Maven pode fazer por voce.</p>
<p>No comeco temos:</p>
<pre>&lt;groupId&gt;mangar.corp&lt;/groupId&gt;

 &lt;artifactId&gt;mangar-jar&lt;/artifactId&gt;

 &lt;packaging&gt;jar&lt;/packaging&gt;

 &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;</pre>
<p>A tag &lt;version&gt; e a &lt;packaging&gt; sao duas que tambem podem ser informadas na linha de comando quando criado o repositorio<br />
do projeto, mas por default, estes valores apresentados sao os padroes caso nao seja mencionado.</p>
<p>Maiores detalhes sobre esse arquivo vc pode encontrar nos sites: maven.apache.org, onjava entre outros.<br />
Vou apresentar aqui alguns parametros que precisei.</p>
<h4><strong>Compilando o codigo com a versao 1.5 do JDK</strong></h4>
<p>Na maquina já existia uma VM 1.5 instalada no entando, nao sei por causa de que, meu codigo que compilava perfeitamente<br />
no Eclipse, nao estava rolando via maven (estava usando enum e generics), entao, garimpando na WEB descobri os seguintes<br />
parametros que devem ser incluidos no pom.xml:</p>
<p>&lt;build&gt;<br />
&lt;plugins&gt;<br />
&lt;plugin&gt;<br />
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br />
&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;<br />
&lt;configuration&gt;<br />
&lt;source&gt;1.5&lt;/source&gt;<br />
&lt;target&gt;1.5&lt;/target&gt;<br />
&lt;/configuration&gt;<br />
&lt;/plugin&gt;<br />
&lt;/plugins&gt;<br />
&lt;/build&gt;</p>
<p>A tag &lt;build&gt; é unica no arquivo, assim como a &lt;plugins&gt; dentro da &lt;build&gt;, mas a tag &lt;plugin&gt; pode ser incluido de acordo com os<br />
plugins necessários com a fase de build exigir.</p>
<h4></h4>
<h4><strong>Uso de bibliotecas (agregando para o desenvolvedor)</strong></h4>
<p>Chegamos na hora boa, a hora que o desenvolvedor vai deixar de apenas cumprir regras sem um ganho de fato.<br />
Em um projeto web, nao é raro utilizar struts, por acaso vc sabe a dependencia entre o pacote struts.jar com os demais pacotes?<br />
Eu tbem nao! Mas o Maven sabe!<br />
Apenas informando que o projeto tem dependencia com struts e qual a versao deste, o maven vai trazer para o repositorio local<br />
todas as dependencias necessárias, para isso, inclua no seu pom:</p>
<p>&lt;dependencies&gt;<br />
&lt;dependency&gt;<br />
&lt;groupId&gt;struts&lt;/groupId&gt;<br />
&lt;artifactId&gt;struts&lt;/artifactId&gt;<br />
&lt;version&gt;1.2.9&lt;/version&gt;<br />
&lt;/dependency&gt;<br />
&lt;dependencies&gt;</p>
<p>A tag: &lt;dependencies&gt;  é unica para todo o pom, já as &lt;dependency&gt; pode se multiplicar de acordo com a necessidade.<br />
Com esse trecho de codigo o maven fará o downlod da lib do struts 1.2.9 incluindo todas as dependencias.</p>
<h3></h3>
<h3><strong>Repositorios</strong></h3>
<p>Como dito na sessao anterior o maven baixa as bibliotecas do repositorio remoto para o repositorio local, por definicao o<br />
repositorio padrao remoto é o: <a href="http://http://repo1.maven.org/maven2/" target="_blank">http://repo1.maven.org/maven2/</a> este contem uma quantidade de bibliotecas muito grande, ainda<br />
assim algumas mais especificas ou versoes mais novas podem nao estar atualizadas, por tanto, vc pode incluir alguns repositorios.</p>
<p>Uma das maneiras de incluir um novo repositorio é incluir o codigo no arquivo pom.xml:</p>
<p>&lt;repositories&gt;<br />
&lt;repository&gt;<br />
&lt;id&gt;galaxy&lt;/id&gt;<br />
&lt;url&gt;<a href="http://galaxy.andromda.org/maven2" target="_blank">http://galaxy.andromda.org/maven2</a>&lt;/url&gt;<br />
&lt;/repository&gt;<br />
&lt;/repositories&gt;</p>
<p>A tag &lt;repositories&gt; é unica no pom, a tag &lt;repository&gt; pode ser repetida para incluir os repositorios desejados, inclusive o repositorio<br />
do JBoss.</p>
<p>O repositorio local por definicao é criado dentro do diretorio &#8220;home&#8221; do usuario, no windows: %Documents and Settings%\%Usuario logado%\.m2\repository<br />
Mas pode ser alterado, para isso, copie o arquivo settings.xml que fica em: %M2_HOME%\conf para o %Documents and Settings%\%Usuario logado%\.m2<br />
localize a linha: &lt;settings&gt; insira logo a baixo : &lt;localRepository&gt;c:/m2&lt;/localRepository&gt;<br />
Isso mudara o diretorio do seu repositorio.</p>
<h3>Executando</h3>
<p>Com tudo isso feito, agora é hora de vermos o Mvn em ação, na linha de comando vá para o diretorio onde está localizado o arquivo pom.xml e digite:</p>
<pre>mvn clean install</pre>
<p>Executado a primeira vez este comando fará o downlad de todas as bibliotecas associadas direta e indiretamente ao projeto, compulara o projeto,<br />
executará os testes, empacotará o projeto e o instalará no repositorio local.</p>
<p>outros comandos:</p>
<p>clean = limpa o diretorio de target, que o maven usa como stage para a geracao do pacote com os binarios da aplicacao<br />
package = compila o projeto e gera o pacote (war, jar, &#8230;.)<br />
compile = apenas compila o projeto, gerando a saida no diretorio target.<br />
site = compila, empacota o projeto e gera o site do projeto</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mangar.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mangar.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mangar.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mangar.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mangar.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mangar.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mangar.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mangar.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mangar.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mangar.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mangar.wordpress.com&amp;blog=486636&amp;post=47&amp;subd=mangar&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mangar.wordpress.com/2007/11/15/maven2-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/382159efb40798b87ebc1b494e780200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mangar</media:title>
		</media:content>
	</item>
	</channel>
</rss>
