<?xml version="1.0" encoding="UTF-8"?>
<!--Generated by Squarespace Site Server v5.11.81 (http://www.squarespace.com/) on Wed, 30 May 2012 17:48:48 GMT--><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Blog</title><link>http://www.frodosghost.com/blog/</link><description></description><lastBuildDate>Thu, 03 May 2012 01:16:44 +0000</lastBuildDate><copyright></copyright><language>en-AU</language><generator>Squarespace Site Server v5.11.81 (http://www.squarespace.com/)</generator><item><title>Being this "Turkey" is not being a "Developer"</title><category>Articles</category><category>developer</category><category>development</category><category>estimate</category><category>programming</category><category>respect</category><category>tiger</category><category>time</category><category>turkey</category><dc:creator>James</dc:creator><pubDate>Wed, 02 May 2012 12:36:00 +0000</pubDate><link>http://www.frodosghost.com/blog/2012/5/2/being-this-turkey-is-not-being-a-developer.html</link><guid isPermaLink="false">1077820:12922184:16093149</guid><description><![CDATA[They sit in the corner, take the spec sheet from their manager, check over the items and hang their head or beat it against the table. It is all too impossible.<br /><br />
They seek solace in the discussions with fellow developers who are in the same position, talking about their terrible colleagues and the mess that keeps befalling them.<br /><br />
They are not a developers. They are not someone who I would trust to code an xml document with two nodes. They are a turkeys.]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-16093149.xml</wfw:commentRss></item><item><title>Table Inheritance with Symfony2</title><category>Web Programming</category><category>configuration</category><category>doctrine2</category><category>inheritance</category><category>joined</category><category>setup</category><category>single_table</category><category>symfony2</category><dc:creator>James</dc:creator><pubDate>Fri, 13 Apr 2012 06:54:42 +0000</pubDate><link>http://www.frodosghost.com/blog/2012/4/13/table-inheritance-with-symfony2.html</link><guid isPermaLink="false">1077820:12922184:15824578</guid><description><![CDATA[<p>Setting up Doctrine2 Table Inheritance with Symfony2 Entities with the annotation method.</p>
]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-15824578.xml</wfw:commentRss></item><item><title>Installing phing on OS X</title><category>Web Programming</category><category>apple</category><category>mac</category><category>osx</category><category>phing</category><category>php</category><dc:creator>James</dc:creator><pubDate>Wed, 11 Jan 2012 01:40:21 +0000</pubDate><link>http://www.frodosghost.com/blog/2012/1/11/installing-phing-on-os-x.html</link><guid isPermaLink="false">1077820:12922184:14529184</guid><description><![CDATA[<p>Install phing on Mac OS X</p>
]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-14529184.xml</wfw:commentRss></item><item><title>Estimating: or how to explain your time before spending any at all</title><category>Articles</category><category>estimating</category><category>learning</category><category>management</category><category>project</category><category>quoting</category><category>time</category><dc:creator>James</dc:creator><pubDate>Tue, 13 Dec 2011 11:39:55 +0000</pubDate><link>http://www.frodosghost.com/blog/2011/12/13/estimating-or-how-to-explain-your-time-before-spending-any-a-3.html</link><guid isPermaLink="false">1077820:12922184:14086909</guid><description><![CDATA[<p>Putting a value on a task before you start is something that fails more times that it succeeds. Learning how to do this is important for great project management, and a skill that should be acquired.</p>
]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-14086909.xml</wfw:commentRss></item><item><title>Fixing Quarantined Files on OSX</title><category>Articles</category><category>OS X</category><category>Operating System</category><category>command line</category><category>osx</category><category>quarantine</category><category>terminal</category><dc:creator>James</dc:creator><pubDate>Tue, 30 Aug 2011 08:50:48 +0000</pubDate><link>http://www.frodosghost.com/blog/2011/8/30/fixing-quarantined-files-on-osx.html</link><guid isPermaLink="false">1077820:12922184:13653749</guid><description><![CDATA[Apple quarantine on local files appeared to be returning a 403 error when browsing the site.]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-13653749.xml</wfw:commentRss></item><item><title>Easing Launch Stress</title><category>Articles</category><category>launch</category><category>manage</category><category>project</category><category>stress</category><dc:creator>James</dc:creator><pubDate>Thu, 26 May 2011 22:00:36 +0000</pubDate><link>http://www.frodosghost.com/blog/2011/5/27/easing-launch-stress.html</link><guid isPermaLink="false">1077820:12922184:13653748</guid><description><![CDATA[Talking about making change is easiest. Investing money in a large project is easy. Putting the wheels in motion to change business practices is more difficult. All these require no actual change to established practices. The system change-over is where the doubts all get to the surface and all your hard work is brought into the spotlight.

