<?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>BASIC TRADING MULTIMEDIA &#187; regex</title>
	<atom:link href="http://www.basictrading.biz/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.basictrading.biz</link>
	<description>Information Technology and Design</description>
	<lastBuildDate>Fri, 30 Jul 2010 14:38:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>drupal 6, tagadelic cache clear</title>
		<link>http://www.basictrading.biz/2009/04/drupal-6-tagadelic-cache-clear/</link>
		<comments>http://www.basictrading.biz/2009/04/drupal-6-tagadelic-cache-clear/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 15:53:47 +0000</pubDate>
		<dc:creator>Matteo Papadopoulos</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[resolved]]></category>

		<guid isPermaLink="false">http://www.basictrading.biz/?p=186</guid>
		<description><![CDATA[I&#8217;ve got some problem with the tagadelic module in Drupal 6.x to create tag clouds. Even having removed the &#8220;cache&#8221; from the site setting, when a new post was published, the clouds didn&#8217;t change, never! At the end I&#8217;ve fount a little patch on the web and I&#8217;m trying here to explain it to new <a href="http://www.basictrading.biz/2009/04/drupal-6-tagadelic-cache-clear/">Read More</a>]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://drupal.org/sites/all/themes/bluebeach/logos/drupal.org.png" />I&#8217;ve got some problem with the tagadelic module in Drupal 6.x to create tag clouds. Even having removed the &#8220;cache&#8221; from the site setting, when a new post was published, the clouds didn&#8217;t change, never!</p>
<p>At the end I&#8217;ve fount a little patch on the web and I&#8217;m trying here to explain it to new users, not familiar with patch.</p>
<ol>
<li>go into the module directory &#8220;sites/all/modules/tagadelic&#8221; and open the file tagadelic.module with your favourite editor</li>
<li>goto line 215 (or around there) and change the line &#8220;
<pre>$cache = cache_get($cache_name);" to $cache = cache_get($cache_name, 'cache_block');&lt;br /&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;goto line 228 and do the same: change&lt;br /&gt;&lt;pre&gt;cache_set($cache_name, $tags); to &lt;br /&gt;cache_set($cache_name, $tags, 'cache_block', CACHE_TEMPORARY);</pre>
</li>
</ol>
<p>upload the file and the problem will magically disappear.</p>
<p>Original source thanks to: <a target="_blank" href="http://drupal.org/node/231030">http://drupal.org/node/231030</a></p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=41ca81a1-9407-84fb-9383-cef858483784" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.basictrading.biz/2009/04/drupal-6-tagadelic-cache-clear/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP convertire apostrofo in apice</title>
		<link>http://www.basictrading.biz/2008/11/php-convertire-apostrofo-in-apice/</link>
		<comments>http://www.basictrading.biz/2008/11/php-convertire-apostrofo-in-apice/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 12:57:12 +0000</pubDate>
		<dc:creator>Matteo Papadopoulos</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[resolved]]></category>

		<guid isPermaLink="false">http://www.basictrading.biz/?p=185</guid>
		<description><![CDATA[Copiando un testo da MS Word in una form capita a volte di imbattersi negli apostrofi di tipo &#8221; ’ &#8221; che difficilmente vengono convertiti correttamente in UTF-8. Questo capita (leggendo un po&#8217; di bug report di php) con alcune versioni di php. Brutale mna efficace al scelta di convertire tutti questi apostrofi con il <a href="http://www.basictrading.biz/2008/11/php-convertire-apostrofo-in-apice/">Read More</a>]]></description>
			<content:encoded><![CDATA[<p>Copiando un testo da MS Word in una form capita a volte di imbattersi negli apostrofi di tipo &#8221; ’ &#8221; che difficilmente vengono convertiti correttamente in UTF-8. Questo capita (leggendo un po&#8217; di bug report di php) con alcune versioni di php.</p>
<p>Brutale mna efficace al scelta di convertire tutti questi apostrofi con il singolo apice &#8216;</p>
<p>&nbsp; $patterns[0] = &#8216;/[\x82\x91\x92]/&#8217;;<br />&nbsp; $replacements[0] = &#8220;&#8216;&#8221;;<br />&nbsp; $txt = preg_replace($patterns, $replacements, &#8220;Governatore d’Italia&#8221;);</p>
<p>che renderà &#8220;Governatore d&#8217;Italia&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.basictrading.biz/2008/11/php-convertire-apostrofo-in-apice/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
