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

<channel>
	<title>Ycaro Afonso</title>
	<atom:link href="http://ycaro.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://ycaro.net</link>
	<description>Analista e desenvolvedor de sistemas</description>
	<lastBuildDate>Sun, 20 May 2012 03:26:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Redimensionar imagem mantendo a proporção</title>
		<link>http://ycaro.net/2012/05/redimensionar-imagem-mantendo-a-proporcao/</link>
		<comments>http://ycaro.net/2012/05/redimensionar-imagem-mantendo-a-proporcao/#comments</comments>
		<pubDate>Sun, 20 May 2012 02:19:24 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=446</guid>
		<description><![CDATA[Algoritmo para redimensionar imagem mantendo a proporção View Code CSHARP1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 private Image RedimensionaImagem&#40;Bitmap img, int NewWidth, int NewHeight&#41; &#123; decimal Fator = 0; if &#40;img.Width / NewWidth &#62; img.Height / NewHeight&#41; &#123; Fator = img.Width [...]]]></description>
			<content:encoded><![CDATA[<p>Algoritmo para redimensionar imagem mantendo a proporção</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p446code2'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4462"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
</pre></td><td class="code" id="p446code2"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">private</span> Image RedimensionaImagem<span style="color: #008000;">&#40;</span>Bitmap img, <span style="color: #6666cc; font-weight: bold;">int</span> NewWidth, <span style="color: #6666cc; font-weight: bold;">int</span> NewHeight<span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #6666cc; font-weight: bold;">decimal</span> Fator <span style="color: #008000;">=</span> <span style="color: #FF0000;">0</span><span style="color: #008000;">;</span>
	<span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>img<span style="color: #008000;">.</span><span style="color: #0000FF;">Width</span> <span style="color: #008000;">/</span> NewWidth <span style="color: #008000;">&gt;</span> img<span style="color: #008000;">.</span><span style="color: #0000FF;">Height</span> <span style="color: #008000;">/</span> NewHeight<span style="color: #008000;">&#41;</span>
	<span style="color: #008000;">&#123;</span>
		Fator <span style="color: #008000;">=</span> img<span style="color: #008000;">.</span><span style="color: #0000FF;">Width</span> <span style="color: #008000;">/</span> NewWidth<span style="color: #008000;">;</span>
	<span style="color: #008000;">&#125;</span>
	<span style="color: #0600FF; font-weight: bold;">else</span>
	<span style="color: #008000;">&#123;</span>
		Fator <span style="color: #008000;">=</span> img<span style="color: #008000;">.</span><span style="color: #0000FF;">Height</span> <span style="color: #008000;">/</span> NewHeight<span style="color: #008000;">;</span>
	<span style="color: #008000;">&#125;</span>
	<span style="color: #6666cc; font-weight: bold;">decimal</span> Largura <span style="color: #008000;">=</span> img<span style="color: #008000;">.</span><span style="color: #0000FF;">Width</span> <span style="color: #008000;">/</span> Fator<span style="color: #008000;">;</span>
	<span style="color: #6666cc; font-weight: bold;">decimal</span> Altura <span style="color: #008000;">=</span> img<span style="color: #008000;">.</span><span style="color: #0000FF;">Height</span> <span style="color: #008000;">/</span> Fator<span style="color: #008000;">;</span>
&nbsp;
	<span style="color: #0600FF; font-weight: bold;">return</span> img<span style="color: #008000;">.</span><span style="color: #0000FF;">GetThumbnailImage</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">&#41;</span>Largura, <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span><span style="color: #008000;">&#41;</span>Altura, <span style="color: #008000;">new</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Drawing</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Image</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GetThumbnailImageAbort</span><span style="color: #008000;">&#40;</span>ThumbnailCallback<span style="color: #008000;">&#41;</span>, IntPtr<span style="color: #008000;">.</span><span style="color: #0000FF;">Zero</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">bool</span> ThumbnailCallback<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
<span style="color: #008000;">&#123;</span>
	<span style="color: #0600FF; font-weight: bold;">return</span> <span style="color: #0600FF; font-weight: bold;">false</span><span style="color: #008000;">;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2012%2F05%2Fredimensionar-imagem-mantendo-a-proporcao%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2012%2F05%2Fredimensionar-imagem-mantendo-a-proporcao%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=446&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2012/05/redimensionar-imagem-mantendo-a-proporcao/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Split no Sql Server</title>
		<link>http://ycaro.net/2012/04/split-no-sql-server/</link>
		<comments>http://ycaro.net/2012/04/split-no-sql-server/#comments</comments>
		<pubDate>Sun, 22 Apr 2012 23:22:03 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Destaque]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Banco de Dados]]></category>
		<category><![CDATA[Function SQL]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[Split]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=428</guid>
		<description><![CDATA[Function Split para Sql Server View Code SQL1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ALTER FUNCTION &#91;dbo&#93;.&#91;Split&#93;&#40;@Input VARCHAR&#40;MAX&#41;, @Var VARCHAR&#40;MAX&#41;&#41; RETURNS @Return TABLE &#40;ID INT, Item VARCHAR&#40;MAX&#41;&#41; BEGIN DECLARE @ID INT SET @ID = 0 WHILE CHARINDEX&#40;@Var, @Input&#41; &#62; 0 BEGIN SET [...]]]></description>
			<content:encoded><![CDATA[<p>Function Split para Sql Server</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p428code4'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4284"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code" id="p428code4"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">FUNCTION</span> <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>Split<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span>@Input VARCHAR<span style="color: #66cc66;">&#40;</span>MAX<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> @Var VARCHAR<span style="color: #66cc66;">&#40;</span>MAX<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	RETURNS @<span style="color: #993333; font-weight: bold;">Return</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #66cc66;">&#40;</span>ID INT<span style="color: #66cc66;">,</span> Item VARCHAR<span style="color: #66cc66;">&#40;</span>MAX<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
BEGIN 
	DECLARE @ID INT 
	<span style="color: #993333; font-weight: bold;">SET</span> @ID <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span>
	WHILE CHARINDEX<span style="color: #66cc66;">&#40;</span>@Var<span style="color: #66cc66;">,</span> @Input<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> BEGIN
		<span style="color: #993333; font-weight: bold;">SET</span> @ID <span style="color: #66cc66;">=</span> @ID <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span>
		<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> @<span style="color: #993333; font-weight: bold;">Return</span> <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span>@ID<span style="color: #66cc66;">,</span> LTRIM<span style="color: #66cc66;">&#40;</span>SUBSTRING<span style="color: #66cc66;">&#40;</span>@Input<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span> CHARINDEX<span style="color: #66cc66;">&#40;</span>@Var<span style="color: #66cc66;">,</span> @Input<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #993333; font-weight: bold;">SET</span> @Input <span style="color: #66cc66;">=</span> SUBSTRING<span style="color: #66cc66;">&#40;</span>@Input<span style="color: #66cc66;">,</span> CHARINDEX<span style="color: #66cc66;">&#40;</span>@Var<span style="color: #66cc66;">,</span> @Input<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span> LEN<span style="color: #66cc66;">&#40;</span>@Input<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">-</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
	END 
	<span style="color: #993333; font-weight: bold;">INSERT</span> <span style="color: #993333; font-weight: bold;">INTO</span> @<span style="color: #993333; font-weight: bold;">Return</span> <span style="color: #993333; font-weight: bold;">VALUES</span> <span style="color: #66cc66;">&#40;</span>@ID <span style="color: #66cc66;">+</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">,</span> LTRIM<span style="color: #66cc66;">&#40;</span>@Input<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #993333; font-weight: bold;">RETURN</span> 
END
GO
&nbsp;
<span style="color: #808080; font-style: italic;">-- Teste 01</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> Split<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'aaa aab aba abb'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">' '</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-- Teste 02</span>
<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> Split<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'aaa,aab,aba,abb AAA'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">','</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2012%2F04%2Fsplit-no-sql-server%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2012%2F04%2Fsplit-no-sql-server%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=428&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2012/04/split-no-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DotNetXMLHttpRequest no NuGet</title>
		<link>http://ycaro.net/2012/03/dotnetxmlhttprequest-no-nuget/</link>
		<comments>http://ycaro.net/2012/03/dotnetxmlhttprequest-no-nuget/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 21:15:57 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Destaque]]></category>
		<category><![CDATA[DotNetXMLHttpRequest]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[HttpRequest]]></category>
		<category><![CDATA[HttpResponse]]></category>
		<category><![CDATA[NuGet]]></category>
		<category><![CDATA[Programação]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=416</guid>
		<description><![CDATA[Para instalar o DotNetXmlHttpRequest via NuGet, é necessário ter instalado o NuGet Package Manager. Depois abra o console de comando (menu Tools &#62; Library Package Manager &#62; Package Manager Console)  e execute o comando abaixo ou instale o Manage NuGet Packages. PM&#62; Install-Package DotNetXmlHttpRequest Exemplo de uso da classe: View Code CSHARP1 2 3 4 5 6 [...]]]></description>
			<content:encoded><![CDATA[<p>Para instalar o <strong>DotNetXmlHttpRequest</strong> via <a href="https://nuget.org/" target="_blank">NuGet</a>, é necessário ter instalado o <a href="http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c" target="_blank">NuGet Package Manager</a>. Depois abra o console de comando<strong> </strong>(menu <em>Tools &gt; Library Package Manager &gt; Package Manager Console</em>)  e execute o comando abaixo ou instale o <strong>Manage NuGet Packages.</strong></p>
<p><strong><span style="background: #000; padding: 10px; color: #fff; width: 500px; display: block; border: 5px solid #C0C0C0;">PM&gt; Install-Package DotNetXmlHttpRequest</span></strong></p>
<p>Exemplo de uso da classe:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p416code6'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p4166"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p416code6"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">DotNetXmlHttpRequest</span><span style="color: #008000;">;</span>
<span style="color: #6666cc; font-weight: bold;">class</span> Program
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> args<span style="color: #008000;">&#41;</span>
    <span style="color: #008000;">&#123;</span>
        XMLHttpRequest xml <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> XMLHttpRequest<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        xml<span style="color: #008000;">.</span><span style="color: #0000FF;">Open</span><span style="color: #008000;">&#40;</span>XMLHttpRequest<span style="color: #008000;">.</span><span style="color: #0000FF;">EnumMethod</span><span style="color: #008000;">.</span><span style="color: #0000FF;">GET</span>, <span style="color: #666666;">&quot;http://ycaro.net/&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        xml<span style="color: #008000;">.</span><span style="color: #0000FF;">Send</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Console</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #000000;">System.<span style="color: #0000FF;">Text</span><span style="color: #008000;">.</span><span style="color: #0000FF;">RegularExpressions</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">Regex</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Match</span><span style="color: #008000;">&#40;</span>xml<span style="color: #008000;">.</span><span style="color: #0000FF;">responseText</span>, <span style="color: #666666;">&quot;(.*)&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Console</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2012%2F03%2Fdotnetxmlhttprequest-no-nuget%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2012%2F03%2Fdotnetxmlhttprequest-no-nuget%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=416&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2012/03/dotnetxmlhttprequest-no-nuget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eXtreme Go Horse (XGH)</title>
		<link>http://ycaro.net/2012/02/extreme-go-horse-xgh/</link>
		<comments>http://ycaro.net/2012/02/extreme-go-horse-xgh/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 19:38:48 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Destaque]]></category>
		<category><![CDATA[Geral]]></category>
		<category><![CDATA[eXtreme Go Horse]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[XGH]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=407</guid>
		<description><![CDATA[Metodologia de desenvolvimento mais usada no mundo eXtreme Go Horse (XGH) 1- Pensou, não é XGH. XGH não pensa, faz a primeira coisa que vem à mente. Não existe segunda opção, a única opção é a mais rápida. 2- Existem 3 formas de se resolver um problema, a correta, a errada e a XGH, que [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" src="http://ycaro.net/wp-content/uploads/2012/02/gohorse.gif" alt="" /></p>
<p>Metodologia de desenvolvimento mais usada no mundo</p>
<p style="text-align: center;">e<strong>X</strong>treme <strong>G</strong>o <strong>H</strong>orse<strong> (XGH)</strong></p>
<p><strong>1- Pensou, não é XGH.</strong></p>
<p>XGH não pensa, faz a primeira coisa que vem à mente. Não existe segunda opção, a única opção é a mais rápida.</p>
<p><strong>2- Existem 3 formas de se resolver um problema, a correta, a errada e a XGH, que é igual à errada, só que mais rápida.</strong></p>
<p>XGH é mais rápido que qualquer metodologia de desenvolvimento de software que você conhece (Vide Axioma 14).</p>
<p><strong>3- Quanto mais XGH você faz, mais precisará fazer.</strong></p>
<p>Para cada problema resolvido usando XGH, mais uns 7 são criados. Mas todos eles serão resolvidos da forma XGH. XGH tende ao infinito.</p>
<p><strong>4- XGH é totalmente reativo.</strong></p>
<p>Os erros só existem quando aparecem.</p>
<p><strong>5- XGH vale tudo, só não vale dar o toba.</strong></p>
<p>Resolveu o problema? Compilou? Commit e era isso.</p>
<p><strong>6- Commit sempre antes de update.</strong></p>
<p>Se der merda, a sua parte estará sempre correta.. e seus colegas que se *****.</p>
<p><strong>7- XGH não tem prazo.</strong></p>
<p>Os prazos passados pelo seu cliente são meros detalhes. Você SEMPRE conseguirá implementar TUDO no tempo necessário (nem que isso implique em acessar o BD por um script malaco).</p>
<p><strong>8- Esteja preparado para pular fora quando o barco começar a afundar… ou coloque a culpa em alguém ou algo.</strong></p>
<p>Pra quem usa XGH, um dia o barco afunda. Quanto mais o tempo passa, mais o sistema vira um monstro. O dia que a casa cair, é melhor seu curriculum estar cadastrado na APInfo, ou ter algo pra colocar a culpa.</p>
<p><strong>9- Seja autêntico, XGH não respeita padrões.</strong></p>
<p>Escreva o código como você bem entender, se resolver o problema, commit e era isso.</p>
<p><strong>10- Não existe refactoring, apenas rework.</strong></p>
<p>Se der merda, refaça um XGH rápido que solucione o problema. O dia que o rework implicar em reescrever a aplicação toda, pule fora, o barco irá afundar (Vide Axioma 8).</p>
<p><strong>11- XGH é totalmente anárquico.</strong></p>
<p>A figura de um gerente de projeto é totalmente descartável. Não tem dono, cada um faz o que quiser na hora que os problemas e requisitos vão surgindo (Vide Axioma 4).</p>
<p><strong>12- Se iluda sempre com promessas de melhorias.</strong></p>
<p>Colocar TODO no código como uma promessa de melhoria ajuda o desenvolvedor XGH a não sentir remorso ou culpa pela cagada que fez. É claro que o refactoring nunca será feito (Vide Axioma 10).</p>
<p><strong>13- XGH é absoluto, não se prende à coisas relativas.</strong></p>
<p>Prazo e custo são absolutos, qualidade é totalmente relativa. Jamais pense na qualidade e sim no menor tempo que a solução será implementada, aliás… não pense, faça!</p>
<p><strong>14- XGH é atemporal.</strong></p>
<p>Scrum, XP… tudo isso é modinha. O XGH não se prende às modinhas do momento, isso é coisa de *****. XGH sempre foi e sempre será usado por aqueles que desprezam a qualidade.</p>
<p><strong>15- XGH nem sempre é POG.</strong></p>
<p>Muitas POG’s exigem um raciocínio muito elevado, XGH não raciocina (Vide Axioma 1).</p>
<p><strong>16- Não tente remar contra a maré.</strong></p>
<p>Caso seus colegas de trabalho usam XGH para programar e você é um coxinha que gosta de fazer as coisas certinhas, esqueça! Pra cada Design Pattern que você usa corretamente, seus colegas gerarão 10 vezes mais código podre usando XGH.</p>
<p><strong>17- O XGH não é perigoso até surgir um pouco de ordem.</strong></p>
<p>Este axioma é muito complexo, mas sugere que o projeto utilizando XGH está em meio ao caos. Não tente por ordem no XGH (Vide Axioma 16), é inútil e você pode jogar um tempo precioso no lixo. Isto fará com que o projeto afunde mais rápido ainda (Vide Axioma 8). Não tente gerenciar o XGH, ele é auto suficiente (Vide Axioma 11), assim como o caos.</p>
<p><strong>18- O XGH é seu brother, mas é vingativo.</strong></p>
<p>Enquanto você quiser, o XGH sempre estará do seu lado. Mas cuidado, não o abandone. Se começar um sistema utilizando XGH e abandoná-lo para utilizar uma metodologia da moda, você estará fudido. O XGH não permite refactoring (vide axioma 10), e seu novo sistema cheio de frescurites entrará em colapso. E nessa hora, somente o XGH poderá salvá-lo.</p>
<p><strong>19- Se tiver funcionando, não rela a mão.</strong></p>
<p>Nunca altere, e muito menos questione um código funcionando. Isso é perda de tempo, mesmo porque refactoring não existe (Vide Axioma 10). Tempo é a engrenagem que move o XGH e qualidade é um detalhe desprezível.</p>
<p><strong>20- Teste é para os fracos.</strong></p>
<p>Se você meteu a mão num sistema XGH, é melhor saber o que está fazendo. E se você sabe o que está fazendo, vai testar pra que? Testes são desperdício de tempo, se o código compilar, é o suficiente.</p>
<p><strong>21- Acostume-se ao sentimento de fracasso iminente.</strong></p>
<p>O fracasso e o sucesso andam sempre de mãos dadas, e no XGH não é diferente. As pessoas costumam achar que as chances do projeto fracassar utilizando XGH são sempre maiores do que ele ser bem sucedido. Mas sucesso e fracasso são uma questão de ponto de vista. O projeto foi por água abaixo mas você aprendeu algo? Então pra você foi um sucesso!</p>
<p><strong>22- O problema só é seu quando seu nome está no Doc da classe.</strong></p>
<p>Nunca ponha a mão numa classe cujo autor não é você. Caso um membro da equipe morra ou fique doente por muito tempo, o barco irá afundar! Nesse caso, utilize o Axioma 8.</p>
<p>&nbsp;</p>
<p>Site oficial: http://gohorseprocess.wordpress.com/extreme-go-horse-xgh/</p>
<p>&nbsp;
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2012%2F02%2Fextreme-go-horse-xgh%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2012%2F02%2Fextreme-go-horse-xgh%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=407&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2012/02/extreme-go-horse-xgh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arvixe Web Hosting = Hospedagem Windows + Sql Server ilimitado por menos de 9 reais</title>
		<link>http://ycaro.net/2012/02/arvixe-web-hosting-hospedagem-windows-sql-server-ilimitado-por-menos-de-9-reais/</link>
		<comments>http://ycaro.net/2012/02/arvixe-web-hosting-hospedagem-windows-sql-server-ilimitado-por-menos-de-9-reais/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 03:58:04 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Destaque]]></category>
		<category><![CDATA[Propaganda]]></category>
		<category><![CDATA[Arvixe]]></category>
		<category><![CDATA[Hospedagem Web]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=332</guid>
		<description><![CDATA[A Arvixe é uma empresa de hospedagem web, com sede em Santa Rosa, EUA. Com 5 dólares por mês (R$ 8,50), é possível ter um host muito bom, com vários serviços ilimitados. Entre outras coisas, a Arvixe possuí: SQL Server ilimitado MySQL ilimitado Contas FTP ilimitadas Espaço em disco ilimitado Transferencia ilimitada Domínios 6 Sub domínio ilimitado [...]]]></description>
			<content:encoded><![CDATA[<p>A <a title="Arvixe" href="http://www.arvixe.com/3553.html" target="_blank">Arvixe</a> é uma empresa de hospedagem web, com sede em Santa Rosa, EUA.</p>
<p>Com <strong>5 dólares por mês (R$ 8,50)</strong>, é possível ter um host muito bom, com <strong>vários serviços ilimitados</strong>. Entre outras coisas, a <a title="Arvixe" href="http://www.arvixe.com/3553.html" target="_blank">Arvixe</a> possuí:</p>
<blockquote><p><strong>SQL Server ilimitado</strong><br />
MySQL ilimitado<br />
Contas FTP ilimitadas<br />
Espaço em disco ilimitado<br />
Transferencia ilimitada<br />
Domínios 6<br />
Sub domínio ilimitado<br />
Caixa de email ilimitado<br />
Streaming de audio e vídeo</p></blockquote>
<p>Na maioria (se não, todas) dos serviços de hospedagem nacional, é necessário pagar um adicional para ter isso ilimitado</p>
<p>Apesar de ser no Estados Unidos, pode ser feito <strong>pagamento por Paypal ou Google Checkout</strong>, o que torna muito fácil, seguro e <strong>NÃO PRECISA de cartão de crédito internacional</strong>.</p>
<p>O <strong>atendimento</strong> é muito <strong>eficiente</strong>. Eu precisei do <strong>suporte</strong> para resolver um problema e fui<strong> muito bem atendido. </strong></p>
<p>A <a title="Arvixe Web Hosting" href="http://www.arvixe.com/3553.html" target="_blank">Arvixe</a> tem a hospedagem e suporte muito melhor do que a maioria das hospedagens do Brasil. Com toda essa facilidade e qualidade, vai contratar hospedagem nacional por que?</p>
<p>&nbsp;
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2012%2F02%2Farvixe-web-hosting-hospedagem-windows-sql-server-ilimitado-por-menos-de-9-reais%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2012%2F02%2Farvixe-web-hosting-hospedagem-windows-sql-server-ilimitado-por-menos-de-9-reais%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=332&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2012/02/arvixe-web-hosting-hospedagem-windows-sql-server-ilimitado-por-menos-de-9-reais/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sql Server: Converter números para extenso (Atualizado)</title>
		<link>http://ycaro.net/2011/12/sql-server-converter-numeros-para-extenso/</link>
		<comments>http://ycaro.net/2011/12/sql-server-converter-numeros-para-extenso/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 15:10:13 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Destaque]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Conversão]]></category>
		<category><![CDATA[Function]]></category>
		<category><![CDATA[Moedas]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=305</guid>
		<description><![CDATA[Converte números para extenso entre 0 e 999999999.99. O código abaixo retorna o número por extenso no formato Real (R$). Para usar outros tipos, é só mudar o texto na última FUNCTION [dbo].[NExtenso]. View Code SQL1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [...]]]></description>
			<content:encoded><![CDATA[<p><b>Converte números para extenso</b> entre 0 e 999999999.99.</p>
<p>O código abaixo retorna o número por extenso no formato <strong>Real (R$)</strong>. Para usar outros tipos, é só mudar o texto na última <b>FUNCTION [dbo].[NExtenso]</b>.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p305code8'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3058"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
</pre></td><td class="code" id="p305code8"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">FUNCTION</span> <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>NExtenso_Extenso<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span>@Num INTEGER<span style="color: #66cc66;">&#41;</span>
	RETURNS VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AS</span>
BEGIN 
	<span style="color: #808080; font-style: italic;">-- Por Ycaro Afonso 03/12/2011</span>
	<span style="color: #808080; font-style: italic;">-- V 0.1</span>
	<span style="color: #993333; font-weight: bold;">RETURN</span> CASE @Num 
		WHEN <span style="color: #cc66cc;">1000</span> THEN <span style="color: #ff0000;">'Mil'</span> WHEN <span style="color: #cc66cc;">1000000</span> THEN <span style="color: #ff0000;">'Milhões'</span> WHEN <span style="color: #cc66cc;">1000000000</span> THEN <span style="color: #ff0000;">'Bilhões'</span>
		WHEN <span style="color: #cc66cc;">100</span> THEN <span style="color: #ff0000;">'Cento'</span> WHEN <span style="color: #cc66cc;">200</span> THEN <span style="color: #ff0000;">'Duzentos'</span> WHEN <span style="color: #cc66cc;">300</span> THEN <span style="color: #ff0000;">'Trezentos'</span> WHEN <span style="color: #cc66cc;">400</span> THEN <span style="color: #ff0000;">'Quatrocentos'</span> WHEN <span style="color: #cc66cc;">500</span> THEN <span style="color: #ff0000;">'Quinhentos'</span> WHEN <span style="color: #cc66cc;">600</span> THEN <span style="color: #ff0000;">'Seiscentos'</span> WHEN <span style="color: #cc66cc;">700</span> THEN <span style="color: #ff0000;">'Setecentos'</span> WHEN <span style="color: #cc66cc;">800</span> THEN <span style="color: #ff0000;">'Oitocentos'</span> WHEN <span style="color: #cc66cc;">900</span> THEN <span style="color: #ff0000;">'Novecentos'</span>
		WHEN <span style="color: #cc66cc;">10</span> THEN <span style="color: #ff0000;">'Dez'</span> WHEN <span style="color: #cc66cc;">11</span> THEN <span style="color: #ff0000;">'Onze'</span> WHEN <span style="color: #cc66cc;">12</span> THEN <span style="color: #ff0000;">'Doze'</span> WHEN <span style="color: #cc66cc;">13</span> THEN <span style="color: #ff0000;">'Treze'</span> WHEN <span style="color: #cc66cc;">14</span> THEN <span style="color: #ff0000;">'Quartorze'</span> WHEN <span style="color: #cc66cc;">15</span> THEN <span style="color: #ff0000;">'Quinze'</span> WHEN <span style="color: #cc66cc;">16</span> THEN <span style="color: #ff0000;">'Dezesseis'</span> WHEN <span style="color: #cc66cc;">17</span> THEN <span style="color: #ff0000;">'Dezesete'</span> WHEN <span style="color: #cc66cc;">18</span> THEN <span style="color: #ff0000;">'Dezoito'</span> WHEN <span style="color: #cc66cc;">19</span> THEN <span style="color: #ff0000;">'Dezenove'</span>
		WHEN <span style="color: #cc66cc;">20</span> THEN <span style="color: #ff0000;">'Vinte'</span> WHEN <span style="color: #cc66cc;">30</span> THEN <span style="color: #ff0000;">'Trinta'</span> WHEN <span style="color: #cc66cc;">40</span> THEN <span style="color: #ff0000;">'Quarenta'</span> WHEN <span style="color: #cc66cc;">50</span> THEN <span style="color: #ff0000;">'Cinquenta'</span> WHEN <span style="color: #cc66cc;">60</span> THEN <span style="color: #ff0000;">'Sessenta'</span> WHEN <span style="color: #cc66cc;">70</span> THEN <span style="color: #ff0000;">'Setenta'</span> WHEN <span style="color: #cc66cc;">80</span> THEN <span style="color: #ff0000;">'Oitenta'</span> WHEN <span style="color: #cc66cc;">90</span> THEN <span style="color: #ff0000;">'Noventa'</span> 
		WHEN <span style="color: #cc66cc;">1</span> THEN <span style="color: #ff0000;">'Um'</span> WHEN <span style="color: #cc66cc;">2</span> THEN <span style="color: #ff0000;">'Dois'</span> WHEN <span style="color: #cc66cc;">3</span> THEN <span style="color: #ff0000;">'Tres'</span> WHEN <span style="color: #cc66cc;">4</span> THEN <span style="color: #ff0000;">'Quatro'</span> WHEN <span style="color: #cc66cc;">5</span> THEN <span style="color: #ff0000;">'Cinco'</span> WHEN <span style="color: #cc66cc;">6</span> THEN <span style="color: #ff0000;">'Seis'</span> WHEN <span style="color: #cc66cc;">7</span> THEN <span style="color: #ff0000;">'Sete'</span> WHEN <span style="color: #cc66cc;">8</span> THEN <span style="color: #ff0000;">'Oito'</span> WHEN <span style="color: #cc66cc;">9</span> THEN <span style="color: #ff0000;">'Nove'</span> 
		ELSE <span style="color: #993333; font-weight: bold;">NULL</span> END
END
GO
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">FUNCTION</span> <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>NExtenso_Fator<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span>@Num INTEGER<span style="color: #66cc66;">&#41;</span>
	RETURNS INTEGER
<span style="color: #993333; font-weight: bold;">AS</span>
BEGIN 
	<span style="color: #808080; font-style: italic;">-- Por Ycaro Afonso 03/12/2011</span>
	<span style="color: #808080; font-style: italic;">-- V 0.1</span>
	<span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">10</span> <span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #cc66cc;">1</span>
	ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">100</span> <span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #cc66cc;">10</span>
	ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">1000</span> <span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #cc66cc;">100</span>
	ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">1000000</span> <span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #cc66cc;">1000</span>
	ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">1000000000</span> <span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #cc66cc;">1000000</span>
	ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">1000000000000</span> <span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #cc66cc;">1000000000</span>
	<span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #993333; font-weight: bold;">NULL</span>
END
GO
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">FUNCTION</span> <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>NExtenso_Convert<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span>@Num DECIMAL<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">18</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> @Fat DECIMAL<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">18</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	RETURNS VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AS</span> 
BEGIN 
	<span style="color: #808080; font-style: italic;">-- Por Ycaro Afonso 03/12/2011</span>
	<span style="color: #808080; font-style: italic;">-- V 0.1</span>
	DECLARE @Ret VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> @_Num DECIMAL<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">18</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span>
	<span style="color: #993333; font-weight: bold;">SET</span> @_Num <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span>
&nbsp;
	<span style="color: #993333; font-weight: bold;">IF</span> @Fat <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> BEGIN 
		<span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1000000000</span> BEGIN 
			<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' Um Bilhão'</span>
		END ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1000000</span> BEGIN 
			<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' Um Milhão'</span>
		END ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1000</span> BEGIN 
			<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' Um Mil'</span>
		END ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">100</span> BEGIN 
			<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'Cem'</span>
		END ELSE <span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">10</span> <span style="color: #993333; font-weight: bold;">AND</span> @Num <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">20</span> BEGIN
			<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> ISNULL<span style="color: #66cc66;">&#40;</span>dbo<span style="color: #66cc66;">.</span>NExtenso_Extenso<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' e '</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
		END ELSE BEGIN 
			<span style="color: #993333; font-weight: bold;">IF</span> @Fat <span style="color: #66cc66;">&gt;=</span> <span style="color: #cc66cc;">1000</span> BEGIN 
				<span style="color: #993333; font-weight: bold;">SET</span> @_Num <span style="color: #66cc66;">=</span> CAST<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>@Num <span style="color: #66cc66;">-</span> <span style="color: #66cc66;">&#40;</span>@Num % @Fat<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span>CAST<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">AS</span> DECIMAL<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">18</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">/</span> @Fat<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> INTEGER<span style="color: #66cc66;">&#41;</span>
&nbsp;
				<span style="color: #993333; font-weight: bold;">IF</span> @_Num <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> BEGIN 
					<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> ISNULL<span style="color: #66cc66;">&#40;</span>dbo<span style="color: #66cc66;">.</span>NExtenso_Convert<span style="color: #66cc66;">&#40;</span>@Fat<span style="color: #66cc66;">,</span> @Fat <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">.</span>1<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
				END ELSE BEGIN 
					<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> ISNULL<span style="color: #66cc66;">&#40;</span>dbo<span style="color: #66cc66;">.</span>NExtenso_Convert<span style="color: #66cc66;">&#40;</span>@_Num<span style="color: #66cc66;">,</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Fator<span style="color: #66cc66;">&#40;</span>@_Num<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' '</span> <span style="color: #66cc66;">+</span> ISNULL<span style="color: #66cc66;">&#40;</span>dbo<span style="color: #66cc66;">.</span>NExtenso_Extenso<span style="color: #66cc66;">&#40;</span>@Fat<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
				END 
&nbsp;
				<span style="color: #993333; font-weight: bold;">SET</span> @_Num <span style="color: #66cc66;">=</span> @Num <span style="color: #66cc66;">-</span> <span style="color: #66cc66;">&#40;</span>@_Num <span style="color: #66cc66;">*</span> @Fat<span style="color: #66cc66;">&#41;</span>
&nbsp;
				<span style="color: #993333; font-weight: bold;">SET</span> @Fat <span style="color: #66cc66;">=</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Fator<span style="color: #66cc66;">&#40;</span>@_Num<span style="color: #66cc66;">&#41;</span>
&nbsp;
				<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> CASE WHEN <span style="color: #66cc66;">&#40;</span>@Fat <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">100</span> <span style="color: #993333; font-weight: bold;">OR</span> @Fat <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> CAST<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span>@_Num <span style="color: #66cc66;">-</span> <span style="color: #66cc66;">&#40;</span>@_Num % @Fat<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">&#40;</span>CAST<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">AS</span> DECIMAL<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">18</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">6</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">/</span> @Fat<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> INTEGER<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&lt;</span> <span style="color: #cc66cc;">100</span> THEN <span style="color: #ff0000;">' e '</span> ELSE <span style="color: #ff0000;">', '</span> END <span style="color: #66cc66;">+</span> ISNULL<span style="color: #66cc66;">&#40;</span>dbo<span style="color: #66cc66;">.</span>NExtenso_Convert<span style="color: #66cc66;">&#40;</span>@_Num<span style="color: #66cc66;">,</span> @Fat<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
			END ELSE BEGIN 
				<span style="color: #993333; font-weight: bold;">SET</span> @_Num <span style="color: #66cc66;">=</span> @Num <span style="color: #66cc66;">-</span> <span style="color: #66cc66;">&#40;</span>@Num % @Fat<span style="color: #66cc66;">&#41;</span>
				<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> ISNULL<span style="color: #66cc66;">&#40;</span>dbo<span style="color: #66cc66;">.</span>NExtenso_Extenso<span style="color: #66cc66;">&#40;</span>@_Num<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' e '</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Convert<span style="color: #66cc66;">&#40;</span>@Num <span style="color: #66cc66;">-</span> @_Num<span style="color: #66cc66;">,</span> @Fat <span style="color: #66cc66;">*</span> <span style="color: #66cc66;">.</span>1<span style="color: #66cc66;">&#41;</span>
			END 
		END
	END 
	<span style="color: #993333; font-weight: bold;">RETURN</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>@Ret <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'.'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">' e .'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'.'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
END
GO 
&nbsp;
<span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">FUNCTION</span> <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>NExtenso<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#40;</span>@Num DECIMAL<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">15</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
	RETURNS VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AS</span> 
BEGIN 
	<span style="color: #808080; font-style: italic;">-- Por Ycaro Afonso 03/12/2011</span>
	<span style="color: #808080; font-style: italic;">-- V 0.4</span>
	DECLARE @Ret VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">500</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> BEGIN 
&nbsp;
		<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span>
		<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Convert<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">,</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Fator<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> 
			CASE FLOOR<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">&#41;</span> WHEN <span style="color: #cc66cc;">0</span> THEN <span style="color: #ff0000;">''</span> WHEN <span style="color: #cc66cc;">1</span> THEN <span style="color: #ff0000;">' Real'</span> ELSE <span style="color: #ff0000;">' Reais'</span> END <span style="color: #66cc66;">+</span> 
			CASE FLOOR<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">&#41;</span> WHEN <span style="color: #cc66cc;">0</span> THEN <span style="color: #ff0000;">''</span> ELSE <span style="color: #ff0000;">' e '</span> END
&nbsp;
		<span style="color: #993333; font-weight: bold;">SET</span> @Num <span style="color: #66cc66;">=</span> @Num <span style="color: #66cc66;">-</span> FLOOR<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">&#41;</span> 
		<span style="color: #993333; font-weight: bold;">IF</span> @Num <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span> BEGIN 
			<span style="color: #808080; font-style: italic;">--WHILE @Num - FLOOR(@Num) &gt; 0 BEGIN</span>
			<span style="color: #808080; font-style: italic;">--	SET @Num = @Num / .1</span>
			<span style="color: #808080; font-style: italic;">--END </span>
&nbsp;
			<span style="color: #993333; font-weight: bold;">SET</span> @Num <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>CAST<span style="color: #66cc66;">&#40;</span>@Num <span style="color: #993333; font-weight: bold;">AS</span> VARCHAR<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">20</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'0.'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
			<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> @Ret <span style="color: #66cc66;">+</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Convert<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">,</span> dbo<span style="color: #66cc66;">.</span>NExtenso_Fator<span style="color: #66cc66;">&#40;</span>@Num<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> CASE @Num WHEN <span style="color: #cc66cc;">1</span> THEN <span style="color: #ff0000;">' Centavo'</span> ELSE <span style="color: #ff0000;">' Centavos'</span> END
		END
	END ELSE BEGIN
		<span style="color: #993333; font-weight: bold;">SET</span> @Ret <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'Zero Reais'</span>
	END
	<span style="color: #993333; font-weight: bold;">RETURN</span> @Ret
END 
GO
&nbsp;
<span style="color: #808080; font-style: italic;">-- Exemplo </span>
<span style="color: #993333; font-weight: bold;">SELECT</span> dbo<span style="color: #66cc66;">.</span>NExtenso<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2011%2F12%2Fsql-server-converter-numeros-para-extenso%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2011%2F12%2Fsql-server-converter-numeros-para-extenso%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=305&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2011/12/sql-server-converter-numeros-para-extenso/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Primeiro sistema com arduino (Arduino + Botão + Display)</title>
		<link>http://ycaro.net/2011/09/primeiro-sistema-com-arduino-arduino-botao-display/</link>
		<comments>http://ycaro.net/2011/09/primeiro-sistema-com-arduino-arduino-botao-display/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 00:48:09 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Destaque]]></category>
		<category><![CDATA[Botão]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Display]]></category>
		<category><![CDATA[LCD]]></category>

		<guid isPermaLink="false">http://ycr.me/ycaronet/?p=268</guid>
		<description><![CDATA[Lista: 1 Arduino 1 Potenciômetro 1 Resistor 1 Botão 1 Display LCD 16×2 Vários fios Esquema Código do Arduino View Code C1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-medium wp-image-291" title="SNC00055" src="http://ycaro.net/wp-content/uploads/2011/09/SNC00055-300x225.jpg" alt="" width="550" /></p>
<p>Lista:<br />
1 Arduino<br />
1 Potenciômetro<br />
1 Resistor<br />
1 Botão<br />
1 Display LCD 16×2<br />
Vários fios</p>
<p>Esquema</p>
<p><img class="aligncenter size-medium wp-image-289" title="Arduino_Button_Display" src="http://ycaro.net/wp-content/uploads/2011/09/Arduino_Button_Display.png" alt="" width="500" /></p>
<p>Código do Arduino</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p268code10'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26810"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
</pre></td><td class="code" id="p268code10"><pre class="c" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
 02/09/2011
 by Ycaro Afonso
 */</span>
&nbsp;
<span style="color: #339933;">#include </span>
&nbsp;
LiquidCrystal lcd<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">12</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">11</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">5</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">4</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">3</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #993333;">int</span> BotaoPino <span style="color: #339933;">=</span> <span style="color: #0000dd;">7</span><span style="color: #339933;">;</span>
<span style="color: #993333;">int</span> qtdeBotao <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #993333;">int</span> ap <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #993333;">void</span> setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  lcd.<span style="color: #202020;">begin</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">16</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;oi&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  pinMode<span style="color: #009900;">&#40;</span>BotaoPino<span style="color: #339933;">,</span> INPUT<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #993333;">void</span> loop<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>digitalRead<span style="color: #009900;">&#40;</span>BotaoPino<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>digitalRead<span style="color: #009900;">&#40;</span>BotaoPino<span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> ap<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      ap <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
      qtdeBotao<span style="color: #339933;">++;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>ap <span style="color: #339933;">==</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    ap <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  lcd.<span style="color: #202020;">setCursor</span><span style="color: #009900;">&#40;</span><span style="color: #0000dd;">5</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  lcd.<span style="color: #202020;">print</span><span style="color: #009900;">&#40;</span>qtdeBotao<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2011%2F09%2Fprimeiro-sistema-com-arduino-arduino-botao-display%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2011%2F09%2Fprimeiro-sistema-com-arduino-arduino-botao-display%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=268&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2011/09/primeiro-sistema-com-arduino-arduino-botao-display/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Será que Jobs, Gates e Zuckerberg teriam chance numa entrevista de emprego?</title>
		<link>http://ycaro.net/2011/08/sera-que-jobs-gates-e-zuckerberg-teriam-chance-numa-entrevista-de-emprego/</link>
		<comments>http://ycaro.net/2011/08/sera-que-jobs-gates-e-zuckerberg-teriam-chance-numa-entrevista-de-emprego/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 00:52:20 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Geral]]></category>
		<category><![CDATA[Bill Gates]]></category>
		<category><![CDATA[Comportamento]]></category>
		<category><![CDATA[Entrevista]]></category>
		<category><![CDATA[Entrevista de Emprego]]></category>
		<category><![CDATA[Mark Zuckerberg]]></category>
		<category><![CDATA[Steve Jobs]]></category>

		<guid isPermaLink="false">http://ycr.me/ycaronet/?p=273</guid>
		<description><![CDATA[O processo de seleção não estava na velocidade desejada. A empresa desejava contratar alguém para a vaga recém-aberta na área de desenvolvimento de novos negócios. Buscavam-se candidatos com perfil empreendedor, mente inovadora e com alguns anos de experiência. O salário não era alto, mas a chance de carreira era bem concreta. O processo de análise [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="border-style: initial; border-color: initial; text-align: justify;" src="http://ycaro.net/wp-content/uploads/2012/02/candidatos%20Jobs%20Gates%20Zuckerberg%20Madoff.jpg" alt="" width="163" height="200" /><span style="text-align: justify;">O processo de seleção não estava na velocidade desejada. A empresa desejava contratar alguém para a vaga recém-aberta na área de desenvolvimento de novos negócios.</span></p>
<p style="text-align: justify;">Buscavam-se candidatos com perfil empreendedor, mente inovadora e com alguns anos de experiência. O salário não era alto, mas a chance de carreira era bem concreta.</p>
<p style="text-align: justify;">O processo de análise de currículos, conduzido pelo departamento de RH, apresentou quatro candidatos na seleção final para a vaga. Todos eram jovens e iniciavam a sua vida profissional. Eram eles: Bill Gates, Steve Jobs, Mark Zuckerberg e Bernard Madoff.</p>
<p style="text-align: justify;">O passo seguinte incluir<br />
ia três entrevistas com executivos da empresa e uma análise mais minuciosa do currículo e competências dos candidatos. E assim foi…</p>
<ul>
<li>Steve Jobs acabou sendo eliminado nas entrevistas. As razões apontadas no relatório das entrevistas foram:</li>
</ul>
<ol>
<li>O candidato parece não ter uma formação familiar sólida. Ele foi abandonado pelos pais verdadeiros e adotado por um casal no subúrbio de San Francisco, que eram operários, sem formação especializada;</li>
<li><span style="text-align: justify;">Steve não completou a faculdade. Ficou apenas seis meses e abandonou o curso, dizendo que a escola era chata e não via benefícios em continuar. Ele afirmou isso na entrevista. E disse que está pensando em tocar algum negócio próprio, mas precisava juntar dinheiro;</span></li>
<li><span style="text-align: justify;">O candidato se comportou de maneira arrogante nas entrevistas. Por diversas vezes, disse que a empresa estava com uma estratégia errada e que os executivos não sabiam o que estavam fazendo;</span></li>
<li><span style="text-align: justify;">Demonstrou estar atento às entrevistas e, curiosamente, repetiu várias vezes o nome do entrevistador, talvez para demonstrar familiaridade;</span></li>
<li><span style="text-align: justify;">É uma pessoa com personalidade forte. Muito assertivo;</span></li>
<li><span style="text-align: justify;">Falou muito sobre suas convicções, mas fez poucas perguntas. Ele queria mais falar do que escutar.</span></li>
</ol>
<div style="text-align: justify;"></div>
<ul>
<li>O segundo candidato, Mark Zuckerberg, também não se saiu bem nas entrevistas. Eis as razões destacadas no relatório:</li>
</ul>
<ol>
<li>O candidato estudou em Harvard, mas nunca levou os estudos a sério. Ele contou que teve que se apresentar ao Conselho de Administração de Harvard, porque foi acusado de infringir regras de segurança na internet e de privacidade e propriedade intelectual;</li>
<li>Mark parece ser uma pessoa que não quis se submeter às regras da faculdade. Ele reclamou dizendo que as regras eram caducas e abandonou a faculdade no meio do curso;</li>
<li>O candidato tem dificuldade de concentração. Na entrevista, ele pareceu dispersivo, desatento;</li>
<li>Ficou calado na maior parte do tempo. As poucas perguntas que fez foram desinteressantes;</li>
<li>No pouco que falou, ele mudou de assunto repentinamente, demonstrando falta de foco. Parece ter muitas ideias, mas pouca capacidade de realização;</li>
<li>Ele demonstrou fascínio pela tecnologia, mas parece não saber o que fazer com o conhecimento que tem. Afirma que tem ideias para que a tecnologia ajude as pessoas a se relacionar melhor, mas não consegue ser claro nessas ideias. Divaga muito.</li>
</ol>
<ul>
<li>O terceiro candidato, Bill Gates, saiu-se um pouco melhor nas entrevistas do que os anteriores, mas mesmo assim também acabou reprovado. O relatório dizia o seguinte:</li>
</ul>
<ol>
<li>O candidato apresenta boa formação familiar. Seus pais, de classe média, tinham boa formação e eram bons trabalhadores. Ele tinha duas irmãs. A família mostrava equilíbrio;</li>
<li>O candidato foi escoteiro quando jovem, o que reforça o ponto acima;</li>
<li>Ele foi admitido na Universidade Harvard, mas abandonou o curso de Matemática e Direito no 3º ano. Perguntado sobre isso, o candidato disse que não queria falar a respeito;</li>
<li>Por diversas vezes durante a entrevista, o candidato olhou para a janela. Parecia pensar em outras coisas. Algumas vezes, recostava-se na cadeira, ficando quase deitado, demonstrando desinteresse e falta de educação;</li>
<li>Não estava bem vestido. Veio de tênis para a entrevista;</li>
<li>Também durante a entrevista, ele mexeu no celular várias vezes, demonstrando desatenção com o entrevistador.</li>
</ol>
<div></div>
<ul>
<li>O último candidato, Bernard Madoff, saiu-se muito bem nas entrevistas e acabou sendo o escolhido pelos executivos. Eis alguns dados do relatório:</li>
</ul>
<ol>
<li>O candidato nasceu de família judia, cujos pais eram bons trabalhadores;</li>
<li>Seu primeiro trabalho foi como encanador, mostrando um início humilde, o que é muito positivo;</li>
<li>Boa formação universitária, tendo estudado Ciências Políticas e Mercado de Capitais;</li>
<li>Compareceu às entrevistas vestindo terno, o que mostra preocupação com a imagem;</li>
<li>Nas entrevistas, parecia ouvir tudo atentamente e fez muitas perguntas, demonstrando curiosidade;</li>
<li>Mostrou concentração, foco e interesse;</li>
<li>Também mostrou ambição e ansiedade, o que pode ser muito bom para um jovem em início de carreira.</li>
</ol>
<div></div>
<p style="text-align: justify;">O candidato Bernard Madoff foi escolhido por unanimidade pelos entrevistadores. Ele apresentava mais qualidades e evidências de um potencial talento do que os outros.<br />
Steve, Bill e Mark receberam cartas da empresa, agradecendo a participação no processo e dizendo que os seus currículos continuariam no banco de dados da empresa.</p>
<p style="text-align: justify;"><em>Observação:<br />
Em dezembro de 2008, Madoff foi detido pelo FBI e acusado de fraude. A fraude foi em torno de 50 bilhões de dólares, o que a torna a segunda maior fraude financeira levada a cabo por uma só pessoa. Uma vez confirmadas as acusações, o executivo poderá pegar pena de até 20 anos de prisão e multa de até US$ 5 milhões. Veja mais detalhes <a href="http://www.insidernews.com.br/tudo-sobre/tudo-sobre-a-fraudecaso-de-bernard-madoff" target="_blank">AQUI</a>.</em></p>
<p style="text-align: justify;">Post original: <a href="http://aquintaonda.blogspot.com/2011/02/sera-que-jobs-gates-e-zuckerberg-teriam.html" target="_blank">http://aquintaonda.blogspot.com/2011/02/sera-que-jobs-gates-e-zuckerberg-teriam.html</a></p>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2011%2F08%2Fsera-que-jobs-gates-e-zuckerberg-teriam-chance-numa-entrevista-de-emprego%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2011%2F08%2Fsera-que-jobs-gates-e-zuckerberg-teriam-chance-numa-entrevista-de-emprego%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=273&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2011/08/sera-que-jobs-gates-e-zuckerberg-teriam-chance-numa-entrevista-de-emprego/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intellisense para HTML 5 no Visual Studio 2010 e 2008</title>
		<link>http://ycaro.net/2011/08/intellisense-para-html-5-no-visual-studio-2010-e-2008/</link>
		<comments>http://ycaro.net/2011/08/intellisense-para-html-5-no-visual-studio-2010-e-2008/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 01:00:46 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2008]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://ycr.me/ycaronet/?p=283</guid>
		<description><![CDATA[Essa extensão funciona no Visual Studio 2010 e Visual Studio 2008. 1. Baixe e instale a extensão desse link http://visualstudiogallery.msdn.microsoft.com/d771cbc8-d60a-40b0-a1d8-f19fc393127d 2. No Visual Studio, acesse o menu Tools &#62; Options &#62; Text Editor &#62; HTML &#62; Validation e altere a caixa Target para HTML 5 3. Depois é só abrir um projeto e testar com [...]]]></description>
			<content:encoded><![CDATA[<p>Essa extensão funciona no Visual Studio 2010 e Visual Studio 2008.</p>
<p>1. Baixe e instale a extensão desse link <a href="http://visualstudiogallery.msdn.microsoft.com/d771cbc8-d60a-40b0-a1d8-f19fc393127d" target="_blank">http://visualstudiogallery.msdn.microsoft.com/d771cbc8-d60a-40b0-a1d8-f19fc393127d</a></p>
<p>2. No Visual Studio, acesse o menu Tools &gt; Options &gt;  Text Editor &gt; HTML &gt; Validation e altere a caixa Target para HTML 5</p>
<p>3. Depois é só abrir um projeto e testar com alguma tag no HTML 5
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2011%2F08%2Fintellisense-para-html-5-no-visual-studio-2010-e-2008%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2011%2F08%2Fintellisense-para-html-5-no-visual-studio-2010-e-2008%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=283&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2011/08/intellisense-para-html-5-no-visual-studio-2010-e-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web.config para WordPress sem erros</title>
		<link>http://ycaro.net/2011/06/web-config-para-wordpress-sem-erros/</link>
		<comments>http://ycaro.net/2011/06/web-config-para-wordpress-sem-erros/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 00:44:58 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Destaque]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Servidor]]></category>
		<category><![CDATA[UrlRewrite]]></category>
		<category><![CDATA[Web.config]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://ycr.me/ycaronet/?p=266</guid>
		<description><![CDATA[Arquivo web.config para utilizar links personalizados (permalinks, links permanentes) no WordPress em servidor ISS (Windows), sem que ocorra erros em outras aplicações do servidor. View Code XML1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 &#60;configuration&#62; &#60;system.webServer&#62; &#60;rewrite&#62; &#60;rules&#62; &#60;!-- Se possuir mais de um [...]]]></description>
			<content:encoded><![CDATA[<p>Arquivo web.config para utilizar links personalizados (permalinks, links permanentes) no WordPress em servidor ISS (Windows), sem que ocorra erros em outras aplicações do servidor.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p266code12'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p26612"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code" id="p266code12"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;system.webServer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
     <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;rewrite<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;rules<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #808080; font-style: italic;">&lt;!-- Se possuir mais de um blog no servidor, mude a &quot;name&quot; da linha abaixo para um nome qualquer --&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;rule</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;wordpress&quot;</span> <span style="color: #000066;">stopProcessing</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> 
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">url</span>=<span style="color: #ff0000;">&quot;^(.*)&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;conditions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;{REQUEST_FILENAME}&quot;</span> <span style="color: #000066;">matchType</span>=<span style="color: #ff0000;">&quot;IsFile&quot;</span> <span style="color: #000066;">negate</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
              <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;{REQUEST_FILENAME}&quot;</span> <span style="color: #000066;">matchType</span>=<span style="color: #ff0000;">&quot;IsDirectory&quot;</span> <span style="color: #000066;">negate</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
              <span style="color: #808080; font-style: italic;">&lt;!-- Configure o dominio do blog de acordo com o exemplo da linha abaixo --&gt;</span>
	      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;add</span> <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;{HTTP_HOST}&quot;</span> <span style="color: #000066;">pattern</span>=<span style="color: #ff0000;">&quot;^(www.)?ycaro\.net&quot;</span> <span style="color: #000066;">ignoreCase</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span> 
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/conditions<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Rewrite&quot;</span> <span style="color: #000066;">url</span>=<span style="color: #ff0000;">&quot;index.php&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/rule<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/rules<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/rewrite<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/system.webServer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>

<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2011%2F06%2Fweb-config-para-wordpress-sem-erros%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2011%2F06%2Fweb-config-para-wordpress-sem-erros%2F&amp;style=compact&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=266&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2011/06/web-config-para-wordpress-sem-erros/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