The client panicked and is now look at putting all the old system bugs back into your brilliant new software. Is there anything you can do to remove or ease this stress?]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-13653748.xml</wfw:commentRss></item><item><title>Extending Prototype for Aborting Ajax Requests</title><category>Prototype</category><category>Web Programming</category><category>ajax</category><category>extending</category><category>javascript</category><category>prototype</category><category>request</category><dc:creator>James</dc:creator><pubDate>Mon, 16 May 2011 12:02:28 +0000</pubDate><link>http://www.frodosghost.com/blog/2011/5/16/extending-prototype-for-aborting-ajax-requests.html</link><guid isPermaLink="false">1077820:12922184:13653747</guid><description><![CDATA[An Ajax.Request is made to the server and the information that triggered the request is no longer valid. You wish to stop the Request to commence another. <br/><br/>Steven has a solution from a long time ago :: <a href="http://bit.ly/mkUHNc" title="Aborting Ajax requests (for prototype.js)">Aborting Ajax requests (for prototype.js)</a>. Here it is extending the Ajax.Request object so you can call .abort on the handle.<br/><br/><script src="https://gist.github.com/974316.js?file=prototype_extend.js"></script><br/><br/>]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-13653747.xml</wfw:commentRss></item><item><title>PHPUnit Installed on Mac OSX</title><category>Articles</category><category>Test Driven Development</category><category>Web Programming</category><category>command</category><category>command line</category><category>configure</category><category>development</category><category>editing</category><category>php</category><category>phpunit</category><category>setup</category><category>symfony2</category><category>test driven development</category><category>unit testing</category><dc:creator>James</dc:creator><pubDate>Mon, 18 Apr 2011 12:36:24 +0000</pubDate><link>http://www.frodosghost.com/blog/2011/4/18/phpunit-installed-on-mac-osx.html</link><guid isPermaLink="false">1077820:12922184:13653746</guid><description><![CDATA[I think I failed in every possible way setting this up, at least this guide should be exhaustive, it is how I felt making all these changes.<!--more--><br/><h3>Configure Pear</h3><br/>Discover the channels for the pear install to run. The main channel and it also requires files from other repositories.<br/><br/>[bash]sudo pear channel-discover pear.phpunit.de[/bash]<br/><br/>[bash]sudo pear channel-discover pear.symfony-project.com<br/>sudo pear channel-discover components.ez.no[/bash]<br/><br/>Run the install::<br/><br/>[bash]sudo pear install phpunit/PHPUnit[/bash]<br/><h3>Command Line</h3><br/>Command line needs a reference on where to look when the command <em>phpunit</em> is called. This is configured in the <em>.bash_profile</em>:<br/><br/>[bash]sudo nano ~/.bash_profile[/bash]<br/><br/>Add the line below, save and exit. Quit Terminal and reopen the window again.<br/><br/>[bash]export PATH=/usr/local/bin:$PATH[/bash]<br/><br/>This is telling the command line, when a command is called, it will look for the function to run in one of the directories.<br/><h3>Include Path</h3><br/>Finally, you will need to update the include_path in your <em>php.ini</em> file. I have seen some tutorials where a symbolic link is used to fake-configure the include path. This is not a great idea, because all the <em>require_once</em> calls in the Pear library need to reference the include files.<br/><br/>It is best to update the <em>php.ini</em> file - once change configures everything. Look in the <em>php.ini</em> file to find the lines ::<br/><br/>[bash]; UNIX: &quot;/path1:/path2&quot;<br/>include_path = &quot;php/includes&quot;[/bash]<br/><br/>And add the directory which points to your PEAR library ::<br/><br/>[bash]include_path = &quot;/usr/local/PEAR:php/includes&quot;[/bash]<br/><br/>You may need to include a <em>.:</em> at the start, like this ::<br/><br/>[bash]include_path = &quot;.:/usr/local/PEAR:php/includes&quot;[/bash]<br/><h3>Caution</h3><br/>Watch out here. If you are like me, and for some stupid reason you have XAMPP running on a Mac, there is a fair chance that you will have more than one php.ini file. This causes confusion and delay.<br/><br/>[bash]PHP Warning:  require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/local/bin/phpunit on line 38<br/>PHP Fatal error:  require_once(): Failed opening required 'PHP/CodeCoverage/Filter.php' (include_path='php/includes') in /usr/local/bin/phpunit on line 38[/bash]<br/><br/>If you get an error like this, it is saying that the function 'phpunit' cannot find the correct file to require. This caused me hours of trouble.<br/><br/>To find which <em>php.ini</em> the computer is running the <em>include_path</em> from just type:<br/><br/>[bash]php --ini[/bash]<br/><br/>This will result in something like ::<br/>[bash]Configuration File (php.ini) Path: /etc<br/>Loaded Configuration File:         /private/etc/php.ini<br/>Scan for additional .ini files in: (none)<br/>Additional .ini files parsed:      (none)[/bash]<br/><br/>Edit this php.ini and it should correct the require_once functions.<br/><h3>Command Not Found</h3><br/>[bash]phpunit: command not found[/bash]<br/><em>phpunit</em> needs to be in a bin folder to run on the command line. This usually happens on pear install of phpunit, but if you're a numpty, like me, who has deleted it then the best way to correct it is force an install.<br/><br/>[bash]sudo pear install --force --alldeps phpunit/PHPUnit[/bash]<br/><h3>~End</h3><br/>[bash]PHPUnit 3.5.13 by Sebastian Bergmann.[/bash]<br/><br/><h3>Bonus</h3><br/>For those playing at home... You will notice I am using 'nano' as the editor ~ Not hardcore enough to use vim yet. The commands below are for my future reference, so feel free to ignore them.<br/><br/><strong>ctrl</strong> + <strong>w</strong> = Search the file. So hit the keys and type <em>;include_path</em> in the <em>ini</em> file.<br/><strong>ctrl</strong> + <strong>x</strong> = Save and Quit.]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-13653746.xml</wfw:commentRss></item><item><title>The Production Server has Bad Code, and The Bad Code is Yours</title><category>Articles</category><category>Web Programming</category><category>break</category><category>bug</category><category>code</category><category>development</category><category>fail</category><category>procedures</category><category>repository</category><category>testing</category><category>trouble</category><category>what would rands do</category><dc:creator>James</dc:creator><pubDate>Thu, 16 Sep 2010 14:20:58 +0000</pubDate><link>http://www.frodosghost.com/blog/2010/9/16/the-production-server-has-bad-code-and-the-bad-code-is-yours.html</link><guid isPermaLink="false">1077820:12922184:13653745</guid><description><![CDATA[I broke something today and I asked myself "What Would Rands Do?". 

Five minutes before knocking off there is obviously a problem. That sinking feeling struck as soon as the words drifted across the partition. "A problem? But there can't be, I don't code in #Fail."]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-13653745.xml</wfw:commentRss></item><item><title>Test your Apache Configuration</title><category>Apache</category><category>Web Programming</category><category>apache</category><category>config</category><category>configtest</category><category>programming</category><category>testing</category><category>vhost</category><dc:creator>James</dc:creator><pubDate>Wed, 11 Aug 2010 12:15:20 +0000</pubDate><link>http://www.frodosghost.com/blog/2010/8/11/test-your-apache-configuration.html</link><guid isPermaLink="false">1077820:12922184:13653744</guid><description><![CDATA[We have all done it before. Changed the vhosts configuration, left a spelling mistake and restarted the server only to have everything die. Then I spend too much time trying to find my error, which doesn't look like an error.

So I don't forget, here is how to test.]]></description><wfw:commentRss>http://www.frodosghost.com/blog/rss-comments-entry-13653744.xml</wfw:commentRss></item></channel></rss>
