<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>André L. S.</title>
	
	<link>http://www.andrels.com/wp-en_US</link>
	<description>Softwares Development, Technology and Games</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:39:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/AndreLS" /><feedburner:info uri="andrels" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Google launches Chrome for Android, finally1</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/MuHN5dr4FAY/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2012/02/google-launches-chrome-for-android-finally1/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 22:38:15 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Devices]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[market]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=246</guid>
		<description><![CDATA[&#160; You can&#8217;t know but default Android&#8217;s browser isn&#8217;t Chrome, only a implementation of Webkit. Today(7), quietly, Google published the beta version<a href="http://www.andrels.com/wp-en_US/index.php/2012/02/google-launches-chrome-for-android-finally1/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-486" title="chrome_logo" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2012/02/chrome_logo.png" alt="" width="124" height="124" /></p>
<p>&nbsp;</p>
<p>You can&#8217;t know but default Android&#8217;s browser isn&#8217;t Chrome, only a implementation of <a href="http://pt.wikipedia.org/wiki/WebKit" target="_blank">Webkit</a>.</p>
<p>Today(7), quietly, Google published the beta version of your browser in Android Market. But, only the ICS (Ice Cream Sandwich), or above, is able to run it. I hope the Google change it to a most &#8220;accessible&#8221; version.</p>
<p>&nbsp;</p>
<p>The video below shows Chrome in action.</p>
<h5 style="text-align: center;"><object style="height: 448px; width: 560px;" width="560" height="448" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="https://www.youtube.com/v/lVjw7n_U37A?version=3&amp;feature=player_embedded" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><embed style="height: 448px; width: 560px;" width="560" height="448" type="application/x-shockwave-flash" src="https://www.youtube.com/v/lVjw7n_U37A?version=3&amp;feature=player_embedded" allowFullScreen="true" allowScriptAccess="always" allowfullscreen="true" allowscriptaccess="always" /></object><br />
Android Market</h5>
<p>Unfortunately I don&#8217;t have the Ice Cream Sandwich to write a review, but read complete description and comments of who already downloaded the brownser from <a href="https://market.android.com/details?id=com.android.chrome&amp;feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5hbmRyb2lkLmNocm9tZSJd" target="_blank">Android Market</a>.</p>
<p>If you uses Chrome, share your experience with us. <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>See ya!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/G56RCJqruM6WOyHfcmZRe8LWwq0/0/da"><img src="http://feedads.g.doubleclick.net/~a/G56RCJqruM6WOyHfcmZRe8LWwq0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/G56RCJqruM6WOyHfcmZRe8LWwq0/1/da"><img src="http://feedads.g.doubleclick.net/~a/G56RCJqruM6WOyHfcmZRe8LWwq0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/MuHN5dr4FAY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2012/02/google-launches-chrome-for-android-finally1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2012/02/google-launches-chrome-for-android-finally1/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>iPhone – Voice assistant allows to call anyone in your phone book while iPhone is locked</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/1E_N4AslQdA/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2012/02/iphone-voice-assistant-allows-to-call-anyone-in-your-phone-book-while-iphone-is-locked/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 20:28:19 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Devices]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[4g]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=243</guid>
		<description><![CDATA[I don&#8217;t known if is a bug or a feature, for me, it&#8217;s a big security fault. If you has<a href="http://www.andrels.com/wp-en_US/index.php/2012/02/iphone-voice-assistant-allows-to-call-anyone-in-your-phone-book-while-iphone-is-locked/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2012/02/iphone4s.jpg"><img class="size-medium wp-image-475" title="iphone4s" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2012/02/iphone4s-300x237.jpg" alt="" width="300" height="237" /></a></p>
<p style="text-align: left;"><span style="text-align: center;">I don&#8217;t known if is a bug or a feature, for me, it&#8217;s a big security fault.</span></p>
<p>If you has iPhone 3G or 4G locked with password and voice assistant enabled, try to press button <i>Home</i> for 5 seconds. Voice assistant will be run.</p>
<p>Tell any name contained in your phone book and the assistant will to call &#8220;normally&#8221;, also works with others commands.</p>
<p>This is your default behavior, used by most users. It&#8217;s can be disabled in device&#8217;s settings.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/jirtzwDIxexWXPq-VXeLtK7LStk/0/da"><img src="http://feedads.g.doubleclick.net/~a/jirtzwDIxexWXPq-VXeLtK7LStk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jirtzwDIxexWXPq-VXeLtK7LStk/1/da"><img src="http://feedads.g.doubleclick.net/~a/jirtzwDIxexWXPq-VXeLtK7LStk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/1E_N4AslQdA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2012/02/iphone-voice-assistant-allows-to-call-anyone-in-your-phone-book-while-iphone-is-locked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2012/02/iphone-voice-assistant-allows-to-call-anyone-in-your-phone-book-while-iphone-is-locked/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>The top 10 of infected brazilians domains, according Avast</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/SIqpV4AX8Hw/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2012/01/the-top-10-of-infected-brazilians-domains-according-avast/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 14:56:42 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[avast]]></category>
		<category><![CDATA[trojan]]></category>
		<category><![CDATA[virus]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=240</guid>
		<description><![CDATA[Avast, security company and anti-virus developer, owns in your website a report about more infected domains around the world, including<a href="http://www.andrels.com/wp-en_US/index.php/2012/01/the-top-10-of-infected-brazilians-domains-according-avast/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-465 alignnone" title="Avast" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2012/01/avast_logo.gif" alt="" width="213" height="85" /></p>
<p>Avast, security company and anti-virus developer, owns in your website a report about more infected domains around the world, including Brazil.</p>
<p>This report shows you 10 domains virus and trojans dispensers.</p>
<p>10º futuroprofessor.com.br<br />
09º canalkids.com.br<br />
08º marmelada.com.br<br />
07º explorando.com.br<br />
06º bitscaverna.com.br<br />
05º hd1.com.br<br />
04º blogdocomputador.com.br<br />
03º podcats.com.br<br />
02º uol.com.br<br />
01º dowload.net.br</p>
<p>You can see this report to other countries in <a href="http://www.avast.com/en-us/maps" target="_blank">http://www.avast.com/en-us/maps</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/S0zwZ2ActbpWg93y4XRYUIVdlLs/0/da"><img src="http://feedads.g.doubleclick.net/~a/S0zwZ2ActbpWg93y4XRYUIVdlLs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/S0zwZ2ActbpWg93y4XRYUIVdlLs/1/da"><img src="http://feedads.g.doubleclick.net/~a/S0zwZ2ActbpWg93y4XRYUIVdlLs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/SIqpV4AX8Hw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2012/01/the-top-10-of-infected-brazilians-domains-according-avast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2012/01/the-top-10-of-infected-brazilians-domains-according-avast/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>A easy way to compile many objects in Oracle database</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/5nGUgpZyV4c/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2012/01/a-easy-way-to-compile-many-objects-in-oracle-database/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 22:42:47 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[PLSql]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=233</guid>
		<description><![CDATA[When compiles an object that is referenced by many others, they stay invalidated until Oracle compile they again and sometimes<a href="http://www.andrels.com/wp-en_US/index.php/2012/01/a-easy-way-to-compile-many-objects-in-oracle-database/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>When compiles an object that is referenced by many others, they stay invalidated until Oracle compile they again and sometimes it fails.</p>
<p>So, here&#8217;s a tip to compile several invalid packages, procedures and/or functions and fix this.</p>
<p>There is a command to compile all invalid objects under an user, the command is:</p>
<p>&lt;pre class=&#8221;brush:sql&#8221;&gt;exec dbms_ultility.compile_schema(&amp;lt;USER&amp;gt;);&lt;/pre&gt;</p>
<p>Replace  &amp;lt;USER&amp;gt; for &lt;i&gt;user&lt;/i&gt;, or for user name where invalid objects are.</p>
<p>This command is slow and not compiles objects invalidated by coding error. To find which are invalid you need runs the query below:</p>
<p>&lt;pre class=&#8221;brush:sql&#8221;&gt;<br />
select object_name<br />
from all_objects<br />
where status = &#8216;INVALID&#8217;<br />
&lt;/pre&gt;</p>
<p>Invalid objects will be listed.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/lgKbYCLM2N7fGy9lzOb7eBH6_dc/0/da"><img src="http://feedads.g.doubleclick.net/~a/lgKbYCLM2N7fGy9lzOb7eBH6_dc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lgKbYCLM2N7fGy9lzOb7eBH6_dc/1/da"><img src="http://feedads.g.doubleclick.net/~a/lgKbYCLM2N7fGy9lzOb7eBH6_dc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/5nGUgpZyV4c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2012/01/a-easy-way-to-compile-many-objects-in-oracle-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2012/01/a-easy-way-to-compile-many-objects-in-oracle-database/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Google Analytics – New real-time report</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/x-eCPCewIuY/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/12/google-analytics-new-real-time-report/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 16:07:02 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[report]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=227</guid>
		<description><![CDATA[A few weeks ago Google released a beta version of Google Analytics&#8217;s reports in real time. It&#8217;s possible see number<a href="http://www.andrels.com/wp-en_US/index.php/2011/12/google-analytics-new-real-time-report/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-446" title="ganalytics1" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/12/ganalytics1.jpg" alt="" width="340" height="245" /></p>
<p>A few weeks ago Google released a beta version of Google Analytics&#8217;s reports in real time. It&#8217;s possible see number of people visiting your website, wich pages they are acessing, where they are from and how they got there.</p>
<p>But, not all accounts can have this option enabled.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-228" title="ganalytics3" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2011/12/ganalytics3.jpg" alt="" width="550" height="213" /></p>
<p>To access the report, after the login and choose the profile, click on &#8220;Home&#8221; and click &#8220;Real-Time (beta)&#8221; in the left menu.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/KzCznbddbk8zqj3lFwTzCfn1gkE/0/da"><img src="http://feedads.g.doubleclick.net/~a/KzCznbddbk8zqj3lFwTzCfn1gkE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KzCznbddbk8zqj3lFwTzCfn1gkE/1/da"><img src="http://feedads.g.doubleclick.net/~a/KzCznbddbk8zqj3lFwTzCfn1gkE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/x-eCPCewIuY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/12/google-analytics-new-real-time-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/12/google-analytics-new-real-time-report/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Motorola Droid Razr – The super smarphone Android</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/dFqwCr_nghc/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/11/motorola-droid-razr-the-super-smarphone-android/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 00:32:51 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[gingerbread]]></category>
		<category><![CDATA[icecream sandwich]]></category>
		<category><![CDATA[motorola]]></category>
		<category><![CDATA[razr]]></category>
		<category><![CDATA[smartphone]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=223</guid>
		<description><![CDATA[Recently released, the Motorola Droid Razr is the thinnest smartphone with 4G worldwide. With 7.1 mm thickness, it has a 4.3 inch<a href="http://www.andrels.com/wp-en_US/index.php/2011/11/motorola-droid-razr-the-super-smarphone-android/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-431 aligncenter" title="droid-razr" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/11/droid-razr.jpg" alt="" width="500" height="376" /></p>
<p>Recently released, the Motorola Droid Razr is the thinnest smartphone with 4G worldwide. With 7.1 mm thickness, it has a 4.3 inch Super AMOLED screen, 540 x 960 resolution and protected with Gorilla® Glass screen. Its 8MP camera, can record Full HD (1080p) videos, its front 1.3MP camera allow videos in HD resolution (720p).</p>
<p>More light and resistant, Motorola Razr is coated by <a href="http://pt.wikipedia.org/wiki/Kevlar" target="_blank">Kevlar®</a>, giving a more attractive finish.</p>
<p>Android Gingerbread (posteriorly Icecream Sandwich) is supported by your Dual-core processor 1.2 Ghz and 1GB RAM. Also can count with internal memory has 16 GB, more 16 GB (expansible to 32 GB) in MicroSD card that comes with it, EDGE, GPRS, 3G, Wi-FI and 4G, GPS and <a title="Inglês" href="http://en.wikipedia.org/wiki/Digital_Living_Network_Alliance" target="_blank">DLNA (Digital Living Network Alliance)</a> protocol.</p>
<p>Talking about connectivity, the smartphone will comes with <a href="http://www.motorola.com/Consumers/BR-PT/Consumer-Product-Services/MOTOCAST/Motocast" target="_blank">MotoCast</a> pre-installed. This application allows you to share your files, videos and music between your device and your PC trough Wi-Fi, 3G or 4G, without USB cable.</p>
<p>As Motorola Atrix, Droid Razr also compatible with <a href="http://www.motorola.com/Consumers/BR-PT/Consumer-Product-Services/WEBTOP/Meet-WEBTOP">Webtop</a> gadget.</p>
<p>The design of Motorola Droid Razr is based on his grandfather, Motorola Razr V3, wich sold 110 million units worldwide.</p>
<table style="background-color: #fff;" width="100%" border="0">
<tbody>
<tr>
<td style="background-color: #fff; border: none;" align="center" width="50%">
<p><div id="attachment_430" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-430 " title="razr-v3x" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/11/razr-v3x.jpg" alt="Razr V3 X" width="200" height="284" /><p class="wp-caption-text">Motorola Razr V3x</p></div></td>
<td style="background-color: #fff; border: none;" align="center">
<p><div id="attachment_432" class="wp-caption alignnone" style="width: 210px"><img class="size-full wp-image-432 " title="razr-droid" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/11/razr-droid.jpg" alt="Droid Razr" width="200" height="284" /><p class="wp-caption-text">Motorola Droid Razr</p></div></td>
</tr>
</tbody>
</table>
<p>The release was on november 16, but still is not possible find the device in Brazil, where the suggested price for Motorola is R$ 1999.00 (US$ 1110.00).</p>

<p><a href="http://feedads.g.doubleclick.net/~a/XWOldYvtnD6XWGuqmJnL0s6YUDE/0/da"><img src="http://feedads.g.doubleclick.net/~a/XWOldYvtnD6XWGuqmJnL0s6YUDE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XWOldYvtnD6XWGuqmJnL0s6YUDE/1/da"><img src="http://feedads.g.doubleclick.net/~a/XWOldYvtnD6XWGuqmJnL0s6YUDE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/dFqwCr_nghc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/11/motorola-droid-razr-the-super-smarphone-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/11/motorola-droid-razr-the-super-smarphone-android/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Apps can’t miss in your Android – Listen</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/Jj1ZHcswMVw/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/10/apps-cant-miss-in-your-android-listen/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 20:33:32 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[market]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=215</guid>
		<description><![CDATA[You, that follows podcasts around the world and don&#8217;t have a computer all time to download them and copy them<a href="http://www.andrels.com/wp-en_US/index.php/2011/10/apps-cant-miss-in-your-android-listen/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignright size-full wp-image-415" style="margin-left: 10px; margin-right: 10px;" title="Listen" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/listen1.png" alt="" width="200" height="316" />You, that follows podcasts around the world and don&#8217;t have a computer all time to download them and copy them to your smartphone, can use <a href="https://market.android.com/details?id=com.google.android.apps.listen" target="_blank">Listen</a>.</p>
<p style="text-align: justify;">This application, developed by Google, allows you to find podcasts and subscribe to it. Podcast that aren&#8217;t found by search, can be subscribed manually in &#8220;My subscriptions&#8221; options.</p>
<p style="text-align: justify;">Here, with brazilian 3G quality, you will get a continuous audio (without buffer pauses) using the wi-fi connection or hearing tracks with 96kbps or less.</p>
<p style="text-align: justify;">The <a href="https://market.android.com/details?id=com.google.android.apps.listen" target="_blank">Listen</a> allows you download audios to listen it after, when you want and without internet connection.</p>
<p><strong>Link</strong>: <a href="https://market.android.com/details?id=com.google.android.apps.listen" target="_blank">Listen</a><br />
<strong>Price</strong>: Free<br />
<strong>Advertisement</strong>: No<br />
<strong>Rating</strong>*: 3,8/5</p>
<h5>* Rating obtained until publication</h5>

<p><a href="http://feedads.g.doubleclick.net/~a/K7604FwcD42EGTuZqYdTxE2ffuo/0/da"><img src="http://feedads.g.doubleclick.net/~a/K7604FwcD42EGTuZqYdTxE2ffuo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/K7604FwcD42EGTuZqYdTxE2ffuo/1/da"><img src="http://feedads.g.doubleclick.net/~a/K7604FwcD42EGTuZqYdTxE2ffuo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/Jj1ZHcswMVw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/10/apps-cant-miss-in-your-android-listen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/10/apps-cant-miss-in-your-android-listen/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Sharing 3G connection from Android to PCs and laptop through USB cable</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/7PGgxk3QmA4/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/10/sharing-3g-connection-from-android-to-pcs-and-laptop-through-usb-cable/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 03:19:36 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Devices]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[usb]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=203</guid>
		<description><![CDATA[Froyo, version 2.2 of Android, comes with application that allow you to share your 3G connection to anothers Wi-fi devices,<a href="http://www.andrels.com/wp-en_US/index.php/2011/10/sharing-3g-connection-from-android-to-pcs-and-laptop-through-usb-cable/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Froyo, version 2.2 of Android, comes with application that allow you to share your 3G connection to anothers Wi-fi devices, but, if you don&#8217;t have a Wi-fi network card in your computer, this application have not usability.</p>
<p style="text-align: justify;"><a href="https://market.android.com/details?id=com.proxoid&amp;feature=search_result" target="_blank">ProxoId</a>, free application available in <a href="https://market.android.com/" target="_blank">Android Marketing</a>, allows you to share connection from your Android  only using USB cable.</p>
<p style="text-align: justify;">It needs a stand alone program and Android drivers running in your PC/laptop to work.</p>
<p style="text-align: justify;">The driver and stand alone program can be found in a ZIP file for Windows 32 bits  <a href="http://www.baroukh.com/proxoid/proxoid-adb.zip" target="_blank">here</a>  and Windows 64 bits <a href="http://www.baroukh.com/proxoid/proxoid-adb64.zip">here</a>. If you&#8217;ve already installed manufacturer driver (from CD), skip to <strong>Finding your smartphone</strong> section.</p>
<h5 style="text-align: justify;">*Texts of images bellow are in Brazilian Portuguese</h5>
<p style="text-align: justify;"><span class="Apple-style-span" style="font-size: 20px; font-weight: bold;">Installing drivers</span></p>
<p style="text-align: justify;">Uncompress ZIP file and connect your Android to PC. The new hardware wizard will be shown.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-397" title="assistente" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img1.png" alt="" width="503" height="390" /></p>
<p style="text-align: justify;">Choose &#8220;No, not this time&#8221; and click in &#8220;Next&#8221;. In following screen, choose&#8221;Install from a list or specific location&#8221;. Click &#8220;Next&#8221;.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-398" title="img2" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img2.png" alt="" width="503" height="390" /></p>
<p style="text-align: justify;">Enable the options &#8220;Search for the best driver in these locations&#8221; and &#8220;Include this location in the search&#8221;, then click in &#8220;Browse&#8221;.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-399" title="img3" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img3.png" alt="" width="503" height="390" /></p>
<p style="text-align: justify;">Go to directory where you have uncompressed the ZIP file &gt; &#8220;usb_driver&#8221; &gt; &#8220;x86&#8243;, like image bellow.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-400" title="img4" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img4.png" alt="" width="325" height="318" /></p>
<p style="text-align: justify;">Click in &#8220;OK&#8221;, &#8220;Next&#8221; and follow next steps until complete the installation.</p>
<h2>Finding your smartphone</h2>
<p style="text-align: justify;">Make sure your Android is connected to computer. Open the directory &#8220;proxoid-adb&#8221; and run &#8220;check.bat&#8221;. A screen with number of your device, like this below, should be displayed.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-401" title="img5" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img5.png" alt="" width="500" height="206" /></p>
<p style="text-align: justify;">If don&#8217;t, try to desconnect and connect your smartphone again or try to reinstall the drivers.</p>
<h2>Configuring ProxoId</h2>
<p style="text-align: justify;">Configuration screen is opened when ProxoId runs:</p>
<p style="text-align: justify;">&#8220;Start/Stop ProxoId&#8221; &#8211; Control service to share the connection;<br />
&#8220;Port&#8221; &#8211; Port number to proxy<br />
&#8220;User-Agent Filter&#8221; &#8211; Mask to User-Agent (Browser).</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-402" title="proxoid" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img6.png" alt="" width="235" height="350" /></p>
<h2>Configuring Browser</h2>
<h4>Internet Explorer and Google Chrome</h4>
<p>Open &#8220;Start&#8221; menu &gt; &#8220;Control Panel&#8221; and &#8220;Internet Options&#8221;. Click in tab &#8220;Connections&#8221; and in &#8220;LAN Settings&#8221;.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-403" title="img7" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img7.png" alt="" width="363" height="450" /></p>
<p style="text-align: justify;">In &#8220;Address&#8221;, type &#8220;localhost&#8221; and, in &#8220;Port&#8221;,  type same value marked in application.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-406" title="img10" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img10.png" alt="" width="384" height="338" /></p>
<h4>FireFox</h4>
<p style="text-align: justify;">Open Firefox, clique in menu &#8220;Options&#8221;. Choose tab &#8220;Advanced&#8221; &gt; &#8220;Network&#8221; and click in button &#8220;Settings&#8230;&#8221;.</p>
<p style="text-align: justify;"><img class="aligncenter size-full wp-image-404" title="img8" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img8.png" alt="" width="450" height="416" /></p>
<p style="text-align: justify;">Enable &#8220;Manual proxy configuration&#8221; option.</p>
<p style="text-align: justify;">In &#8220;HTTP&#8221;, type &#8220;localhost&#8221; and, in &#8220;Port&#8221;, type same value marked in application.</p>
<p style="text-align: center;"><img class="aligncenter" title="img9" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/10/img9.png" alt="" width="376" height="400" /></p>
<h2>Sharring the connection</h2>
<p style="text-align: justify;">Enable &#8220;Start/Stop ProxoId&#8221; in your Android.</p>
<p style="text-align: justify;">At computer, run &#8220;start-tunnel.bat&#8221; in &#8220;proxoid-adb&#8221; directory.</p>
<p style="text-align: justify;">That&#8217;s it! While application is enabled and  &#8221;start-tunnel.bat&#8221; is running, your computer will use your Android to connect at internet!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/1LUy5jojFVi4kHC0gI2cCPaDk4E/0/da"><img src="http://feedads.g.doubleclick.net/~a/1LUy5jojFVi4kHC0gI2cCPaDk4E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1LUy5jojFVi4kHC0gI2cCPaDk4E/1/da"><img src="http://feedads.g.doubleclick.net/~a/1LUy5jojFVi4kHC0gI2cCPaDk4E/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/7PGgxk3QmA4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/10/sharing-3g-connection-from-android-to-pcs-and-laptop-through-usb-cable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/10/sharing-3g-connection-from-android-to-pcs-and-laptop-through-usb-cable/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Using Playstation 3 wireless  joystick in PC</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/hanEGhM6raU/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/09/using-playstation-3-wireless-joystick-in-pc/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 14:32:23 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Devices]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[joystick]]></category>
		<category><![CDATA[pc]]></category>
		<category><![CDATA[playstation 3]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=198</guid>
		<description><![CDATA[How you know, is not possible to use Playstation 3 wireless joystick like PC joystick with defaults drivers, but there<a href="http://www.andrels.com/wp-en_US/index.php/2011/09/using-playstation-3-wireless-joystick-in-pc/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>How you know, is not possible to use Playstation 3 wireless joystick like PC joystick with defaults drivers, but there is a custom driver that allow to PC&#8217;s bluetooth adapter find a PS 3 joystick.</p>
<h4>Requirement:</h4>
<ul>
<li>Bluetooth adapter (if your PC/notebook don&#8217;t have it);</li>
<li>PS3 USB cable;</li>
<li>.NET Framework 4 &#8211; Can be downloaded from <a href="http://www.microsoft.com/download/en/details.aspx?id=17851">here</a>;</li>
<li>Operational System Windows XP, Vista or 7 (seven).</li>
</ul>
<p>You need to download the custom driver from <a href="http://www.motioninjoy.com" target="_blank">Motionin Joy&#8217;s</a> site to<br />
<a href="http://www.xinputer.com/download/MotioninJoy_060004_x86_signed.zip">Windows XP, Windows Vista and Windows 7 (32 bits)</a> or <a href="http://www.xinputer.com/download/MotioninJoy_060004_amd64_signed.zip">Windows XP, Windows Vista e Windows 7 (64 bits)</a>.</p>
<p>Extract ZIP file and run the &#8220;.exe&#8221;. Follow installation steps and run &#8220;DS3 Tool&#8221;, or click Start Menu > Programs > MotioninJoy > DS3 Tool.</p>
<p>Screen below will be shown:<br />
<img class="aligncenter size-full wp-image-373" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/09/tela1.jpg" alt="" width="500" height="398" /></p>
<p>Connect the joystick in to PC using USB cable. Click menu &#8220;Driver Manager&#8221;, select the device and click in button &#8220;Install all&#8221;.<br />
<img class="aligncenter size-full wp-image-374" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/09/tela2.jpg" alt="" width="549" height="437" /></p>
<p>After installation (may take 1 minute), click in menu &#8220;Profiles&#8221;.</p>
<p>The joystick should appear in list (circle). Select the option &#8220;Playstation 2 (POV, Joysticks, Analog Trigger)&#8221;, &#8220;Custom&#8221; and number of joystick (for us &#8220;1&#8243;).</p>
<p><img class="aligncenter size-full wp-image-375" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/09/tela3.jpg" alt="" width="549" height="437" /></p>
<p>To finish, click menu &#8220;Bluetooth Pair&#8221;, select the joystick in list &#8220;Dual Shock 3&#8243; and click in button &#8220;Pair Now&#8221;.</p>
<p><img class="aligncenter size-full wp-image-377" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/09/tela4.jpg" alt="" width="549" height="437" /></p>
<p>It&#8217;s done! When MAC address apear where is &#8220;Have Paired to&#8221; you can disconnect USB and use joystick normally through Bluetooth.</p>
<p>Enjoy! <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/UhVobJokHyewBPkposuq2M7Q3I0/0/da"><img src="http://feedads.g.doubleclick.net/~a/UhVobJokHyewBPkposuq2M7Q3I0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UhVobJokHyewBPkposuq2M7Q3I0/1/da"><img src="http://feedads.g.doubleclick.net/~a/UhVobJokHyewBPkposuq2M7Q3I0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/hanEGhM6raU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/09/using-playstation-3-wireless-joystick-in-pc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/09/using-playstation-3-wireless-joystick-in-pc/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Android 2.2 – How to install apps directly in SD card</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/vZdumu_wYUk/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/09/android-2-2-how-to-install-apps-directly-in-sd-card/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 21:51:17 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=194</guid>
		<description><![CDATA[ome Android smartphones have low capacity internal memory and not allow you to install many apps. At Android 2.2 there<a href="http://www.andrels.com/wp-en_US/index.php/2011/09/android-2-2-how-to-install-apps-directly-in-sd-card/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/09/android_full.png" class="alignleft" width="233" height="265" />ome Android smartphones have low capacity internal memory and not allow you to install many apps.</p>
<p>At Android 2.2 there is a possibility migrate the apps to SD card after instalation, but some applications not allow to do this.</p>
<p>Looking for a fix to solve this problem in my Motorola Droid, I found a way to install apps directly in SD card, like show in <a href="http://www.mundozoom.com.br/android-instalar-aplicativos-no-cartao-sd.html" target="_blank">Mundo Zoom</a>, and not need <i>root</i>.</p>
<p>Download ZIP file from <a href="http://developer.android.com/sdk/index.html" target="_blank">Android SDK</a> and extract. Browse to folder &#8220;<b>android-sdk-windows\platform-tools</b>&#8220;.</p>
<p>Set your Android to debug mode. Don&#8217;t you know? <b>&#8220;Settings&#8221; &gt; &#8220;Applications&#8221; &gt; &#8220;Development&#8221;</b> and enable &#8220;USB debugging&#8221; option.</p>
<p>Connect your smartphone in USB and enable &#8220;Charge Only&#8221; on USB Connection Management.</p>
<p>Click in Start Menu, Run. Type &#8220;cmd&#8221; e press Enter to open command prompt.</p>
<p>With command prompt and Windows Explorer opened, click and drag file &#8220;adb.exe&#8221; to prompt window, after, insert a space and type &#8220;shell&#8221;. Press Enter.</p>
<p><img alt="" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/09/ss1.jpg" class="aligncenter" width="540" height="386" /></p>
<p>The &#8220;$&#8221; simbol and cursor should appear. Now type &#8220;<b>pm setInstallLocation 2</b>&#8221; and press Enter</p>
<p>This command sets partition &#8220;2&#8243; (SD Card) as default to install applications.</p>
<p>Done! That`s all you need for apps to be installed directly in your SD card</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Iptji9nmLW037o2u2Af16sLd3-A/0/da"><img src="http://feedads.g.doubleclick.net/~a/Iptji9nmLW037o2u2Af16sLd3-A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Iptji9nmLW037o2u2Af16sLd3-A/1/da"><img src="http://feedads.g.doubleclick.net/~a/Iptji9nmLW037o2u2Af16sLd3-A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/vZdumu_wYUk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/09/android-2-2-how-to-install-apps-directly-in-sd-card/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/09/android-2-2-how-to-install-apps-directly-in-sd-card/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Why to use File.separator and File.pathSeparator</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/P9vzPYBs56M/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/08/why-to-use-file-separator-and-file-pathseparator/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 16:17:49 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[programing]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=190</guid>
		<description><![CDATA[Java programmers knows about methods quoted in title, but many doesn&#8217;t care with them. These methods are useful for programmer<a href="http://www.andrels.com/wp-en_US/index.php/2011/08/why-to-use-file-separator-and-file-pathseparator/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Java programmers knows about methods quoted in title, but many doesn&#8217;t care with them.</p>
<p>These methods are useful for programmer that do not knows wich characters represents file separator and path separator at OS that supports your application.</p>
<p>Linux/Unix, the methods <b><a href="http://download.oracle.com/javase/1,5.0/docs/api/java/io/File.html#separator">File.separator</a></b> and <b><a href="http://download.oracle.com/javase/1,5.0/docs/api/java/io/File.html#pathSeparator">File.pathSeparator</a></b> returns &#8220;/&#8221; and &#8220;.&#8221;, while in Windows, these methods returns &#8220;\&#8221; (or &#8220;\\&#8221; &#8211; escape) and &#8220;;&#8221;.</p>
<p>In recent case, the code below threw exception FileNotFoundException running over Linux, but not running over Windows:</p>
<pre class="brush:java">
String appPath = ctx.getRealPath();
String filePath = appPath + "\\" + "WEB-INF/classes/my/application/packages/";

File file = new File(filePath, "report.pdf");
OutputStream out = new FileOutputStream(file);
...
</pre>
<p>Worked in both systems after to replace &#8220;\\&#8221; by File.separator in line 2:</p>
<pre class="brush:java">
String appPath = ctx.getRealPath();
String filePath = appPath + File.separator + "WEB-INF/classes/my/application/packages/";

File file = new File(filePath, "report.pdf");
OutputStream out = new FileOutputStream(file);
...
</pre>
<p>Utilization of these methods, besides a good practice, is very usefull when same version of an application is running over differents operacional systems.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/jfob4RPU3SGWCYdP7l-AMDHTXEg/0/da"><img src="http://feedads.g.doubleclick.net/~a/jfob4RPU3SGWCYdP7l-AMDHTXEg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jfob4RPU3SGWCYdP7l-AMDHTXEg/1/da"><img src="http://feedads.g.doubleclick.net/~a/jfob4RPU3SGWCYdP7l-AMDHTXEg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/P9vzPYBs56M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/08/why-to-use-file-separator-and-file-pathseparator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/08/why-to-use-file-separator-and-file-pathseparator/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Apps can’t miss in your Android – RemoteControl for Earphones</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/i8b8P_TLb2E/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/08/apps-cant-miss-in-your-android-remotecontrol-for-earphones/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 17:05:18 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[marketing]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=183</guid>
		<description><![CDATA[I&#8217;m starting a new section called &#8220;Apps can&#8217;t miss in your Android&#8220;. This section will have reviews and tips for<a href="http://www.andrels.com/wp-en_US/index.php/2011/08/apps-cant-miss-in-your-android-remotecontrol-for-earphones/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m starting a new section called &#8220;<b>Apps can&#8217;t miss in your Android</b>&#8220;. This section will have reviews and tips for useful applications, that will help to extract all potentical from your Android.</p>
<p>I&#8217;ll start with <strong>RemoteControl for Earphones</strong>. It just cancel a vantage of iPhone over Android: to control media players using the earphones&#8217;s button.</p>
<p>The button&#8217;s behavior is to pause and start music. <strong>RemoteControl for Earphones</strong> allow you runs almost all commands of a media player. To play or pause, press button once, to skip forward, press button twice, to skip rewind, press four times&#8230;</p>
<div class="wp-caption aligncenter" style="width: 212px"><a href="https://www.gstatic.com/android/market/jp.co.chobirich.tools.mediabutton/ss-480-1-6"><img src="https://www.gstatic.com/android/market/jp.co.chobirich.tools.mediabutton/ss-480-1-6" alt="RemoteControl for Earphones" width="202" height="336" /></a><p class="wp-caption-text">App screen (Android Market)</p></div>
<p>This application is for free and don&#8217;t have advertisement.</p>
<p>Most players are incompatible, but it work very well in Morotola Droid&#8217;s player, <a href="https://market.android.com/details?id=com.songbirdnest.mediaplayer&#038;feature=search_result" target="_blank">Songbird</a>, but not work in Winamp and players of Samsung Galaxy S and Motorola Atrix.</p>
<p><strong>Link</strong>:  <a href="https://market.android.com/details?id=jp.co.chobirich.tools.mediabutton&amp;feature=search_result" target="_blank">RemoteControl for Earphones</a><br />
<strong>Price</strong>: Free<br />
<strong>Advertisement</strong>: No</p>

<p><a href="http://feedads.g.doubleclick.net/~a/fTtFO62MCnCyZVvzUaKXjfZdTWM/0/da"><img src="http://feedads.g.doubleclick.net/~a/fTtFO62MCnCyZVvzUaKXjfZdTWM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/fTtFO62MCnCyZVvzUaKXjfZdTWM/1/da"><img src="http://feedads.g.doubleclick.net/~a/fTtFO62MCnCyZVvzUaKXjfZdTWM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/i8b8P_TLb2E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/08/apps-cant-miss-in-your-android-remotecontrol-for-earphones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/08/apps-cant-miss-in-your-android-remotecontrol-for-earphones/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>How to install Epson Stylus CX5600 on Ubuntu 10.04</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/Wn5LoTwhCqA/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/08/how-to-install-epson-stylus-cx5600-on-ubuntu-10-04/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 02:43:19 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Devices]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[avasys]]></category>
		<category><![CDATA[epson]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sane]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=178</guid>
		<description><![CDATA[I&#8217;ve found many tutorials about this topic, but only one, found in Luis Gallardo&#8217;s blog, worked for me. Luis&#8217;s tutorial<a href="http://www.andrels.com/wp-en_US/index.php/2011/08/how-to-install-epson-stylus-cx5600-on-ubuntu-10-04/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found many tutorials about this topic, but only one, found in <a href="http://lgallardo.com/en/2009/12/05/escaner-multifuncional-epson-stylus-cx5600-en-linux/">Luis Gallardo&#8217;s blog</a>, worked for me.</p>
<p>Luis&#8217;s tutorial explain how to install on Ubuntu 9.10, so some steps are not necessary. I&#8217;ll show necessary steps to install on Ubuntu 10.04.</p>
<p>You need to download drivers from Avasys site. Go to this <a href="http://www.avasys.jp/lx-bin2/linux_e/spc/DL1.do">link</a>, scroll down the page, choose &#8220;<em>Epson Stylus CX4300/</em><wbr><em>CX4400/</em><wbr><em>CX4450/</em><wbr><em>CX5500/</em><wbr><em>CX5600/</em><wbr><em>DX4400/</em><wbr><em>DX4450</em>&#8220;, &#8220;<em>Ubuntu</em>&#8221; and version &#8220;<em>10.04</em>&#8220;, click &#8220;Next&#8221;.</p>
<p>Now, download &#8220;<strong>iscan-data_1.9.0-1_all.deb</strong>&#8220;, &#8220;<strong>iscan_2.26.4-2.ltdl7_i386.deb</strong>&#8221; and &#8220;<strong>iscan-plugin-cx4400_2.1.3-1_i386.deb</strong>&#8220;. After, run commands:</p>
<pre class="brush:bash">sudo dpkg -i iscan-data_1.9.0-1_all.deb
sudo dpkg -i iscan_2.26.4-2.ltdl7_i386.deb
sudo dpkg -i iscan-plugin-cx4400_2.1.3-1_i386.deb</pre>
<p>Make sure the scanner is connected and turned on and run command</p>
<pre class="brush:bash">lsusb</pre>
<p>Should appear a list of devices connected to the USB ports, like this:</p>
<pre class="brush:bash">Bus 003 Device 004: ID 04b8:083f Seiko Epson Corp. Stylus DX4450
Bus 003 Device 003: ID 04fc:05d8 Sunplus Technology Co., Ltd
Bus 003 Device 002: ID 04f3:0216 Elan Microelectronics Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 18e3:9101 Fitipower Integrated Technology Inc
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</pre>
<p>The first line (&#8220;<em>Bus 003 Device 004: ID 04b8:083f Seiko Epson Corp. Stylus DX4450</em>&#8220;) means the scanner was detected on address 003:004.</p>
<p>These steps are enough for the scanner be detected for XSane, but only <strong>root</strong> can to use.</p>
<p>To fix this &#8220;little&#8221; problem, edit file <em>/lib/udev/rules.d/40-libsane.rules</em> and add the following lines:</p>
<pre class="brush:text"># Epson CX5600
ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="083f", MODE="0664", GROUP="saned", ENV{libsane_matched}="yes"</pre>
<p>Turn off and turn on your scanner. To see if the problem was fixed, run command <em>lsusb</em> again. The output should be like this:</p>
<pre class="brush:bash">Bus 003 Device 004: ID 04b8:083f Seiko Epson Corp. Stylus DX4450</pre>
<p>Note the number of &#8220;Bus&#8221; and &#8220;Device&#8221;, with them run command</p>
<pre class="brush:bash">ls -l /dev/bus/usb/&lt;BUS&gt;/&lt;DEVICE&gt;</pre>
<p>Replace &lt;BUS&gt; and &lt;DEVICE&gt; by respective numbers:</p>
<pre class="brush:bash">ls -l /dev/bus/usb/003/004</pre>
<p>You will see something like</p>
<pre class="brush:bash">crw-rw-r--+ 1 root saned 189, 129 2011-07-01 14:01 /dev/bus/usb/003/004</pre>
<p>Now you can to use your scanner with any user owned to group <strong>saned</strong>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/JNMgBmTZHBS83zWFd8vqhwimdt4/0/da"><img src="http://feedads.g.doubleclick.net/~a/JNMgBmTZHBS83zWFd8vqhwimdt4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/JNMgBmTZHBS83zWFd8vqhwimdt4/1/da"><img src="http://feedads.g.doubleclick.net/~a/JNMgBmTZHBS83zWFd8vqhwimdt4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/Wn5LoTwhCqA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/08/how-to-install-epson-stylus-cx5600-on-ubuntu-10-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/08/how-to-install-epson-stylus-cx5600-on-ubuntu-10-04/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Fixing WordPress error “Allowed memory size of…”</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/3tj1daEpvt0/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/07/fixing-wordpress-error-allowed-memory-size-of/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 02:06:11 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fatal]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=174</guid>
		<description><![CDATA[I&#8217;ve just updated my WordPress to version 3.2, when update has been finished a page with error code 500 was<a href="http://www.andrels.com/wp-en_US/index.php/2011/07/fixing-wordpress-error-allowed-memory-size-of/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just updated my WordPress to version 3.2, when update has been finished a page with error code 500 was displayed. In log file had many entry of <strong>Fatal error: Allowed memory size of 33554432 bytes exhausted</strong></p>
<p>To know if it your problem too, edit file <strong>error_log</strong> in <strong>wp-admin</strong> directory and and take a look at last rows.</p>
<p>The following process fixed this for me, but your host server should allow sizing PHP memory at runtime.</p>
<p>Open and edit file <strong>wp-settings.php</strong> at root of WordPress directory and put the row bellow after &#8220;&lt;?php&#8221;:</p>
<pre class="brush:php">define('WP_MEMORY_LIMIT', '64M');</pre>
<p>Here I&#8217;ve set up to 64MB to PHP, but how to know amount of MB to set up?</p>
<p>In error message, the long number means amount of bytes allocated to PHP: &#8220;Fatal error: Allowed memory size of <span style="text-decoration: underline;">33554432</span>&#8230;&#8221;. This number represents 32MB (do this calculation to converts byte in megabytes 33554432 / (1024^2) = 32).</p>
<p>Just set a number greater than the result in line above.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/58_LVspy31sq9iyet5UY72dYtKA/0/da"><img src="http://feedads.g.doubleclick.net/~a/58_LVspy31sq9iyet5UY72dYtKA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/58_LVspy31sq9iyet5UY72dYtKA/1/da"><img src="http://feedads.g.doubleclick.net/~a/58_LVspy31sq9iyet5UY72dYtKA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/3tj1daEpvt0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/07/fixing-wordpress-error-allowed-memory-size-of/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/07/fixing-wordpress-error-allowed-memory-size-of/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>How is fight between Firefox, Internet Explorer and Google Chrome?</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/206qvn3HZ5o/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/06/how-is-fight-between-firefox-internet-explorer-and-google-chrome/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 01:35:32 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=170</guid>
		<description><![CDATA[I&#8217;ve was analysing blog access chart and, curiously, I see how are the most usable browsers. The fight between Firefox<a href="http://www.andrels.com/wp-en_US/index.php/2011/06/how-is-fight-between-firefox-internet-explorer-and-google-chrome/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve was analysing blog access chart and, curiously, I see how are the most usable browsers.</p>
<p>The fight between Firefox and Internet Explorer is old and, little time ago, Microsoft&#8217;s browser lost first position to Firefox. Now, with Google Chrome more stable and accessible, the three firsts position may be changed again.</p>
<p>In one year of interval, this blog had 35,738 visits, where the Firefox was most usable browser, responsible for 14,705 (41.75%) of access, distantly followed by Internet Explorer (10,542 access, or 29.5%) and Google Chrome (8,679 access, or 24.29%). Opera came in 4th and Safari came in 5th.</p>
<p>Below the chart generated by Google Analytics with complete list of browsers and amount of access:</p>
<div id="attachment_296" class="wp-caption aligncenter" style="width: 410px"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/06/grafFFIECR.jpg"><img class="size-medium wp-image-296  " title="grafFFIECR" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2011/06/grafFFIECR.jpg" alt="" width="400" height="172" /></a><p class="wp-caption-text">Chart generated by Google Analytics between 06/07/2010 and 06/07/2011 (click to zoom)</p></div>
<p>Will be a matter of time to Internet Explorer to leave second position to Google Chrome</p>

<p><a href="http://feedads.g.doubleclick.net/~a/dm_h34N0jhH6JBLpzX7nHYumRz8/0/da"><img src="http://feedads.g.doubleclick.net/~a/dm_h34N0jhH6JBLpzX7nHYumRz8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dm_h34N0jhH6JBLpzX7nHYumRz8/1/da"><img src="http://feedads.g.doubleclick.net/~a/dm_h34N0jhH6JBLpzX7nHYumRz8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/206qvn3HZ5o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/06/how-is-fight-between-firefox-internet-explorer-and-google-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/06/how-is-fight-between-firefox-internet-explorer-and-google-chrome/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>How to read and write CLOB fields</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/7LIkhL1m3o0/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/05/how-to-read-and-write-clob-fields/#comments</comments>
		<pubDate>Fri, 20 May 2011 16:39:34 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[clob]]></category>
		<category><![CDATA[data base]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=167</guid>
		<description><![CDATA[The Character Large Object (or CLOB) is a commonly found in databases and used to store high quantity of characters.<a href="http://www.andrels.com/wp-en_US/index.php/2011/05/how-to-read-and-write-clob-fields/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>The Character Large Object (or CLOB) is a commonly found in databases and used to store high quantity of characters.</p>
<p>At MySQL, for example, this field is called MEMO.</p>
<h4>Writing CLOB field</h4>
<p>The method <em>setAsciiStream</em> of <em>PreparedStatement</em> allow to pass data to a CLOB.</p>
<pre class="brush:sql">ps.setAsciiStream(bindPosition, inputStream, textLength);</pre>
<p><strong>bindPosition</strong> &#8211; Position in PreparedStatment&#8217;s CLOB field.<br />
<strong>inputStream</strong> &#8211; Used to pass data.<br />
<strong>textLength</strong> &#8211; Data (text) length.</p>
<p><strong>Full code:</strong></p>
<pre class="brush:java">String sql = "INSERT INTO TABLE (text) VALUES(?)";
		try{
			String txt = readTxtFile();
			ByteArrayInputStream bais = new ByteArrayInputStream(txt.getBytes());

			PreparedStatement ps = conexao.prepareStatement(sql);
			//CLOB is '?' at first position
			ps.setAsciiStream(1, bais, txt.length());

			ps.execute();

			ps.close();
		}catch (Exception e) {
			e.printStackTrace();
		}</pre>
<h4>Retrieving CLOB data</h4>
<p>We&#8217;re using SELECT clause, this clause returns a ResultSet to fetch data and, calling getClob method, passing column name or your position in the query, it give to you a Clob object.</p>
<pre class="brush:sql">rs.getClob("xml");</pre>
<p><strong>Full code:</strong></p>
<pre class="brush:java">String sql = "SELECT xml FROM TEST";
		try{
			PreparedStatement ps = conexao.prepareStatement(sql);
			ResultSet rs = ps.executeQuery();

			while(rs.next()){
				Clob clob = rs.getClob("xml");
				BufferedReader reader = new BufferedReader(clob.getCharacterStream());
				StringBuffer strBuf = new StringBuffer();

				String linha = null;
				while((linha = reader.readLine()) != null){
					strBuf.append(linha);
//Character.LINE_SEPARATOR insert break line
					strBuf.append((char)Character.LINE_SEPARATOR);
				}

				System.out.println("=========== CLOB ===========");
				System.out.println(strBuf.toString());
			}

			rs.close();
			ps.close();
		}catch (Exception e) {
			e.printStackTrace();
		}</pre>
<p>That&#8217;s it! Easy and painless <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Download full code <a href="http://www.andrels.com/wp-pt_BR/wp-content/plugins/download-monitor/download.php?id=6">here</a></p>
<p>To write a BLOB see this <a href="http://www.andrels.com/wp-en_US/index.php/2010/02/saving-files-in-blob-table-column-of-a-data-base/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">tutorial</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/TnVGaY3sbdc7ewnUCBXWNi7Fd6g/0/da"><img src="http://feedads.g.doubleclick.net/~a/TnVGaY3sbdc7ewnUCBXWNi7Fd6g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TnVGaY3sbdc7ewnUCBXWNi7Fd6g/1/da"><img src="http://feedads.g.doubleclick.net/~a/TnVGaY3sbdc7ewnUCBXWNi7Fd6g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/7LIkhL1m3o0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/05/how-to-read-and-write-clob-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/05/how-to-read-and-write-clob-fields/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Installing .apk packages at Android SDK emulator</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/U_x6KHUkkXQ/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2011/02/installing-apk-packages-at-android-sdk-emulator/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 23:40:10 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[sdk]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=162</guid>
		<description><![CDATA[Sometimes our applications depends of third-part applications for tests or to access resources of emulator that aren&#8217;t available by default.<a href="http://www.andrels.com/wp-en_US/index.php/2011/02/installing-apk-packages-at-android-sdk-emulator/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Sometimes our applications depends of third-part applications for tests or to access resources of emulator that aren&#8217;t available by default.</p>
<p>In directories of SDK, commonly in<em> platform-tools</em>, there is an executable called <strong>adb</strong>, with it we&#8217;ll to install third-part applications.</p>
<p>You will need an application (.apk). Browse internet or copy from your Android smartphone using applications like <a href="https://market.android.com/details?id=com.IQBS.android.appSaver&amp;feature=search_result">AppSaver</a>.</p>
<p>- Run the emulator, you can use SDK Manager or Eclipse plugins.</p>
<p>- Using DOS Command (Windows) or terminal (Linux), open directory <em>platform-tools</em> and run commando line below:</p>
<pre class="brush: bash">$ adb install &lt;.apk path&gt;</pre>
<p>This message will be displayed</p>
<pre class="brush: bash">$ adb install Application.apk
125 KB/s (1091937 bytes in 8.474s)
        pkg: /data/local/tmp/Application.apk
Success</pre>
<p>Now, the third-part application is available at emulator menu, like have installed in your smartphone.</p>
<p>Agora o aplicativo estará disponível no menu do emulador. <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/LsWtLAjsp_xHM4qRJHI6y8EhMT8/0/da"><img src="http://feedads.g.doubleclick.net/~a/LsWtLAjsp_xHM4qRJHI6y8EhMT8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LsWtLAjsp_xHM4qRJHI6y8EhMT8/1/da"><img src="http://feedads.g.doubleclick.net/~a/LsWtLAjsp_xHM4qRJHI6y8EhMT8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/U_x6KHUkkXQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2011/02/installing-apk-packages-at-android-sdk-emulator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2011/02/installing-apk-packages-at-android-sdk-emulator/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Fix for “JDK not found” error for Android SDK at Windows 7 x64</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/5LPS5UDqjEQ/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/12/fix-for-jdk-not-found-error-for-android-sdk-at-windows-7-x64/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 22:29:32 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[64 bits]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=156</guid>
		<description><![CDATA[If you&#8217;re trying to install Android SDK on Windows 64 bits and is receiving the error message &#8220;JDK not found&#8221;,<a href="http://www.andrels.com/wp-en_US/index.php/2010/12/fix-for-jdk-not-found-error-for-android-sdk-at-windows-7-x64/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re trying to install Android SDK on Windows 64 bits and is receiving the error message &#8220;JDK not found&#8221;, the solution found by <a href="http://www.eighthourlunch.com/node/161">http://www.eighthourlunch.com/node/161</a>, basicaly insert some entries at Windows registry, after this, the Google Android SDK will found your JDK instalation.</p>
<p>The .REG file are available <a href="http://www.andrels.com/wp-en_US/wp-content/plugins/download-monitor/download.php?id=5" title="Downloaded 1215 times">here</a> .</p>
<p>Before run file, open it with notepad and change path &#8220;C:\\Program Files\\Java\\jdk1.6.0_23&#8243; to your JDK directory, and the path &#8220;C:\\Program Files\\Java\\jre6&#8243; to your JRE directory.</p>
<p>This fix has worked for me. <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/9rGPkBBpsODN2rb5rygIvbcdKnQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/9rGPkBBpsODN2rb5rygIvbcdKnQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9rGPkBBpsODN2rb5rygIvbcdKnQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/9rGPkBBpsODN2rb5rygIvbcdKnQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/5LPS5UDqjEQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/12/fix-for-jdk-not-found-error-for-android-sdk-at-windows-7-x64/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/12/fix-for-jdk-not-found-error-for-android-sdk-at-windows-7-x64/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Factory reset at Motorola Droid (Milestone)</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/yhz6M-2WR90/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/12/factory-reset-at-motorola-droidmilestone/#comments</comments>
		<pubDate>Mon, 13 Dec 2010 23:00:10 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Devices]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[milestone]]></category>
		<category><![CDATA[motorola]]></category>
		<category><![CDATA[smartphone]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=154</guid>
		<description><![CDATA[Few persons knows, but there are three forms to realize factory reset at Motorola Milestone, for Milestone that come with<a href="http://www.andrels.com/wp-en_US/index.php/2010/12/factory-reset-at-motorola-droidmilestone/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<div>
<p>Few persons knows, but there are three forms to realize factory reset at Motorola Milestone, for Milestone that come with Android 2.0, another to Android 2.1 and that works at both.</p>
<p>Before, damages occured with your phone following the tutorial will be only your responsability. I will not responsible by eventual damages caused by tutorial bellow.</p>
<p>If you agreed, go to work!</p>
<h4>Milestone with Android 2.0</h4>
<ul>
<li>Turn the phone off.</li>
<li>With your phone off, press the cam button and On/Off at same time and not release them.</li>
<li>When Motorola&#8217;s logo appear, release On/Off button but keep cam button pressed.</li>
<li>After 10 or 15 seconds, a triangle with exclamation point will be appear:</li>
<p><img title="motorola_milestone_hard" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/12/motorola_milestone_hard.jpg" alt="" width="350" height="343" /></p>
<li>Then, release cam button and press + volume button and cam button again, at same time.</li>
<li>Use directional pad to select &#8220;Format options&#8221; option and click at &#8220;Wipe data/factory reset&#8221;.</li>
<li>Select the slot with your data and go ahead!</li>
</ul>
<h4>Milestone with Android 2.1</h4>
<ul>
<li>Turn the phone off.</li>
<li>With your phone off, press &#8220;X&#8221; key at keyboard and On/Off at same time and not release them.</li>
<li>When Motorola&#8217;s logo appear, release On/Off button but keep cam button pressed.</li>
<li>After 10 or 15 seconds, a triangle with exclamation point will be appear:</li>
<p><img title="motorola_milestone_hard" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/12/motorola_milestone_hard.jpg" alt="" width="350" height="343" /></p>
<li>Then, release &#8220;X&#8221; key and press + volume button and cam button again, at same time.</li>
<li>Use directional pad to select &#8220;Wipe data/factory reset&#8221;.</li>
<li>Select the slot with your data and go ahead!</li>
</ul>
<h4>Both</h4>
<ul>
<li>At main screen, click menu and select &#8220;Settings&#8221;.</li>
<li>Select &#8220;Privacy&#8221; option and click at &#8220;Factory data reset&#8221; option.</li>
<li>A text explain about this procedure, click &#8220;Reset Phone&#8221; button.</li>
</ul>
<p>After any procedures above, your Milestone will reset any configuration and data, like when you used at first time.</p>
<p> <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
</div>

<p><a href="http://feedads.g.doubleclick.net/~a/SWwrHryk4JQjD-FYj-pfNsU5hUo/0/da"><img src="http://feedads.g.doubleclick.net/~a/SWwrHryk4JQjD-FYj-pfNsU5hUo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SWwrHryk4JQjD-FYj-pfNsU5hUo/1/da"><img src="http://feedads.g.doubleclick.net/~a/SWwrHryk4JQjD-FYj-pfNsU5hUo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/yhz6M-2WR90" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/12/factory-reset-at-motorola-droidmilestone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/12/factory-reset-at-motorola-droidmilestone/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>How is brazilian broadband quality?</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/P96oqGOC0h4/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/08/how-is-brazilian-broadband-quality/#comments</comments>
		<pubDate>Mon, 02 Aug 2010 15:42:55 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[boradband]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[speedy]]></category>
		<category><![CDATA[telefonica]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=150</guid>
		<description><![CDATA[Who, that lives in Brazil, thinks owns broadband internet? Don&#8217;t have! We have a high speed modem connection. While here,<a href="http://www.andrels.com/wp-en_US/index.php/2010/08/how-is-brazilian-broadband-quality/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Who, that lives in Brazil, thinks owns broadband internet?<br />
Don&#8217;t have! We have a high speed modem connection.</p>
<p>While here, in Brazil, the most fast connection is 100Mbps, the japanese are testing 1Gbps connection speed. Realy, 1Gbps!!</p>
<p>I live in São Paulo and in my house there isn&#8217;t a quality connection, my 1Mpbs connection rarely reaches 600Kbps.</p>
<p><a href="http://www.youtube.com/my_speed" target="_blank">Youtube</a> provides a comparative chart between your ISP connection, national and world connection average.</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_255" class="wp-caption aligncenter" style="width: 420px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-255" title="grafico Youtube" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/08/chart.png" alt="chart Youtube" width="410" height="300" /></dt>
<dd class="wp-caption-dd">Chart by Youtube (http://www.youtube.com/my_speed)</dd>
</dl>
</div>
<p>The yellow bar is my ISP, blue bar is the city from connection, green bar is state from connection, pink bar is the country and gray bar is world average.</p>
<p>This chart tells how our broadband are deprecated.</p>
<p>If you want to compare you broadband connection too, you can use this link <a href="http://www.testesuavelocidade.com.br">http://www.testesuavelocidade.com.br</a>. Has others tools to meter you speed connection in Internet.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/YWrHK_ytqQnB_-SBj060oXaQ_U8/0/da"><img src="http://feedads.g.doubleclick.net/~a/YWrHK_ytqQnB_-SBj060oXaQ_U8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YWrHK_ytqQnB_-SBj060oXaQ_U8/1/da"><img src="http://feedads.g.doubleclick.net/~a/YWrHK_ytqQnB_-SBj060oXaQ_U8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/P96oqGOC0h4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/08/how-is-brazilian-broadband-quality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/08/how-is-brazilian-broadband-quality/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>New Google’s image search system. Amazing!</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/jvK1aWNXgHg/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/07/new-googles-image-search-system-amazing/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:18:19 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=144</guid>
		<description><![CDATA[Google always look for inovate your services. With image search system wasn&#8217;t different. Who live in Brazil and access the<a href="http://www.andrels.com/wp-en_US/index.php/2010/07/new-googles-image-search-system-amazing/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Google always look for inovate your services. With image search system wasn&#8217;t different.</p>
<p>Who live in Brazil and access the services through <b>.com.br</b> can not enjoy the new interface. The imagens aren&#8217;t disposed in tabular format, now them are &#8220;unorganized&#8221;, to provide an easy visual identification and to fit in all user screen.</p>
<div id="attachment_237" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/07/ngoimg1.jpg" target="_blank"><img class="size-medium wp-image-237 " title="ngoimg1" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/07/ngoimg1-300x191.jpg" alt="" width="300" height="191" /></a><p class="wp-caption-text">Click to zoom</p></div>
<p>The image is highlighted when the mouse is over, showing source and your dimensions. There is no paging. The images are loaded when user scroll the page down.</p>
<p>The image clicked is exibhited in your page source and hightlighted in a modal window and with contained information about it in a side bar, without frames.</p>
<div id="attachment_238" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/07/ngoimg2.jpg" target="_blank"><img class="size-medium wp-image-238 " src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/07/ngoimg2-300x189.jpg" alt="" width="300" height="189" /></a><p class="wp-caption-text">Click to zoom</p></div>
<p>Check in <a href="http://www.google.com/imghp">http://www.google.com/imghp</a>. Enjoy! <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/nsIBMTGq9HPNGFse9fHcpRhcHm0/0/da"><img src="http://feedads.g.doubleclick.net/~a/nsIBMTGq9HPNGFse9fHcpRhcHm0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/nsIBMTGq9HPNGFse9fHcpRhcHm0/1/da"><img src="http://feedads.g.doubleclick.net/~a/nsIBMTGq9HPNGFse9fHcpRhcHm0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/jvK1aWNXgHg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/07/new-googles-image-search-system-amazing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/07/new-googles-image-search-system-amazing/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Half-Life 2 and Half-Life 2: Episode 1 now with achievements</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/D-vAr8d0bWA/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/06/half-life-2-and-half-life-2-episode-1-now-with-achievements/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 16:38:40 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[half-life 2]]></category>
		<category><![CDATA[hl2]]></category>
		<category><![CDATA[steam]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=140</guid>
		<description><![CDATA[Now with Steam being supported by Macs, some games was migrated and with improvements. These improvements was replicated in copies<a href="http://www.andrels.com/wp-en_US/index.php/2010/06/half-life-2-and-half-life-2-episode-1-now-with-achievements/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-230" title="hl2" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/06/hl2.jpg" alt="" width="460" height="215" /></p>
<p>Now with <a href="http://www.steampowered.com" target="_blank">Steam</a> being supported by Macs, some games was migrated and with improvements. These improvements was replicated in copies for Windows too.</p>
<p><a href="http://store.steampowered.com/app/220/">Half-Life 2</a> and <a href="http://store.steampowered.com/app/380/">Half-Life 2: Episode 1</a> are games that have been affected. The achievements, that were previously exclusive for <a href="http://store.steampowered.com/app/420/">Half-Life 2: Episode 2</a>, are available in HL2 and HL2: Episode 1 too. Are 46 achievements in total, 33 to HL 2 and more 13 to HL 2: Episode 1.</p>
<p>I&#8217;m willing to finish the game again! <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/AEmBx-1_Ql_HWDuzBmbLhsUOnvI/0/da"><img src="http://feedads.g.doubleclick.net/~a/AEmBx-1_Ql_HWDuzBmbLhsUOnvI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AEmBx-1_Ql_HWDuzBmbLhsUOnvI/1/da"><img src="http://feedads.g.doubleclick.net/~a/AEmBx-1_Ql_HWDuzBmbLhsUOnvI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/D-vAr8d0bWA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/06/half-life-2-and-half-life-2-episode-1-now-with-achievements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/06/half-life-2-and-half-life-2-episode-1-now-with-achievements/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Installing multi-language support in Windows 7 Professional and Home Premium editions</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/pGXQKVMo2t8/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/05/installing-multi-language-support-in-windows-7-professional-and-home-premium-editions/#comments</comments>
		<pubDate>Wed, 12 May 2010 21:52:01 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[home premium]]></category>
		<category><![CDATA[multi-language]]></category>
		<category><![CDATA[professional]]></category>
		<category><![CDATA[vistalizator]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=137</guid>
		<description><![CDATA[Multi-language support is native in Windows 7 Enterprise and Ultimate editions, but, following this tutorial you be able to alternate<a href="http://www.andrels.com/wp-en_US/index.php/2010/05/installing-multi-language-support-in-windows-7-professional-and-home-premium-editions/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-221" title="wind" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/05/wind.jpg" alt="" width="431" height="286" /></p>
<p>Multi-language support is native in Windows 7<em> Enterprise</em> and <em>Ultimate</em> editions, but, following this tutorial you be able to alternate entire many languages in <em>Professional </em>and <em>Home Premium </em>editions.</p>
<p>First you&#8217;ll need of <em>Vistalizator</em>. This application enable to install muti-language support in all Windows 7 editions and, how it&#8217;s portable, you don&#8217;t need install it. Download it clicking <a href="http://www.froggie.sk/download.html" target="_blank">here</a>.</p>
<p>After, download the languages for architecture <a href="http://www.froggie.sk/7lp64rtm.html">x64 (64 bits)</a> or <a href="http://www.froggie.sk/7lp32rtm.html">x86 (32 bits)</a>.</p>
<p>Now run the <em>Vistalizator</em> and click in &#8220;Add languages&#8221;.</p>
<p><img class="aligncenter size-full wp-image-216" title="1" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/05/1.jpg" alt="" width="450" height="309" /></p>
<p>Browse for language file that you desire and click in &#8220;Open&#8221;.</p>
<p>Will be show the message below, then click in OK to proceed</p>
<p><img class="aligncenter size-full wp-image-217" title="2" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/05/2.jpg" alt="" width="376" height="199" /></p>
<p>A new window will be open with language data and your description, then click in &#8220;Install Language&#8221;.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-218" title="3" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/05/3.jpg" alt="" width="450" height="205" /></p>
<p>Wait the installation process be done.</p>
<p><img class="aligncenter size-full wp-image-219" title="4" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/05/41.jpg" alt="" width="450" height="103" /></p>
<p>Now, the Vistalizator will show for you the languages installed in your machine and there will be the recently installed language.</p>
<p><img class="aligncenter size-full wp-image-220" title="5" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/05/5.jpg" alt="" width="450" height="309" /></p>
<p>Reboot Windows and <em>voilá</em>. <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Now you have Windows 7 Professional/Home Premium with multi-language support.</p>
<p>The only bad thing that I noticed was: all time that you want to change the language, you must to use the <em>Vistalizator</em>, because the Windows 7 Professional and Home Premium doesn&#8217;t support this feature natively.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/yhd6ZW7IZmycIw9FYzE2Du3Mn8I/0/da"><img src="http://feedads.g.doubleclick.net/~a/yhd6ZW7IZmycIw9FYzE2Du3Mn8I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yhd6ZW7IZmycIw9FYzE2Du3Mn8I/1/da"><img src="http://feedads.g.doubleclick.net/~a/yhd6ZW7IZmycIw9FYzE2Du3Mn8I/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/pGXQKVMo2t8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/05/installing-multi-language-support-in-windows-7-professional-and-home-premium-editions/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/05/installing-multi-language-support-in-windows-7-professional-and-home-premium-editions/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Solving problems with removal of the external HD in Windows 7</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/djr6CeWC7vU/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/05/solving-problems-with-removal-of-the-external-hd-in-windows-7/#comments</comments>
		<pubDate>Tue, 11 May 2010 02:26:41 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[hd]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=126</guid>
		<description><![CDATA[Some times I had problems when disconnected my external HD using Windows&#8217; s Removal Device Assistant, the most frequently was<a href="http://www.andrels.com/wp-en_US/index.php/2010/05/solving-problems-with-removal-of-the-external-hd-in-windows-7/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Some times I had problems when disconnected my external HD using Windows&#8217; s Removal Device Assistant, the most frequently was &#8220;This device is currently in use. Close any programs or windows that&#8230;&#8221;. This message appeared even with all programs closed.</p>
<p>After checked Windows settings, process and services, I noticed that the problem was in service &#8220;Windows Media Player Network Sharing Service&#8221;, forcing me to stop it before remove the device.</p>
<p>But still, this solution not is right, then I found the most right:</p>
<p>The service &#8220;Windows Media Player Network Sharing Service&#8221; is responsible to share your media files (musics and videos) in your network or in the internet (like your name sounded. <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). This is default setting in Windows 7, to disable it&#8230;</p>
<p>Click in Start menu, type &#8220;Network and sharing center&#8221; and select the application. Like show in the image</p>
<p>Click &#8220;Choose homegroup and sharing options&#8221;</p>
<p><img class="aligncenter size-full wp-image-130" title="start" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2010/05/start.png" alt="" width="348" height="500" /></p>
<p>Clique na opção &#8220;Escolher opções de grupo doméstico e de  compartilhamento&#8221;</p>
<p><img class="aligncenter size-full wp-image-129" title="nsc" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2010/05/nsc.png" alt="" width="450" height="387" /></p>
<p>Now click on &#8220;Choose media streaming options&#8230;&#8221;</p>
<p><img class="aligncenter size-full wp-image-133" title="cmso" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2010/05/cmso.png" alt="" width="450" height="283" /></p>
<p>Change option of item &#8220;Media programs on this PC and remote conections&#8230;&#8221; to &#8220;Blocked&#8221;.</p>
<p><img class="aligncenter size-full wp-image-131" title="blk" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2010/05/blk.png" alt="" width="450" height="154" /></p>
<p>Finish! From now you can remove your external hard drive or other removable storage devices without problems.</p>
<p> <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/9XB6Zj5qfmnQ_zFkXcFsTHBPDLo/0/da"><img src="http://feedads.g.doubleclick.net/~a/9XB6Zj5qfmnQ_zFkXcFsTHBPDLo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9XB6Zj5qfmnQ_zFkXcFsTHBPDLo/1/da"><img src="http://feedads.g.doubleclick.net/~a/9XB6Zj5qfmnQ_zFkXcFsTHBPDLo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/djr6CeWC7vU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/05/solving-problems-with-removal-of-the-external-hd-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/05/solving-problems-with-removal-of-the-external-hd-in-windows-7/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Enabling Windows Media Player bar in Windows 7 taskbar</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/4o8GA9Y_aTI/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/04/enabling-windows-media-player-bar-in-windows-7-taskbar/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 18:14:40 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[taskbar]]></category>
		<category><![CDATA[toolbar]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows media player]]></category>
		<category><![CDATA[windows vista]]></category>
		<category><![CDATA[wmpband.dll]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=122</guid>
		<description><![CDATA[Unfortunately Windows Media Player 12,  already installed with Windows 7, has no support to minimize as toolbar in the taskbar.<a href="http://www.andrels.com/wp-en_US/index.php/2010/04/enabling-windows-media-player-bar-in-windows-7-taskbar/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<div style="text-align: justify;" dir="ltr">Unfortunately Windows Media Player 12,  already installed with Windows 7, has no support to minimize as toolbar in the taskbar. To enable this bar, just need copy a file from Windows Media Player for Windows Vista. Now I will show how do this:</div>
<p style="text-align: justify;"><strong>1. </strong>You will need of a dll called wmpband.dll, that come with Windows Vista. If you not own it, download <a class="downloadlink" href="http://www.andrels.com/wp-en_US/wp-content/plugins/download-monitor/download.php?id=4" title=" downloaded 556 times" >here (556)</a> (this ZIP contains 32 and 64 bits versions);</p>
<p style="text-align: justify;"><strong>2.</strong> Copy the file (32 or 64 bits, depends your Windows) to Windows Media Players installation directory, in my case &#8220;<strong>C:\Program Files\Windows Media Player</strong>&#8220;;</p>
<p style="text-align: justify;"><strong>3. </strong>Now check if &#8220;<strong>Windows Media Player Network Sharing Service</strong>&#8220;<strong> </strong>service is stopped. To do this, click in Start and, in the search box, type &#8220;Services&#8221; and click in the respective list item. Look for service and stop it, if running.</p>
<p style="text-align: justify;"><strong>4.</strong> Open the Command Prompt with administrator privileges. Star &gt; All Programs &gt; Accessories &gt; right click in &#8220;Command Prompt&#8221; and click &#8220;Run as Administrator&#8221;.</p>
<p style="text-align: justify;"><strong>5. </strong>Type command <strong>regsvr32</strong> &#8220;<strong>C:\Program Files\Windows  Media  Player\wmpband.dll</strong>&#8220;, replace the path of the directory where the dll is.</p>
<p style="text-align: justify;"><strong>6. </strong>Open Windows Media Player and minimize it. Then right click in the taskbar &gt; Toolbars &gt; select Windows Media Player.<a href="http://www.andrels.com/wp-en_US/wp-content/uploads/2010/04/ljbp.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-123" title="ljbp" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2010/04/ljbp-300x174.png" alt="" width="300" height="174" /></a></p>
<p style="text-align: justify;"><strong> </strong><strong>6. </strong>Abra o Windows Media Player e então o minimize-o. Depois clique com o  botão direito na barra de tarefas &gt; Barra de Ferramentas &gt; Windows  Media Player.</p>
<p style="text-align: justify;"><strong>7.</strong> And <em>voilá</em>. <img class="alignnone" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/04/45454561.png" alt="" width="321" height="45" /></p>
<p style="text-align: justify;">Microsoft should  have kept this feature natively, I know people who use this resource, I inclusive.</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 580px; width: 1px; height: 1px; overflow: hidden;">
<div dir="ltr">
<div id="tts_button" class=" " style="display: block;" title="Ouvir esta tradução"><object id="tts_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="18" height="18" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="data" value="http://www.gstatic.com/translate/sound_player.swf" /><param name="flashvars" value="sound_name=&amp;sound_name_cb=_TTSSoundFile" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.gstatic.com/translate/sound_player.swf" /><embed id="tts_flash" type="application/x-shockwave-flash" width="18" height="18" src="http://www.gstatic.com/translate/sound_player.swf" allowscriptaccess="always" wmode="transparent" flashvars="sound_name=&amp;sound_name_cb=_TTSSoundFile" data="http://www.gstatic.com/translate/sound_player.swf"></embed></object></div>
<p><span id="result_box" class="short_text"><span style="background-color: #ffffff;" title="nativamente">natively</span></span></p>
</div>
</div>

<p><a href="http://feedads.g.doubleclick.net/~a/Dgj-M8Zm_-NsIbjV2joyHIlzFUM/0/da"><img src="http://feedads.g.doubleclick.net/~a/Dgj-M8Zm_-NsIbjV2joyHIlzFUM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Dgj-M8Zm_-NsIbjV2joyHIlzFUM/1/da"><img src="http://feedads.g.doubleclick.net/~a/Dgj-M8Zm_-NsIbjV2joyHIlzFUM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/4o8GA9Y_aTI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/04/enabling-windows-media-player-bar-in-windows-7-taskbar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/04/enabling-windows-media-player-bar-in-windows-7-taskbar/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Setting up internet access through proxy server</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/7GxQYDxlJr8/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/03/setting-up-internet-access-through-proxy-server/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 01:54:22 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[prompt]]></category>
		<category><![CDATA[proxy]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=116</guid>
		<description><![CDATA[Today I had a trouble in my workplace when a client application, running through a terminal (DOS prompt), not reach<a href="http://www.andrels.com/wp-en_US/index.php/2010/03/setting-up-internet-access-through-proxy-server/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Today I had a trouble in my workplace when a client application, running through a terminal (DOS prompt), not reach the server hosted in the internet, this is because the company where I work use proxy.</p>
<p>After some tries I found two solutions to solve my access problem: first was pass as <em>Java</em> parameters the proxy&#8217;s configurations.</p>
<pre class="brush:shell">$ java -Dhttp.proxyHost=serv -Dhttp.proxyPort=port -Dhttp.proxyUser=user -Dhttp.proxyPassword=pass  ClassJava
</pre>
<p><strong>-Dhttp.proxyHost</strong> = IP or host name of server proxy<br />
<strong>-Dhttp.proxyPort</strong> = Proxy port<br />
<strong>-Dhttp.proxyUser</strong> = User<br />
<strong>-Dhttp.proxyPassword</strong> = Password</p>
<p>This way the class <em>ClassJava</em> will have access to internet through proxy server.</p>
<p>Another way, was insert the settings in own class:</p>
<pre class="brush:java">public static void main(String[] args){
...
System.getProperties().put("proxySet", "true");
System.getProperties().put("http.proxyHost", "serv");
System.getProperties().put("http.proxyPort", "port");
System.getProperties().put("http.proxyUser", "user");
System.getProperties().put("http.proxyPassword", "password");
...
}
</pre>
<p><strong>proxySet</strong> = Connect, or not, through proxy server<br />
<strong>http.proxyHost</strong> = IP or host name of server proxy<br />
<strong>http.proxyPortt</strong> = Proxy port<br />
<strong>http.proxyUse</strong> = User<br />
<strong>http.proxyPassword</strong> = Password</p>
<p>Using this resource you can set your application to access the internet through proxy server.</p>
<p>I hope help you.  Bye! <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/0iYNJQTVvw53q0DZBQEAkdaA12g/0/da"><img src="http://feedads.g.doubleclick.net/~a/0iYNJQTVvw53q0DZBQEAkdaA12g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/0iYNJQTVvw53q0DZBQEAkdaA12g/1/da"><img src="http://feedads.g.doubleclick.net/~a/0iYNJQTVvw53q0DZBQEAkdaA12g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/7GxQYDxlJr8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/03/setting-up-internet-access-through-proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/03/setting-up-internet-access-through-proxy-server/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Amarok’s playlist stop after play one music</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/HlokX7ih48U/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/03/amaroks-playlist-stop-after-play-one-musica/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 02:42:58 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[amarok]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[playlist]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=112</guid>
		<description><![CDATA[Recently I had a problem like others Amarok&#8217;s 2.1.1 users: It play only one music and stop. To resolve this:<a href="http://www.andrels.com/wp-en_US/index.php/2010/03/amaroks-playlist-stop-after-play-one-musica/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Recently I had a problem like others Amarok&#8217;s 2.1.1 users: It play only one music and stop.</p>
<p>To resolve this: Close Amarok, delete the file<strong> ~/.kde/share/apps/amarok/current.xspf</strong> and then restart Amarok.</p>
<p>Least worked to me and I hope that works for you too! <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Until next!!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Eozv10t6z6pOR-IvFMOiT77e1wM/0/da"><img src="http://feedads.g.doubleclick.net/~a/Eozv10t6z6pOR-IvFMOiT77e1wM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Eozv10t6z6pOR-IvFMOiT77e1wM/1/da"><img src="http://feedads.g.doubleclick.net/~a/Eozv10t6z6pOR-IvFMOiT77e1wM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/HlokX7ih48U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/03/amaroks-playlist-stop-after-play-one-musica/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/03/amaroks-playlist-stop-after-play-one-musica/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Creating transparent and shaped windows using Java Swing/AWT</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/9yB46upyJRE/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/03/creating-transparent-and-shaped-windows-using-java-swingawt/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 02:28:58 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[awt]]></category>
		<category><![CDATA[jframe]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[transparency]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=107</guid>
		<description><![CDATA[The Java AWT offer various possibilities about window manipulation. Today I&#8217;ll talk about two possibilities using class AWTUtilities. Building a<a href="http://www.andrels.com/wp-en_US/index.php/2010/03/creating-transparent-and-shaped-windows-using-java-swingawt/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>The Java AWT offer various possibilities about window manipulation. Today I&#8217;ll talk about two possibilities using class AWTUtilities.</p>
<h3><strong>Building a transparent window</strong></h3>
<p>To make a <strong>Window</strong> (JFrame, JDialog &#8230;) with alpha effect, you should invoke the method <strong>AWTUtilities.setWindowOpacity</strong>. This method parameters are: the window to apply transparency and transparency degree, that can be between 0 (zero) and 1, being 0 invisible and 1 totally visible.</p>
<pre class="brush:java">JFrame  window = new JFrame("My Window");

//70% of transparency
AWTUtilities.setWindowOpacity(window, .7f);
window.setSize(800,600);
window.setVisible(true);
</pre>
<p>The result will be:<a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/03/2.jpg"><img class="aligncenter size-full wp-image-174" title="2" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/03/2.jpg" alt="" width="480" height="368" /></a></p>
<h3><strong>Changing window shape</strong></h3>
<p>To change the window shape you should use the method <strong>AWTUtilities.setWindowShape</strong>. This method parameters are: window that will be changed and the new shape (java.awt.Shape) of the window.</p>
<p>The most efficiently form to use is to implement the method <em>componentResized()</em>, cause you may recompute the window and components size</p>
<p>Here I&#8217;ll use a triangle with 70% of transparency.</p>
<pre class="brush:java">final JFrame  window = new JFrame("My Window");

try {
	//Add the ComponentListener to implement componentResized method
	window.addComponentListener(new ComponentAdapter(){
		@Override
		//building componentResized
		public void componentResized(ComponentEvent e) {
			int[] x = {0,400,800}; //Pontos X do polígono
			int[] y = {600,0,600}; //Pontos Y do polígono

			//Triangle with 800 w x 600 h
			Shape shape = new Polygon(x, y, 3);

			AWTUtilities.setWindowShape(window, shape);

			//70% of transparency
			AWTUtilities.setWindowOpacity(window, 0.7f);
		}
	});
} catch (SecurityException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
} catch (IllegalArgumentException e) {
	// TODO Auto-generated catch block
	e.printStackTrace();
}

window.setUndecorated(true); //removing title bar
window.setSize(800,600);
window.setVisible(true);
</pre>
<p>Notice that the method <strong><em>setUndecorated( )</em></strong> was invoked with <em>true</em> as value. This method are responsible by hide the title bar (one with icon and the maximize, minimize and close buttons).  This is really necessary, because with title bar visible the window are not be shaped.</p>
<p>The result:<a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/03/1.jpg"><img class="aligncenter size-full wp-image-175" title="1" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2010/03/1.jpg" alt="" width="480" height="365" /></a></p>
<p>I hope you enjoy&#8230; <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/2BYyGZ_77E2efksnRjXZy6Y8PAU/0/da"><img src="http://feedads.g.doubleclick.net/~a/2BYyGZ_77E2efksnRjXZy6Y8PAU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/2BYyGZ_77E2efksnRjXZy6Y8PAU/1/da"><img src="http://feedads.g.doubleclick.net/~a/2BYyGZ_77E2efksnRjXZy6Y8PAU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/9yB46upyJRE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/03/creating-transparent-and-shaped-windows-using-java-swingawt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/03/creating-transparent-and-shaped-windows-using-java-swingawt/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Saving files in BLOB table column of a data base</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/HCrnYerQFEU/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/02/saving-files-in-blob-table-column-of-a-data-base/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 00:46:06 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[blob]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=102</guid>
		<description><![CDATA[To insert a file, is it in any format, you need call the method setBinaryStream, implemented by PreparedStatement. PreparedStatemente.setBinaryStream(int index,<a href="http://www.andrels.com/wp-en_US/index.php/2010/02/saving-files-in-blob-table-column-of-a-data-base/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>To insert a file, is it in any format, you need call the method <i>setBinaryStream</i>, implemented by PreparedStatement.</p>
<pre class="brush:java">
PreparedStatemente.setBinaryStream(int index, Inputstream is, int length);
</pre>
<p>In sample, we set a table called <i>FILE</i>that contains <b>BLOB</b> column called <i>BIN</i>.</p>
<pre class="brush:java">
//Normal connection, as any JDBC connection
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@&lt;IP&gt;:&lt;PORT&gt;:&lt;SID&gt;","&lt;USER&gt;","&lt;PASSWORD&gt;");

//Reading the file and retrieving an InputStream
File file= new File("&lt;COMPLETE_FILE_PATH&gt;");
FileInputStream fis = new FileInputStream(file);

//Preparing statement
PreparedStatement ps = conn.prepareStatement("INSERT INTO FILE(bin) VALUES(?)");

//Passing InputStream and file length
ps.setBinaryStream(1, fis, (int)file.length());

ps.execute();

ps.close();
conn.close();
</pre>
<p>I used Oracle 8i to execute this sample. I haven&#8217;t a MySQL/PostgreSQL/MS SQL Server in my dispose, then you&#8217;ll responsible for testing in this data bases and send me the results, OK <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks! Until next time!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/CEbk1I6awyXt1IDrVGok8qfUGXU/0/da"><img src="http://feedads.g.doubleclick.net/~a/CEbk1I6awyXt1IDrVGok8qfUGXU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/CEbk1I6awyXt1IDrVGok8qfUGXU/1/da"><img src="http://feedads.g.doubleclick.net/~a/CEbk1I6awyXt1IDrVGok8qfUGXU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/HCrnYerQFEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/02/saving-files-in-blob-table-column-of-a-data-base/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/02/saving-files-in-blob-table-column-of-a-data-base/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Retrieving an Oracle cursor in Java</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/O9ffnGWq12k/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2010/01/retieving-an-oracle-cursor-in-java/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 16:22:32 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=99</guid>
		<description><![CDATA[Many people come here looking for one way to retrieve cursors of Oracle procedures in Java. To them, I&#8217;ve here<a href="http://www.andrels.com/wp-en_US/index.php/2010/01/retieving-an-oracle-cursor-in-java/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Many people come here looking for one way to retrieve cursors of Oracle <i>procedures</i> in Java. To them, I&#8217;ve here are a tutorial showing how to do this.</p>
<p>To retrieve the cursor you should declare him how a <i>REF CURSOR</i> in <i>Package spec</i>.</p>
<pre class="brush:sql">  --Creating the REF CURSOR type
  type g_cursor is ref cursor;
</pre>
<p>In both, <i>spec</i> and <i>body</i>, you need declare an <i>out REF CURSOR</i> variable in procedure signature, how cited above.</p>
<pre class="brush:sql">  procedure PRO_RETURN_CARS(
    i_id     in     tbl_car.car_id%type,
    o_cursor in out g_cursor);
</pre>
<p>The cursor must be opened in <i>procedure&#8217;s body</i> to return, this way:</p>
<pre class="brush:sql">
open o_cursor for
          select car_id, company, model, color, hp, price
          from tbl_car
          where car_id = i_id;
</pre>
<p>The complete <i>Package</i>:</p>
<pre class="brush:sql">create or replace package PAC_CURSOR is
  --Creating REF CURSOR type
  type g_cursor is ref cursor;

  --Procedure that return the cursor
  procedure PRO_RETURN_CARS(
    i_id     in     tbl_car.car_id%type,
    o_cursor in out g_cursor); -- Our cursor

end PAC_CURSOR;
/

create or replace package body PAC_CURSOR is
  procedure PRO_RETURN_CARS(
    i_id     in     tbl_car.car_id%type,
    o_cursor in out g_cursor) is

       begin
        --Opening the cursor to return matched rows
        open o_cursor for
          select car_id, company, model, color, hp, price
          from tbl_car
          where car_id = i_id;

  end PRO_RETURN_CARS;

end PAC_CURSOR;
</pre>
<p>We have Oracle side ready, now we need create Java call</p>
<p>How the cursors are being returned by a <i>procedure</i>, we&#8217;ll used a <i>java.sql.CallableStatement</i> instance.</p>
<pre class="brush:java">
CallableStatement cs = conn.prepareCall("{call PAC_CURSOR.PRO_RETURN_CARS(?,?)}");
</pre>
<p>The <i>registerOutParameter</i> will obtain <i>oracle.jdbc.OracleTypes.CURSOR</i> type and return a <i>java.sql.ResultSet</i> instance. We can iterate the <i>ResultSet</i> like a common <i>Iterator</i>.<br />
Each row column returned by <i>SELECT</i> will be represented how a map, using correspondent getter. For example, we will call <i>getString(&lt;column name&gt;)</i> method when value of column is a <i>varchar</i>, <i>getDate(&lt;column name&gt;)</i> when is a date and etc.</p>
<p>The complete code will be like this:</p>
<pre class="brush:java">
//Calling Oracle procedure
CallableStatement cs = conn.prepareCall("{call PAC_CURSOR.PRO_RETURN_CARS(?,?)}");

//Defining type of return
cs.registerOutParameter("o_cursor", OracleTypes.CURSOR);
cs.setLong("i_id", id);

cs.execute();//Running the call

//Retrieving the cursor as ResultSet
ResultSet rs = (ResultSet)cs.getObject("o_cursor");

//Iterating the returned rows
while(rs.next()){
	//Getting column values
	System.out.println("ID: " + rs.getLong("car_id"));
	System.out.println("Manufacturer: " + rs.getString("company"));
	System.out.println("Model: " + rs.getString("model"));
	System.out.println("Color: " + rs.getString("color"));
	System.out.println("HP: " + rs.getString("hp"));
	System.out.println("Price: " + rs.getFloat("price"));
}
</pre>
<p>In the end you will get any value returned in a <i>SELECT</i> clause.</p>
<p>See ya!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/dkZ_jAaCahTNhcVXwgItZb1IdMo/0/da"><img src="http://feedads.g.doubleclick.net/~a/dkZ_jAaCahTNhcVXwgItZb1IdMo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/dkZ_jAaCahTNhcVXwgItZb1IdMo/1/da"><img src="http://feedads.g.doubleclick.net/~a/dkZ_jAaCahTNhcVXwgItZb1IdMo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/O9ffnGWq12k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2010/01/retieving-an-oracle-cursor-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2010/01/retieving-an-oracle-cursor-in-java/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>How to enable Telnet and TFTP Client on Windows 7</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/v0HpSc9Ce58/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/12/how-to-enable-telnet-and-tftp-client-on-windows-7/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 13:30:38 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[tftp]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=96</guid>
		<description><![CDATA[Like in Windows Vista, Windows 7 don&#8217;t enable Telnet and TFTP Clients in installation. To enable them, open Control Panel<a href="http://www.andrels.com/wp-en_US/index.php/2009/12/how-to-enable-telnet-and-tftp-client-on-windows-7/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Like in Windows Vista, Windows 7 don&#8217;t enable Telnet and TFTP Clients in installation.</p>
<p>To enable them, open Control Panel &gt; Programs and Features &gt; click Turn Windows features on or off in left side &gt; enable Client Telnet  and  Client TFTP then click in OK.</p>
<p>I not tested in Windows Vista yet, but the process can be same.</p>
<p>See you soon!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/DTiEr31yTIm9tVtDfi7sKSbK__Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/DTiEr31yTIm9tVtDfi7sKSbK__Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/DTiEr31yTIm9tVtDfi7sKSbK__Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/DTiEr31yTIm9tVtDfi7sKSbK__Y/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/v0HpSc9Ce58" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/12/how-to-enable-telnet-and-tftp-client-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/12/how-to-enable-telnet-and-tftp-client-on-windows-7/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>The most used Unix commands for Windows</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/-o5b3tHmlAM/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/11/the-most-used-unix-commands-for-windows/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 21:29:55 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=92</guid>
		<description><![CDATA[Have you thought about run commands like grep, chown, tail e su in Windows SO and can change command dir<a href="http://www.andrels.com/wp-en_US/index.php/2009/11/the-most-used-unix-commands-for-windows/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Have you thought about run commands like <em>grep</em>, <em>chown</em>, <em>tail</em> e <em>su</em> in Windows SO and can change command <em>dir</em> by <em>ls</em>?</p>
<p>Looking in internet for an alternative <em>Win32</em> to command <em>tail</em>, I found UnixUtils. A compilation for Windows of most used commands in Linux/Unix.</p>
<p>You can download the ZIP file in SourceForge clicking <a title="UnixUtils" href="http://sourceforge.net/projects/unxutils/" target="_blank">here</a>.</p>
<p>Bye!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/FYIldwvWcc38VxZbbtnayoxrIkI/0/da"><img src="http://feedads.g.doubleclick.net/~a/FYIldwvWcc38VxZbbtnayoxrIkI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FYIldwvWcc38VxZbbtnayoxrIkI/1/da"><img src="http://feedads.g.doubleclick.net/~a/FYIldwvWcc38VxZbbtnayoxrIkI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/-o5b3tHmlAM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/11/the-most-used-unix-commands-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/11/the-most-used-unix-commands-for-windows/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Generating ‘EXE’ to start your Java applications</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/uDFDTUT0Xd4/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/10/generating-exe-to-start-your-java-applications/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 23:52:08 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[exe]]></category>
		<category><![CDATA[jsmooth]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=89</guid>
		<description><![CDATA[Many developers need, or have needed, distribute their Java applications so that Windows users could start them naturally, not running<a href="http://www.andrels.com/wp-en_US/index.php/2009/10/generating-exe-to-start-your-java-applications/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Many developers need, or have needed, distribute their Java applications so that Windows users could start them naturally, not running <em>java -jar &lt;jar file&gt;</em> command or batch (.BAT) file.</p>
<p>I&#8217;ve been there too, then I found a easy and with many resources solution: <a href="http://jsmooth.sourceforge.net/" target="_blank">JSmooth</a></p>
<p>This software allow you &#8220;transform&#8221; your JAR file in an executable (EXE), but, of course, will need the JVM already installed and running.</p>
<p>Here I only have mentioned the settings that I consider important, then let&#8217;s go!</p>
<hr />Download JSmooth in <a href="http://sourceforge.net/projects/jsmooth/files/" target="_blank">http://sourceforge.net/projects/jsmooth/files/</a>;</p>
<p>After install (or unzip, this depends of file that you have downloaded) run him;</p>
<p>In the side menu, click in &#8220;Skeleton&#8221;;</p>
<p style="text-align: center;"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/1.jpg"><img class="size-full wp-image-119 aligncenter" title="1" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/1.jpg" alt="1" width="524" height="364" /></a></p>
<p>In the &#8220;Skeleton Selection&#8221; screen you need define how application will be run, select &#8220;Window Wrapper&#8221;.</p>
<p>In &#8220;Skeleton Properties&#8221;, you need define a message when user have no JVM installed (&#8220;Message&#8221; field) and where can be downloaded (&#8220;URL&#8221; field).</p>
<p>The &#8220;Launch java app in the exe process&#8221; field define if JAR file will be executed in same process of EXE (only the executable process will be displayed in Windows Task Manager), otherwise the <em>javaw.exe</em> will be displayed too.</p>
<p>The &#8220;Single Instance&#8221; field define if more than one instance can be opened.</p>
<p>&#8220;Debug Console&#8221; open the EXE from prompt window, displaying possibles outputs.</p>
<p>Now click in &#8220;Executable&#8221;</p>
<p style="text-align: center;"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/2.jpg"><img class="aligncenter size-full wp-image-120" title="2" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/2.jpg" alt="2" width="524" height="364" /></a></p>
<p>In &#8220;Executable Setting&#8221; you inform where EXE will be builded (&#8220;Executable Binary&#8221; field), the EXE&#8217;s icon (&#8220;Executable Icon&#8221; filed) and what will be the application execution directory.</p>
<p>Click in &#8220;Application&#8221;</p>
<p style="text-align: center;"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/3.jpg"><img class="aligncenter size-full wp-image-121" title="3" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/3.jpg" alt="3" width="524" height="364" /></a></p>
<p>First, click in the icon <img class="size-full wp-image-125 alignnone" title="7" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/7.jpg" alt="7" width="50" height="27" /> and select JAR that contains the main class.</p>
<p>After, select the main class in the field &#8220;Main Class&#8221; clicking in button <img class="alignnone size-full wp-image-126" title="8" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/8.jpg" alt="8" width="39" height="20" />.</p>
<p>In the field &#8220;Application arguments&#8221; you can inform necessaries parameters for your main class.</p>
<p>&#8220;Embedded JAR&#8221; field allows you to aggregate your JAR file in EXE file, in other words, only EXE file will be necessarie, because the JAR will be uncompressed by EXE in each execution.</p>
<p>Now click in &#8220;JVM Selection&#8221;.</p>
<p style="text-align: center;"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/4.jpg"><img class="aligncenter size-full wp-image-122" title="4" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/4.jpg" alt="4" width="524" height="364" /></a></p>
<p>Here you can define the minimum and maximum version of JVM that your application support.</p>
<p>The &#8220;JVM Serach Sequence&#8221; inform the seek order of <em>javaw.exe</em> file, in this case, he search in resgistry first, after in JAVA_HOME enviroment and so.</p>
<p>Click in &#8220;JVM Configuration&#8221;.</p>
<p style="text-align: center;"><a href="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/5.jpg"><img class="aligncenter size-full wp-image-123" title="5" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/5.jpg" alt="5" width="524" height="364" /></a></p>
<p>Here the maximum and minimum memory available for your application can be configured, as the options that can passed to JVM.</p>
<p>Until here we only have configured the JSmooth. To build the EXE file click in button <img class="size-full wp-image-124 alignnone" title="6" src="http://www.andrels.com/wp-pt_BR/wp-content/uploads/2009/10/6.jpg" alt="6" width="32" height="30" />. If you don&#8217;t have saved the project, a new window will open to choose the place to save. Done it, the EXE file will be create in directory mentioned in &#8220;Executable Binary&#8221; field of &#8220;Executable&#8221; screen.</p>
<p>Now just execute the EXE file and your application will be run!</p>
<p style="text-align: left;">
<p>To more information visit <a href="http://jsmooth.sourceforge.net/" target="_blank">http://jsmooth.sourceforge.net/</a></p>
<p style="text-align: left;">
<p style="text-align: left;">I hope you enjoyed, feel free to comment!</p>
<p style="text-align: left;">Until next! <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/YHgJy2fPc-W1i-KAqidZnr3AX5Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/YHgJy2fPc-W1i-KAqidZnr3AX5Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YHgJy2fPc-W1i-KAqidZnr3AX5Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/YHgJy2fPc-W1i-KAqidZnr3AX5Y/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/uDFDTUT0Xd4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/10/generating-exe-to-start-your-java-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/10/generating-exe-to-start-your-java-applications/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Retrieving objects collection from Oracle procedure</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/KcPGWdNP4Js/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/09/retrieving-objects-collection-from-oracle-procedure/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 22:25:07 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[collection]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=79</guid>
		<description><![CDATA[As I&#8217;ve promised in post &#8220;Learn to pass a Java Object as Oracle Procedure parameter&#8220;, I&#8217;ll show how retrieve object<a href="http://www.andrels.com/wp-en_US/index.php/2009/09/retrieving-objects-collection-from-oracle-procedure/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve promised in post &#8220;<a href="http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">Learn to pass a Java Object as Oracle Procedure parameter</a>&#8220;, I&#8217;ll show how retrieve object that have a collection of objects as attribute through of an <a href="http://www.oracle.com/">Oracle</a> procedure. Is highly recommended to read <a href="http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">previous post</a>.</p>
<p>For this tutorial, we&#8217;ll need create the table TBL_CLASS and add your primary key as foreign key in TBL_USER table.</p>
<pre class="brush:sql">--num class is PK and desc_class description
create table TBL_CLASS (num_class number, desc_class varchar(100));
alter table TBL_CLASS add primary key(num_class);

alter table TBL_USER add num_class number;
alter table TBL_USER add constraint FK_CLASS foreign key(num_class) references tbl_class(num_class);</pre>
<p>Now we need to include the new types:</p>
<pre class="brush:sql">create or replace type class_type as object (num_class number, desc_class varchar2(100), users arr_users);
/
create or replace type arr_class as table of class_type;
/</pre>
<p>The <em>class_type</em> type will be the Java Object. Notice that in your signature was included the <em>arr_users</em> type, that will be our collection of <em>user_type</em> (read <a href="http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">previous post</a> for more information), the <em>arr_class</em> type will be the <em>class_type</em> collection.</p>
<p>Now we&#8217;ll include the procedure that returns our  <em>class_type</em> collection.</p>
<pre class="brush:sql">procedure pro_select_class(clas in class_type, class_return in out arr_class)is
  class_ref_cur ref_cur;
  --class_type array
  classes arr_class := arr_class();

  begin
    open class_ref_cur for
      select cast(
                multiset(
                  select num_class,
                         desc_class,
                         (select cast(
                                  multiset(
                                    select user_name,
                                           height,
                                           b_date
                                    from tbl_user
                                    --JOIN with TBL_USER
                                    where tbl_user.num_class = tbl_class.num_class
                                  ) as arr_users)
                          from dual) users
                  from tbl_class
                  --Using num_class attribute of in parameter
                  where num_class = clas.num_class) as arr_class
      ) classes
    from dual;

    --including the return in array
    fetch class_ref_cur into classes;
    --transferring arrar to variable out
    class_return := classes;
end pro_select_class;</pre>
<p>Notice that procedure receive <em>class_type</em> as parameter in and returns <em>arr_class</em> type.</p>
<p>Separating code charge back and set up our objects, we have:</p>
<pre class="brush:sql">
--Mount return
select cast(
        multiset(

          --Will returns the objects class_type and your attributes
          select num_class,
                 desc_class,

                 --Populate user_type collection
                 (select cast(
                          multiset(
                            select user_name,
                                   height,
                                   b_date
                            from tbl_user
                            where tbl_user.num_class = tbl_class.num_class
                          ) as arr_users)

                  from dual) users

          from tbl_class
          where num_class = clas.num_class) as arr_class
) classes
from dual;
</pre>
<p>Oracle objects done, now the Java code!</p>
<p>We&#8217;ll create the object that will be interpreted by the Oracle. Called TypeClass:</p>
<pre class="brush:java">
public class TypeClass implements SQLData{
	public static final String ORACLE_OBJECT_NAME = "CLASS_TYPE"; //Type name in Oracle
	public static final String ORACLE_CLASS_ARRAY_NAME = "ARR_CLASS"; //Array name in Oracle

        //Attibutes of TBL_CLASS table
	private Long number;
	private String desc;
	private Array users; //This will be user_type collection (or TypeUser in Java)

	public String getSQLTypeName() throws SQLException {
		return ORACLE_OBJECT_NAME;
	}

	public void readSQL(SQLInput stream, String typeName) throws SQLException {
		setNumber(stream.readLong());
		setDesc(stream.readString());
		setUsers(stream.readArray());//Used by JDBC driver to read the collection
	}

	public void writeSQL(SQLOutput stream) throws SQLException {
		stream.writeLong(getNumber());
		stream.writeString(getDesc());
		stream.writeArray(getUsers());//Used by JDBC driver to write the collection
	}
	//Getters and setters omitted
}
</pre>
<p>We need to map types interpreted in request, this way:</p>
<pre class="brush:java">
Map<String, Class<?>> typeMaps = connection.getTypeMap();
typeMaps.put(TypeUser.ORACLE_OBJECT_NAME, TypeUser.class);
typeMaps.put(TypeClass.ORACLE_OBJECT_NAME, TypeClass.class);
</pre>
<p>We need to map the <em>arrays</em> too:</p>
<pre class="brush:java">
typeMaps.put(TypeClass.ORACLE_CLASS_ARRAY_NAME, TypeClass[].class);//returned by procedure
typeMaps.put(TypeUser.ORACLE_USER_ARRAY_NAME, TypeUser[].class);//returned by class_type collection
</pre>
<p>For request, we do:</p>
<pre class="brush:java">
cs = conn.prepareCall("{call PAC_BEAN.PRO_SELECT_CLASS(?,?)}");
//registering out type, that will be a TypeClass array
cs.registerOutParameter("class_return", OracleTypes.ARRAY, TypeClass.ORACLE_CLASS_ARRAY_NAME);

//passing parameter object
cs.setObject("clas", classQry);

cs.execute();
//retrieving and looping the TypeClass array
Object[] array = (Object[])cs.getArray("class_return").getArray();

for(Object obj : array){
	TypeClass objClass = ((TypeClass)obj);

	System.out.println("Description: "+objClass.getDesc());

        //Here we obtains user_type(TypeUser) array returned by query.
	Object[] userArray = (Object[])objClass.getUsers().getArray();
	for(Object user : userArray){
		System.out.println("\tName: " + ((TypeUser)user).getName());
		System.out.println("\tHeight: " + ((TypeUser)user).getHeight());
		System.out.println("\tBirth: " + sdf.format(((TypeUser)user).getBirth())+ "\r\n");
	}
}
</pre>
<p>In the end you&#8217;ll have a <a href="http://www.j2ee.me/j2se/1.4.2/docs/api/java/sql/class-use/Array.html" target="_blank">java.sql.Array</a> of TypeUser in getUsers() attribute of TypeClass.</p>
<p>Here I fulfilled my promise. Download the source code of this sample (with previous post sample too) <a href="http://www.andrels.com/wp-en_US/wp-content/plugins/download-monitor/download.php?id=3" title="Downloaded 216 times">here</a>.</p>
<p>Until next time!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/zmtyAfTJctHL7UzHq-wdDTsSLLA/0/da"><img src="http://feedads.g.doubleclick.net/~a/zmtyAfTJctHL7UzHq-wdDTsSLLA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zmtyAfTJctHL7UzHq-wdDTsSLLA/1/da"><img src="http://feedads.g.doubleclick.net/~a/zmtyAfTJctHL7UzHq-wdDTsSLLA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/KcPGWdNP4Js" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/09/retrieving-objects-collection-from-oracle-procedure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/09/retrieving-objects-collection-from-oracle-procedure/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Taking Screen Shots with Java</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/zxPNZdNwcb4/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/09/taking-screen-shots-with-java/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 14:38:40 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[awt]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[image]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=75</guid>
		<description><![CDATA[Here I&#8217;ll show how to implements a class to take Screen shots. I thinking about the complexity of a class<a href="http://www.andrels.com/wp-en_US/index.php/2009/09/taking-screen-shots-with-java/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Here I&#8217;ll show how to implements a class to take Screen shots.</p>
<p>I thinking about the complexity of a class that takes screen shots and store the files in hard disk and, asking to &#8220;uncle G&#8221;, I fonded the class <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Robot.html" target="_blank">Robot</a>, that provide <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Robot.html#createScreenCapture(java.awt.Rectangle)" target="_blank">createScreenCapture</a> method.</p>
<p>Now I&#8217;ll show how to implement this functionality:</p>
<pre class="brush:java">Robot robot = new Robot();
//Setting the rectangle that mark capture area. In this case, will be all screen..
Rectangle rect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize());

BufferedImage img = robot.createScreenCapture(rect);</pre>
<p>Here we defined capture area and obtained a <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html" target="_blank">BufferedImage</a>, our image. Now, we needed to persist in hard disk.</p>
<pre class="brush:java">//Capturing the ImageWriter and ImageWriterParam
ImageWriter writer = ImageIO.getImageWritersByFormatName("jpeg").next();
ImageWriteParam iwp = writer.getDefaultWriteParam();

//Setting compression mode and the image quality
iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
iwp.setCompressionQuality(1);

//Persisting the image
writer.setOutput(new FileImageOutputStream(arquivo));

IIOImage iioimage = new IIOImage(img, null, null);

writer.write(null, iioimage, iwp);
writer.dispose();</pre>
<p>We captured the <a href="http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageWriter.html" target="_blank">ImageWriter</a> and <a href="http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageWriteParam.html" target="_blank">ImageWriterParam</a> to set the compression method and the image quality.</p>
<p>In line <strong>07</strong> we defined the image quality as 1, where the value can be between 0 (zero), more compression and less quality and 1 (one), less compression and more quality. Then we have kept the file in HD.</p>
<p>We&#8217;ve done! Simple, isn&#8217;t?</p>
<p>Download this sample <a href="http://www.andrels.com/wp-en_US/wp-content/plugins/download-monitor/download.php?id=2" title="Downloaded 138 times">here</a>.</p>
<p>See ya!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/a-XGI6SSglWWCYioLIWFXQyVwCo/0/da"><img src="http://feedads.g.doubleclick.net/~a/a-XGI6SSglWWCYioLIWFXQyVwCo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/a-XGI6SSglWWCYioLIWFXQyVwCo/1/da"><img src="http://feedads.g.doubleclick.net/~a/a-XGI6SSglWWCYioLIWFXQyVwCo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/zxPNZdNwcb4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/09/taking-screen-shots-with-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/09/taking-screen-shots-with-java/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Setting maximum number of characters in JTextField</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/uDHdP1JirzY/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 16:07:48 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[jtextfield]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=73</guid>
		<description><![CDATA[The default implementation of JTextField not allow set maximum number of characters. To enable this resource you need implements a<a href="http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>The default implementation of <i>JTextField</i> not allow set maximum number of characters. To enable this resource you need implements a <i>Document</i>, overriding <i>insertString</i> method.</p>
<pre class="brush:java">
public class MaxLengthTextDocument extends PlainDocument {
	//Store maximum characters permitted
	private int maxChars;

	@Override
	public void insertString(int offs, String str, AttributeSet a)
			throws BadLocationException {
		if(str != null &#038;&#038; (getLength() + str.length() < maxChars)){
			super.insertString(offs, str, a);
		}
	}

	//getter e setter omitted
}
</pre>
<p>Here we defined one class called <i>MaxLengthTextDocument</i> that extends <i>PlainDocument</i>. In <i>insertString</i> attribute, we checked if quantity of characters minor than <i>maxChars</i> attribute, inserting in String if true.</p>
<p>After this, only insert our implementation in JTextField, this way:</p>
<pre class="brush:java">
	...
	MaxLengthTextDocument maxLength = new MaxLengthTextDocument();
	maxLength.setMaxChars(50);//50 is a maximum number of character 

	jTextField.setDocument(maxLength);
	...
</pre>
<p>And voilà!</p>
<p>See ya!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/YuOR_fz-KyVb_AUvxYpA4kUHKh0/0/da"><img src="http://feedads.g.doubleclick.net/~a/YuOR_fz-KyVb_AUvxYpA4kUHKh0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YuOR_fz-KyVb_AUvxYpA4kUHKh0/1/da"><img src="http://feedads.g.doubleclick.net/~a/YuOR_fz-KyVb_AUvxYpA4kUHKh0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/uDHdP1JirzY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/09/setting-maximum-number-of-characters-in-jtextfield/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Inserting padding into a JLabel</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/QbOIQJrmtNY/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/08/inserting-padding-into-a-jlabel/#comments</comments>
		<pubDate>Sat, 22 Aug 2009 15:07:38 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Quick tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[swing]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=63</guid>
		<description><![CDATA[To insert padding into a JLabel we should use an EmptyBorder, where the attribute &#8216;width&#8217; will be our padding. Like<a href="http://www.andrels.com/wp-en_US/index.php/2009/08/inserting-padding-into-a-jlabel/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>To insert padding into a JLabel we should use an EmptyBorder, where the attribute &#8216;width&#8217; will be our padding. Like this:</p>
<pre class="brush:java">...
JLabel jLabel = new JLabel("My JLabel");
//Border used as padding
Border paddingBorder = BorderFactory.createEmptyBorder(10,10,10,10);

jLabel.setBorder(BorderFactory.createCompoundBorder(border,paddingBorder));
...</pre>
<p>Here, the JLabel contains a padding with 10 pixels in top, right, bottom and left, respectively.</p>
<p><img class="aligncenter size-full wp-image-64" title="0" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2009/08/0.jpg" alt="0" width="300" height="100" /></p>
<p>If you want to put border around the JLabel, you can use a CompoundBorder, setting Border and EmptyBorder (padding):</p>
<pre class="brush:java">...
JLabel jLabel = new JLabel("Meu JLabel");
//Border used as padding
Border paddingBorder = BorderFactory.createEmptyBorder(10,10,10,10);
//JLabel will be involved for this border
Border border = BorderFactory.createLineBorder(Color.BLUE);

jLabel.setBorder(BorderFactory.createCompoundBorder(border,paddingBorder));
...</pre>
<p><img src="http://www.andrels.com/wp-en_US/wp-content/uploads/2009/08/1.jpg" alt="1" title="1" width="300" height="100" class="aligncenter size-full wp-image-65" /></p>
<p>Download the source code of this sample <a href="http://www.andrels.com/wp-en_US/wp-content/plugins/download-monitor/download.php?id=1" title="Downloaded 275 times">here</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/LTrc_ZSIpu3rA82Bv1W6FYwd1oc/0/da"><img src="http://feedads.g.doubleclick.net/~a/LTrc_ZSIpu3rA82Bv1W6FYwd1oc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LTrc_ZSIpu3rA82Bv1W6FYwd1oc/1/da"><img src="http://feedads.g.doubleclick.net/~a/LTrc_ZSIpu3rA82Bv1W6FYwd1oc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/QbOIQJrmtNY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/08/inserting-padding-into-a-jlabel/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/08/inserting-padding-into-a-jlabel/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>iBatis tutorial, learning the basic</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/UhHvunMqPPc/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/07/ibatis-tutorial-learning-the-basic/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 20:09:57 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[ibatis]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=56</guid>
		<description><![CDATA[When we talk about the persistence framework, we think in Hibernate/JPA. Recently I was presented to iBatis, a framework that<a href="http://www.andrels.com/wp-en_US/index.php/2009/07/ibatis-tutorial-learning-the-basic/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>When we talk about the persistence framework, we think in Hibernate/JPA. Recently I was presented to iBatis, a framework that so easy to install, to configure and to use. You can download it in your sponsor site, <a href="http://www.apache.org" target="_blank">Apache</a>, clicking <a href="http://ibatis.apache.org/javadownloads.cgi" target="_blank">here</a>.</p>
<p><em><strong>Setting iBatis</strong></em></p>
<p>Unlike another frameworks, to configure iBatis you need only one XML file, called <em>SqlMapConfig</em>.</p>
<p>The mains sections of XML are:</p>
<pre class="brush: xml">&lt;properties resource="tuto/ibatis/config/SqlMap.properties"/&gt;</pre>
<p>This code is optional and specifies the .properties file that&#8217;ll be used to declare variables used in configuration. </p>
<pre class="brush: xml">&lt;typeAlias alias="car" type="tuto.ibatis.beans.Car"/&gt;</pre>
<p>Defines the JavaBean used and your alias. You can set much lines, depending of modeling complexity.<br />
In example, we&#8217;ll Car bean below:</p>
<pre class="brush:java">public class Car {
	private Long carId;
	private String company;
	private String model;
	private String color;
	private Integer	hp;
	private Float price;

	//Setters and getters omitted
}</pre>
<pre class="brush: xml">&lt;transactionManager type="JDBC"&gt;
    &lt;dataSource type="SIMPLE"&gt;
        &lt;property name="JDBC.Driver" value="${driver}"/&gt;
        &lt;property name="JDBC.ConnectionURL" value="${url}"/&gt;
        &lt;property name="JDBC.Username" value="${username}"/&gt;
        &lt;property name="JDBC.Password" value="${password}"/&gt;
    &lt;/dataSource&gt;
&lt;/transactionManager&gt;</pre>
<p>Parameters used in database connection. The variables ${driver}, ${url}, ${username} and ${password} are defined in .properties file in section <i>properties</i>. If you prefer, can put the values directly in fields.</p>
<p>See the complete file:</p>
<pre class="brush: xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE sqlMapConfig PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
        "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"&gt;

&lt;sqlMapConfig&gt;
    &lt;properties resource="tuto/ibatis/config/SqlMap.properties"/&gt;

    &lt;settings
        cacheModelsEnabled="true"
        enhancementEnabled="true"
        lazyLoadingEnabled="true"
        maxRequests="32"
        maxSessions="10"
        maxTransactions="5"
        useStatementNamespaces="false" /&gt;

    &lt;typeAlias alias="car" type="tuto.ibatis.beans.Car"/&gt;

    &lt;transactionManager type="JDBC"&gt;
        &lt;dataSource type="SIMPLE"&gt;
            &lt;property name="JDBC.Driver" value="${driver}"/&gt;
            &lt;property name="JDBC.ConnectionURL" value="${url}"/&gt;
            &lt;property name="JDBC.Username" value="${username}"/&gt;
            &lt;property name="JDBC.Password" value="${password}"/&gt;
        &lt;/dataSource&gt;
    &lt;/transactionManager&gt;

    &lt;sqlMap resource="tuto/ibatis/sqlmaps/CarSqlMap.xml"/&gt;
&lt;/sqlMapConfig&gt;</pre>
<p>The <em>properties</em> have this content:</p>
<pre class="brush:plain">driver=oracle.jdbc.OracleDriver
url=jdbc:oracle:thin:@&lt;host&gt;:&lt;porta&gt;:&lt;sid&gt;
username=&lt;login&gt;
password=&lt;senha&gt;</pre>
<p>Next you need to configure the <i>SqlMap</i>. This XML contains the querys used in application and your name need be equals described in <i>sqlMap</i> section of <i>SqlMapConfig</i>, in our case will be <i>CarSqlMap.xml</i></p>
<p>In example only we will see utilization of tags select, insert, update and delete.</p>
<pre class="brush:xml">&lt;select id="getCars" resultClass="tuto.ibatis.beans.Car"
	parameterClass="java.lang.Long"&gt;
    SELECT COMPANY  as company,
           MODEL    as model,
           COLOR    as color,
           HP       as hp,
           PRICE    as price
    FROM TBL_CAR
    WHERE CAR_ID = #var#
&lt;/select&gt;</pre>
<p>Execute the <i>select</i> statement can return a single object or one collection of objects, the type is same of <i>resultClass</i> attribute, o <i>parameterClass</i> is the type sent to execute the <i>query</i> and the <i>id</i> is the query identification call.</p>
<p>We will use the SqlMap below:</p>
<pre class="brush:xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN"
	"http://ibatis.apache.org/dtd/sql-map-2.dtd"&gt;

&lt;sqlMap namespace="Car"&gt;
    &lt;select id="getCars" resultClass="tuto.ibatis.beans.Car"
    parameterClass="java.lang.Long"&gt;
        SELECT COMPANY  as company,
               MODEL    as model,
               COLOR    as color,
               HP       as hp,
               PRICE    as price
        FROM TBL_CAR
        WHERE CAR_ID = #var#
    &lt;/select&gt;

    &lt;insert id="addCar" parameterClass="tuto.ibatis.beans.Car"&gt;
        INSERT INTO TBL_CAR (CAR_ID, COMPANY, MODEL, COLOR, HP, PRICE)
        VALUES (#carId#, #company#, #model#, #color#, #hp#, #price#)
    &lt;/insert&gt;

    &lt;delete id="delCar" parameterClass="java.lang.Long"&gt;
        DELETE FROM TBL_CAR WHERE CAR_ID = #var#
    &lt;/delete&gt;

    &lt;update id="updCar" parameterClass="tuto.ibatis.beans.Car"&gt;
        UPDATE TBL_CAR
          SET COMPANY = #company#,
              MODEL = #model#,
              COLOR = #color#,
              HP = #hp#,
              PRICE = #price#
        WHERE CAR_ID = #carId#
    &lt;/update&gt;
&lt;/sqlMap&gt;</pre>
<p>Data base connection configured, now we will implements the singleton class the will used as <i>SqlMapClient</i>, called OracleMapConfig.</p>
<pre class="brush:java">package tuto.ibatis.connection;

import java.io.Reader;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class OracleMapConfig {
	private static final SqlMapClient sqlMapClient;

	static{
		try{
			//Defining path of SqlMapConfig and creating reader
			String res = "tuto/ibatis/config/SqlMapConfig.xml";
			Reader reader = Resources.getResourceAsReader(res);

			//Retrieving the client to SqlMap
			sqlMapClient = SqlMapClientBuilder.buildSqlMapClient(reader);
		} catch(Exception e){
			e.printStackTrace();
			throw new RuntimeException(e);
		}
	}

	//Method used to retrieve the client
	public static SqlMapClient getSqlMapClient(){
		return sqlMapClient;
	}
}</pre>
<p>The client is responsible  for execute the querys configured in SqlMap and return the results.</p>
<p><em><strong>Executing Querys and treating the return</strong></em></p>
<p>To call any query is too simple, only execute the correspondent method of client class.</p>
<p>The <em>select</em> can be called this way:</p>
<pre class="brush:java">OracleMapConfig.getSqlMapClient().queryForObject("&lt;id&gt;", &lt;parâmetro&gt;);</pre>
<p>The<i>id</i> need be equals of <i>id</i> specified in <b>SqlMap</b></p>
<p>Only one line is return in code above, to get all lines change to <em>queryForList</em>, this way:</p>
<pre class="brush:java">OracleMapConfig.getSqlMapClient().queryForList("&lt;id&gt;", &lt;parâmetro&gt;);</pre>
<p>Will be returned a <i>Collection</i> containing the objects;</p>
<p><strong>Select</strong></p>
<pre class="brush:java">try{
	Car car = (Car)OracleMapConfig.getSqlMapClient().queryForObject("getCars",
		new Long(readKeyboard()));

	System.out.println("Company: "+car.getCompany());
	System.out.println("Model: "+car.getModel());
	System.out.println("Color: "+car.getColor());
	System.out.println("HP: "+car.getHp());
	System.out.println("Price: "+car.getPrice());
}catch (Exception e) {
	e.printStackTrace();
}</pre>
<p>The <i>id</i> &#8220;getCars&#8221; are defined in select attributes of <em>SqlMap</em>, providing one Long type and retrieving a Car type, both defined in line &lt;select id=&#8221;<span style="color: #0000ff;">getCars</span>&#8221; resultClass=&#8221;<span style="color: #0000ff;">tuto.ibatis.beans.Car</span>&#8221; parameterClass=&#8221;<span style="color: #0000ff;">java.lang.Long</span>&#8220;&gt;.</p>
<p><strong>Insert</strong></p>
<pre class="brush:java">try{
	OracleMapConfig.getSqlMapClient().insert("addCar", newCar);
}catch (Exception e) {
	e.printStackTrace();
}</pre>
<p>Now we will provide as parameter a Car type, &lt;insert id=&#8221;<span style="color: #0000ff;">addCar</span>&#8221; parameterClass=&#8221;<span style="color: #0000ff;">tuto.ibatis.beans.Car</span>&#8220;&gt;, and call the methods using sharp (#), this way:</p>
<pre class="brush:plain">INSERT INTO TBL_CAR (CAR_ID, COMPANY, MODEL, COLOR, HP, PRICE)
VALUES (#carId#, #company#, #model#, #color#, #hp#, #price#)</pre>
<p><strong>Delete</strong></p>
<pre class="brush:java">try{
	int lines = OracleMapConfig.getSqlMapClient().delete("delCar",
		new Long(readKeyboard()));

	System.out.println(lines + " lines deleted");
}catch (Exception e) {
	e.printStackTrace();
}</pre>
<p>The method <em>delete</em> of <i>client</i> return a type int, this represents the number of rows deleted.</p>
<p><strong>Update</strong></p>
<pre class="brush:java">try{
	int lines = OracleMapConfig.getSqlMapClient().update("updCar", car);

	System.out.println(lines + " cars updated");
}catch (Exception e) {
	e.printStackTrace();
}</pre>
<p>Update return a type int, this represents the number of rows affected by update.</p>
<p>How you see, with only three XML and three classes we built a simple storage management and price consulting system.</p>
<p>You can download the source code of this tutorial clicking <a href="../wordpress_external/downloads/TutoIbatis.zip#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">here</a>.</p>
<p>Until next post!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/IweCRUjgj_I418gLnkCzWrPAd1Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/IweCRUjgj_I418gLnkCzWrPAd1Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/IweCRUjgj_I418gLnkCzWrPAd1Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/IweCRUjgj_I418gLnkCzWrPAd1Q/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/UhHvunMqPPc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/07/ibatis-tutorial-learning-the-basic/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/07/ibatis-tutorial-learning-the-basic/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Error “…faulting module php5ts.dll…” in Apache with PHP and MySQL running on Windows Vista</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/wt5Yf2w-PNw/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/06/error-faulting-module-php5tsdll-in-apache-with-php-and-mysql-running-on-windows-vista/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 00:50:51 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Softwares]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configuration]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=49</guid>
		<description><![CDATA[For someone, like I, was suffering with &#8220;Faulting application httpd.exe, version 2.2.11.0, time stamp 0x493f5d44, faulting module php5ts.dll&#8230;&#8221; error, try<a href="http://www.andrels.com/wp-en_US/index.php/2009/06/error-faulting-module-php5tsdll-in-apache-with-php-and-mysql-running-on-windows-vista/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>For someone, like I, was suffering with <em>&#8220;Faulting application httpd.exe, version 2.2.11.0, time stamp 0x493f5d44, faulting module php5ts.dll&#8230;&#8221;</em> error, try copy the file <em>libmysql.dll</em>, located in PHP installation folder, to Apache <strong>bin</strong> directory and restart Apache service.</p>
<p>See ya!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/qIRdmslkMeqF58EIUAKR3ZvXksI/0/da"><img src="http://feedads.g.doubleclick.net/~a/qIRdmslkMeqF58EIUAKR3ZvXksI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/qIRdmslkMeqF58EIUAKR3ZvXksI/1/da"><img src="http://feedads.g.doubleclick.net/~a/qIRdmslkMeqF58EIUAKR3ZvXksI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/wt5Yf2w-PNw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/06/error-faulting-module-php5tsdll-in-apache-with-php-and-mysql-running-on-windows-vista/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/06/error-faulting-module-php5tsdll-in-apache-with-php-and-mysql-running-on-windows-vista/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Learn to pass a Java Object as Oracle Procedure parameter</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/vlzdjwfTdK0/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 03:19:51 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[jdbc]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=44</guid>
		<description><![CDATA[In the enterprise where I work was a discussion about possibility to pass a Java objects into an Oracle procure<a href="http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>In the enterprise where I work was a discussion about possibility to pass a <a href="http://java.sun.com/" target="_blank">Java</a> objects into an <a href="http://www.oracle.com" target="_blank">Oracle</a> procure or function, then I looked for and here is a simple solution to reach this objective.</p>
<p><em>This tutorial only work with </em><em>Oracle</em><em>9i , or above, and using the JDBC driver ojdbc14g, or above</em><em>.</em></p>
<p>First, we create the tables, objects and procedures. Remember: the types <em>tbl_users </em>and <em>user_type </em>must be declared out of packages, as global types:</p>
<pre class="brush: sql">-- Creating table
create table tbl_user(user_name varchar2(100), height number, b_date date);
/
--Creating type user_type (own bean)
create or replace type user_type as object (user_name varchar2(100), height number, birth_date date);
/
--Creating type arr_users, table of user_type (array of user_type)
create or replace type arr_users as table of user_type;
/</pre>
<p>Creating specification and body of package<em>.</em></p>
<pre class="brush: sql">--Spec
create or replace package PAC_BEAN is
  type ref_cur is ref cursor;

  -- Procedure used to insert values
  procedure pro_insert_user(usu in user_type);

  -- Procedure used to select
  procedure pro_select_user(usu in user_type, user_return in out arr_users);
end PAC_BEAN;
/</pre>
<pre class="brush: sql">--Body
create or replace package body PAC_BEAN is
  --The insert procedure will receive user_type and put him into table tbl_user.
  procedure pro_insert_user(usu in user_type) is
    begin
      insert into tbl_user (user_name, height, b_date)
      values (usu.user_name, usu.height, usu.birth_date);

      commit;
    exception
      when others then
        rollback;
  end pro_insert_user;

  --The procedure used for select will receive a user_type (where clause) and will return the array arr_users
  procedure pro_select_user(usu in user_type, user_return in out arr_users)is
    user_ref_cur ref_cur;

    --Instancing the array
    users arr_users := arr_users();

    begin
      --Opening the cursor that will return the array
      open user_ref_cur for
        select cast(
                 multiset(
                   select user_name,
                          height,
                          b_date
                   from tbl_user
                   where user_name like '%'||usu.user_name||'%'
                 ) as arr_users
              ) arr
        from dual;

      --Putting the cursor into arr_users instance.
      fetch user_ref_cur into users;

      --Returning the instance through OUT variable
      user_return := users;
  end pro_select_user;
end PAC_BEAN;
/</pre>
<p><em>See <a href="http://download.oracle.com/docs/cd/B14117_01/server.101/b10759/functions015.htm#sthref1120" target="_blank">CAST</a> and <a href="http://download.oracle.com/docs/cd/B14117_01/server.101/b10759/operators006.htm" target="_blank">MULTISET</a> about how they work.</em></p>
<p>Built database objects, we need prepare the JavaBean. It&#8217;ll an implementation of <em>java.sql.SQLData</em>, because it will be necessary to implement the methods:</p>
<p><em>getSQLTypeName()</em> &#8211; Getter used to obtain the name of type.</p>
<p><em>readSQL(SQLInput, String)</em> &#8211;  Used to convert an object in Java object.</p>
<p><em>writeSQL(SQLOutput stream)</em> &#8211; Used to mount a SQL object, used byJDBC Driver.</p>
<pre class="brush: java">public class TypeUser implements SQLData{
	//Name declared in Oracle
	public static final String ORACLE_OBJECT_NAME = "USER_TYPE";
	//Array name declared in Oracle
	public static final String ORACLE_USER_ARRAY_NAME = "ARR_USERS";

	//The attributes
	private String name;
	private Float height;
	private Date birth;

	public TypeUser() {
		height = 0F;
	}

	public String getSQLTypeName() throws SQLException {
		return ORACLE_OBJECT_NAME;
	}

	public void readSQL(SQLInput stream, String typeName) throws SQLException {
		setName(stream.readString());
		setHeight(stream.readFloat());
		setBirth(stream.readDate());
	}

	public void writeSQL(SQLOutput stream) throws SQLException {
		stream.writeString(getName());
		stream.writeFloat(getHeight());
		stream.writeDate(getBirth() != null ?
				new java.sql.Date(getBirth().getTime()) : null);
	}

        //getters and setters omitted
}</pre>
<p>To define a type that can will be send to procedure be necessary add him  into type map<em> </em>through <a href="http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Connection.html#getTypeMap()" target="_blank"><em>Connection.getTypeMap()</em></a>. This method return the <em>Map&lt;String,Class&lt;?&gt;&gt;</em>, where type name is the key and class of SQLData implementation is the value, in own case the type <em>TypeUser</em>. Sample:</p>
<pre class="brush: java">Map&lt;String,Class&lt;?&gt;&gt; typeMaps = connection.getTypeMap();
typeMaps.put(TypeUser.ORACLE_OBJECT_NAME, TypeUser.class);</pre>
<p>Then the connection will be:</p>
<pre class="brush: java">//Making connection
Class.forName("oracle.jdbc.driver.OracleDriver");
connection = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:&lt;host&gt;:&lt;port&gt;:&lt;db&gt;","&lt;user&gt;","&lt;pass&gt;");

//Mapping necessary tipes
Map&lt;String,Class&lt;?&gt;&gt; typeMaps = connection.getTypeMap();
typeMaps.put(TypeUser.ORACLE_OBJECT_NAME, TypeUser.class);</pre>
<p>Now, we create the insert method, it receive an instance of <em>TypeUser </em>and <em>Connection</em>:</p>
<pre class="brush: java">CallableStatement cs = null;
try {
	//call the procedure
	cs = conn.prepareCall("{call PAC_BEAN.PRO_INSERT_USER(?)}");

	//defining the instance of TypeUser as variable IN "usu"
	cs.setObject("usu", typeUser);

	cs.execute();
} catch (SQLException e) {
	e.printStackTrace();
}</pre>
<p>Now, the select method. This method return a object array, then be necessary insert the type of array in <em>Connection TypeMap</em>. The name passed as key should be equals of Oracle&#8217;s array name and the values will be the array class, like this:</p>
<pre class="brush: java">connection.getTypeMap().put(TypeUser.ORACLE_USER_ARRAY_NAME, TypeUser[].class);</pre>
<p>To call procedure and registerOutParameter<em>:</em></p>
<pre class="brush: java">cs = conn.prepareCall("{call PAC_BEAN.PRO_SELECT_USER(?,?)}");
cs.registerOutParameter("user_return", OracleTypes.ARRAY, TypeUser.ORACLE_USER_ARRAY_NAME);
cs.setObject("usu", typeUserQry);

cs.execute();</pre>
<p>To obtain the array, do it:</p>
<pre class="brush: java">//user_return is the OUT variable name
Object[] array = (Object[])cs.getArray("user_return").getArray();</pre>
<p>If until here is alright, smile, to obtain array values just iterate him and cast each index to Type User.</p>
<pre class="brush: java">for(Object obj : array){
	System.out.println("Nome: " + ((TypeUser)obj).getName());
	System.out.println("Altura: " + ((TypeUser)obj).getHeight());
	System.out.println("Data de Nascimento: " + sdf.format(((TypeUser)obj).getBirth()));
}</pre>
<p>So we can pass and retrieve simple Java objects of a Oracle procedure or function. The next step, <a href="http://www.andrels.com/wp-en_US/index.php/2009/09/retrieving-objects-collection-from-oracle-procedure/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed">Retrieving objects collection from Oracle procedure</a>.</p>
<p>See ya!</p>
<p>Download the source code of this tutorial <a href="../wordpress_external/downloads/post31.zip#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_blank">here</a>.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 2322px; width: 1px; height: 1px;">
<pre class="brush: java">&lt;host&gt;:&lt;porta&gt;:&lt;bd&gt;","&lt;usuario&gt;","&lt;senha&gt;"</pre>
</div>

<p><a href="http://feedads.g.doubleclick.net/~a/cR_2PIhynjLOjQPbF1JOe_mL6VY/0/da"><img src="http://feedads.g.doubleclick.net/~a/cR_2PIhynjLOjQPbF1JOe_mL6VY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/cR_2PIhynjLOjQPbF1JOe_mL6VY/1/da"><img src="http://feedads.g.doubleclick.net/~a/cR_2PIhynjLOjQPbF1JOe_mL6VY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/vlzdjwfTdK0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/06/learn-to-pass-a-java-object-as-oracle-procedure-parameter/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Solution for J2ME Sony Ericsson Emulator “Couldn’t load zayitlib.dll library” problem</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/0C0ePf1FylA/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/05/solution-for-j2me-sony-ericsson-emulator-%e2%80%9ccouldn%e2%80%99t-load-zayitlibdll-library%e2%80%9d-problem/#comments</comments>
		<pubDate>Sun, 24 May 2009 16:45:37 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[zayitlib.dll]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=31</guid>
		<description><![CDATA[I’m initiating in J2ME world, specifically games developing for mobile phones, using Eclipse with EclipseME plug-in. In my first application<a href="http://www.andrels.com/wp-en_US/index.php/2009/05/solution-for-j2me-sony-ericsson-emulator-%e2%80%9ccouldn%e2%80%99t-load-zayitlibdll-library%e2%80%9d-problem/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>I’m initiating in J2ME world, specifically games developing for mobile phones, using <a href="http://www.eclipse.org/" target="_blank">Eclipse</a> with <a href="http://eclipseme.org/" target="_blank">EclipseME</a> plug-in. In my first application was presented with <em>“Couldn’t load zayitlib.dll library”</em> error message when tried to start J2ME Sony Ericsson W200 Emulator.</p>
<p>The solution founded to solve this problem was:</p>
<p>In the <em>Programs Files\VoiceAge</em> folder you’il see many files, between them, four specifics dlls called <em>SPOTCorePlayer_51.dll</em>, <em>SPOTxdePlayerDLL.dll</em>, <em>VaAce.dll</em> and <em>VaMp_50.dll</em>.</p>
<p>Copy this files to <em>SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\bin</em> folder.</p>
<p>Try to start the emulator again.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/FLu-FGupN8VWwUMxGLb7vKe9nAs/0/da"><img src="http://feedads.g.doubleclick.net/~a/FLu-FGupN8VWwUMxGLb7vKe9nAs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/FLu-FGupN8VWwUMxGLb7vKe9nAs/1/da"><img src="http://feedads.g.doubleclick.net/~a/FLu-FGupN8VWwUMxGLb7vKe9nAs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/0C0ePf1FylA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/05/solution-for-j2me-sony-ericsson-emulator-%e2%80%9ccouldn%e2%80%99t-load-zayitlibdll-library%e2%80%9d-problem/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/05/solution-for-j2me-sony-ericsson-emulator-%e2%80%9ccouldn%e2%80%99t-load-zayitlibdll-library%e2%80%9d-problem/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Collections, what to use?</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/22v0vpTeaFk/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/05/collections-what-to-use/#comments</comments>
		<pubDate>Sun, 24 May 2009 16:38:49 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[collection]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=27</guid>
		<description><![CDATA[Collection interface has many implementations, like ArrayList, LinkedList, TreeSet and others. With so many variations, some times you don’t known<a href="http://www.andrels.com/wp-en_US/index.php/2009/05/collections-what-to-use/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>Collection interface has many implementations, like <a href="http://java.sun.com/javase/6/docs/api/java/util/ArrayList.html" target="_blank">ArrayList</a>, <a href="http://java.sun.com/javase/6/docs/api/java/util/LinkedList.html" target="_blank">LinkedList</a>, <a href="http://java.sun.com/javase/6/docs/api/java/util/TreeSet.html" target="_blank">TreeSet</a> and others. With so many variations, some times you don’t known what to use, this depends of your objective. Now I’ll try to explain some differences in ArrayList, LinkedList and TreeSet.</p>
<p><strong>ArrayList</strong><br />
The ArrayList Collection allow to store objects and null values, but your access is unordered, the first object inserted, can be a last to retrieve.</p>
<p><strong>LinkedList</strong><br />
This implementation of Collection is like ArrayList, but the difference is in access to objects stored, where each object is returned in your inserted order.</p>
<p><strong>TreeSet</strong><br />
If you want retrieve the objects of your Collection in specified order, this Collection can do the work! Insert values in TreeSet is equal previously classes, but your return depends of <a href="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html" target="_blank">Comparable</a> implemented in values. It sort your object values using result of <a href="http://java.sun.com/javase/6/docs/api/java/lang/Comparable.html#compareTo(T)" target="_blank">compareTo</a> method, inherited of Comparable Interface.</p>
<p>For more information, visits <a href="http://java.sun.com/javase/6/docs/api/java/util/Collection.html" target="_blank">Collection</a> Javadoc.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/prUGAmqobxZ5h5ms_UU-LivyBHk/0/da"><img src="http://feedads.g.doubleclick.net/~a/prUGAmqobxZ5h5ms_UU-LivyBHk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/prUGAmqobxZ5h5ms_UU-LivyBHk/1/da"><img src="http://feedads.g.doubleclick.net/~a/prUGAmqobxZ5h5ms_UU-LivyBHk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/22v0vpTeaFk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/05/collections-what-to-use/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/05/collections-what-to-use/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Disabling “Sleep” key in Windows Vista</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/-aZzg1Cc3iQ/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/05/disabling-sleep-key-in-windows-vista/#comments</comments>
		<pubDate>Sun, 24 May 2009 16:30:56 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Configurations]]></category>
		<category><![CDATA[Operational Systems]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[windows vista]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=19</guid>
		<description><![CDATA[You, accidentally, has pressed the &#8220;sleep&#8221; key in your multimedia keyboard instead another key? I wanna known how designed this<a href="http://www.andrels.com/wp-en_US/index.php/2009/05/disabling-sleep-key-in-windows-vista/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">You, accidentally, has pressed the &#8220;<em>sleep</em>&#8221; key in your multimedia keyboard instead another key? I wanna known how designed this &#8220;happy&#8221; key to express my total insatisfaction with this.</p>
<p style="text-align: center;"><img class="size-full wp-image-20 aligncenter" title="sleep key" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2009/05/7010941r_03.jpg" alt="sleep key" width="425" height="278" /></p>
<p>Now I&#8217;ll show how to disable this key in Windows Vista.</p>
<p style="text-align: left;">Go to<em> Control Panel</em>, double click in <em>Power Options</em>:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-21" title="control painel" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2009/05/11.jpg" alt="11" width="499" height="376" /></p>
<p style="text-align: left;">Then click in <em>&#8220;Choose what the power buttons do&#8221;</em>:</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-22" title="Control Painel" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2009/05/21.jpg" alt="Control Painel" width="499" height="308" /></p>
<p style="text-align: left;">Next and last step, in<em> &#8220;When I press the sleep button&#8221;</em> choose <em>&#8220;Do nothing&#8221;</em>, save and apply!</p>
<p style="text-align: left;"><img class="aligncenter size-full wp-image-23" title="Power Suply" src="http://www.andrels.com/wp-en_US/wp-content/uploads/2009/05/31.jpg" alt="Power Suply" width="500" height="41" /></p>
<p style="text-align: left;">After this tutorial you can press this key in any time. <img src='http://www.andrels.com/wp-en_US/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p><a href="http://feedads.g.doubleclick.net/~a/82BQIeaf2Ehj4UxjypZjcf_Anss/0/da"><img src="http://feedads.g.doubleclick.net/~a/82BQIeaf2Ehj4UxjypZjcf_Anss/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/82BQIeaf2Ehj4UxjypZjcf_Anss/1/da"><img src="http://feedads.g.doubleclick.net/~a/82BQIeaf2Ehj4UxjypZjcf_Anss/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/-aZzg1Cc3iQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/05/disabling-sleep-key-in-windows-vista/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/05/disabling-sleep-key-in-windows-vista/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Learn JavaFX in 15 minutes</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/wGZtuX1PdTg/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/05/learn-javafx-in-15-minutes/#comments</comments>
		<pubDate>Sun, 24 May 2009 16:04:58 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[javafx]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=13</guid>
		<description><![CDATA[This video show some commands for JavaFX, from a simple “Hello World” to functions and access modifiers. Thanks for Roberto<a href="http://www.andrels.com/wp-en_US/index.php/2009/05/learn-javafx-in-15-minutes/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>This <a href="http://tinyurl.com/bznwp5" target="_blank">video</a> show some commands for JavaFX, from a simple “Hello World” to functions and access modifiers.</p>
<p>Thanks for <a href="http://www.furutani.com.br">Roberto Furutani</a>!</p>
<p>Enjoy!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/PvQetLpGU1L8OXfjcVe_QbNyt4M/0/da"><img src="http://feedads.g.doubleclick.net/~a/PvQetLpGU1L8OXfjcVe_QbNyt4M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/PvQetLpGU1L8OXfjcVe_QbNyt4M/1/da"><img src="http://feedads.g.doubleclick.net/~a/PvQetLpGU1L8OXfjcVe_QbNyt4M/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/wGZtuX1PdTg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/05/learn-javafx-in-15-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/05/learn-javafx-in-15-minutes/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Retrieving hard drives or removable devices</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/QGJdOiPoDI4/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/05/retrieving-file-roots/#comments</comments>
		<pubDate>Sun, 24 May 2009 15:59:31 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[file]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=7</guid>
		<description><![CDATA[You&#8217;ve tried retrieve the hard drives or removable devices using java.io.File and passed &#8220;/&#8221; like parameter in class constructor? The<a href="http://www.andrels.com/wp-en_US/index.php/2009/05/retrieving-file-roots/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve tried retrieve the hard drives or removable devices using java.io.File and passed &#8220;/&#8221; like parameter in class constructor? The result is the root of classpath, isn&#8217;t?</p>
<p>To obtain the hard drives or removable devices, use <strong>File.<em>listRoots()</em></strong>. This code return a File array, where each index of array is a removable device or hard disk unit.</p>
<p>Follow this sample:</p>
<pre class="brush: java">File[] units = File.listRoots();

for(File unit : units){
    System.out.println(unit.getAbsolutePath());
}</pre>

<p><a href="http://feedads.g.doubleclick.net/~a/-3x4yPgAnrsVYGaIUeqnx4oU6xQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/-3x4yPgAnrsVYGaIUeqnx4oU6xQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-3x4yPgAnrsVYGaIUeqnx4oU6xQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/-3x4yPgAnrsVYGaIUeqnx4oU6xQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/QGJdOiPoDI4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/05/retrieving-file-roots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/05/retrieving-file-roots/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
		<item>
		<title>Manipulating ID3 Tags of MP3 files</title>
		<link>http://feedproxy.google.com/~r/AndreLS/~3/Dw0QcDtFe10/</link>
		<comments>http://www.andrels.com/wp-en_US/index.php/2009/05/hello-world/#comments</comments>
		<pubDate>Sat, 23 May 2009 15:34:34 +0000</pubDate>
		<dc:creator>André</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[mp3 java]]></category>

		<guid isPermaLink="false">http://www.andrels.com/wp-en_US/?p=1</guid>
		<description><![CDATA[This post will teach you how to manipulate ID3 tags of MP3 files using Java Jid3Lib Tag Library. First, download<a href="http://www.andrels.com/wp-en_US/index.php/2009/05/hello-world/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p>This post will teach you how to manipulate ID3 tags of MP3 files using Java Jid3Lib Tag Library. First, download the jar file from <a href="http://javamusictag.sourceforge.net/">http://javamusictag.sourceforge.net/</a>.</p>
<p>The code below will show you how to get any information of MP3 file:</p>
<pre class="brush: java">try {
    MP3File mp3 = new MP3File("D:\\Musics\\MP3\\ACDC\\ACDC - Back In Black.mp3");
    System.out.println("Album:" + mp3.getID3v2Tag().getAlbumTitle());
    System.out.println("Band:" + mp3.getID3v2Tag().getLeadArtist());
    System.out.println("Composer:" + mp3.getID3v2Tag().getAuthorComposer());
    System.out.println("Year:" + mp3.getID3v2Tag().getYearReleased());
} catch (Exception e) {
	e.printStackTrace();
}</pre>
<p>The result:</p>
<blockquote><p>Album: Back in Black<br />
Band: AC/DC<br />
Composer: Angus Young/Brian Johnson/Malcolm Young<br />
Year:</p></blockquote>
<p>To change any information of any ID3 tags, try the code bellow:</p>
<pre class="brush: java">mp3.getID3v2Tag().setYearReleased("1980");
mp3.save();</pre>
<p>This library has many methods that help you to customize any MP3 file.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Ral2ghmgVVDCGSlF6ZQoWw4BQ-0/0/da"><img src="http://feedads.g.doubleclick.net/~a/Ral2ghmgVVDCGSlF6ZQoWw4BQ-0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Ral2ghmgVVDCGSlF6ZQoWw4BQ-0/1/da"><img src="http://feedads.g.doubleclick.net/~a/Ral2ghmgVVDCGSlF6ZQoWw4BQ-0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/AndreLS/~4/Dw0QcDtFe10" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.andrels.com/wp-en_US/index.php/2009/05/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.andrels.com/wp-en_US/index.php/2009/05/hello-world/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</feedburner:origLink></item>
	</channel>
</rss>

