<?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>Es Tea Double Eye &#187; PHP</title>
	<atom:link href="http://stii.co.za/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://stii.co.za</link>
	<description>You&#039;re never too old for a happy childhood</description>
	<lastBuildDate>Fri, 19 Aug 2011 02:20:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<atom:link rel='hub' href='http://stii.co.za/?pushpress=hub'/>
		<item>
		<title>Pubsubhubbub on Google appspot</title>
		<link>http://stii.co.za/article/pubsubhubbub-on-google-appspot/</link>
		<comments>http://stii.co.za/article/pubsubhubbub-on-google-appspot/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 05:36:04 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Afrigator]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[pubsubhubbub]]></category>
		<category><![CDATA[pushpress]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=1144</guid>
		<description><![CDATA[It is the weirdest thing. I was having issues subscribing to blogs that is using pubsubhubbub.appspot.com using a Python script. It returned a 500 Internal Server error without fail. So I rewrote the process in PHP and like magic, it is gone&#8230; I used PHP and CURL to subscribe to the appspot service. In Python [...]]]></description>
			<content:encoded><![CDATA[<p>It is the weirdest thing. I was having issues subscribing to blogs  that is using <a href="http://stii.co.za/article/pubsubhubbub-on-afrigator/">pubsubhubbub.appspot.com</a> using a Python script. It returned a <a href="http://stii.co.za/article/pubsubhubbub-on-afrigator/">500 Internal Server</a> error without fail. So I rewrote the process in PHP and like magic, it is gone&#8230; I used <strong>PHP and CURL</strong> to subscribe to the appspot service. In <a href="http://stii.co.za/tag/python">Python</a> I used the <strong>urllib2 library</strong>. Somewhere in the back of my mind I vaguely remember appspot not liking urllib2, but I haven&#8217;t really checked due to time constraints. I&#8217;ll have a look soon, but if you&#8217;re going to use Python to subscribe to feeds, I would suggest trying to do so with <strong>CURL</strong>.</p>
<p>The good news is that all is good on <a href="http://afrigator.com">Afrigator</a> now. All blogs that are using some form of Pubsubhubbub service will be realtime in no time. </p>
<p>If you&#8217;re running on <strong>WordPress</strong> (not WordPress.com) and you have not yet installed <a href="http://wordpress.org/extend/plugins/pushpress/">PuSHPress</a>, please do so soon! </p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/article/pubsubhubbub-on-google-appspot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Red Hat Europe still powered by PHP4</title>
		<link>http://stii.co.za/php/red-hat-europe-still-powered-by-php4/</link>
		<comments>http://stii.co.za/php/red-hat-europe-still-powered-by-php4/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 20:44:26 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[php4]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[redhat europe]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=1008</guid>
		<description><![CDATA[I find this very hard to believe, but it seems that Red Hat Europe&#8216;s site is still powered by PHP 4. PHP 4.3.2 to top it all off. This after PHP 4 reached it&#8217;s end of life more than a year ago. I guess the old saying applies: If it&#8217;s not broken, don&#8217;t fix it! [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://stii.co.za/wp-content/uploads/2009/10/redhat-logo-400x128.jpg" alt="redhat-logo" title="redhat-logo" width="400" height="128" class="alignnone size-medium wp-image-1010" /></p>
<p>I find this very hard to believe, but it seems that <a href="http://www.europe.redhat.com/">Red Hat Europe</a>&#8216;s site is still powered by PHP 4. <strong>PHP 4.3.2</strong> to top it all off. This after PHP 4 reached it&#8217;s end of life more than a year ago. I guess the old saying applies:</p>
<blockquote><p>If it&#8217;s not broken, don&#8217;t fix it!</p></blockquote>
<p>Right&#8230;? It is just a little bizarre, I guess. Here is a screenshot of the headers.</p>
<p><img src="http://stii.co.za/wp-content/uploads/2009/10/Screen-shot-2009-10-15-at-11.00.01-PM.png" alt="Redhat PHP4 headers" title="Redhat PHP4 headers" width="283" height="116" class="alignnone size-full wp-image-1009" /></p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/php/red-hat-europe-still-powered-by-php4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Call me anal, but I really like Django templates</title>
		<link>http://stii.co.za/python/call-me-anal-but-i-really-like-django-templates/</link>
		<comments>http://stii.co.za/python/call-me-anal-but-i-really-like-django-templates/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 09:58:31 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[templates]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=962</guid>
		<description><![CDATA[For all the wrong reasons, but still! I just love the fact that it actually uses a .html extension. Am I weird? I do feel a bit weird that I like something so arb. So the template files use the extension of what it actually contains? Wow, I love that. Revolutionary. Don&#8217;t ask me why [...]]]></description>
			<content:encoded><![CDATA[<p>For all the wrong reasons, but still! I just <em>love</em> the fact that it actually uses a <strong>.html extension</strong>. Am I weird? I do feel a bit weird that I like something so arb. So the template files use the extension of what it actually contains? Wow, I love that. Revolutionary. Don&#8217;t ask me why I just thought of that&#8230; I cannot answer that truthfully :P Feels like I&#8217;m being anal, since it doesn&#8217;t seem to matter to anyone else. Most other web development frameworks uses other file extensions. For example in PHP frameworks, the template files have a .php extension. Must be this glorious <strong>Rocktober</strong> day in Cape Town that is doing this to me!</p>
<p><a href="http://djangoproject.com"><img src="http://stii.co.za/wp-content/uploads/2009/04/django-logo-positive-400x139.png" alt="django-logo-positive" title="django-logo-positive" width="400" height="139" class="alignnone size-medium wp-image-574" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/python/call-me-anal-but-i-really-like-django-templates/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>The importance of documentation</title>
		<link>http://stii.co.za/software-development/the-importance-of-documentation/</link>
		<comments>http://stii.co.za/software-development/the-importance-of-documentation/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 22:46:02 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=902</guid>
		<description><![CDATA[Very good post on open source documentation via @TheKeyboard » Open Source Is Really About Documentation – Twisted vs. Tornado. Chris Brain&#8217;s point in short is: I think I can give you an executive summary of this blog post: if the documentation for an open source project sucks, nobody but the most hardcore developers will [...]]]></description>
			<content:encoded><![CDATA[<p>Very good post on open source documentation via <a href="http://www.littlehart.net/atthekeyboard/2009/09/14/open-source-is-really-about-documentation/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss">@TheKeyboard » Open Source Is Really About Documentation – Twisted vs. Tornado</a>. Chris Brain&#8217;s point in short is:</p>
<blockquote><p><em>I think I can give you an executive summary of this blog post: if the documentation for an open source project sucks, nobody but the most hardcore developers will use it.</em>
</p></blockquote>
<p><a href="http://www.littlehart.net/atthekeyboard/2009/09/14/open-source-is-really-about-documentation/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss"><img src='http://stii.co.za/wp-content/uploads/2009/09/DRAW-ANYTHING-363.gif' alt='' /></a></p>
<p>That couldn&#8217;t be more true! The documentation is just about as important as the application. The problem is that it takes time to maintain. Often we as developers are simply too lazy and &#8220;will update the documentation later&#8221;. I know I am like that, sadly&#8230; Will make it next years new years resolution to change that!</p>
<p>I do think that there could possibly be better ways to do documentation. Look at <a href="http://php.net">PHP</a></p>
<p style="text-align: center;">
<p>&#8216;s documentation. It is fairly simple and concise, but I have often found great value in the user comments and examples which you would find underneath every page. I don&#8217;t think it is perfect, but it sure helps.</p>
<p>User contributions play a big role in Open Source documentation and developers with blogs often write their examples on their blogs. I end up finding them by searching Google for it, but it would sure help much more if those posts were linked to the documentation. Something to consider, I think.</p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/software-development/the-importance-of-documentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some thoughts on Microsoft Tech Ed 2009</title>
		<link>http://stii.co.za/technical/some-thoughts-on-microsoft-tech-ed-2009/</link>
		<comments>http://stii.co.za/technical/some-thoughts-on-microsoft-tech-ed-2009/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 12:15:05 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[technical]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[iis7]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[tech ed 2009]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=844</guid>
		<description><![CDATA[First of all, let me say that the organization of Tech Ed was simply astounding. Very well organized and very professionally executed. Besides the demo gods playing havoc and SA bandwidth not helping at all, it was brilliantly executed and I want to commend the organizers. I&#8217;m not going to repeat what has been said [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://justinhartman.com/wp-content/uploads/2009/08/banner-event.jpg" title="Microsoft Tech Ed 2009" class="aligncenter" width="600" height="176" /></p>
<p>First of all, let me say that the organization of <a href="http://tech-ed.co.za">Tech Ed</a> was simply astounding. Very well organized and very professionally executed. Besides the demo gods playing havoc and SA bandwidth not helping at all, it was brilliantly executed and I want to commend the organizers.</p>
<p>I&#8217;m not going to <a href="http://justinhartman.com/2009/08/03/my-thoughts-on-the-teched-africa-2009-keynote/">repeat what has been said</a> already about the demos gone wrong, etc, but here is a couple of things of interest:</p>
<p>I think a big part of Microsoft&#8217;s success can be contributed to their treasuring of developers. They go absolutely out of their way to make life as easy and comfortable as possible for developers. They also treat developers with the utmost respect(?) and try and make a big deal of them. This, I think, creates loyal devs and with loyal devs, they can roll out great software. Visual Studio looks fantastic and the features are amazing. If you look at their language support on the .NET platform it is evident they try and cater for developers to enable them to develop in the language they feel comfortable with. </p>
<p>I used to develop Windows software back in the days on .NET version 1.1. I know first hand that the Visual Studio IDE is great. It does make you lazy and with their excellent IntelliSense, you almost never type full statements or lines of code. This made it quite a mission to get used to a normal text editor going back to Linux.</p>
<p>I can see how they successfully make it quick and easy for developers and in effect keep them loyal to the Windows platform. You have to respect that, if anything. </p>
<p>The other interesting thing was while everyone was struggling to demo smoothly, the one presentation on <strong>PHP with FastCGI and IIS7</strong> by <a href="http://www.timokeller.net/">Tim Keller</a> did not get a lot of interest, but it was the only presentation which was flawless. Microsoft people don&#8217;t seem too interested in Open Source technologies, which is sad really. I&#8217;m not sure that I&#8217;d ditch my trusty Linux box with Apache for Windows with IIS7 anytime soon, but I&#8217;ll say this: Rewrite rules in IIS7 is fall out a tree easy! You simply copy and paste your URL you&#8217;d like to rewrite into a dialog and it returns a selection of rewrite options for you. You select the one most suitable and hit save. Done.</p>
<p><strong>Silverlight</strong>, the so called flash killer looks very interesting. In flash, you need a pre-compiled flash movie embedded in your page to get to use flash in your pages. Silverlight is different. You need a javascript library and a XAML file (which is a plain XML file) and you can do Silverlight! That does change things as you no longer need a special software application to make <strong>RIA</strong> apps. XML and Javascript does the trick! Nifty. It was all a bit over my head to be honest, since I&#8217;ve never really made the effort to look into it, but I&#8217;m sure I will look into it much more now.</p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/technical/some-thoughts-on-microsoft-tech-ed-2009/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DZone Refcardz for software developers</title>
		<link>http://stii.co.za/software-development/dzone-refcardz-for-software-developers/</link>
		<comments>http://stii.co.za/software-development/dzone-refcardz-for-software-developers/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 13:50:46 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[Software Dev]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[dzone]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[refcardz]]></category>
		<category><![CDATA[references]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=738</guid>
		<description><![CDATA[DZone is a social bookmarking service specifically focused on technology and software development. It is a fantastic resource. Recently they released a fantastic new service called Refcardz which is like shortcut reference documents for various programming languages or technologies. Best of all, it is FREE! From languages like PHP, Ruby, Groovy and Java all the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://dzone.com">DZone</a> is a social bookmarking service specifically focused on technology and software development. It is a fantastic resource. Recently they released a fantastic new service called <a href="http://refcardz.dzone.com/">Refcardz</a> which is like shortcut reference documents for various programming languages or technologies. Best of all, it is <strong><em>FREE</em></strong>!</p>
<p><a href="http://refcardz.dzone.com/"><img src="http://stii.co.za/wp-content/uploads/2009/06/Picture-17.png" alt="DZone Refcardz" title="DZone Refcardz" width="341" height="81" class="aligncenter size-full wp-image-739" /></a></p>
<p>From languages like <strong>PHP, Ruby, Groovy and Java</strong> all the way through to <strong>Apache and High Scalability</strong> explained. All that is required is that you must be a registered DZone member and you can download the documents for free. There is over 50 reference documents, so it is well worth the effort.</p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/software-development/dzone-refcardz-for-software-developers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sphinx API &#8211; The basics part 1</title>
		<link>http://stii.co.za/sphinx-search/sphinx-api-the-basics-part-1/</link>
		<comments>http://stii.co.za/sphinx-search/sphinx-api-the-basics-part-1/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 12:33:08 +0000</pubDate>
		<dc:creator>Stii</dc:creator>
				<category><![CDATA[Sphinx Search]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[sphinxapi]]></category>
		<category><![CDATA[sphinxsearch]]></category>

		<guid isPermaLink="false">http://stii.co.za/?p=430</guid>
		<description><![CDATA[You&#8217;ve set up Sphinx Search and everything seems to be running smooth. Now you have to put it to work. This is where the API comes into play! All the API does is it lets you communicate with the indexes you&#8217;ve created. Various programming languages are supported like: JAVA, Python, PHP and Ruby. (NOTE: The [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://sphinxsearch.com/g/sphinx.jpg" alt="Sphinx Search" style="margin: 5px; float: right;">You&#8217;ve set up <a href="http://stii.co.za/tag/sphinxsearch/">Sphinx Search</a> and everything seems to be <a href="http://stii.co.za/sphinx-search/setting-up-sphinx-search-part-2/">running smooth</a>. </p>
<p>Now you have to put it to work. This is where the <acronym title="Application Programming Interface">API</acronym> comes into play! All the <acronym title="Application Programming Interface">API</acronym> does is it lets you communicate with the indexes you&#8217;ve created. Various programming languages are supported like: <strong>JAVA</strong>, <a href="http://stii.co.za/tag/python/">Python</a>, <strong>PHP</strong> and <strong>Ruby</strong>. (NOTE: The <a href="http://rubyonrails.org" rel="nofollow">Ruby on Rails</a> community wrote some <a href="http://www.slashdotdash.net/2007/08/06/rails-searching-with-sphinx/">plugins</a> for Rails for the Ruby API.)</p>
<p>Lets look at the <strong>PHP</strong> version. The <acronym title="Application Programming Interface">API</acronym> is basically a <strong>PHP</strong> class you can create an instance of and then use the various methods to interact with the search daemon.</p>
<p>First you need to add the file called <strong>sphinxapi.php</strong> to your include path. In your application, require the <strong>sphinxapi.php</strong> file:</p>
<pre>
require_once "/path/to/sphinxapi.php";
</pre>
<p>Next, create a new instance:</p>
<pre>
$sphinx = new SphinxClient();
</pre>
<p>Specify your server and port settings where your search daemon is running on:</p>
<pre>
$sphinx->SetServer( "localhost", 3312 );
</pre>
<p>Now, you&#8217;re all good to go and ready to start query the indexes. More on that in the next Sphinx Search API post. </p>
]]></content:encoded>
			<wfw:commentRss>http://stii.co.za/sphinx-search/sphinx-api-the-basics-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

