<?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/"
	>

<channel>
	<title>Claudio's personal notes</title>
	<atom:link href="http://www.claudioimai.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.claudioimai.net/blog</link>
	<description>Personal tips I gathered on the net for my jobs.</description>
	<pubDate>Fri, 29 Jan 2010 03:41:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows 7: Finalmente vou trocar meu sistema!</title>
		<link>http://www.claudioimai.net/blog/2010/01/windows-7-finalmente-vou-trocar-meu-sistema/</link>
		<comments>http://www.claudioimai.net/blog/2010/01/windows-7-finalmente-vou-trocar-meu-sistema/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 03:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=111</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Todos que me conhecem sabem disso: eu sou totalmente averso a instalar o Windows Vista em meu computador de trabalho, devido a vários problemas, sendo o maior deles a falta de responsividade do sistema.<br />
Entretanto, após algumas semanas usando o Windows 7 em uma máquina de testes, acredito que é hora de efetuar o upgrade aqui <img src='http://www.claudioimai.net/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>(para quem quer saber por que não usar Linux: <a href="http://www.topstyle4.com/">Topstyle</a> passou a ser atualizado após vários anos.)</p>
<p>Alguém me acompanha?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2010/01/windows-7-finalmente-vou-trocar-meu-sistema/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Financial help for burglars: indignation</title>
		<link>http://www.claudioimai.net/blog/2010/01/financial-help-for-burglars-indignation/</link>
		<comments>http://www.claudioimai.net/blog/2010/01/financial-help-for-burglars-indignation/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:03:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Terceiro mundo]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=108</guid>
		<description><![CDATA[I received an email from a friend two days ago, and for my surprise it wasn&#8217;t one of those funny or simple urban legends we usually throw away without a second thought.
It was a link for the &#8220;INSS&#8221;, Brazilian&#8217;s institute of Social Health and retirement funds, where they state about a financial help for families [...]]]></description>
			<content:encoded><![CDATA[<p>I received an email from a friend two days ago, and for my surprise it wasn&#8217;t one of those funny or simple urban legends we usually throw away without a second thought.</p>
<p>It was a link for the &#8220;INSS&#8221;, Brazilian&#8217;s institute of Social Health and retirement funds, where they state about a financial help for families of imprisoned people.</p>
<p>http://www.previdenciasocial.gov.br/conteudoDinamico.php?id=22</p>
<p>Yes, that&#8217;s correct: payment for families of burglars, killers or any other social threats while they are in prison!!<br />
The more I think about it, the more I feel indignated about this. Even living in another country, I have to declare my taxes in Brazil, since I have some customers there, and thus pay taxes there. This money is partially used to HELP these people!!!</p>
<p>This is giving me headaches since I first heard about it. And it keeps me wondering if this kind of abuse happens in another country as well? I think not.</p>
<p>What kind of people is that, that can hear about an abuse like that and do nothing to change?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2010/01/financial-help-for-burglars-indignation/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Indignação</title>
		<link>http://www.claudioimai.net/blog/2010/01/indignacao/</link>
		<comments>http://www.claudioimai.net/blog/2010/01/indignacao/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 17:47:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Terceiro mundo]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=106</guid>
		<description><![CDATA[Esta semana recebi um email sobre uma coisa que eu achei que nunca existiria, e que não deveria nem passar pela cabeça de um cidadão honesto. Antes de começar, o link oficial está abaixo:
http://www.previdenciasocial.gov.br/conteudoDinamico.php?id=22
Se você acessou, é isso mesmo: O INSS oferece um &#8220;auxílio-reclusão&#8221;, para ajudar aos &#8220;pobres&#8221; delinquentes e marginais que eventualmente tenham sido [...]]]></description>
			<content:encoded><![CDATA[<p>Esta semana recebi um email sobre uma coisa que eu achei que nunca existiria, e que não deveria nem passar pela cabeça de um cidadão honesto. Antes de começar, o link oficial está abaixo:</p>
<p>http://www.previdenciasocial.gov.br/conteudoDinamico.php?id=22</p>
<p>Se você acessou, é isso mesmo: O INSS oferece um &#8220;auxílio-reclusão&#8221;, para ajudar aos &#8220;pobres&#8221; delinquentes e marginais que eventualmente tenham sido presos por algum motivo.</p>
<p>OU SEJA: a sociedade AJUDA  aos presos para que suas famílias não fiquem sem suporte.</p>
<p><strong>Eu pergunto:</strong> e as pessoas que foram prejudicadas pelo preso? As famílias daqueles que eventualmente não podem mais prover o sustento devido a alguma violência cometida pelo &#8220;pobre detento&#8221;?</p>
<p>Fazem dois dias que eu recebi esse email, e estou com essa lei absurda martelando em minha cabeça. Como é que alguém pode ter alento para trabalhar honestamente e lembrar que um ladrão / delinquente / assassino / o que for, vai preso e sua família pode receber um &#8220;auxílio-detento&#8221;?</p>
<p>Eu não moro no Brasil há alguns anos, mas já ouvi falar em várias bolsas para ajudar aqueles que não querem saber de nada, e que servem APENAS para atender aos apelos populistas do PT.<br />
Mas essa idéia de que um marginal tem direito a uma ajuda maior que o salário-mínimo que muitas pessoas honestas ganham para manter suas famílias é MUITO MAIS DO QUE MINHA PACIÊNCIA AGUENTA!<br />
Alguém aí poderia me informar quem foi o maldito legislador que inventou essa lei????</p>
<p>Aguardo seus comentários, por favor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2010/01/indignacao/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips of wisdom</title>
		<link>http://www.claudioimai.net/blog/2010/01/tips-of-wisdom/</link>
		<comments>http://www.claudioimai.net/blog/2010/01/tips-of-wisdom/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:45:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=104</guid>
		<description><![CDATA[I&#8217;ve learned that I like my teacher because she cries when we sings &#8220;Silent Night&#8221;.
Age 5
I&#8217;ve learned that our dog doesn&#8217;t want to eat my broccoli either.
Age 7
I&#8217;ve learned that when I wave to people in the country, they stop what they are doing and wave back.
Age 9
I&#8217;ve learned that just when I get my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve learned that I like my teacher because she cries when we sings &#8220;Silent Night&#8221;.<br />
Age 5</p>
<p>I&#8217;ve learned that our dog doesn&#8217;t want to eat my broccoli either.<br />
Age 7</p>
<p>I&#8217;ve learned that when I wave to people in the country, they stop what they are doing and wave back.<br />
Age 9</p>
<p>I&#8217;ve learned that just when I get my room the way I like it, Mom makes me clean it up again.<br />
Age 12</p>
<p>I&#8217;ve learned that if you want to cheer yourself up, you should try cheering someone else up.<br />
Age 14</p>
<p>I&#8217;ve learned that although it&#8217;s hard to admit it, I&#8217;m secretly glad my parents are strict with me.<br />
Age 15</p>
<p>I&#8217;ve learned that silent company is often more healing than words of advice.<br />
Age 24</p>
<p>I&#8217;ve learned that brushing my child&#8217;s hair is one of life&#8217;s great pleasures.<br />
Age 26</p>
<p>I&#8217;ve learned that wherever I go, the world&#8217;s worst drivers have followed me there.<br />
Age 29</p>
<p>I&#8217;ve learned that if someone says something unkind about me, I must live so that no one will believe it.<br />
Age 30</p>
<p>I&#8217;ve learned that there are people who love you dearly but just don&#8217;t know how to show it.<br />
Age 42</p>
<p>I&#8217;ve learned that you can make some one&#8217;s day by simply sending them a little note.<br />
Age 44</p>
<p>I&#8217;ve learned that the greater a person&#8217;s sense of guilt, the greater his or her need to cast blame on others.<br />
Age 46</p>
<p>I&#8217;ve learned that children and grandparents are natural allies.<br />
Age 47</p>
<p>I&#8217;ve learned that no matter what happens, or how bad it seems today, life does go on, and it will be better tomorrow.<br />
Age 48</p>
<p>I&#8217;ve learned that singing &#8220;Amazing Grace&#8221; can lift my spirits for hours.<br />
Age 49</p>
<p>I&#8217;ve learned that motel mattresses are better on the side away from the phone.<br />
Age 50</p>
<p>I&#8217;ve learned that you can tell a lot about a man by the way he handles these three things: a rainy day, lost luggage, and tangled Christmas tree lights.<br />
Age 51</p>
<p>I&#8217;ve learned that keeping a vegetable garden is worth a medicine cabinet full of pills.<br />
Age 52</p>
<p>I&#8217;ve learned that regardless of your relationship with your parents, you miss them terribly after they die.<br />
Age 53</p>
<p>I&#8217;ve learned that making a living is not the same thing as making a life.<br />
Age 58</p>
<p>I&#8217;ve learned that if you want to do something positive for your children, work to improve your marriage.<br />
Age 61</p>
<p>I&#8217;ve learned that life sometimes gives you a second chance.<br />
Age 62</p>
<p>I&#8217;ve learned that you shouldn&#8217;t go through life with a catchers mitt on both hands. You need to be able to throw something back.<br />
Age 64</p>
<p>I&#8217;ve learned that if you pursue happiness, it will elude you. But if you focus on your family, the needs of others, your work, meeting new people, and doing the very best you can, happiness will find you.<br />
Age 65</p>
<p>I&#8217;ve learned that whenever I decide something with kindness, I usually make the right decision.<br />
Age 66</p>
<p>I&#8217;ve learned that everyone can use a prayer.<br />
Age 72</p>
<p>I&#8217;ve learned that even when I have pains, I don&#8217;t have to be one.<br />
Age 82</p>
<p>I&#8217;ve learned that every day you should reach out and touch someone. People love that human touch-holding hands, a warm hug, or just a friendly pat on the back.<br />
Age 90</p>
<p>I&#8217;ve learned that I still have a lot to learn.<br />
Age 92</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2010/01/tips-of-wisdom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>módulo Pagseguro para osCommerce 3</title>
		<link>http://www.claudioimai.net/blog/2009/10/modulo-pagseguro-para-oscommerce-3/</link>
		<comments>http://www.claudioimai.net/blog/2009/10/modulo-pagseguro-para-oscommerce-3/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 02:41:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[osCommerce programming]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=101</guid>
		<description><![CDATA[Aproveitando que escrevi sobre um erro muito comum do módulo escrito por mim para a Pagseguro, resolvi colocar algumas considerações sobre o futuro desse módulo.
A loja osCommerce 3 está em forma de release candidate (RC5, se não me engano agora), o que faz algumas pessoas estarem tentando testá-la.
O módulo existente do Pagseguro não funcionará com [...]]]></description>
			<content:encoded><![CDATA[<p>Aproveitando que escrevi sobre um erro muito comum do módulo escrito por mim para a Pagseguro, resolvi colocar algumas considerações sobre o futuro desse módulo.</p>
<p>A loja osCommerce 3 está em forma de release candidate (RC5, se não me engano agora), o que faz algumas pessoas estarem tentando testá-la.<br />
O módulo existente do Pagseguro não funcionará com essa versão, pois as classes necessárias para isso foram modificadas, o que faz o módulo antigo simplesmente não se comunicar com os servidores da Pagseguro.<br />
<strong>Não há previsão nossa para desenvolvermos um modulo gratuitamente para o osCommerce.</strong> Caso alguma empresa se interesse em patrocinar o desenvolvimento / atualização do módulo, estamos abertos a propostas.</p>
<p>Além disso, sobre os módulos existentes:</p>
<p>O módulo desenvolvido pela empresa Visie modifica o core da loja, fazendo com que os métodos de cálculo de frete da loja sejam ignorados em favor do  cálculo de frete para Pagseguro (apenas Sedex e PAC). Toda loja que precisa de outras formas de frete (como transportadora, frete fixo, internacional, etc) não funcionam com esse módulo corretamente.</p>
<p>O módulo que está com minha assinatura e é distribuído hoje não tem suporte para a atualização automática do pedido, coisa que para algumas lojas é muito importante, como as lojas de venda de produtos digitais (scrapbooking / apostilas / livros / músicas / outros downloads). Esse suporte existe hoje em nossas lojas ecartgt e mais algumas outras lojas.<br />
(Infelizmente, uma empresa teve acesso a nosso módulo em uma loja de scrapbooking e passou a vender o módulo modificado para o ZenCart. Não temos nenhum vínculo com essa empresa e portanto não respondemos nenhum pedido de suporte para esse módulo)</p>
<p>Atualizarei este post no futuro com mais informações. Se você tiver outras perguntas, por favor coloque-as nos comentários.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2009/10/modulo-pagseguro-para-oscommerce-3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>pagseguro: &#8220;O campo ITEM_VALOR_0 deve ser numérico&#8221;</title>
		<link>http://www.claudioimai.net/blog/2009/10/pagseguro-o-campo-item_valor_0-deve-ser-numerico/</link>
		<comments>http://www.claudioimai.net/blog/2009/10/pagseguro-o-campo-item_valor_0-deve-ser-numerico/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 02:23:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[osCommerce programming]]></category>

		<category><![CDATA[erro valor0]]></category>

		<category><![CDATA[oscommerce]]></category>

		<category><![CDATA[pagseguro]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/2009/10/pagseguro-o-campo-item_valor_0-deve-ser-numerico/</guid>
		<description><![CDATA[Recebo dezenas de perguntas sobre isso, e não há uma solução de terceiros para esse erro, o que é MUITO estranho.
Esse erro ocorreo simplesmente porque o módulo foi projetado para funcionar com múltiplas moedas, enquanto o Pagseguro só funciona com uma (Reais por enquanto).
A solução é simples: acesse a configuração do MÖDULO e modifique o [...]]]></description>
			<content:encoded><![CDATA[<p>Recebo dezenas de perguntas sobre isso, e não há uma solução de terceiros para esse erro, o que é MUITO estranho.</p>
<p>Esse erro ocorreo simplesmente porque o módulo foi projetado para funcionar com múltiplas moedas, enquanto o Pagseguro só funciona com uma (Reais por enquanto).</p>
<p>A solução é simples: acesse a configuração do MÖDULO e modifique o campo &#8220;moeda usada no Brasil&#8221; para o código usado pelo real em sua loja. Pode ser qualquer código, desde que seja exatamente igual o que você já usa.</p>
<p>Com isso, o módulo vai funcionar corretamente de imediato.</p>
<p>Aproveite e veja meu site: www.ecartgt.com.br</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2009/10/pagseguro-o-campo-item_valor_0-deve-ser-numerico/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Antivírus (Avast4Home) novo serial</title>
		<link>http://www.claudioimai.net/blog/2009/10/antivirus-avast4home-novo-serial/</link>
		<comments>http://www.claudioimai.net/blog/2009/10/antivirus-avast4home-novo-serial/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 11:04:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=96</guid>
		<description><![CDATA[Para os usuários do Avast que têm preguiça de efetuar o registro no site do Avast, o serial abaixo foi registrado este mês (out/2009):
W2275589H1400A0911-WTXY9SBD
O procedimento é clicar com botão direito no ícone do Avast > &#8220;Sobre o Avast&#8221; > &#8220;Chave de licença&#8221; > cole o serial.
Clique em OK e já poderá atualizar o programa por [...]]]></description>
			<content:encoded><![CDATA[<p>Para os usuários do Avast que têm preguiça de efetuar o registro no site do Avast, o serial abaixo foi registrado este mês (out/2009):</p>
<p><strong>W2275589H1400A0911-WTXY9SBD</strong></p>
<p>O procedimento é clicar com botão direito no ícone do Avast > &#8220;Sobre o Avast&#8221; > &#8220;Chave de licença&#8221; > cole o serial.<br />
Clique em OK e já poderá atualizar o programa por mais algum tempo. <img src='http://www.claudioimai.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2009/10/antivirus-avast4home-novo-serial/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DIMENSÕES DE CADA UM</title>
		<link>http://www.claudioimai.net/blog/2009/10/dimensoes-de-cada-um/</link>
		<comments>http://www.claudioimai.net/blog/2009/10/dimensoes-de-cada-um/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:12:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[funny]]></category>

		<category><![CDATA[casais]]></category>

		<category><![CDATA[comédia]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/2009/10/dimensoes-de-cada-um/</guid>
		<description><![CDATA[Ontem, minha esposa e eu estávamos sentados na sala, falando das muitas coisas da vida.
Estávamos falando de viver ou morrer.
Eu lhe disse:
  - Nunca me deixe viver em estado vegetativo, dependendo de uma máquina   e líquidos. Se você me vir nesse estado, desliga tudo o que me mantém vivo, por favor !!!
 [...]]]></description>
			<content:encoded><![CDATA[<p>Ontem, minha esposa e eu estávamos sentados na sala, falando das muitas coisas da vida.<br />
Estávamos falando de viver ou morrer.<br />
Eu lhe disse:<br />
  - Nunca me deixe viver em estado vegetativo, dependendo de uma máquina   e líquidos. Se você me vir nesse estado, desliga tudo o que me mantém vivo, por favor !!!<br />
 Ela se levantou, desligou a televisão e jogou minha cerveja fora.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2009/10/dimensoes-de-cada-um/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Como abraçar um bebê</title>
		<link>http://www.claudioimai.net/blog/2009/08/como-abracar-um-bebe/</link>
		<comments>http://www.claudioimai.net/blog/2009/08/como-abracar-um-bebe/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 10:47:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=87</guid>
		<description><![CDATA[1. Primeiro, ah&#8230; encontre um bebê   
2. Segundo, tenha certeza que o objeto encontrado seja mesmo um bebê, utilize a técnica do faro.
3. A seguir amacie o bebê antes de começar o processo do abraço. 
4. &#8216;A técnica do deslize de patas&#8217;: Deslize as patas em volta do bebe e se prepare para [...]]]></description>
			<content:encoded><![CDATA[<p>1. Primeiro, ah&#8230; encontre um bebê  <img src='http://www.claudioimai.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<div id="attachment_88" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.claudioimai.net/blog/wp-content/uploads/2009/08/hug_001.jpg" alt="Encontre o bebê" title="hug_001" width="600" height="377" class="size-full wp-image-88" /><p class="wp-caption-text">Encontre o bebê</p></div></p>
<p>2. Segundo, tenha certeza que o objeto encontrado seja mesmo um bebê, utilize a técnica do faro.<br />
<div id="attachment_89" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.claudioimai.net/blog/wp-content/uploads/2009/08/hug_002.jpg" alt="tenha certeza que o objeto encontrado seja mesmo um bebê, utilize a técnica do faro." title="hug_002" width="600" height="377" class="size-full wp-image-89" /><p class="wp-caption-text">tenha certeza que o objeto encontrado seja mesmo um bebê, utilize a técnica do faro.</p></div></p>
<p>3. A seguir amacie o bebê antes de começar o processo do abraço.<br />
<div id="attachment_90" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.claudioimai.net/blog/wp-content/uploads/2009/08/hug_003.jpg" alt="amacie o bebê antes de começar o processo do abraço. " title="hug_003" width="600" height="375" class="size-full wp-image-90" /><p class="wp-caption-text">amacie o bebê antes de começar o processo do abraço. </p></div></p>
<p>4. &#8216;A técnica do deslize de patas&#8217;: Deslize as patas em volta do bebe e se prepare para o close.<br />
<div id="attachment_91" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.claudioimai.net/blog/wp-content/uploads/2009/08/hug_004.jpg" alt="Deslize as patas em volta do bebe e se prepare para o close." title="hug_004" width="600" height="376" class="size-full wp-image-91" /><p class="wp-caption-text">Deslize as patas em volta do bebe e se prepare para o close.</p></div></p>
<p>5.. Finalmente, pegue a câmera fotográfica, e execute a difícil arte de abraçar, sorrir e inclinar ao mesmo tempo, para conseguir a melhor foto!<br />
<div id="attachment_92" class="wp-caption aligncenter" style="width: 610px"><img src="http://www.claudioimai.net/blog/wp-content/uploads/2009/08/hug_005.jpg" alt="Finalmente, pegue a câmera fotográfica, e execute a difícil arte de abraçar, sorrir e inclinar ao mesmo tempo, para conseguir a melhor foto!" title="hug_005" width="600" height="376" class="size-full wp-image-92" /><p class="wp-caption-text">Finalmente, pegue a câmera fotográfica, e execute a difícil arte de abraçar, sorrir e inclinar ao mesmo tempo, para conseguir a melhor foto!</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2009/08/como-abracar-um-bebe/feed/</wfw:commentRss>
		</item>
		<item>
		<title>oscommerce SEO URLs x shared SSL</title>
		<link>http://www.claudioimai.net/blog/2009/08/oscommerce-seo-urls-x-shared-ssl/</link>
		<comments>http://www.claudioimai.net/blog/2009/08/oscommerce-seo-urls-x-shared-ssl/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 11:24:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[dual boot windows/Linux]]></category>

		<guid isPermaLink="false">http://www.claudioimai.net/blog/?p=79</guid>
		<description><![CDATA[Today I faced a weird problem with some stores using SEO URLs and also using shared SSL.
Background: shared SSLs are popular among hosting providers, where the users can use both http://www.mydomain/myfile.html AND https://ssl.myhosting.com/users/mydomain/myfile.html
This situation is quite useful for ecommerce sites, because you won&#8217;t have to purchase a SSL certificate (at least, not while you&#8217;re trying [...]]]></description>
			<content:encoded><![CDATA[<p>Today I faced a weird problem with some stores using SEO URLs and also using shared SSL.</p>
<p>Background: shared SSLs are popular among hosting providers, where the users can use both <em>http://www.mydomain/myfile.html</em> AND <em>https://ssl.myhosting.com/users/mydomain/myfile.html</em></p>
<p>This situation is quite useful for ecommerce sites, because you won&#8217;t have to purchase a SSL certificate (at least, not while you&#8217;re trying to setup your store) and still benefit from using encrypted transmission of data to/from your server.</p>
<p>osCommerce has the ability of jumping back and forth from both URL formats, e.g. in a moment you are in the home of the store, in http://www.mydomain.com/index.php and in the other, you click in my account and move to <em>https://sss.myhosting.com/users/mydomain/account.php</em>, all transparently to the user, besides the info in the address bar.</p>
<p>That&#8217;s good for users of the standard osCommerce script, but I&#8217;d say that many the stores use a contribution named SEO URLs, which rewrites the standard url of a product (example: product_info.php?product_id=XX) into a more readable format: my_products_title-p-XX.html), which helps a LOT in Search Engine Optimization (hence SEO URLs ;-)).</p>
<p>All the problem arises from two facts:</p>
<ul>
<li>SEO URLs relies upon using mod_rewrite in Apache servers, which need a statement in .htaccess like<br />
&#8220;rewritebase /mystore/&#8221; to work, along with some rewrite rules.</li>
<li>The RewriteBase statement is not conditional, i.e., it cannot be differently for SSL or nonssl addresses.</li>
</ul>
<p>It&#8217;s not a really big deal, since all rewritten urls *should*  be pointing to http addresses, and so any https addresses are not rewritten.</p>
<p>In other words: the links to products in your store are all pointing to http://www.mydomain.com/myproduct-p-xx.html and the a &#8220;rewrite base /&#8221; will suffice.</p>
<p>BUT, you cannot underestimate Murphy&#8217;s law. If a user sees <em>https://sss.myhosting.com/users/mydomain/account.php</em>, there&#8217;s a good chance that they can try to append the product&#8217;s URL in the address, just to check if they&#8217;re not being fouled into a phishing website. Something like: <em><em> </em></em></p>
<p><em>https://sss.myhosting.com/users/mydomain/my_products_title-p-XX.html.</em></p>
<p>As the .htaccess file is set by the standard configuration, the above URL will return a 404 error, and your visitor may think it&#8217;s not the same website. So, what can we do?</p>
<p>I modified my .htaccess to create 2 sets of rewrite rules, one for http and other for https accesses, like these:</p>
<pre>RewriteCond %{HTTP_HOST} ^ssl\.myhost\.com$ [NC]
RewriteRule ^(.*)-p-([0-9]+).html$ users/mydomain.com/product_info.php?products_id=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-c-([0-9_]+).html$ users/mydomain.com/index.php?cPath=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ users/mydomain.com/index.php?manufacturers_id=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ users/mydomain.com/popup_image.php?pID=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ users/mydomain.com/product_reviews.php?products_id=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ users/mydomain.com/product_reviews_info.php?products_id=$2&amp;%{QUERY_STRING} [L]

RewriteCond %{HTTP_HOST} ^www\.mydomain\.com$ [NC]
RewriteRule ^(.*)-p-([0-9]+).html$ product_info.php?products_id=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-c-([0-9_]+).html$ index.php?cPath=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&amp;%{QUERY_STRING}
RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&amp;%{QUERY_STRING} [L]</pre>
<p>
What are we doing here?<br />
Those RewriteCond statements will limit the scope of each rewriterule block, so that one will work for https and the other will be OK for http accesses. Pretty straightforward, huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.claudioimai.net/blog/2009/08/oscommerce-seo-urls-x-shared-ssl/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
