<?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>DiPot: Ice Tea tech &#187; netWire</title>
	<atom:link href="http://dipot.com/tag/netwire/feed/" rel="self" type="application/rss+xml" />
	<link>http://dipot.com</link>
	<description>The Optimization Point of View</description>
	<lastBuildDate>Fri, 02 Dec 2011 11:28:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress: External RSS Feeds Optimization with KB Advanced RSS</title>
		<link>http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/</link>
		<comments>http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 19:00:10 +0000</pubDate>
		<dc:creator>ageor</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips & How-to]]></category>
		<category><![CDATA[Advanced RSS]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[Digital Pot]]></category>
		<category><![CDATA[DiPot]]></category>
		<category><![CDATA[DiPot.com]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feeds]]></category>
		<category><![CDATA[FriendFeed]]></category>
		<category><![CDATA[Ice Tea tech]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[KB Advanced RSS]]></category>
		<category><![CDATA[MS]]></category>
		<category><![CDATA[netWire]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[RSS feeds]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Smart RSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Tab]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Vicki Kolovou]]></category>
		<category><![CDATA[Wesley]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dipot.com/?p=1224</guid>
		<description><![CDATA[<p>Apart from its own Ice Tea tech blog, Dipot.com also displays two external feeds relating to Optimization and Standards. I needed to optimize the post titles of these two feeds by getting rid of their long suffixes, both for better looks and for more content within the same space.</p>
<p>The feeds were served by the standard [...]]]></description>
			<content:encoded><![CDATA[<p>Apart from its own <a title="DiPot: Ice Tea tech blog" href="http://dipot.com" target="_blank">Ice Tea tech blog</a>, <a title="DiPot, the Digital Pot" href="http://dipot.com" target="_blank">Dipot.com</a> also displays two external feeds relating to Optimization and Standards. I needed to optimize the post titles of these two feeds by getting rid of their long suffixes, both for better looks and for more content within the same space.</p>
<p>The feeds were served by the standard RSS <a title="WordPress blogging CMS" href="http://wordpress.org/" target="_blank">WordPress</a> 2.7.1 widget, which is fine, except it does not support much customization. After some search, I found <a title="Advanced RSS WordPress Plugin" href="http://wordpress.org/extend/plugins/advanced-rss/" target="_blank">Advanced RSS 1.0.1 WordPress plugin</a> and <a title="KB Advanced RSS WordPress Plugin" href="http://wordpress.org/extend/plugins/kb-advanced-rss-widget/" target="_blank">KB Advanced RSS 2.1.3 WordPress plugin</a>. Smart RSS only works until WP 2.7.0 and I didn&#8217;t want to tweak with that. Advanced RSS  only works until WP 2.6.2 and requires PHP5, DOM and XSL extensions loaded on the server and I don&#8217;t want to depend on those if I don&#8217;t need to, so the choice was easy.</p>
<p>Installation of KB Advanced RSS worked flawlessly right from within wp-admin. Then, on my first attempt to configure it, I came across a problem which could very well had been a show stopper: for some reason, except for the feed&#8217;s URL and Title, the widget would not commit any of the other parameters to the &#8220;Options&#8221; table of the database. Troubleshooting this issue, I ended up reading all the users&#8217; comments on the plugin&#8217;s site. As usual, I was not alone; this is a common issue. Thankfully, <a title="Wesley of http://www.improvingtheweb.com" href="http://www.improvingtheweb.com" target="_blank">Wesley of  http://www.improvingtheweb.com</a> had already posted the <a title="solution to PHP4 not committing widget field changes in WordPress" href="http://adambrown.info/b/widgets/2008/01/28/released-today-kb-advanced-rss-21/#comment-3812" target="_blank">solution to PHP4 not committing widget field changes in WordPress</a>. The solution worked like a charm. And, as expected, when I later upgraded to PHP5 the problem wasn&#8217;t even there to begin with.</p>
<p>KB Advanced RSS is well thought-out, very straight forward with good documentation and examples. It supports all the features of the standard widget (including multiple instances) plus formatting and full support of all the feed&#8217;s fields to display or not (including the debugging tool to show which these fields are)! It further supports two modifiers to optionally manipulate the string before display, by taking out a number of characters from the start (ltrim) and/or trimming it to a specific length (trim).</p>
<p>Alas, what I actually needed was to take out a number of characters from the end of the string. Fortunately, as it turned out, KB Advanced RSS&#8217;s code is pretty straight-forward and extending it with my own modifier (rtrim) to do just that was only a matter of 3 lines of PHP code added to the version of the plugin that runs by my version of Wordpress; there&#8217;s one for versions up to 2.7 (pre-wp-2-7.php) and one for versions after that (post-wp-2-7.php). Here is the PHP code from the modified post-wp-2-7.php (my rtrim extension is in blue):</p>
<blockquote>
<pre>///////////////////////////////// CUSTOMIZATIONS /////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////
// If you want to write customizations, put them here. The variable to modify is $text. See the FAQ.
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////

<span style="color: #333399;">// right trimming
// cuts $rtrim characters from the right
// by ageor, April 9, 2009</span><span style="color: #333399;">
$rtrim = (is_numeric($rtrim) &amp;&amp; 0&lt;$rtrim) ? (int) $rtrim : null;
if (is_int($rtrim))
$text = substr( $text, 0, strlen($string)-$rtrim );</span>

// left trimming:
$ltrim = (is_numeric($ltrim) &amp;&amp; 0&lt;$ltrim) ? (int) $ltrim : null;
if (is_int($ltrim))
$text = substr( $text, $ltrim );

// length trimming (do after left trimming)
$trim = (is_numeric($trim) &amp;&amp; 0&lt;$trim) ? (int) $trim : null;
if (is_int($trim))
$text = substr( $text, 0, $trim );

return $text;</pre>
</blockquote>
<p>The way this is written, the string in question can undergo any mix of all three trimming types necessary.</p>
<p>All setting up and troubleshooting took place by adding one instance of the widget and configuring it, then a second instance. When all was done and I had what I wanted, I removed the original two instances of the original RSS widget, positioned the new ones on top and saved, certain I was done. However, as the resulting &#8220;Widgets&#8221; Wordpress admin page suggested after saving, something was very wrorg. It displayed the message &#8216;You are using 3 widgets in the &#8220;Left Sidebar&#8221; sidebar&#8217; but not the widgets themselves, nor the &#8220;Save Changes&#8221; button. Sure enough, I ended up with an unworkable site, as these where the first 2 widgets on the left column of Ice Tea tech and the page that appeared ended with the title banner. Disaster!</p>
<p>To cut a long story short, plenty of &#8220;trial and error&#8221;s later and with the help of <a title="Vicki Kolovou of netWire on FriendFeed" href="http://friendfeed.com/talos" target="_blank">Vicki</a> of <a title="neTWire: Thinking Wide" href="http://netwire.gr" target="_blank">neTWire</a>, here is my conclusion: For KB Advanced RSS widget to work with WP 2.7.1 and the <a title="Atahualpa fluid configurable WordPress Theme" href="http://wordpress.org/extend/themes/atahualpa" target="_blank">Atahualpa WordPress theme</a>, the WordPress RSS widget needs to be activated and positioned above it. That&#8217;s how I temporarily solved my problem, until (if ever) I have the time to look deeper into the code involved or newer versions of  the theme and/or the plugin solve it for good.</p>
<p>Just to be clear, none of the problems and troubleshooting it took to solve them can be traced back ato KB Advanced RSS alone. Atahualpa is a great but complex theme and it is their combination that turned out to be problematic. It&#8217;s not the first example of a bad mix and it won&#8217;t be the last. On the flip side, with each such incident we get to learn something new that will potentially save others and ourselves some frusrtation and time in the future.</p>
<!-- AdSense Now! V1.90 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="float:right;margin: 12px;"><div style="margin-left:auto;margin-right:auto;width:200px;display:block;">
<div style="text-align:center;width:200px;padding:1px;background:#000;margin:2px;">
<div style="text-align:center;width:190px;height:185px;padding:2px;padding-top:1px;padding-left:4px;border:solid 1px #fff;background:#411;margin:1px;">
<a target="_blank" style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
<big style="font-size:14px;font-family:arial;color:#fff;font-variant: small-caps;">A Remarkable Book from Wiley-Finance</big>
</a>
<hr />
<table border="0" cellpadding="2px" cellspacing="0" summary="" width="100%" align="center">
<tr><td style="padding:0px">
<div style="border:solid 1px #faa;height:126px;width:82px;">
<a target="_blank" style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
<img src="http://www.thulasidas.com/img/pqd-82x126.gif" border="0px" alt="PQD" title="Principles of Quantitative Development from Amazon.com" />
</a>
</div>
</td>
<td style="padding:3px">
<a target="_blank" style="text-decoration:none;" href="http://www.amazon.com/exec/obidos/ASIN/0470745703/unrblo-20" title="Find out more about Principles of Quantitative Development and buy it from Amazon.com">
<em style="font-size:14px;font-family:arial;color:#fff;">"An excellent book!"</em><br />
<small style="font-size:13px;font-family:arial;color:#faa;">&nbsp;&nbsp;&#8212; Paul Wilmott</small>
<br />
<small style="font-size:11px;font-family:arial;color:#fff;">
Want to break into the lucrative world of trading and quantitative finance? You <b>need </b> this book!
</small>
</a>
</td>
</tr>
</table>
</div>
</div>
</div></div>
	<h4>Possibly related posts (auto generated)</h4>
	<ul class="st-related-posts">
	<li><a href="http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/" title="WordPress Optimization: Compatibility between Themes &#038; Plugins (27/03/2009)">WordPress Optimization: Compatibility between Themes &#038; Plugins</a> (2)</li>
	<li><a href="http://dipot.com/2009/04/feeds-to-content-categories-optimization-in-wordpress/" title="Feeds to Content &#038; Categories Optimization in WordPress (01/04/2009)">Feeds to Content &#038; Categories Optimization in WordPress</a> (1)</li>
	<li><a href="http://dipot.com/2009/02/apologies-for-last-days-posts-flood/" title="<!--:en-->Apologies for last days&#8217; posts flood<!--:--> (25/02/2009)"><!--:en-->Apologies for last days&#8217; posts flood<!--:--></a> (0)</li>
	<li><a href="http://dipot.com/2009/04/pcs-and-the-internet-addiction-magnets-or-just-tools/" title="PCs and the Internet: Addiction Magnets or just Tools? (05/04/2009)">PCs and the Internet: Addiction Magnets or just Tools?</a> (1)</li>
	<li><a href="http://dipot.com/2008/11/athens-startup-weekend-2008/" title="Athens Startup Weekend 2008 (26/11/2008)">Athens Startup Weekend 2008</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WordPress Optimization: Compatibility between Themes &amp; Plugins</title>
		<link>http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/</link>
		<comments>http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 08:28:25 +0000</pubDate>
		<dc:creator>ageor</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips & How-to]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[DiPot]]></category>
		<category><![CDATA[DiPot.com]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[FriendFeed]]></category>
		<category><![CDATA[Ice Tea tech]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Ikarus]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[MS]]></category>
		<category><![CDATA[netWire]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[Translate]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Vicki Kolovou]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://dipot.com/?p=1166</guid>
		<description><![CDATA[<p>The first incarnation of  Ice Tea tech was in Joomla 1.5. I admit I can&#8217;t resist the temptation to tweak my own blog and never got to understand the Joomla philosophy well enough to do it extensively. So, with neTWire&#8217;s help (they set it up for me and successfully imported Joomla days&#8217; posts), I [...]]]></description>
			<content:encoded><![CDATA[<p>The first incarnation of  <a href="http://dipot.com/" target="_blank">Ice Tea tech</a> was in <a href="http://www.joomla.org/" target="_blank">Joomla</a> 1.5. I admit I can&#8217;t resist the temptation to tweak my own blog and never got to understand the Joomla philosophy well enough to do it extensively. So, with <a href="http://netwire.gr/" target="_blank">neTWire</a>&#8217;s help (they set it up for me and successfully imported Joomla days&#8217; posts), I decided to give <a href="http://wordpress.org/" target="_blank">WordPress</a> (currently 2.7.1) a try, therefore I am a newbee with it. The WordPress environment is very clean, straightforword and promising. From this point on, to me, blog optimization means to choose a Theme, drop in all the plugins necessary to provide the functionality I want and get going issue-free.</p>
<p>After extensive search I found <a href="http://www.bytesforall.com/" target="_blank">Bytes for All</a>&#8217;s <a href="http://wordpress.bytesforall.com/?cat=15" target="_blank">Atahualpa</a>, a WordPress theme that is customizable enough so I wouldn&#8217;t need to dive deep into <a href="http://www.w3.org/Style/CSS/" target="_blank">CSS</a> just yet. It supports a dynamically resizing main column plus 2 sidebars and lots of user definable parameters. Being a novice, I also installed, among others, the <a href="http://www.qianqin.de/qtranslate/" target="_blank">qTranslate</a> plugin to support multiple languages in Ice Tea tech, in case I need it in the future.</p>
<p>To my surprise, as I&#8217;m afraid some of you noticed, post dates did not appear correctly. The date format was correct, but the date itself was wrong. To cut a long story short, in theory, WordPress supports any PHP function for date formatting, qTranslate supports the PHP &#8220;<a href="http://gr2.php.net/date" target="_blank">date</a>&#8221; and &#8220;<a href="http://gr2.php.net/strftime" target="_blank">strftime</a>&#8221; functions and Atahualpa, due to its highly configurable setting, seems to have the PHP &#8220;date&#8221; function hardwired in some places.</p>
<p>After some trial and error and with the valuable help of neTWire&#8217;s <a href="http://friendfeed.com/talos" target="_blank">Vicki Kolovou</a> it turns out that, actually, qTranslate only works correctly with the &#8220;strftime&#8221; type of date formatting. So, there is no way it can coexist with Atahualpa or <a href="http://ikarus.wpthemespress.com/" target="_blank">Ikarus</a>, another highly customizable theme I  tried.</p>
<p>I don&#8217;t have that much troubleshooting time for myself and Ice Tea tech<a href="http://dipot.com/" target="_blank"></a>&#8217;s environment is currently only in English. So, I&#8217;m sorry to report qTranslate had to go, at least for now. I hear it causes other issues, too. It&#8217;s a pity, as it otherwise really is a very well thought-out plugin&#8230;</p>
<p>It seems such issues are still commonplace. After this experience, my new definition for blog optimization is &#8220;the most functionality that actually works as it is supposed to&#8221;&#8230;</p>

	<h4>Possibly related posts (auto generated)</h4>
	<ul class="st-related-posts">
	<li><a href="http://dipot.com/2009/04/wordpress-external-rss-feeds-optimization-with-kb-advanced-rss/" title="WordPress: External RSS Feeds Optimization with KB Advanced RSS (22/04/2009)">WordPress: External RSS Feeds Optimization with KB Advanced RSS</a> (6)</li>
	<li><a href="http://dipot.com/2009/04/feeds-to-content-categories-optimization-in-wordpress/" title="Feeds to Content &#038; Categories Optimization in WordPress (01/04/2009)">Feeds to Content &#038; Categories Optimization in WordPress</a> (1)</li>
	<li><a href="http://dipot.com/2009/02/apologies-for-last-days-posts-flood/" title="<!--:en-->Apologies for last days&#8217; posts flood<!--:--> (25/02/2009)"><!--:en-->Apologies for last days&#8217; posts flood<!--:--></a> (0)</li>
	<li><a href="http://dipot.com/2009/01/how-i-post/" title="<!--:en-->Which Service should a Post go to?<!--:--> (12/01/2009)"><!--:en-->Which Service should a Post go to?<!--:--></a> (2)</li>
	<li><a href="http://dipot.com/2007/12/microsoft-ie-and-standards-compliance/" title="Microsoft IE and Standards Compliance (29/12/2007)">Microsoft IE and Standards Compliance</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://dipot.com/2009/03/wordpress-optimization-compatibility-between-themes-plugins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

