<?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>Don Tai (Canada) Blog &#187; Drupal</title>
	<atom:link href="http://dontai.com/wp/tag/drupal/feed/" rel="self" type="application/rss+xml" />
	<link>http://dontai.com/wp</link>
	<description>Have Lemons, Make Lemonade</description>
	<lastBuildDate>Mon, 21 May 2012 20:12:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Increasing Efficiency of Drupal 6&#8242;s Feed Aggregator</title>
		<link>http://dontai.com/wp/2009/03/13/increase-efficiency-drupal-feed-aggregator/</link>
		<comments>http://dontai.com/wp/2009/03/13/increase-efficiency-drupal-feed-aggregator/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 01:57:52 +0000</pubDate>
		<dc:creator>dontai</dc:creator>
				<category><![CDATA[China]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[aggregator]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[Pipes]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[strategy]]></category>
		<category><![CDATA[Yahoo]]></category>

		<guid isPermaLink="false">http://dontai.com/wp/?p=760</guid>
		<description><![CDATA[I really love Drupal 6&#8242;s feed aggregator. It has the ability to aggregate numerous RSS (Really Simple Sybndication) news or blog feeds, categorize them, and keep them current, all in the effort to save you the trouble of going to each news source and hunting for relevant news. All you have to do is chose [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_764" class="wp-caption alignright" style="width: 111px"><p class="wp-caption-text">Drupal 6's Feed Aggregator works well</p></div><img src="http://dontai.com/wp/wp-content/uploads/2009/03/drupallogo.jpg" alt="Drupal 6&#039;s Feed Aggregator works well" title="Drupal 6&#039;s Feed Aggregator works well" width="101" height="115" class="size-full wp-image-764" /><span class="drop">[</span>/caption]
<p><!-- the drop cap --><br />
<span style="margin-right:6px;margin-top:5px;float:left;color:white;background:khaki;border:1px solid darkkhaki;font-size:80px;line-height:60px;padding-top:2px;padding-right:5px;font-family:times;">I</span> really love Drupal 6&#8242;s <a href="http://drupal.org/node/289">feed aggregator</a>. It has the ability to aggregate numerous <a href="http://en.wikipedia.org/wiki/RSS_(file_format)">RSS</a> (Really Simple Sybndication) news or blog feeds, categorize them, and keep them current, all in the effort to save you the trouble of going to each news source and hunting for relevant news. All you have to do is chose a category, read the summary and click the link for the article you what you want.</p>
<p><font color="white">___</font>What the feed aggregator will not do is filter your feeds by keyword. As well, when the RSS feeds are displayed, they can have short descriptions or full article descriptions. These full article descriptions clutter your screen, which I did not want. All I wanted was a link, a short description, and no more. When you are looking at hundreds of articles, less is indeed more.</p>
<p><font color="white">___</font>My solution was to use <a href="http://pipes.yahoo.com">Yahoo Pipes</a>. My current Pipes help aggregate 40 blogs (mostly from China), 40 news feeds (world wide), as well as aggregate about 100 other blog sites fed from yet another Drupal site (mostly from Asia). Yes, you can daisy chain Drupal news aggregators! With Yahoo Pipes I was able to filter by keyword, as well as go down to the RSS variable level and truncate full article descriptions. I was also able to eliminate duplicate entries and sort by article date.</p>
<p><font color="white">___</font>The difficulty was that my <a href="http://en.wikipedia.org/wiki/Cron">cron</a> jobs were not completing and therefore not updating my feeds. I would get a <font size="2em" color="red">MySQL server has gone away</font> error, which means that my Yahoo Pipes were taking too long to complete. My Site5 host provider said that MySQL has a timeout of 15 seconds. One timeout will kill the cron job, leaving the other news feeds not updated. The Cron jobs were returning 1.2MB to 2.5MB error logs of not very helpful information. Web searches yielded very little on the MySQL error message, how to get my cron jobs to complete, and on increasing the efficiency of Yahoo Pipes.</p>
<p><font color="white">___</font>My original cron strategy was that I only needed to update my feeds every 3 hours, so I scheduled cron as such. What happens is that all the feeds need to be updated at once, the cron job gets overwhelmed, dies, and most of the feeds do not update.</p>
<p><font color="white">___</font>An alternative cron strategy proved to be the solution. I scheduled cron to run hourly, even though my feeds did not need to be updated no more than every 3 hours. A staggering pattern organically emerged. Those jobs that were easily completed were quickly done, and did not need to be updated for the next 2 cron jobs. Those jobs that took longer initially timed out. During the next cron job, because the easy feeds were already completed, there were far fewer feeds to run, so the cron jobs could concentrate on these stubborn few. In the end they were also completed.</p>
<p><font color="white">___</font>I used some other Yahoo Pipes strategies. I   broke up one larger Yahoo Pipe into two, though I think I will try merging them together later. These larger Pipes should be run hourly, even though they may only change every 3 hours. If run hourly they will return with fewer updates but more quickly and therefore will have less of a tendency to time out.</p>
<p><font color="white">___</font>Take a look at my feed aggregator at <a href="http://dontai.com">DonTai.com</a> and my <a href="http://pipes.yahoo.com/dontai">Yahoo Pipes</a> if you&#8217;re interested.</p>
<p><font color="white">___</font>I tried other alternate RSS solutions but they did not fulfill my requirements. <a href="www.google.com/reader">Google Reader</a> will aggregate RSS feeds but does not provide any filtering capability. <a href="http://feedrinse.com/">Feedrinse</a> will aggregate RSS feeds and filter, but there is no way to truncate full length RSS feeds. I could use a feed reader, but then would not be able to share my aggregated feeds with multiple people on the internet. A feed reader may be better for those who WANT the full article anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://dontai.com/wp/2009/03/13/increase-efficiency-drupal-feed-aggregator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Greenpeace UK: A Website Review</title>
		<link>http://dontai.com/wp/2009/02/04/greenpeace-uk-a-website-review/</link>
		<comments>http://dontai.com/wp/2009/02/04/greenpeace-uk-a-website-review/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 03:58:51 +0000</pubDate>
		<dc:creator>dontai</dc:creator>
				<category><![CDATA[Environment]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Greenpeace]]></category>
		<category><![CDATA[marketing]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://dontai.com/wp/?p=284</guid>
		<description><![CDATA[I have highlighted this site because this site really stands out. By capturing the essence of the organization, working as an effective marketing tool, as well having strong usability, this is one very effective and creative website. Green has to be the dominant colour for Greenpeace, for what other colour could they choose?. Grenpeace stands [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.greenpeace.org.uk/"><img src="http://dontai.com/wp/wp-content/uploads/2009/02/greenpeace.jpg" alt="Greenpeace UK" title="Greenpeace UK" width="500" height="333" class="alignleft size-full wp-image-286" /></a><br />
<!-- the drop cap --><br />
<span style="margin-right:6px;margin-top:5px;float:left;color:white;background:khaki;border:1px solid darkkhaki;font-size:80px;line-height:60px;padding-top:2px;padding-right:5px;font-family:times;"><span class="drop">I</span></span> have highlighted this site because this site really stands out. By capturing the essence of the organization, working as an effective marketing tool, as well having strong usability, this is one very effective and creative website.</p>
<p>
<p>Green <strong><font color=green>has</font></strong> to be the dominant colour for Greenpeace, for what other colour could they choose?. Grenpeace stands for the environment, after all, and without green you have environmental destruction. Their logo is written in thick green, hand printed, informal and playful. The top right header has a background colour of green, and most of their links are green. Green is the dominant colour on their vessel. How can you not be drawn to their vessel, replete with their trademark rainbow and dove. This ship glides peacefully through a narrow channel with a frame of lush green trees. It is positively idylic, and if we all joined the movement, the world would be a so much better place for our kids and ourselves.Their site and their cause really brings you in. Green IS Greenpeace.</p>
<p>
<p>In terms of content, displayed prominently not once but twice, is &#8220;Take action&#8221;. Sign up. Donate. The message is to be proactive and do something positive now. The very important current issue is front and centre, so you cannot miss it. The bright orange, which contasts with the green, works to attract the eye and lure you in. There is the lovely photo in the centre of the page that shows you the destruction that Greenpeace fights against. Your eye is drawn to the photo, which carries you down the road lined with trees that will take centuries to grow back. The accompanying text provides explanation. As a marketing tool the website works, and works well.</p>
<p>
<p>In terms of web usability, there is current news displayed in one box, very prominent and easy to find. There are places to search, and to login. Overall the site is simple, clear, very understandable, but effective. Colour contrast and brightness contrast are high, allowing for easy reading. Almost all text is mixed case, which allows you to quickly scan words. The site has pleasing colours and two photos, which provides a target for your eyes.</p>
<p>Greenpeace UK conveys the essence of their organization, is an excellent piece of marketing, and has great usability. In my view it functions as a top notch website.</p>
<p>Let&#8217;s join up!</p>
<p>Note: This site is run by a Drupal CMS. Just check their source code.</p>
]]></content:encoded>
			<wfw:commentRss>http://dontai.com/wp/2009/02/04/greenpeace-uk-a-website-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Converting Drupal 5.x Theme Foliage to 6.x</title>
		<link>http://dontai.com/wp/2009/01/28/converting-drupal-5x-theme-foliage-to-6x/</link>
		<comments>http://dontai.com/wp/2009/01/28/converting-drupal-5x-theme-foliage-to-6x/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 22:14:36 +0000</pubDate>
		<dc:creator>dontai</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[5.x]]></category>
		<category><![CDATA[6.x]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Foliage]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://dontai.wordpress.com/?p=183</guid>
		<description><![CDATA[I really like Web 2.0 and particularly Drupal and WordPress. There&#8217;s so much functionality gained so quickly, fantastic upgradeability, reliability, and a great support community. Recently I converted my friend David&#8217;s Drupal 5.1 theme Foliage to Drupal 6.9. It&#8217;s really a painless (after you&#8217;ve done it) 3 step process that I&#8217;d like to share. Here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><!-- the drop cap --><br />
<span style="margin-right:6px;margin-top:5px;float:left;color:white;background:khaki;border:1px solid darkkhaki;font-size:80px;line-height:60px;padding-top:2px;padding-right:5px;font-family:times;"><span class="drop">I</span></span> really like Web 2.0 and particularly Drupal and WordPress. There&#8217;s so much functionality gained so quickly, fantastic upgradeability, reliability, and a great support community. Recently I converted my friend David&#8217;s Drupal 5.1 theme Foliage to Drupal 6.9. It&#8217;s really a painless (after you&#8217;ve done it) 3 step process that I&#8217;d like to share. Here&#8217;s how I did it.</p>
<p><strong>References</strong>:<br />
The <a href="http://drupal.org/node/132442">original instructions</a> from Drupal.org<br />
Cutting to the important parts. Thanks <a href="http://wtanaka.com/drupal/convert-theme-6">Wesley Tanaka</a>, this post was very helpful.</p>
<p><strong>Files</strong>:<br />
Unchanged files: block.tpl.php, box.tpl.php, node.tpl.php, and all the rest of the theme<br />
Changed files: comment.tpl.php, page.tpl.php<br />
Added files: foliage.info</p>
<p><strong>Steps</strong>:<br />
<strong>Step 1</strong>: Create foliage.info, add the following 4 lines &#8220;as is&#8221;. Note that you must use &#8220;6.x&#8221;. It won&#8217;t work if you put &#8220;6.9&#8243;.</p>
<p>; $Id: Foliage-850.info, 2009/01/28  goba Exp $name = Foliage 850px<br />
description = Foliage 850px wide.<br />
core = 6.x<br />
engine = phptemplate</p>
<p><strong>Step 2</strong>: Change comment.tpl.php<br />
Change line 7 from:    &lt;div class=&#8221;content&#8221;&gt;&lt;?php print $content; ?&gt;&lt;/div&gt;<br />
to:<br />
&nbsp;	&lt;div class=&#8221;content&#8221;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		&lt;?php print $content ?&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		&lt;?php if ($signature): ?&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	&nbsp;&nbsp;&nbsp;		&lt;div class=&#8221;user-signature clear-block&#8221;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;				&lt;?php print $signature ?&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;			&lt;/div&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;		&lt;?php endif; ?&gt;<br />
&nbsp;	&lt;/div&gt;<br />
(Sorry the tabbing isn&#8217;t rendering well. The <a href="http://drupal.org/node/132442">code</a> is here.)</p>
<p><strong>Step 3</strong>: Change page.tpl.php</p>
<p>Line 38: &#8220;$sidebar_left&#8221; to &#8220;$left&#8221;<br />
Line 53: &#8220;$sidebar_right&#8221; to &#8220;$right&#8221;<br />
Line 62: &#8220;$footer_message&#8221; to &#8220;$footer&#8221;<br />
Line 2: &#8220;$language&#8221; to &#8220;$language-&gt;language&#8221;, do this twice</p>
<p>FTP the foliage theme file to your Drupal site&#8217;s theme folder, and select it. You&#8217;re done.</p>
<p>Also posted to the Drupal <a href="http://drupal.org/node/214178">Foliage</a> forum.</p>
]]></content:encoded>
			<wfw:commentRss>http://dontai.com/wp/2009/01/28/converting-drupal-5x-theme-foliage-to-6x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>First try with Drupal on Site5</title>
		<link>http://dontai.com/wp/2009/01/21/first-try-with-drupal-on-site5/</link>
		<comments>http://dontai.com/wp/2009/01/21/first-try-with-drupal-on-site5/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 16:39:32 +0000</pubDate>
		<dc:creator>dontai</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[$base_url]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[graphic]]></category>
		<category><![CDATA[initial]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[logon]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://dontai.wordpress.com/?p=83</guid>
		<description><![CDATA[So my plan is to eventually migrate my website DonTai.com from Doteasy to Site5. I&#8217;ll use Drupal on Site5. Originally I wanted to get Drupal running on Site5, and then change my domain registrar. This way I don&#8217;t get any downtime on my site, not that this matters. Interestingly, using Fantastico it was very easy [...]]]></description>
			<content:encoded><![CDATA[<p><!-- the drop cap --><br />
<span style="margin-right:6px;margin-top:5px;float:left;color:white;background:khaki;border:1px solid darkkhaki;font-size:80px;line-height:60px;padding-top:2px;padding-right:5px;font-family:times;"><span class="drop">S</span></span>o my plan is to eventually migrate my website DonTai.com from Doteasy to Site5. I&#8217;ll use Drupal on Site5. Originally I wanted to get Drupal running on Site5, and then change my domain registrar. This way I don&#8217;t get any downtime on my site, not that this matters.</p>
<p>Interestingly, using Fantastico it was very easy to create a Drupal web site in my root directory. Fine. Unknown to me is the fact that the Drupal site is configured to http://dontai.com, which still points to my original site on Doteasy. I therefore cannot get to the new Drupal site using my domain name.</p>
<div id="attachment_84" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-84" title="drupal1" src="http://dontai.files.wordpress.com/2009/01/drupal1.jpg?w=300" alt="drupal1" width="300" height="273" /><p class="wp-caption-text">text-based Drupal admin logon screen</p></div>
<p>So what to do? I get on the Site5 forum to find out how I can use my IP address to get to my site. No luck. I talk to Joslyn on LiveHelp at Site5 and she says http://ipaddress/~loginid. Ok, this gets me to a text based Drupal login screen. I try to login with my Drupal admin ID and password and I get a 404 file not found error.</p>
<div id="attachment_87" class="wp-caption alignleft" style="width: 509px"><img class="size-large wp-image-87" title="404original1" src="http://dontai.files.wordpress.com/2009/01/404original1.jpg?w=499" alt="original error 404 file not found screen when I tried to login" width="499" height="456" /><p class="wp-caption-text">original error 404 file not found screen when I tried to login</p></div>
<p>That&#8217;s not so great. I step through with Jocelyn, who says I should go back to Drupal and ask around on the forums, or put a trouble ticket into Site5 and a senior tech will look at it. So I open a trouble ticket as she suggested, and bid her a &#8220;Good Night&#8221;.</p>
<p>Hmmm. Today I get an email response from Site5 saying that I need to change my domain registrar first, or Drupal will not work. I get on the forums and search. Of course others have had this same problem.</p>
<div id="attachment_99" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-99" title="drupal22" src="http://dontai.files.wordpress.com/2009/01/drupal22.jpg?w=300" alt="Graphics based Drupal admin logon screen" width="300" height="289" /><p class="wp-caption-text">Graphics based Drupal admin logon screen</p></div>
<p>A possible solution, they say, is to go into your sites/default/settings.php and change your $base_url to the URL you want. I found mine was set to http://dontai.com. Fine, this makes sense. I copy this code line, comment out the original and change $base_url to http://ipaddress/~myID. Happily, I now get the graphics based Drupal admin screen. Unfortunately when I log on with my admin id and password I still get an error 404 file not found message.</p>
<div id="attachment_90" class="wp-caption alignleft" style="width: 310px"><img class="size-medium wp-image-90" title="404second" src="http://dontai.files.wordpress.com/2009/01/404second.jpg?w=300" alt="second error 404 file not found message" width="300" height="276" /><p class="wp-caption-text">second error 404 file not found message</p></div>
<p>I think I&#8217;ll start the process of moving my domain registrar. While this is happening, kill the Drupal install and FTP my original site to Site5 and get it working. Once I know the DNS is functioning well, then I&#8217;ll remove my index.htm file and reinstall Drupal, and hope that this will work.</p>
<p>I&#8217;ll still need to keep hunting on the web for answers.</p>
]]></content:encoded>
			<wfw:commentRss>http://dontai.com/wp/2009/01/21/first-try-with-drupal-on-site5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

