<?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:49:12 GMT--><feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/"><title>Blog</title><subtitle>Blog</subtitle><id>http://www.frodosghost.com/blog/</id><link rel="alternate" type="application/xhtml+xml" href="http://www.frodosghost.com/blog/"/><link rel="self" type="application/atom+xml" href="http://www.frodosghost.com/blog/atom.xml"/><updated>2012-05-03T01:16:44Z</updated><generator uri="http://www.squarespace.com/" version="Squarespace Site Server v5.11.81 (http://www.squarespace.com/)">Squarespace</generator><entry><title>Being this "Turkey" is not being a "Developer"</title><category term="Articles"/><category term="developer"/><category term="development"/><category term="estimate"/><category term="programming"/><category term="respect"/><category term="tiger"/><category term="time"/><category term="turkey"/><id>http://www.frodosghost.com/blog/2012/5/2/being-this-turkey-is-not-being-a-developer.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2012/5/2/being-this-turkey-is-not-being-a-developer.html"/><author><name>James</name></author><published>2012-05-02T12:36:00Z</published><updated>2012-05-02T12:36:00Z</updated><summary type="html" xml:lang="en-AU"><![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.]]></summary></entry><entry><title>Table Inheritance with Symfony2</title><category term="Web Programming"/><category term="configuration"/><category term="doctrine2"/><category term="inheritance"/><category term="joined"/><category term="setup"/><category term="single_table"/><category term="symfony2"/><id>http://www.frodosghost.com/blog/2012/4/13/table-inheritance-with-symfony2.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2012/4/13/table-inheritance-with-symfony2.html"/><author><name>James</name></author><published>2012-04-13T06:54:42Z</published><updated>2012-04-13T06:54:42Z</updated><summary type="html" xml:lang="en-AU"><![CDATA[<p>Setting up Doctrine2 Table Inheritance with Symfony2 Entities with the annotation method.</p>
]]></summary></entry><entry><title>Installing phing on OS X</title><category term="Web Programming"/><category term="apple"/><category term="mac"/><category term="osx"/><category term="phing"/><category term="php"/><id>http://www.frodosghost.com/blog/2012/1/11/installing-phing-on-os-x.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2012/1/11/installing-phing-on-os-x.html"/><author><name>James</name></author><published>2012-01-11T01:40:21Z</published><updated>2012-01-11T01:40:21Z</updated><summary type="html" xml:lang="en-AU"><![CDATA[<p>Install phing on Mac OS X</p>
]]></summary></entry><entry><title>Estimating: or how to explain your time before spending any at all</title><category term="Articles"/><category term="estimating"/><category term="learning"/><category term="management"/><category term="project"/><category term="quoting"/><category term="time"/><id>http://www.frodosghost.com/blog/2011/12/13/estimating-or-how-to-explain-your-time-before-spending-any-a-3.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2011/12/13/estimating-or-how-to-explain-your-time-before-spending-any-a-3.html"/><author><name>James</name></author><published>2011-12-13T11:39:55Z</published><updated>2011-12-13T11:39:55Z</updated><summary type="html" xml:lang="en-AU"><![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>
]]></summary></entry><entry><title>Fixing Quarantined Files on OSX</title><category term="Articles"/><category term="OS X"/><category term="Operating System"/><category term="command line"/><category term="osx"/><category term="quarantine"/><category term="terminal"/><id>http://www.frodosghost.com/blog/2011/8/30/fixing-quarantined-files-on-osx.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2011/8/30/fixing-quarantined-files-on-osx.html"/><author><name>James</name></author><published>2011-08-30T08:50:48Z</published><updated>2011-08-30T08:50:48Z</updated><summary type="html" xml:lang="en-AU"><![CDATA[Apple quarantine on local files appeared to be returning a 403 error when browsing the site.]]></summary></entry><entry><title>Easing Launch Stress</title><category term="Articles"/><category term="launch"/><category term="manage"/><category term="project"/><category term="stress"/><id>http://www.frodosghost.com/blog/2011/5/27/easing-launch-stress.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2011/5/27/easing-launch-stress.html"/><author><name>James</name></author><published>2011-05-26T22:00:36Z</published><updated>2011-05-26T22:00:36Z</updated><summary type="html" xml:lang="en-AU"><![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?]]></summary></entry><entry><title>Extending Prototype for Aborting Ajax Requests</title><category term="Prototype"/><category term="Web Programming"/><category term="ajax"/><category term="extending"/><category term="javascript"/><category term="prototype"/><category term="request"/><id>http://www.frodosghost.com/blog/2011/5/16/extending-prototype-for-aborting-ajax-requests.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2011/5/16/extending-prototype-for-aborting-ajax-requests.html"/><author><name>James</name></author><published>2011-05-16T12:02:28Z</published><updated>2011-05-16T12:02:28Z</updated><content type="html" xml:lang="en-AU"><![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/>]]></content></entry><entry><title>PHPUnit Installed on Mac OSX</title><category term="Articles"/><category term="Test Driven Development"/><category term="Web Programming"/><category term="command"/><category term="command line"/><category term="configure"/><category term="development"/><category term="editing"/><category term="php"/><category term="phpunit"/><category term="setup"/><category term="symfony2"/><category term="test driven development"/><category term="unit testing"/><id>http://www.frodosghost.com/blog/2011/4/18/phpunit-installed-on-mac-osx.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2011/4/18/phpunit-installed-on-mac-osx.html"/><author><name>James</name></author><published>2011-04-18T12:36:24Z</published><updated>2011-04-18T12:36:24Z</updated><content type="html" xml:lang="en-AU"><![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.]]></content></entry><entry><title>The Production Server has Bad Code, and The Bad Code is Yours</title><category term="Articles"/><category term="Web Programming"/><category term="break"/><category term="bug"/><category term="code"/><category term="development"/><category term="fail"/><category term="procedures"/><category term="repository"/><category term="testing"/><category term="trouble"/><category term="what would rands do"/><id>http://www.frodosghost.com/blog/2010/9/16/the-production-server-has-bad-code-and-the-bad-code-is-yours.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2010/9/16/the-production-server-has-bad-code-and-the-bad-code-is-yours.html"/><author><name>James</name></author><published>2010-09-16T14:20:58Z</published><updated>2010-09-16T14:20:58Z</updated><summary type="html" xml:lang="en-AU"><![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."]]></summary></entry><entry><title>Test your Apache Configuration</title><category term="Apache"/><category term="Web Programming"/><category term="apache"/><category term="config"/><category term="configtest"/><category term="programming"/><category term="testing"/><category term="vhost"/><id>http://www.frodosghost.com/blog/2010/8/11/test-your-apache-configuration.html</id><link rel="alternate" type="text/html" href="http://www.frodosghost.com/blog/2010/8/11/test-your-apache-configuration.html"/><author><name>James</name></author><published>2010-08-11T12:15:20Z</published><updated>2010-08-11T12:15:20Z</updated><summary type="html" xml:lang="en-AU"><![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.]]></summary></entry></feed>
