<?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>Ian Warner&#187;  &#8211; Ian Warner social / mobile consulation and development</title>
	<atom:link href="http://ianwarner.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ianwarner.com</link>
	<description>Social / Mobile Application Zend Framework PHP Developer</description>
	<lastBuildDate>Tue, 13 Jul 2010 09:37:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>GIT Script</title>
		<link>http://ianwarner.com/git-script/</link>
		<comments>http://ianwarner.com/git-script/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 09:37:50 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Server Admin]]></category>
		<category><![CDATA[GIT]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=61</guid>
		<description><![CDATA[Just a little script to make GIT control a little easier. #!/bin/bash ## ## ## GIT ## ## Script to make GIT control of one repository a little easier ## ## Author : Ian Warner ## ## URL : http://www.triangle-solutions.com ## ## ## ## Make sure the directory to the GIT repository is changed ## [...]]]></description>
			<content:encoded><![CDATA[<p>Just a little script to make GIT control a little easier.<br />
<span id="more-61"></span><br />
<code><br />
#!/bin/bash</p>
<p>##                                                              ##<br />
## GIT                                                          ##<br />
## Script to make GIT control of one repository a little easier ##<br />
## Author : Ian Warner                                          ##<br />
## URL    : http://www.triangle-solutions.com                   ##<br />
##                                                              ##<br />
## Make sure the directory to the GIT repository is changed     ##<br />
##                                                              ##</p>
<p>## Clear the screen<br />
clear</p>
<p>## Change directory to the GIT repository<br />
cd CHANGE-PATH</p>
<p>## Welcome Message<br />
echo -e \\t "GIT control"<br />
echo -e \\t "------------------------------"</p>
<p>## Always Pull from the server first<br />
git pull<br />
echo -e \\n</p>
<p>## Recursively add any files<br />
git add .</p>
<p>## Check the status of the added / removed files<br />
git status</p>
<p>## Continue<br />
echo -e \\n\\t "Continue? (Y/N) (Case sensitive)"<br />
read continue</p>
<p>if [[ "$continue" == "Y" ]]<br />
    then</p>
<p>		## Ask for the comment to add for the GIT Push<br />
		echo -e \\n\\t "Add comment please"<br />
		read comment<br />
		echo -e \\n</p>
<p>		if [[ "$comment" ]]<br />
		    then</p>
<p>		    	echo -e \\t "Commiting"<br />
		    	echo -e \\n<br />
		        git commit -a -m "$comment"<br />
		        echo -e \\n</p>
<p>		        echo -e \\t "Pushing"<br />
		        git push<br />
		        echo -e \\n</p>
<p>		    else<br />
		        echo -e \\t "A comment must be added"<br />
		fi</p>
<p>    else<br />
        echo -e \\t "Please close this terminal"<br />
fi<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/git-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GIT Commands</title>
		<link>http://ianwarner.com/git-commands/</link>
		<comments>http://ianwarner.com/git-commands/#comments</comments>
		<pubDate>Mon, 05 Jul 2010 13:52:10 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Server Admin]]></category>
		<category><![CDATA[GIT]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=57</guid>
		<description><![CDATA[Below are common commands for the GIT repository tool. Change the directory to the directory you wish the project to be cloned into. cd /project/location Use the following command to clone the repository git clone ssh://username@domain.com:22/repositoryName This will create a folder called repositoryName in the location Before a push run a pull to update from [...]]]></description>
			<content:encoded><![CDATA[<p>Below are common commands for the GIT repository tool.<br />
<span id="more-57"></span><br />
Change the directory to the directory you wish the project to be cloned into.<br />
<em>cd /project/location</em></p>
<p>Use the following command to clone the repository<br />
<em>git clone ssh://username@domain.com:22/repositoryName</em></p>
<p>This will create a folder called repositoryName in the location</p>
<p>Before a push run a pull to update from the server<br />
<em>git pull</em></p>
<p>To add files to the local repository<br />
<em>git add .</em></p>
<p>Check the status of added files<br />
<em>git status</em></p>
<p>Commit the files locally with a comment<br />
<em>git commit -a -m &#8220;Comment Here&#8221;</em></p>
<p>To send to the server<br />
<em>git push</em></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/git-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend DB Metadata Caching with Zend Application</title>
		<link>http://ianwarner.com/zend-db-metadata-caching-zend-application/</link>
		<comments>http://ianwarner.com/zend-db-metadata-caching-zend-application/#comments</comments>
		<pubDate>Sat, 22 May 2010 22:57:49 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=54</guid>
		<description><![CDATA[Basically with Zend DB you should cache the MetaData lookup, as this can be an expensive process. Firstly in your application.ini you should have already set up your Cache settings, I now use the cachemanager default resource plugin provided by Zend ;; RESOURCE CACHE SETUP ;; resources.cachemanager.database.frontend.name = Core resources.cachemanager.database.frontend.options.lifetime = 7200 resources.cachemanager.database.frontend.options.automatic_serialization = true [...]]]></description>
			<content:encoded><![CDATA[<p>Basically with Zend DB you should cache the MetaData lookup, as this can be an expensive process.</p>
<p>Firstly in your application.ini you should have already set up your Cache settings, I now use the cachemanager default resource plugin provided by Zend</p>
<p><span id="more-54"></span></p>
<p><code><br />
;; RESOURCE CACHE SETUP ;;<br />
resources.cachemanager.database.frontend.name = Core<br />
resources.cachemanager.database.frontend.options.lifetime = 7200<br />
resources.cachemanager.database.frontend.options.automatic_serialization = true<br />
resources.cachemanager.database.backend.name = File<br />
resources.cachemanager.database.backend.options.cache_dir = ROOT_DIR "/tmp/cache"</code></p>
<p>Next add the following code to your bootstrap to set the metadata cache.</p>
<p><code><br />
protected function _initDbCache()<br />
{<br />
    // Bootstrap DB<br />
    $this->bootstrap('db');</p>
<p>    // Bootstrap cache<br />
    $this->bootstrap('cachemanager');<br />
    $cache = $this->getResource('cachemanager');</p>
<p>    // Set DB metadata cache<br />
    Zend_Db_Table_Abstract::setDefaultMetadataCache($cache->getCache('database'));<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/zend-db-metadata-caching-zend-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CodeBlender Debug Release</title>
		<link>http://ianwarner.com/codeblender-debug-release/</link>
		<comments>http://ianwarner.com/codeblender-debug-release/#comments</comments>
		<pubDate>Sat, 22 May 2010 13:13:43 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[CodeBlender]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=46</guid>
		<description><![CDATA[CodeBlender Debug is a Zend Framework in-line information bar. Giving reporting on things such as memory and variables. I have forked this from ZF Debug as this project seems to be slowing down somewhat; the last release being in September 2009. I have tidied up a majority of the code and added in a few [...]]]></description>
			<content:encoded><![CDATA[<p>CodeBlender Debug is a Zend Framework in-line information bar. Giving reporting on things such as memory and variables.</p>
<div id="attachment_47" class="wp-caption alignright" style="width: 160px"><a href="http://ianwarner.com/files/2010/05/Picture-1.png"><img src="http://ianwarner.com/files/2010/05/Picture-1-150x34.png" alt="CodeBlender Debug" title="CodeBlender Debug" width="150" height="34" class="size-thumbnail wp-image-47" /></a><p class="wp-caption-text">CodeBlender Debug</p></div>
<p><span id="more-46"></span></p>
<p>I have forked this from <a href="http://code.google.com/p/zfdebug/">ZF Debug</a> as this project seems to be slowing down somewhat; the last release being in September 2009.</p>
<p>I have tidied up a majority of the code and added in a few new features, including adding a resource plugin and relevant documentation on usage.</p>
<p>Over the next few weeks I will be re-writing a majority of the code to take into account user requirements and Zend enhancements. Including an in-line Task list.</p>
<p>Also this is my first outing on <a href="http://github.com/" title="GitHub">GitHub</a>, I am finding this resource amazing, so fully recommend it.</p>
<p>CodeBlender Debug project can be found here:<br />
<a href="http://github.com/iwarner/CodeBlender-Debug">http://github.com/iwarner/CodeBlender-Debug</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/codeblender-debug-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling layout and View rendering in Zend Framework</title>
		<link>http://ianwarner.com/disabling-layout-view-rendering-zend-framework/</link>
		<comments>http://ianwarner.com/disabling-layout-view-rendering-zend-framework/#comments</comments>
		<pubDate>Sat, 22 May 2010 13:01:41 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=44</guid>
		<description><![CDATA[Just wanted to place this often utilised snippet on my Blog, as I often forget the syntax! To disable the rendering of the View use: $this->_helper->viewRenderer->setNoRender(); To disable the layout use: $this->_helper->layout->disableLayout();]]></description>
			<content:encoded><![CDATA[<p>Just wanted to place this often utilised snippet on my Blog, as I often forget the syntax!</p>
<p>To disable the rendering of the View use:<br />
$this->_helper->viewRenderer->setNoRender();</p>
<p>To disable the layout use:<br />
$this->_helper->layout->disableLayout();</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/disabling-layout-view-rendering-zend-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Log Files</title>
		<link>http://ianwarner.com/ubuntu-log-files/</link>
		<comments>http://ianwarner.com/ubuntu-log-files/#comments</comments>
		<pubDate>Fri, 21 May 2010 08:51:38 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Server Admin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=37</guid>
		<description><![CDATA[If you are like me and often forget what Log files records what, and the commands to easily interrogate them, then hopefully this post will shed some light. Name and Usage Linux Log files and usage /var/log/messages : General log messages /var/log/boot : System boot log /var/log/debug : Debugging log messages /var/log/auth.log : User login [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me and often forget what Log files records what, and the commands to easily interrogate them, then hopefully this post will shed some light.<br />
<span id="more-37"></span><br />
<strong>Name and Usage</strong><br />
Linux Log files and usage</p>
<ul>
<li>/var/log/messages : General log messages</li>
<li>/var/log/boot : System boot log</li>
<li>/var/log/debug : Debugging log messages</li>
<li>/var/log/auth.log : User login and authentication logs</li>
<li>/var/log/daemon.log : Running services log message to this file</li>
<li>/var/log/dmesg : Linux kernel ring buffer log</li>
<li>/var/log/dpkg.log : Package installation and other information</li>
<li>/var/log/faillog : User failed login log file</li>
<li>/var/log/kern.log : Kernel log file</li>
<li>/var/log/lpr.log : Printer log file</li>
<li>/var/log/mail.* : All mail server message log files</li>
<li>/var/log/mysql.* : MySQL server log file</li>
<li>/var/log/user.log : All userlevel logs</li>
<li>/var/log/xorg.0.log : X.org log file</li>
<li>/var/log/apache2/* : Apache web server log files directory</li>
<li>/var/log/fsck/* : fsck command log</li>
<li>/var/log/apport.log : Application crash report / log file</li>
</ul>
<p>To analyse Log file the following commands will be useful</p>
<p><code><br />
tail -f /var/log/apport.log<br />
more /var/log/xorg.0.log<br />
cat /var/log/mysql.err<br />
less /var/log/messages<br />
grep -i fail /var/log/boot<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/ubuntu-log-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Filter Standard Classes</title>
		<link>http://ianwarner.com/zend-filter-standard-classes/</link>
		<comments>http://ianwarner.com/zend-filter-standard-classes/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 16:22:58 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=33</guid>
		<description><![CDATA[Zend Framework comes with a standard set of filter classes. But if you are like me I always forget what is available. The documentation has a not easy to read list of these classes; it is necessary to scroll through the page and identify these. So I wanted to create a simple list of these, [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework comes with a standard set of filter classes. But if you are like me I always forget what is available. The documentation has a not easy to read list of these classes; it is necessary to scroll through the page and identify these.</p>
<p>So I wanted to create a simple list of these, the full documentation can be found here: <a href="http://framework.zend.com/manual/en/zend.filter.set.html" title="Zend Filter">Zend Filter Set</a><br />
<span id="more-33"></span></p>
<ul>
<li>Alnum &#8211; removing all but alphabetic and digit characters</li>
<li>Alpha &#8211; removing all but alphabetic characters</li>
<li>BaseName &#8211; this filter will return the base name of the file</li>
<li>Boolean &#8211; changes a given input to be a boolean value</li>
<li>Callback</li>
<li>Compress &#8211; Creates archives</li>
<li>Decompress</li>
<li>Decrypt &#8211; will decrypt any given string with the provided setting</li>
<li>Digits &#8211; removing all but digit characters</li>
<li>Dir &#8211; Returns directory name component of path</li>
<li>Encrypt &#8211; encrypt any given string with the provided setting</li>
<li>HtmlEntities</li>
<li>Int</li>
<li>LocalizedToNormalized</li>
<li>NormalizedToLocalized</li>
<li>Null</li>
<li>PregReplace</li>
<li>RealPath</li>
<li>StringToLower</li>
<li>StringToUpper</li>
<li>StringTrim</li>
<li>StripNewlines</li>
<li>StripTags</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/zend-filter-standard-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Validation Standard Classes</title>
		<link>http://ianwarner.com/zend-validation-standard-classes/</link>
		<comments>http://ianwarner.com/zend-validation-standard-classes/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 15:54:41 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://ianwarner.com/?p=30</guid>
		<description><![CDATA[Zend Framework comes with a standard set of validation classes. But if you are like me I always forget what is available. The documentation has not easy to read list of these classes; it is necessary to scroll through the page and then identify these. So I wanted to create a simple list of these, [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework comes with a standard set of validation classes. But if you are like me I always forget what is available. The documentation has not easy to read list of these classes; it is necessary to scroll through the page and then identify these.</p>
<p>So I wanted to create a simple list of these, the full documentation can be found here: <a href="http://framework.zend.com/manual/en/zend.validate.set.html" title="Zend Validation">Zend Validate Set</a><br />
<span id="more-30"></span></p>
<ul>
<li>Alnum &#8211; only alphabetic and digit characters</li>
<li>Alpha &#8211; only alphabetic characters</li>
<li>Barcode</li>
<li>Between &#8211; $value is between the minimum and maximum boundary values</li>
<li>Callback</li>
<li>CreditCard</li>
<li>Ccnum &#8211; depreciated in favour of the CreditCard validator</li>
<li>Date &#8211; is a valid date of the format &#8216;YYYY-MM-DD&#8217;</li>
<li>Db_RecordExists</li>
<li>Db_NoRecordExists</li>
<li>Digits &#8211; only contains digit characters</li>
<li>EmailAddress</li>
<li>Float &#8211; floating-point value</li>
<li>GreaterThan</li>
<li>Hex</li>
<li>Hostname</li>
<li>Iban &#8211; a valid IBAN (International Bank Account Number)</li>
<li>Identical &#8211; a given value is identical with an set haystack</li>
<li>InArray</li>
<li>Int &#8211; a valid integer</li>
<li>Ip &#8211; a valid IP address</li>
<li>Isbn &#8211; validate an ISBN-10 or ISBN-13 value</li>
<li>LessThan</li>
<li>NotEmpty</li>
<li>PostCode</li>
<li>Regex</li>
<li>Sitemap Validators</li>
<li>StringLength</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/zend-validation-standard-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Autoload Check if Class Exists</title>
		<link>http://ianwarner.com/autoload-check-if-class-exists/</link>
		<comments>http://ianwarner.com/autoload-check-if-class-exists/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 11:57:23 +0000</pubDate>
		<dc:creator>Ian Warner</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Zend Framework function to check if a class is accessible. // Check to see if there is a Comment Model if (Zend_Loader_Autoloader::autoload('Default_Model_DBTable_Comment')) { // Save the comment into the database $table = new Default_Model_DBTable_Comment(); $table->insert($data); } else { echo 'NO WAY'; } Very useful when trying to create a modular site system. This way we [...]]]></description>
			<content:encoded><![CDATA[<p>Zend Framework function to check if a class is accessible.</p>
<pre class="ln-1"><code class="php">
// Check to see if there is a Comment Model
if (Zend_Loader_Autoloader::autoload('Default_Model_DBTable_Comment')) {

    // Save the comment into the database
    $table = new Default_Model_DBTable_Comment();
    $table->insert($data);

} else {
    echo 'NO WAY';
}
</code></pre>
<p>Very useful when trying to create a modular site system. This way we can determine for instance if a site should have the ability to log questions posted on the contact page or not, based on whether they have the model available to handle the transactions.</p>
<p>Obvious overhead in if_file_exists calls made.</p>
]]></content:encoded>
			<wfw:commentRss>http://ianwarner.com/autoload-check-if-class-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
