<?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>God Object &#187; Development</title>
	<atom:link href="http://www.god-object.com/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.god-object.com</link>
	<description>Because I know too much</description>
	<lastBuildDate>Wed, 28 Sep 2011 09:34:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Zend_Pdf and damaged PDF files in acrobat</title>
		<link>http://www.god-object.com/2010/01/25/zend_pdf-and-damaged-pdf-files-in-acrobat/</link>
		<comments>http://www.god-object.com/2010/01/25/zend_pdf-and-damaged-pdf-files-in-acrobat/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:47:37 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[Acrobat]]></category>
		<category><![CDATA[Zend_Pdf]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=262</guid>
		<description><![CDATA[Playing with Zend_Pdf all my files open perfectly in preview.app. But switching to Adobe Acrobat I got this error: Adobe Reader could not open 'file.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). I [...]]]></description>
			<content:encoded><![CDATA[<p>Playing with Zend_Pdf all my files open perfectly in <code>preview.app</code>. But switching to Adobe Acrobat I got this error:</p>
<p><code>Adobe Reader could not open 'file.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).</code></p>
<p>I had the <code>noViewRenderer</code> set in my action but that wasn&#8217;t enough. Place the snippet below in your controller action:</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;_helper-&gt;layout-&gt;disableLayout();
self::getFrontController()-&gt;setParam(&quot;noViewRenderer&quot;, true);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2010/01/25/zend_pdf-and-damaged-pdf-files-in-acrobat/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Zend_Form, Validators and Custom Error Messages</title>
		<link>http://www.god-object.com/2010/01/08/zend_form-validators-and-custom-error-messages/</link>
		<comments>http://www.god-object.com/2010/01/08/zend_form-validators-and-custom-error-messages/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 17:22:21 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=244</guid>
		<description><![CDATA[Below is a code snippet if you want a simple sign-up form on you website using Zend_Form. Features are set email adres to lowercase using Zend_Filter_StringToLower. Use Zend_Validate_Emailaddress, to check the correctness of the email address. Check password for StringLenght; minimal 6 &#38; maximum 20 characters. Custom error messages for Zend_Validate_StringLenght. Check for identical password entered [...]]]></description>
			<content:encoded><![CDATA[<p>Below is a code snippet if you want a simple sign-up form on you website using <code>Zend_Form</code>.</p>
<p>Features are</p>
<ul>
<li>set email adres to lowercase using <code>Zend_Filter_StringToLower</code>.</li>
<li>Use <code>Zend_Validate_Emailaddress</code>, to check the correctness of the email address.</li>
<li>Check password for <code>StringLenght</code>; minimal 6 &amp; maximum 20 characters.</li>
<li>Custom error messages for <code>Zend_Validate_StringLenght</code>.</li>
<li>Check for identical password entered using <code>Zend_Validate_Identical</code>, and custom error message.</li>
<li>Decorators to display the error messages.</li>
<li><code>Zend_Filter_StringTrim</code> to trim possible whitespace.</li>
</ul>
<pre class="brush: php; title: ; notranslate">
&lt;?php
class Login_Form extends Zend_Form
{
    public function init()
    {
        $username = $this-&gt;addElement('text', 'email', array(
            'filters'    =&gt; array('StringTrim', 'StringToLower'),
            'validators' =&gt; array(
                'EmailAddress',
            ),
            'required'   =&gt; true,
            'label'      =&gt; 'E-mail address',
        ));

        $password = $this-&gt;addElement('password', 'password', array(
            'filters'    =&gt; array('StringTrim'),
            'validators' =&gt; array( array(
                'StringLength', false, array(6,20,'messages' =&gt; array(
					Zend_Validate_StringLength::TOO_SHORT =&gt; 'Your password is too short.',
					Zend_Validate_StringLength::TOO_LONG =&gt; 'Your password is too long.',
					)))),
            'required'   =&gt; true,
            'label'      =&gt; 'Your password'
        ));

        $password2 = $this-&gt;addElement('password', 'password2', array(
            'filters'    =&gt; array('StringTrim'),
            'validators' =&gt; array('Identical'),
            'required'   =&gt; true,
            'label'      =&gt; 'Retype your password',
        ));

        $login = $this-&gt;addElement('submit', 'Sign up', array(
            'required' =&gt; false,
            'ignore'   =&gt; true,
            'label'    =&gt; 'Register',
        ));

        $this-&gt;setDecorators(array(
            'FormElements',
            array('HtmlTag', array('tag' =&gt; 'dl', 'class' =&gt; 'zend_form')),
            array('Description', array('placement' =&gt; 'prepend')),
            'Form'
        ));
    }

    public function isValid ($data)
        {
            $passTwice = $this-&gt;getElement('password2');
            $passTwice-&gt;getValidator('Identical')-&gt;setToken($data['password'])-&gt;setMessage('Passwords don\'t match.');
            return parent::isValid($data);
        }
}
</pre>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2010/01/08/zend_form-validators-and-custom-error-messages/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FileVault and Web development</title>
		<link>http://www.god-object.com/2009/12/04/filevault-and-web-development/</link>
		<comments>http://www.god-object.com/2009/12/04/filevault-and-web-development/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 15:09:14 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[FileVault]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=230</guid>
		<description><![CDATA[I use FileVault on my Snow Leopard setup to protect my precious code. When I turned it on my local apache couldn&#8217;t accesss my local test folder of PHP code anymore. To correct this you need to adjust the apache user in the httpd.conf. You can find the snippet below around line number 130. change [...]]]></description>
			<content:encoded><![CDATA[<p>I use FileVault on my Snow Leopard setup to protect my precious code. When I turned it on my local apache couldn&#8217;t accesss my local test folder of PHP code anymore.</p>
<p>To correct this you need to adjust the apache user in the <code>httpd.conf</code>. You can find the snippet below around line number 130.</p>
<pre class="brush: plain; title: ; notranslate">
User www
Group www
</pre>
<p>change it to your local unix name</p>
<pre class="brush: plain; title: ; notranslate">
User webpatser
Group www
</pre>
<p>You can leave the group setting. If there are multiple users on the system using FileVault, this is, I guess, not the answer to the problem&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2009/12/04/filevault-and-web-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Studio 7.1 beta and Mylyn</title>
		<link>http://www.god-object.com/2009/11/26/zend-studio-7-1-beta-and-mylyn/</link>
		<comments>http://www.god-object.com/2009/11/26/zend-studio-7-1-beta-and-mylyn/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 14:15:22 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[mylyn]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=214</guid>
		<description><![CDATA[Doing a update check in the Zend Studio 7.1 beta generates an error when trying to update the Mylyn connectors This update prevents the Atlassian plugin to work properly. Good news is that in the final release of Zend Studio 7.1, Mylyn 3.3 is installed, so we have to wait for the final version.]]></description>
			<content:encoded><![CDATA[<p>Doing a update check in the Zend Studio 7.1 beta generates an error when trying to update the Mylyn connectors</p>
<pre class="brush: plain; title: ; notranslate">
Cannot complete the install because of a conflicting dependency.
  Software being installed: Mylyn WikiText SDK 1.2.0.v20091015-0500-e3x (org.eclipse.mylyn.wikitext.sdk.feature.group 1.2.0.v20091015-0500-e3x)
  Software currently installed: Zend Studio 7.1.0.v20091014 (com.zend.php.ide 7.1.0.v20091014)
  Only one of the following can be installed at once:
    Mylyn WikiText TracWiki UI 1.2.0.v20091015-0500-e3x (org.eclipse.mylyn.wikitext.tracwiki.ui 1.2.0.v20091015-0500-e3x)
    Mylyn WikiText TracWiki UI 1.1.2.v20090912-0400-e3x (org.eclipse.mylyn.wikitext.tracwiki.ui 1.1.2.v20090912-0400-e3x)
  Cannot satisfy dependency:
    From: Zend Studio 7.1.0.v20091014 (com.zend.php.ide 7.1.0.v20091014)
    To: org.eclipse.mylyn.wikitext_feature.feature.group [1.1.2.v20090912-0400-e3x]
  Cannot satisfy dependency:
    From: Mylyn WikiText SDK 1.2.0.v20091015-0500-e3x (org.eclipse.mylyn.wikitext.sdk.feature.group 1.2.0.v20091015-0500-e3x)
    To: org.eclipse.mylyn.wikitext.tracwiki.ui [1.2.0.v20091015-0500-e3x]
  Cannot satisfy dependency:
    From: Mylyn WikiText 1.1.2.v20090912-0400-e3x (org.eclipse.mylyn.wikitext_feature.feature.group 1.1.2.v20090912-0400-e3x)
    To: org.eclipse.mylyn.wikitext.tracwiki.ui [1.1.2.v20090912-0400-e3x]
</pre>
<p>This update prevents the <code>Atlassian plugin</code> to work properly. Good news is that in the final release of Zend Studio 7.1, <code>Mylyn 3.3</code> is installed, so we have to wait for the final version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2009/11/26/zend-studio-7-1-beta-and-mylyn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>R.I.P. ZendCodeAnalyzer</title>
		<link>http://www.god-object.com/2009/10/31/r-i-p-zendcodeanalyzer/</link>
		<comments>http://www.god-object.com/2009/10/31/r-i-p-zendcodeanalyzer/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 12:16:14 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[phpUnderControl]]></category>
		<category><![CDATA[code analyzer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=197</guid>
		<description><![CDATA[In the new Zend Studio 7.1 beta the ZendCodeAnalyzer binary plugin is replaced by acom.zend.php.semanticanalysis.core_7.1.0 eclipse plugin. The functionality seems the same, but there is one drawback&#8230; I use the old ZendCodeAnalyzer in combination with php_codesniffer to check for potential code errors in our subversion repository, using phpUnderControl. The old binary had some problems on [...]]]></description>
			<content:encoded><![CDATA[<p>In the new Zend Studio 7.1 beta the ZendCodeAnalyzer binary plugin is replaced by acom.zend.php.semanticanalysis.core_7.1.0 eclipse plugin.</p>
<p>The functionality seems the same, but there is one drawback&#8230;</p>
<p>I use the old ZendCodeAnalyzer in combination with <a title="php_codeSniffer" href="http://pear.php.net/package/PHP_CodeSniffer" target="_blank">php_codesniffer</a> to check for potential code errors in our subversion repository, using <a title="phpUnderControl" href="http://phpundercontrol.org/" target="_blank">phpUnderControl</a>. The old binary had some problems on &#8216;newer&#8217; Ubuntu&#8217;s but was running perfectly on Snow Leopard / windows. The new jar version doesn&#8217;t run stand-alone, but hopefully Zend will add this option to the jar-package or maybe open-source the ZendCodeAnalyzer so that functionality is not lost&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2009/10/31/r-i-p-zendcodeanalyzer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jiraPress released</title>
		<link>http://www.god-object.com/2009/10/18/jirapress-released/</link>
		<comments>http://www.god-object.com/2009/10/18/jirapress-released/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 22:51:18 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JIRA]]></category>
		<category><![CDATA[jiraPress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[issues]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=99</guid>
		<description><![CDATA[I just created my first wordpress plugin. It&#8217;s a very small but handy plugin for making hyperlinks to JIRA issue trackers. I&#8217;m using it already here in this post. A changelog post with links to the actual issues is now just a matter op copy-pasting&#8230; Check the jiraPress page for more details. When my codex.wordpress.com [...]]]></description>
			<content:encoded><![CDATA[<p>I just created my first wordpress plugin. It&#8217;s a very small but handy plugin for making hyperlinks to JIRA issue trackers. I&#8217;m using it already here in <a title="just released: Zend Framework 1.9.4" href="http://www.god-object.com/2009/10/17/just-released-zend-framework-1-9-4/">this post</a>. A changelog post with links to the actual issues is now just a matter op copy-pasting&#8230;</p>
<p>Check the <a title="jiraPress" href="http://www.god-object.com/wordpress-plugins/jirapress/">jiraPress</a> page for more details.</p>
<p>When my codex.wordpress.com project is approved I&#8217;ll upload it there, for you to download.</p>
<p>You can download is from: <a title="jiraPress - Issue linking for wordPress" href="http://wordpress.org/extend/plugins/jirapress/" target="_blank">http://wordpress.org/extend/plugins/jirapress/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2009/10/18/jirapress-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>just released: JSONView 0.4</title>
		<link>http://www.god-object.com/2009/10/16/just-released-jsonview-0-4/</link>
		<comments>http://www.god-object.com/2009/10/16/just-released-jsonview-0-4/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 13:45:11 +0000</pubDate>
		<dc:creator>webpatser</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.god-object.com/?p=53</guid>
		<description><![CDATA[Version 0.4 was released a few days ago, adding support for JSONP. JSONView is a add-on for firefox and really helps debugging JSON server-respones. Read about version 0.4 in the developers blog.]]></description>
			<content:encoded><![CDATA[<p>Version 0.4 was released a few days ago, adding support for JSONP.</p>
<p>JSONView is a add-on for firefox and really helps debugging JSON server-respones. Read about version 0.4 in the <a title="JSONView 0.4" href="http://brh.numbera.com/blog/2009/10/12/jsonview-0-4-with-content-negotiation/">developers blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.god-object.com/2009/10/16/just-released-jsonview-0-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

