<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Daniel Lourenço&#039;s Blog</title>
	<atom:link href="http://dlourenco.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dlourenco.wordpress.com</link>
	<description>&#34;Se funciona, então !tá certo&#34;</description>
	<lastBuildDate>Sun, 16 Aug 2009 17:31:53 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='dlourenco.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Daniel Lourenço&#039;s Blog</title>
		<link>http://dlourenco.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://dlourenco.wordpress.com/osd.xml" title="Daniel Lourenço&#039;s Blog" />
	<atom:link rel='hub' href='http://dlourenco.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Bastante esforço</title>
		<link>http://dlourenco.wordpress.com/2009/08/16/bastante-esforco/</link>
		<comments>http://dlourenco.wordpress.com/2009/08/16/bastante-esforco/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 17:31:53 +0000</pubDate>
		<dc:creator>dlourenco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dlourenco.wordpress.com/?p=14</guid>
		<description><![CDATA[Esse post é basicamente para parabenizar a empresa e as pessoas envolvidas(que trabalharam e se esforçaram bastante no final, para colocar o site no ar no tempo) em um projeto bem legal, que foi a criação da comunidade Acesse, para deficientes e atletas paraolímpicos brasileiros. Podem conferir a matéria aqui, que saiu no globoesporte. Bem, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dlourenco.wordpress.com&amp;blog=8792337&amp;post=14&amp;subd=dlourenco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Esse post é basicamente para parabenizar a <a title="qx3" href="http://qx3.com.br">empresa</a> e as pessoas envolvidas(que trabalharam e se esforçaram bastante no final, para colocar o site no ar no tempo) em um projeto bem legal, que foi a criação da comunidade <a title="Acesse" href="http://acesse.org.br/">Acesse</a>, para deficientes e atletas paraolímpicos brasileiros.</p>
<p>Podem conferir a matéria <a href="http://globoesporte.globo.com/Esportes/Noticias/Mais_Esportes/0,,MUL1265616-16317,00-PARAOLIMPICOS+GANHAM+COMUNIDADE+VIRTUAL+ADAPTADA+AS+SUAS+NECESSIDADES.html" target="_blank">aqui</a>, que saiu no globoesporte.</p>
<p>Bem, por equanto é isso !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dlourenco.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dlourenco.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dlourenco.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dlourenco.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dlourenco.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dlourenco.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dlourenco.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dlourenco.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dlourenco.wordpress.com&amp;blog=8792337&amp;post=14&amp;subd=dlourenco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dlourenco.wordpress.com/2009/08/16/bastante-esforco/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8db8d6bff4ee30cae580abe61a41482e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dlourenco</media:title>
		</media:content>
	</item>
		<item>
		<title>Algumas coisas ..</title>
		<link>http://dlourenco.wordpress.com/2009/08/04/algumas-coisas/</link>
		<comments>http://dlourenco.wordpress.com/2009/08/04/algumas-coisas/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 01:52:06 +0000</pubDate>
		<dc:creator>dlourenco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://dlourenco.wordpress.com/?p=10</guid>
		<description><![CDATA[Engraçado, eu achando que a parte do projeto que eu estava fazendo tinha ficado pronta .. Era fazer upload de arquivos usando o controle FileUpload .. Até ai nada fora do normal, né ? Até que eu faço upload de um arquivo C#_algumacoisa.pdf e na hora que eu vou abrir o arquivo pelo site, o [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dlourenco.wordpress.com&amp;blog=8792337&amp;post=10&amp;subd=dlourenco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Engraçado, eu achando que a parte do projeto que eu estava fazendo tinha ficado pronta .. Era fazer upload de arquivos usando o controle FileUpload .. Até ai nada fora do normal, né ? Até que eu faço upload de um arquivo C#_algumacoisa.pdf e na hora que eu vou abrir o arquivo pelo site, o nome do arquivo era cortado na tralha(#) ! Acho que em todos os caracteres especiais .. Até que me deram a dica de procurar algo como &#8220;html encoder/decoder + asp.net, C#&#8221;. Depois de resolvido o problema com uma função a parte, surgiu outro problema .. Agora só abria quando era upload de um arquivo, mas se eu quisesse colocar um link no lugar de um arquivo ? (Sim, você podia escolher entre um link ou um arquivo, como se fosse uma matéria que tinha um arquivo ou um link para continuar lendo a matéria) O link não abria, ele pegava um caminho localhost/&#8230;&#8230;&#8230;&#8230; e por ai vai .. Ai não mudou muita coisa na função, só uma verificação se o caminho tinha http na frente <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Ficou mais ou menos assim:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">public string TratarLink(string link)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">if (link.StartsWith(&#8220;http&#8221;))</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">return link;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">else</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">UTF8Encoding utf8 = new UTF8Encoding();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">byte[] encodedBytes = utf8.GetBytes(link);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">StringBuilder builder = new StringBuilder();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">for (int index = 0; index &lt; encodedBytes.Length; index++)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">{</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">builder.AppendFormat(&#8220;%{0}&#8221;, Convert.ToString(encodedBytes[index], 16));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">return builder.ToString();</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">}</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:88px;width:1px;height:1px;">}</div>
<pre style="font:normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">        public string CheckLink(string link)
        {
            if (link.StartsWith("http"))
                return link;
            else
            {
                UTF8Encoding utf8 = new UTF8Encoding();
                byte[] encodedBytes = utf8.GetBytes(link);
                StringBuilder builder = new StringBuilder();
                for (int index = 0; index &lt; encodedBytes.Length; index++)
                {
                    builder.AppendFormat("%{0}", Convert.ToString(encodedBytes[index], 16));
                }
                return builder.ToString();
            }
        }</pre>
<p>Se começar com http, que é um link pra uma página, ele retorna o link somente. Senão, ele percorre caractere por caractere do link e codifica os caracteres pra não ter erro com caracteres especiais tipo &amp;!@*!# !!!</p>
<p>Apesar de ter voltado pro projeto que eu tava antes mas, a vida não é sempre como a gente quer !</p>
<p>Fui !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dlourenco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dlourenco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dlourenco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dlourenco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dlourenco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dlourenco.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dlourenco.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dlourenco.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dlourenco.wordpress.com&amp;blog=8792337&amp;post=10&amp;subd=dlourenco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dlourenco.wordpress.com/2009/08/04/algumas-coisas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8db8d6bff4ee30cae580abe61a41482e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dlourenco</media:title>
		</media:content>
	</item>
		<item>
		<title>Meu primeiro post</title>
		<link>http://dlourenco.wordpress.com/2009/07/30/meu-primeiro-post/</link>
		<comments>http://dlourenco.wordpress.com/2009/07/30/meu-primeiro-post/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 01:48:08 +0000</pubDate>
		<dc:creator>dlourenco</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[começando blog]]></category>

		<guid isPermaLink="false">http://dlourenco.wordpress.com/?p=3</guid>
		<description><![CDATA[Bem, começo aqui pela primeira vez um blog. Decidi criar pois um cara muito chato gente boa deu a idéia e algumas explicações então resolvi tentar. Espero ter paciência para atualizar às vezes e ter novos assuntos interessantes. Claro que meu português não é &#8220;nova ortografia&#8221;. Abraços !<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dlourenco.wordpress.com&amp;blog=8792337&amp;post=3&amp;subd=dlourenco&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bem, começo aqui pela primeira vez um blog. Decidi criar pois um cara muito <span style="text-decoration:line-through;">chato</span> gente boa deu a idéia e algumas explicações então resolvi tentar.</p>
<p>Espero ter paciência para atualizar às vezes e ter novos assuntos interessantes. Claro que meu português não é &#8220;nova ortografia&#8221;.</p>
<p>Abraços !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/dlourenco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/dlourenco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/dlourenco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/dlourenco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/dlourenco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/dlourenco.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/dlourenco.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/dlourenco.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=dlourenco.wordpress.com&amp;blog=8792337&amp;post=3&amp;subd=dlourenco&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://dlourenco.wordpress.com/2009/07/30/meu-primeiro-post/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8db8d6bff4ee30cae580abe61a41482e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">dlourenco</media:title>
		</media:content>
	</item>
	</channel>
</rss>
