<?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, 08 Jan 2012 00:52:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>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[Function SQL]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Server]]></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('p305code2'); return false;">View Code</a> SQL</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p3052"><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="p305code2"><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" 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>2</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[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('p268code4'); return false;">View Code</a> C</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2684"><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="p268code4"><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" 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[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 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.</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 incluiria 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>
<p style="text-align: justify;">Steve Jobs acabou sendo eliminado nas entrevistas. As razões apontadas no relatório das entrevistas foram:<br />
- 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;<br />
- 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;<br />
- 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;<br />
- Demonstrou estar atento às entrevistas e, curiosamente, repetiu várias vezes o nome do entrevistador, talvez para demonstrar familiaridade;<br />
- É uma pessoa com personalidade forte. Muito assertivo;<br />
- Falou muito sobre suas convicções, mas fez poucas perguntas. Ele queria mais falar do que escutar.</p>
<p style="text-align: justify;">O segundo candidato, Mark Zuckerberg, também não se saiu bem nas entrevistas. Eis as razões destacadas no relatório:<br />
- 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;<br />
- 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;<br />
- O candidato tem dificuldade de concentração. Na entrevista, ele pareceu dispersivo, desatento;<br />
- Ficou calado na maior parte do tempo. As poucas perguntas que fez foram desinteressantes;<br />
- No pouco que falou, ele mudou de assunto repentinamente, demonstrando falta de foco. Parece ter muitas ideias, mas pouca capacidade de realização;<br />
- 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.</p>
<p style="text-align: justify;">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:<br />
- 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;<br />
- O candidato foi escoteiro quando jovem, o que reforça o ponto acima;<br />
- 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;<br />
- 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;<br />
- Não estava bem vestido. Veio de tênis para a entrevista;<br />
- Também durante a entrevista, ele mexeu no celular várias vezes, demonstrando desatenção com o entrevistador.</p>
<p style="text-align: justify;">O último candidato, Bernard Madoff, saiu-se muito bem nas entrevistas e acabou sendo o escolhido pelos executivos. Eis alguns dados do relatório:<br />
- O candidato nasceu de família judia, cujos pais eram bons trabalhadores;<br />
- Seu primeiro trabalho foi como encanador, mostrando um início humilde, o que é muito positivo;<br />
- Boa formação universitária, tendo estudado Ciências Políticas e Mercado de Capitais;<br />
- Compareceu às entrevistas vestindo terno, o que mostra preocupação com a imagem;<br />
- Nas entrevistas, parecia ouvir tudo atentamente e fez muitas perguntas, demonstrando curiosidade;<br />
- Mostrou concentração, foco e interesse;<br />
- Também mostrou ambição e ansiedade, o que pode ser muito bom para um jovem em início de carreira.</p>
<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" 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[ASP.NET]]></category>
		<category><![CDATA[Dicas]]></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" 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[Desenvolvimento]]></category>
		<category><![CDATA[Destaque]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[IIS]]></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('p266code6'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2666"><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="p266code6"><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" 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>
		<item>
		<title>DotNetXMLHttpRequest V1.0 &#8211; Requisições em ASP.NET</title>
		<link>http://ycaro.net/2011/06/dotnetxmlhttprequest-response-e-request-em-asp-net/</link>
		<comments>http://ycaro.net/2011/06/dotnetxmlhttprequest-response-e-request-em-asp-net/#comments</comments>
		<pubDate>Sun, 12 Jun 2011 23:01:54 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Destaque]]></category>
		<category><![CDATA[Projetos]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[DotNetXMLHttpRequest]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=249</guid>
		<description><![CDATA[A classe DotNetXMLHttpRequest foi desenvolvida por mim e serve para realizar requisições HTTP ou HTTPS com ASP.NET e obter a resposta. Funciona de forma parecida com o AJAX, com a diferença que no XMLHttpRequest do JAVASCRIPT a execução é feita pelo cliente, e nessa classe é executada no servidor. O DotNetXMLHttpRequest utiliza o método HttpWebRequest [...]]]></description>
			<content:encoded><![CDATA[<p>A classe DotNetXMLHttpRequest foi desenvolvida por mim e serve para realizar <strong>requisições HTTP</strong> ou <strong>HTTPS</strong> com ASP.NET e obter a resposta.</p>
<p>Funciona de forma parecida com o AJAX, com a diferença que no XMLHttpRequest do JAVASCRIPT a execução é feita pelo cliente, e nessa classe é executada no servidor.</p>
<p>O DotNetXMLHttpRequest utiliza o método HttpWebRequest do ASP.NET e com isso é possível fazer requisições web, enviar POST, GET, obter status da URL, fazer download de arquivos, &#8230; </p>
<p>Para mais informações do DotNetXMLHttpRequest acesse a página do projeto no Google Code: <a href="http://code.google.com/p/dotnetxmlhttprequest/">http://code.google.com/p/dotnetxmlhttprequest/</a></p>
<p>O uso é bem simples, veja o exemplo:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p249code8'); return false;">View Code</a> VB</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p2498"><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
</pre></td><td class="code" id="p249code8"><pre class="vb" style="font-family:monospace;">Imports DotNetXmlHttpRequest
&nbsp;
Module Module1
&nbsp;
    <span style="color: #000080;">Sub</span> Main()
        <span style="color: #000080;">Dim</span> ajax <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> XMLHttpRequest
&nbsp;
&nbsp;
        <span style="color: #008000;">' Teste com GET
</span>        ajax.<span style="color: #000080;">Open</span>(XMLHttpRequest.EnumMethod.<span style="color: #000080;">GET</span>, <span style="color: #800000;">&quot;http://site.ycaro.net/teste.php?teste=123&quot;</span>)
        ajax.Send()
        <span style="color: #000080;">If</span> ajax.readystate = 4 <span style="color: #000080;">Then</span>
            <span style="color: #000080;">If</span> ajax.Status = 200 <span style="color: #000080;">Then</span>
                Console.WriteLine(<span style="color: #800000;">&quot;Teste1: &quot;</span> &amp; ajax.responseText)
            <span style="color: #000080;">End</span> <span style="color: #000080;">If</span>
        <span style="color: #000080;">End</span> <span style="color: #000080;">If</span>
        ajax.Dispose()
&nbsp;
&nbsp;
        <span style="color: #008000;">' Teste com POST
</span>        ajax = <span style="color: #000080;">New</span> XMLHttpRequest
        ajax.<span style="color: #000080;">Open</span>(XMLHttpRequest.EnumMethod.POST, <span style="color: #800000;">&quot;http://site.ycaro.net/teste.php&quot;</span>)
        ajax.Send(<span style="color: #800000;">&quot;teste=123&quot;</span>)
        <span style="color: #000080;">If</span> ajax.readystate = 4 <span style="color: #000080;">Then</span>
            <span style="color: #000080;">If</span> ajax.Status = 200 <span style="color: #000080;">Then</span>
                Console.WriteLine(<span style="color: #800000;">&quot;Teste2: &quot;</span> &amp; ajax.responseText)
            <span style="color: #000080;">End</span> <span style="color: #000080;">If</span>
        <span style="color: #000080;">End</span> <span style="color: #000080;">If</span>
        ajax.Dispose()
&nbsp;
&nbsp;
        Console.ReadLine()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Module</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%2Fdotnetxmlhttprequest-response-e-request-em-asp-net%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2011%2F06%2Fdotnetxmlhttprequest-response-e-request-em-asp-net%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=249&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2011/06/dotnetxmlhttprequest-response-e-request-em-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DotNet: Como usar Queue e Stack</title>
		<link>http://ycaro.net/2010/10/dotnet-como-usar-queue-e-stack/</link>
		<comments>http://ycaro.net/2010/10/dotnet-como-usar-queue-e-stack/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 04:37:30 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Desenvolvimento]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=181</guid>
		<description><![CDATA[Nos 2 exemplos foram inseridos 4 itens (item1, item2, item3 e item4) Veja o resultado final de cada um: Queue: View Code VB1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Module Module1 Sub Main() Console.WriteLine(&#34;----------------- Exemplo com Queue -----------------&#34;) Dim queueList As [...]]]></description>
			<content:encoded><![CDATA[<p>Nos 2 exemplos foram inseridos 4 itens (item1, item2, item3 e item4)</p>
<p>Veja o resultado final de cada um:</p>
<p>Queue:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p181code11'); return false;">View Code</a> VB</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p18111"><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="p181code11"><pre class="vb" style="font-family:monospace;">Module Module1
    <span style="color: #000080;">Sub</span> Main()
        Console.WriteLine(<span style="color: #800000;">&quot;----------------- Exemplo com Queue -----------------&quot;</span>)
        <span style="color: #000080;">Dim</span> queueList <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> Queue
        queueList.Enqueue(<span style="color: #800000;">&quot;Item1&quot;</span>)
        queueList.Enqueue(<span style="color: #800000;">&quot;Item2&quot;</span>)
        queueList.Enqueue(<span style="color: #800000;">&quot;Item3&quot;</span>)
        queueList.Enqueue(<span style="color: #800000;">&quot;Item4&quot;</span>)
        Console.WriteLine(<span style="color: #800000;">&quot;* Queue: O primeiro a ser inserido é o primeiro a sair.&quot;</span>)
        Console.WriteLine(<span style="color: #800000;">&quot;* O primeiro da fila é o -&gt; &quot;</span> &amp; queueList.Peek)
        Console.WriteLine(<span style="color: #800000;">&quot;* O primeiro da fila foi pego e removido -&gt; &quot;</span> &amp; queueList.Dequeue)
        Console.WriteLine(<span style="color: #800000;">&quot;* Agora o primeiro da fila é o -&gt; &quot;</span> &amp; queueList.Peek)
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;* Atualmente contem os itens: &quot;</span>)
        <span style="color: #000080;">For</span> <span style="color: #000080;">Each</span> item <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> <span style="color: #000080;">In</span> queueList
            Console.WriteLine(item)
        <span style="color: #000080;">Next</span>
&nbsp;
        Console.ReadLine()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
<span style="color: #000080;">End</span> Module</pre></td></tr></table></div>

<p>Resultado:</p>
<div style="line-height: 15px; color: #cccccc; background: #000000; border: 3px double #CCCCCC; padding: 10px;">
—————– Exemplo com Queue —————–<br />
* Queue: O primeiro a ser inserido é o primeiro a sair.<br />
* O primeiro da fila é o -> Item1<br />
* O primeiro da fila foi pego e removido -> Item1<br />
* Agora o primeiro da fila é o -> Item2<br />
* Atualmente contem os itens:<br />
Item2<br />
Item3<br />
Item4
</div>
<p>Stack:</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p181code12'); return false;">View Code</a> VB</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p18112"><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
</pre></td><td class="code" id="p181code12"><pre class="vb" style="font-family:monospace;">Module Module1
    <span style="color: #000080;">Sub</span> Main()
        Console.WriteLine(<span style="color: #800000;">&quot;----------------- Exemplo com Stack -----------------&quot;</span>)
        <span style="color: #000080;">Dim</span> _stack <span style="color: #000080;">As</span> <span style="color: #000080;">New</span> Stack
        _stack.Push(<span style="color: #800000;">&quot;item1&quot;</span>)
        _stack.Push(<span style="color: #800000;">&quot;item2&quot;</span>)
        _stack.Push(<span style="color: #800000;">&quot;item3&quot;</span>)
        _stack.Push(<span style="color: #800000;">&quot;item4&quot;</span>)
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;Stack: O primeiro a ser inserido é o ultimo a sair.&quot;</span>)
        Console.WriteLine(<span style="color: #800000;">&quot;O primeiro da pilha é o -&gt; &quot;</span> &amp; _stack.Peek())
        Console.WriteLine(<span style="color: #800000;">&quot;O primeiro da pilha foi pego e removido -&gt; &quot;</span> &amp; _stack.Pop())
        Console.WriteLine(<span style="color: #800000;">&quot;Agora o primeiro da pilha é -&gt; &quot;</span> &amp; _stack.Peek())
&nbsp;
        Console.WriteLine(<span style="color: #800000;">&quot;Atualmente contem os itens:&quot;</span>)
        <span style="color: #000080;">For</span> <span style="color: #000080;">Each</span> item <span style="color: #000080;">As</span> <span style="color: #000080;">String</span> <span style="color: #000080;">In</span> _stack
            Console.WriteLine(item)
        <span style="color: #000080;">Next</span>
&nbsp;
        Console.ReadLine()
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
<span style="color: #000080;">End</span> Module</pre></td></tr></table></div>

<p>Resultado:</p>
<div style="line-height: 15px; color: #cccccc; background: #000000; border: 3px double #CCCCCC; padding: 10px;">
—————– Exemplo com Stack —————–<br />
* Stack: O primeiro a ser inserido é o ultimo a sair.<br />
* O primeiro da fila é o -> Item4<br />
* O primeiro da fila foi pego e removido -> Item4<br />
* Agora o primeiro da fila é o -> Item3<br />
* Atualmente contem os itens:<br />
Item3<br />
Item2<br />
Item1
</div>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2010%2F10%2Fdotnet-como-usar-queue-e-stack%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2010%2F10%2Fdotnet-como-usar-queue-e-stack%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=181&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2010/10/dotnet-como-usar-queue-e-stack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dot Net: Como fazer um controle TextBox</title>
		<link>http://ycaro.net/2010/05/dot-net-criando-um-controle-textbox/</link>
		<comments>http://ycaro.net/2010/05/dot-net-criando-um-controle-textbox/#comments</comments>
		<pubDate>Sun, 30 May 2010 04:07:39 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[VB.Net]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=154</guid>
		<description><![CDATA[O .Net Framework oferece um recurso chamado controle ou componente. Que são todos os itens que você ve na aba Toolbox (TextBox, Button, LinkButton, GridView, &#8230;) do Visual Studio. O que é mais interessante nisso e que facilita muito é que você pode criar componentes personalizados, por exemplo, inputs personalizados com máscaras, ModalPopUp, Abas. A [...]]]></description>
			<content:encoded><![CDATA[<p>O .Net Framework oferece um recurso chamado <b>controle</b> ou <b>componente</b>. Que são todos os itens que você ve na aba Toolbox (TextBox, Button, LinkButton, GridView, &#8230;) do Visual Studio.</p>
<p>O que é mais interessante nisso e que facilita muito é que você pode criar componentes personalizados, por exemplo, inputs personalizados com máscaras, ModalPopUp, Abas.</p>
<p>A vantagem de usar um controle, é que é só clicar e arrastar para onde precisar e configurar os parametros, não precisa ficar chamando arquivos ou métodos do javascript, digitando ou copiando linhas e linhas de html, &#8230;</p>
<p></p>
<p>O exemplo abaixo é de um controle <b>TextBox com máscara</b>.</p>
<p>Eu fiz esse controle em <b>C#</b> e <b>VB.Net</b>. Se você apenas for usar o controle sem modificar, não tem diferença da linguagem usada.</p>
<p>Para criar esse TextBox, é só seguir esses passos:</p>
<p></p>
<p>1 &#8211; Crie um projeto do tipo <b>ASP.NET Web Application</b>.</p>
<p>2 &#8211; Crie uma classe que será o <b>controle TextBox</b> personalizado. Eu usei o nome &#8220;ControleTextBox&#8221;.</p>
<p>O código dessa classe em C#<br />
</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p154code16'); return false;">View Code</a> CSHARP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15416"><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
</pre></td><td class="code" id="p154code16"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.UI.WebControls</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Web.UI</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #008080; font-style: italic;">// Isso serve para adicionar o arquivo .js no controle. </span>
<span style="color: #008080; font-style: italic;">// Para usar isso, deve mudar o valor da propriedade &quot;Build Action&quot; para &quot;Embedded Resource&quot; do arquivo.</span>
<span style="color: #008080; font-style: italic;">// E o nome é: Nome do projeto . nome do arquivo . extensão do arquivo</span>
<span style="color: #008000;">&#91;</span>assembly<span style="color: #008000;">:</span> WebResource<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;CSharp_Controle_TextBox.ControleTextBox.js&quot;</span>, <span style="color: #666666;">&quot;application/x-javascript&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> CSharp_Controle_TextBox
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> ControleTextBox <span style="color: #008000;">:</span> TextBox
    <span style="color: #008000;">&#123;</span>
&nbsp;
        <span style="color: #008080; font-style: italic;">//O Enum cria uma lista de opções</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">enum</span> EnumTipo <span style="color: #008000;">&#123;</span> 
            Nomal, 
            SoNumero, 
            CPF 
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">public</span> EnumTipo Tipo
        <span style="color: #008000;">&#123;</span>
            get<span style="color: #008000;">;</span>
            set<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">protected</span> <span style="color: #0600FF; font-weight: bold;">override</span> <span style="color: #6666cc; font-weight: bold;">void</span> OnPreRender<span style="color: #008000;">&#40;</span><span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">EventArgs</span> e<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">OnPreRender</span><span style="color: #008000;">&#40;</span>e<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #008080; font-style: italic;">// Chama o arquivo .js para a pagina.</span>
            Page<span style="color: #008000;">.</span><span style="color: #0000FF;">ClientScript</span><span style="color: #008000;">.</span><span style="color: #0000FF;">RegisterClientScriptResource</span><span style="color: #008000;">&#40;</span>GetType<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>, <span style="color: #666666;">&quot;CSharp_Controle_TextBox.ControleTextBox.js&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #0600FF; font-weight: bold;">switch</span><span style="color: #008000;">&#40;</span>Tipo<span style="color: #008000;">&#41;</span> 
            <span style="color: #008000;">&#123;</span>
                <span style="color: #0600FF; font-weight: bold;">case</span> EnumTipo<span style="color: #008000;">.</span><span style="color: #0000FF;">SoNumero</span><span style="color: #008000;">:</span>
                    <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Attributes</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;onkeydown&quot;</span>, <span style="color: #666666;">&quot;Formata_SoNumero(this, event);&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Attributes</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;onkeyup&quot;</span>, <span style="color: #666666;">&quot;Formata_SoNumero(this, event);&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">break</span><span style="color: #008000;">;</span>
                <span style="color: #0600FF; font-weight: bold;">case</span> EnumTipo<span style="color: #008000;">.</span><span style="color: #0000FF;">CPF</span><span style="color: #008000;">:</span>
                    <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Attributes</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;onkeydown&quot;</span>, <span style="color: #666666;">&quot;Formata_CPF(this, event);&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Attributes</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;onkeyup&quot;</span>, <span style="color: #666666;">&quot;Formata_CPF(this, event);&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">MaxLength</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">14</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">base</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Width</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">90</span><span style="color: #008000;">;</span>
                    <span style="color: #0600FF; font-weight: bold;">break</span><span style="color: #008000;">;</span>
            <span style="color: #008000;">&#125;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>&nbsp;<br />
A mesma classe em VB.NET<br />
</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p154code17'); return false;">View Code</a> VB</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15417"><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
</pre></td><td class="code" id="p154code17"><pre class="vb" style="font-family:monospace;"><span style="color: #008000;">'Isso serve para adicionar o arquivo .js no controle. Para usar isso, deve mudar o valor da propriedade &quot;Build Action&quot; para &quot;Embedded Resource&quot; do arquivo.
</span>&lt;Assembly: WebResource(<span style="color: #800000;">&quot;VB.Net_Controle_TextBox.ControleTextBox.js&quot;</span>, <span style="color: #800000;">&quot;application/x-javascript&quot;</span>)&gt; 
&nbsp;
<span style="color: #000080;">Public</span> Class ControleTextBox
    Inherits TextBox
&nbsp;
    <span style="color: #000080;">Private</span> _Tipo <span style="color: #000080;">As</span> EnumTipo = EnumTipo.Nomal
&nbsp;
    <span style="color: #008000;">'O Enum cria uma lista de opções
</span>    <span style="color: #000080;">Public</span> <span style="color: #000080;">Enum</span> EnumTipo
        Nomal
        SoNumero
        CPF
    <span style="color: #000080;">End</span> <span style="color: #000080;">Enum</span>
&nbsp;
    <span style="color: #000080;">Public</span> <span style="color: #000080;">Property</span> Tipo() <span style="color: #000080;">As</span> EnumTipo
        <span style="color: #000080;">Get</span>
            Return _Tipo
        <span style="color: #000080;">End</span> <span style="color: #000080;">Get</span>
        <span style="color: #000080;">Set</span>(<span style="color: #000080;">ByVal</span> value <span style="color: #000080;">As</span> EnumTipo)
            _Tipo = value
        <span style="color: #000080;">End</span> <span style="color: #000080;">Set</span>
    <span style="color: #000080;">End</span> <span style="color: #000080;">Property</span>
&nbsp;
    <span style="color: #000080;">Public</span> Overrides <span style="color: #000080;">Property</span> Text() <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>
        <span style="color: #000080;">Get</span>
            Return MyBase.Text
        <span style="color: #000080;">End</span> <span style="color: #000080;">Get</span>
        <span style="color: #000080;">Set</span>(<span style="color: #000080;">ByVal</span> value <span style="color: #000080;">As</span> <span style="color: #000080;">String</span>)
            <span style="color: #008000;">'Ao passar um valor pro TextBox, será automaticamente formatado.
</span>            <span style="color: #000080;">Select</span> <span style="color: #000080;">Case</span> Tipo
                <span style="color: #000080;">Case</span> EnumTipo.CPF
                    MyBase.Text = Regex.Replace(<span style="color: #000080;">String</span>.Format(<span style="color: #800000;">&quot;{0,-11}&quot;</span>, value), <span style="color: #800000;">&quot;^(\d{3})(\d{3})(\d{3})(\d{2})$&quot;</span>, <span style="color: #800000;">&quot;$1.$2.$3-$4&quot;</span>)
                <span style="color: #000080;">Case</span> <span style="color: #000080;">Else</span>
                    MyBase.Text = value
            <span style="color: #000080;">End</span> <span style="color: #000080;">Select</span>
        <span style="color: #000080;">End</span> <span style="color: #000080;">Set</span>
    <span style="color: #000080;">End</span> <span style="color: #000080;">Property</span>
&nbsp;
    Protected Overrides <span style="color: #000080;">Sub</span> OnPreRender(<span style="color: #000080;">ByVal</span> e <span style="color: #000080;">As</span> System.EventArgs)
        MyBase.OnPreRender(e)
&nbsp;
        <span style="color: #008000;">'Chama o arquivo .js para a pagina.
</span>        Page.ClientScript.RegisterClientScriptResource(GetType(ControleTextBox), <span style="color: #800000;">&quot;VB.Net_Controle_TextBox.ControleTextBox.js&quot;</span>)
&nbsp;
        <span style="color: #000080;">Select</span> <span style="color: #000080;">Case</span> _Tipo
            <span style="color: #000080;">Case</span> EnumTipo.SoNumero
                Me.Attributes.Add(<span style="color: #800000;">&quot;onkeydown&quot;</span>, <span style="color: #800000;">&quot;Formata_SoNumero(this, event);&quot;</span>)
                Me.Attributes.Add(<span style="color: #800000;">&quot;onkeyup&quot;</span>, <span style="color: #800000;">&quot;Formata_SoNumero(this, event);&quot;</span>)
&nbsp;
            <span style="color: #000080;">Case</span> EnumTipo.CPF
                Me.Attributes.Add(<span style="color: #800000;">&quot;onkeydown&quot;</span>, <span style="color: #800000;">&quot;Formata_CPF(this, event);&quot;</span>)
                Me.Attributes.Add(<span style="color: #800000;">&quot;onkeyup&quot;</span>, <span style="color: #800000;">&quot;Formata_CPF(this, event);&quot;</span>)
                Me.MaxLength = 14
                Me.Width = 90
&nbsp;
        <span style="color: #000080;">End</span> <span style="color: #000080;">Select</span>
    <span style="color: #000080;">End</span> <span style="color: #000080;">Sub</span>
&nbsp;
<span style="color: #000080;">End</span> Class</pre></td></tr></table></div>

<p>&nbsp;<br />
3 &#8211; Adicione um arquivo Javascript, com o nome ControleTextBox.js.</p>
<p></p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p154code18'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p15418"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p154code18"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> Formata_SoNumero<span style="color: #009900;">&#40;</span>th<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    th.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> th.<span style="color: #660066;">value</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[^\d]/gi</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> Formata_CPF<span style="color: #009900;">&#40;</span>th<span style="color: #339933;">,</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    th.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> th.<span style="color: #660066;">value</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/[^\d{1}]$/gi</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">event</span> <span style="color: #339933;">?</span> e.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">:</span> e.<span style="color: #660066;">which</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">8</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>th.<span style="color: #660066;">value</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">3</span><span style="color: #009900;">&#41;</span> th.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> th.<span style="color: #660066;">value</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'.'</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>th.<span style="color: #660066;">value</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">7</span><span style="color: #009900;">&#41;</span> th.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> th.<span style="color: #660066;">value</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'.'</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>th.<span style="color: #660066;">value</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">11</span><span style="color: #009900;">&#41;</span> th.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> th.<span style="color: #660066;">value</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'-'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p></p>
<p>E nas propriedades desse arquivo, mude o valor do &#8220;Build Action&#8221; para &#8220;Embedded Resource&#8221;</p>
<p>
<img src="http://ycaro.net/wp-content/uploads/2010/05/Image06.jpg" alt="" title="Build Action" width="287" height="159" class="alignnone size-full wp-image-162" /></p>
<p>4 &#8211; De um &#8220;Build&#8221; no projeto do controle para criar a dll e onde for usar o controle é só adicionar a dll como referência.</p>
<p>5 &#8211; Se o controle não aparecer no <b>Toolbox</b> é só clicar com botão direita em uma parte livre da toolbox, ir em <b>Choose Items&#8230;</b></p>
<p>Na janela &#8220;<b>Choose Toolbox Items</b>&#8220;, clique em &#8220;<b>Browse</b>&#8221; e selecione a dll e depois clique em OK. </p>
<p>Depois de ter feito isso, é só arrastar o controle para a tela, ir no menu <b>Properties</b> do controle e mudar o <b>Tipo</b>.<br />
<br />
<img src="http://ycaro.net/wp-content/uploads/2010/05/Image05_red.jpg" alt="" title="Propriedade TIPO nas Properties do controle." /></p>
<p><a href="http://code.google.com/p/yccodigo/source/browse/DotNet_Controle_TextBox/" target="_blank">Projeto de exemplo no Google Code</a>.</p>
<p><a href="http://sites.google.com/site/yccodigo/home/DotNet_Controle_TextBox.rar" target="_blank" border="0"><br />
<img src="/img/img_download.png" style="border: 0px;" /><br />
</a>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2010%2F05%2Fdot-net-criando-um-controle-textbox%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2010%2F05%2Fdot-net-criando-um-controle-textbox%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=154&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2010/05/dot-net-criando-um-controle-textbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pesquisa: Qual a linguagem de programação você mais usa ?</title>
		<link>http://ycaro.net/2010/05/qual-a-linguagem-de-programacao-voce-mais-usa/</link>
		<comments>http://ycaro.net/2010/05/qual-a-linguagem-de-programacao-voce-mais-usa/#comments</comments>
		<pubDate>Mon, 17 May 2010 00:16:29 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Pesquisa]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=143</guid>
		<description><![CDATA[Carregando&#8230; Confira as respostas Respostas.]]></description>
			<content:encoded><![CDATA[<p><iframe src="https://spreadsheets0.google.com/embeddedform?formkey=dG1GR1dOQ3ZYcExPeERVUTVjMFhXdFE6MQ" width="640" height="600" frameborder="0" marginheight="0" marginwidth="0">Carregando&#8230;</iframe><br />
Confira as respostas <a target="_blank" href="https://spreadsheets0.google.com/viewanalytics?formkey=dG1GR1dOQ3ZYcExPeERVUTVjMFhXdFE6MQ" >Respostas</a>.
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2010%2F05%2Fqual-a-linguagem-de-programacao-voce-mais-usa%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2010%2F05%2Fqual-a-linguagem-de-programacao-voce-mais-usa%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=143&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2010/05/qual-a-linguagem-de-programacao-voce-mais-usa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vídeo: Google Chrome Speed Tests</title>
		<link>http://ycaro.net/2010/05/video-google-chrome-speed-tests/</link>
		<comments>http://ycaro.net/2010/05/video-google-chrome-speed-tests/#comments</comments>
		<pubDate>Thu, 06 May 2010 02:19:13 +0000</pubDate>
		<dc:creator>Ycaro Afonso</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Vídeos]]></category>

		<guid isPermaLink="false">http://ycaro.net/?p=139</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/nCgQDjiotG0&#038;hl=pt_BR&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/nCgQDjiotG0&#038;hl=pt_BR&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fycaro.net%2F2010%2F05%2Fvideo-google-chrome-speed-tests%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fycaro.net%2F2010%2F05%2Fvideo-google-chrome-speed-tests%2F&amp;style=compact" height="61" width="50" /><br />
			</a>
		</div>
<img src="http://ycaro.net/?ak_action=api_record_view&id=139&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://ycaro.net/2010/05/video-google-chrome-speed-tests/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

