<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Anything Geek Related</title>
	<atom:link href="http://debounce.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://debounce.wordpress.com</link>
	<description>Anything to do with Dev</description>
	<lastBuildDate>Mon, 26 Jul 2010 01:07:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='debounce.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/475c7a4c8c16c61439ebfd02a6e0e03d?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Anything Geek Related</title>
		<link>http://debounce.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://debounce.wordpress.com/osd.xml" title="Anything Geek Related" />
	<atom:link rel='hub' href='http://debounce.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How not to display fault exception messages</title>
		<link>http://debounce.wordpress.com/2010/07/26/how-not-to-display-fault-exception-messages/</link>
		<comments>http://debounce.wordpress.com/2010/07/26/how-not-to-display-fault-exception-messages/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 01:07:07 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone4]]></category>
		<category><![CDATA[optus]]></category>

		<guid isPermaLink="false">http://debounce.org/?p=79</guid>
		<description><![CDATA[With the imminent release of the iPhone 4 in Australia, I received an email from Optus to pre-register for the lineup outside the Optus stores. Unfortunately, when I visit the link: Optus pre-registration I get the following error message: Hypersite with URL 'https://optusiphone4.com/content/launch?elq=97148e61ae704842868620d3dcf34102' could not be found (Fault Type: System.ServiceModel.FaultException) - (Fault Code: System.ServiceModel.FaultCode) This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=79&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With the imminent release of the iPhone 4 in Australia, I received an email from Optus to pre-register for the lineup outside the Optus stores.</p>
<p>Unfortunately, when I visit the link: <a href="https://optusiphone4.com/content/launch?elq=97148e61ae704842868620d3dcf34102">Optus pre-registration</a> I get the following error message:</p>
<pre>Hypersite with URL 'https://optusiphone4.com/content/launch?elq=97148e61ae704842868620d3dcf34102' could not be found  (<span style="color:#0000ff;">Fault Type: System.ServiceModel.FaultException</span>) - (<span style="color:#0000ff;">Fault Code: System.ServiceModel.FaultCode</span>)</pre>
<p>This is a SOAP exception error and indicates this site uses M$ ASP.NET.I am dumbfounded that this error message is not more properly handled (as indicated by <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.faultexception.aspx">MSDN FaultException</a> better fault handling should occur via using a FaultContractAttribute) and a more intuitive web page is provided e.g. a web page with &#8220;Thankyou for your interest but currently we are overloaded. Please try again later&#8221; or even cooler a Twitter version of a Fail Whale will suffice , though I suspect they did not expect this level of interest for the release of the iPhone 4 in Australia.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=79&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2010/07/26/how-not-to-display-fault-exception-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>Quirks of PHPUnit &amp; Xdebug setup in Ubuntu 9.10 (Karmic Koala)</title>
		<link>http://debounce.wordpress.com/2010/07/07/quirks-of-phpunit-xdebug-setup-ubuntu-karmic-koala/</link>
		<comments>http://debounce.wordpress.com/2010/07/07/quirks-of-phpunit-xdebug-setup-ubuntu-karmic-koala/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 04:25:25 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://debounce.org/?p=68</guid>
		<description><![CDATA[PHPUnit is a good Unit Testing framework for PHP and works well with the Zend framework. Setup Quirks for PHPUnit &#38; Xdebug It is especially easy (installing &#38; configuring via PEAR &#8211; PHP equivalent of CPAN for Perl) [thank you Sebastian for the update]: &#62;sudo apt-get install php-pear &#62;sudo pear upgrade-all PEAR &#62;sudo pear channel-update [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=68&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>PHPUnit is a good Unit Testing framework for PHP and works well with the Zend framework.</p>
<h3>Setup Quirks for PHPUnit &amp; Xdebug</h3>
<p>It is especially easy (installing &amp; configuring via PEAR &#8211; PHP equivalent of CPAN for Perl) [thank you Sebastian for the update]:</p>
<pre>&gt;sudo apt-get install php-pear</pre>
<pre>&gt;sudo pear upgrade-all PEAR</pre>
<pre>&gt;sudo pear channel-update PEAR</pre>
<pre>&gt;sudo pear channel-discover pear.phpunit.de</pre>
<pre>&gt;sudo pear install pear.phpunit.de/phpunit</pre>
<p>Install the xdebug libraries as well:</p>
<pre>&gt;sudo apt-get install php5-dev</pre>
<pre>&gt;sudo pecl install xdebug</pre>
<p>Edit the file /etc/php5/apache2/php.ini and add the following two lines to the bottom of the file:</p>
<pre>[xdebug]</pre>
<pre>zend_extension="/usr/lib/php5/20060613+lfs/xdebug.so"</pre>
<p>(Note that the xdebug.so file might be located in a different directory. Please double check this).</p>
<h3>PHPUnit Code Coverage Memory Quirk</h3>
<p>Another quirk is a memory hog issue that exists with the code coverage reporting done by PHPUnit.</p>
<p>As PHPUnit is run from the command line, you will need to modify the &#8216;cli&#8217; version of the php.ini file than rather apache2 directory version.</p>
<pre>&gt; vim /etc/php5/cli/php.ini</pre>
<p>And look for the memory_limit variable and set it to 512 Mb (Yes, it does take a lot memory!!).</p>
<pre>&gt;memory_limit = 512 M</pre>
<p>This is recommended by <a href="http://jeffreysambells.com/posts/2010/04/08/reporting-code-coverage-with-phpunit-and-xdebug/">Jeffrey Sambells </a></p>
<h3>PHPUnit erroneous package Quirk</h3>
<p>It appears that PHPUnit uses YUI for the javascript even though t is disabled in /usr/share/PHPUnit/TextUI/TestRunner.php ($arguments['reportYUI'] = FALSE;)</p>
<p>The error message being reported is the same as reported on <a href="https://bugs.launchpad.net/ubuntu/+source/phpunit/+bug/534376">Ubuntu launchpad</a>:</p>
<pre># phpunit --coverage-html coverage-html application
 PHPUnit 3.3.16 by Sebastian Bergmann.</pre>
<pre>Time: 0 seconds</pre>
<pre>OK (0 tests, 0 assertions)</pre>
<pre>Generating code coverage report, this may take a moment.
 Warning: copy(/usr/share/php/PHPUnit/Util/Report/Template/container-min.js): failed to open stream: No such file or directory in /usr/share/php/PHPUnit/Util/Report.php on line 242</pre>
<pre>Call Stack:
 0.0008      95544   1. {main}() /usr/bin/phpunit:0
 0.4147    6243128   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:52
 5.0970    6249232   3. PHPUnit_TextUI_TestRunner-&gt;doRun() /usr/share/php/PHPUnit/TextUI/Command.php:128
 5.0979    6263480   4. PHPUnit_Util_Report::render() /usr/share/php/PHPUnit/TextUI/TestRunner.php:424
 5.0989    6268848   5. PHPUnit_Util_Report::copyFiles() /usr/share/php/PHPUnit/Util/Report.php:115
 5.1511    6272616   6. copy() /usr/share/php/PHPUnit/Util/Report.php:242</pre>
<pre>Warning: copy(/usr/share/php/PHPUnit/Util/Report/Template/yahoo-dom-event.js): failed to open stream: No such file or directory in /usr/share/php/PHPUnit/Util/Report.php on line 242</pre>
<pre>Call Stack:
 0.0008      95544   1. {main}() /usr/bin/phpunit:0
 0.4147    6243128   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:52
 5.0970    6249232   3. PHPUnit_TextUI_TestRunner-&gt;doRun() /usr/share/php/PHPUnit/TextUI/Command.php:128
 5.0979    6263480   4. PHPUnit_Util_Report::render() /usr/share/php/PHPUnit/TextUI/TestRunner.php:424
 5.0989    6268848   5. PHPUnit_Util_Report::copyFiles() /usr/share/php/PHPUnit/Util/Report.php:115
 5.1743    6272616   6. copy() /usr/share/php/PHPUnit/Util/Report.php:242"</pre>
<p>The fix for this is relatively straightforward, though having an updated package should alleviate this. Doing a bit of googling showed there is a <a href="https://patches.ubuntu.com/by-release/extracted/debian/p/phpunit/3.3.17+repack-2/">patch</a>. Looking at the patch it was a simple case of editing /usr/share/php/PHPUnit/Util/Report.php and removing the offending javascript lines from the php script:</p>
<pre>-- /usr/share/php/PHPUnit/PHPUnit/Util/Report.php
+++ /usr/share/php/PHPUnit/PHPUnit/Util/Report.php
@@ -230,12 +230,10 @@
 'chameleon.png',
 'close12_1.gif',
 'container.css',
-          'container-min.js',
 'glass.png',
 'scarlet_red.png',
 'snow.png',
 'style.css',
-          'yahoo-dom-event.js'
 );</pre>
<p>Hope this helps whoever comes across the same quirks when setting up PHPUnit.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/68/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/68/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/68/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=68&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2010/07/07/quirks-of-phpunit-xdebug-setup-ubuntu-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>Python &#8211; 2 legged OAuth Woes</title>
		<link>http://debounce.wordpress.com/2009/11/01/python-2-legged-oauth-woes/</link>
		<comments>http://debounce.wordpress.com/2009/11/01/python-2-legged-oauth-woes/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 11:30:35 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[2-legged]]></category>
		<category><![CDATA[OAuth]]></category>

		<guid isPermaLink="false">http://debounce.org/?p=56</guid>
		<description><![CDATA[While I have been programming with Python I have found the following intricacies with the OAuth 2-legged approach, in regards to using web based APIs (all the examples are in Python &#38; refer to the Vimeo API). Note I don&#8217;t believe this is well documented, and have at times found the following confusing: When using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=56&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>While I have been programming with Python I have found the following intricacies with the OAuth 2-legged approach, in regards to using web based APIs (all the examples are in Python &amp; refer to the Vimeo API).</p>
<p>Note I don&#8217;t believe this is well documented, and have at times found the following confusing:</p>
<ol>
<li>When using Web based APIs, one does not need to be concerned about the concept of &#8216;tokens&#8217; if you are using a 2-legged OAuth approach (even though alot of sites proclaim that one should always be requesting for tokens, and even the python OAuth APIs that exist in github.com don&#8217;t really indicate that one does not need tokens). <em><span style="color:#3366ff;">This basically means you do not need a token if you are doing a HTTP &#8216;GET&#8217; request (depending which web based API you are using).</span></em></li>
<li>When using 2-legged OAuth (or 3-legged for that matter), <span style="color:#3366ff;"><em>you must indicate all the parameters that are going to be sent using the HTTP &#8216;GET&#8217; request (equally this should apply for &#8216;POST&#8217; requests as well) before you generate a &#8216;signature method&#8217;.</em></span></li>
<li>As of OAuth Standard 1.0a I believe there is a slightly broken nature in how OAuth is used and believe it is actually a flaw in the OAuth protocol, which I discovered by accident. When using a 2-legged approach (refer to example below), this method will &#8216;intermittently&#8217; work, when I first tested this (using the vimeo API), it actually worked for the 1st iteration, but failed consecutively for 3 iterations before working again and then intermittently after that:</li>
</ol>
<div id="_mcePaste" style="padding-left:30px;">#Using Leah Culver&#8217;s Python library @ http://github.com/leah/python-oauth</div>
<div style="padding-left:30px;">#Note I have deliberately left out my API key and secret for the purposes of this blog post</div>
<div style="padding-left:30px;">VIMEO_API_URL = &#8216;http://vimeo.com/oauth/v2&#8242;</div>
<div style="padding-left:30px;">consumer = oauth.OAuthConsumer(VIMEO_API_KEY, VIMEO_API_SEC)</div>
<div id="_mcePaste" style="padding-left:30px;">oauth_request = oauth.OAuthRequest.from_consumer_and_token(consumer, http_url=VIMEO_API_URL)</div>
<div style="padding-left:30px;">oauth_request.sign_request(oauth.OAuthSignatureMethod_HMAC_SHA1() , consumer, None)</div>
<div style="padding-left:30px;">#After I sign the request then I form the other parameters with the corresponding values:</div>
<div style="padding-left:30px;">http_request = &#8217;http://vimeo.com/api/rest/v2?&#8217; + &#8216;apiMethod&#8217; + &#8216;param_value&#8217; + str(oauth_request.to_postdata())</div>
<p>I originally thought it was a bug on the web API provider&#8217;s end, but it turned out to be a bug on how I perform the OAuth signing request. Basically, the <em>bug was that I was signing the request before setting/applying the web API methods/parameter values I wanted </em>(which obviously changed the hash of the signing request method). However, I believe that because it does not require a token, you can &#8216;brute force&#8217; it to intermittently work if you call it enough times (possibly because the hash code for the request signature matches once in a while).</p>
<p>However, with a bit of help from using the php example provided by vimeo for their OAuth API, I figured out that one had to encode the parameters before signing the request:</p>
<p style="padding-left:30px;">consumer = oauth.OAuthConsumer(VIMEO_API_KEY, VIMEO_API_SEC)</p>
<p style="padding-left:30px;">oauth_request = oauth.OAuthRequest.from_consumer_and_token(consumer, http_url=VIMEO_API_URL)</p>
<p style="padding-left:30px;"><strong>oauth_request.set_parameter(&#8216;format&#8217;, &#8216;json&#8217;)</strong></p>
<p style="padding-left:30px;"><strong>oauth_request.set_parameter(&#8216;method&#8217;, &#8216;vimeo.videos.getByTag&#8217;)</strong></p>
<p style="padding-left:30px;"><strong>oauth_request.set_parameter(&#8216;tag&#8217;, tagname)</strong></p>
<p style="padding-left:30px;">oauth_request.sign_request(oauth.OAuthSignatureMethod_HMAC_SHA1() , consumer, None)</p>
<p style="padding-left:30px;">http_request = &#8216;http://vimeo.com/api/v2?&#8217; + str(oauth_request.to_postdata())</p>
<p>Note: you could manually identify each OAuth required parameter without using the method: &#8216;from_consumer_and_token()&#8217; but I found it easier to use it to save some code space (though I think the name is somewhat counterintuitive) as a non-token http url needs to be specified and is used for 2-legged OAuth.</p>
<div>Hope this helps anyone else who is trying to figure out how to use 2-legged OAuth (whether using Python or not) and is using examples from the web or from examples in an OAuth library, though I believe all examples I found only covered 3-legged approach, which requires an actual token request! I don&#8217;t believe a wrapper needs to be written for the 2-legged approach but there needs to be better examples to help facilitate developers understanding the 2-legged approach.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=56&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2009/11/01/python-2-legged-oauth-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>iPhone 3.0 GM Seed Installation</title>
		<link>http://debounce.wordpress.com/2009/06/14/iphone-3-0-gm-seed-installation/</link>
		<comments>http://debounce.wordpress.com/2009/06/14/iphone-3-0-gm-seed-installation/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 21:53:48 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[iPhone & XCode dev]]></category>

		<guid isPermaLink="false">http://debounce.org/?p=43</guid>
		<description><![CDATA[I have found a problem with building in XCode after installing the SDK for the iPhone 3.0 GM Seed on top of the iPhone 3.0 Beta 5 release. When doing a build: Command + Enter, for a project built for iPhone 3.0 Beta 5, an error message pops up that indicates the developer certificate has [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=43&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have found a problem with building in XCode after installing the SDK for the iPhone 3.0 GM Seed on top of the iPhone 3.0 Beta 5 release.  When doing a build: Command + Enter, for a project built for iPhone 3.0 Beta 5, an error message pops up that indicates the <strong>developer certificate has been added, modified or deleted</strong>.</p>
<p>Solution: You have to go back to the target, and then <strong>toggle the Code Signing Identity-&gt;Any iPhone OS Device  to iPhone Developer</strong>.</p>
<p>This might be because I had XCode running while doing the installation of the GM Seed and had to use the &#8216;kill&#8217; terminal command.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=43&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2009/06/14/iphone-3-0-gm-seed-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding icon to iPhone springboard</title>
		<link>http://debounce.wordpress.com/2009/05/31/adding-icon-to-iphone-springboard/</link>
		<comments>http://debounce.wordpress.com/2009/05/31/adding-icon-to-iphone-springboard/#comments</comments>
		<pubDate>Sun, 31 May 2009 22:06:06 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[iPhone & XCode dev]]></category>

		<guid isPermaLink="false">http://debounce.wordpress.com/?p=38</guid>
		<description><![CDATA[Adding an icon is pretty easy. Make sure the picture is saved as a *.png. Drag&#8217;n drop this into XCode, underneath your project, under the section/folder Resources. You will be prompted if you want to copy the file or use the path. Copying is better as the picture will reside with the project. All you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=38&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Adding an icon is pretty easy. Make sure the picture is saved as a *.png.<br />
Drag&#8217;n drop this into XCode, underneath your project, under the section/folder <B>Resources.</B><br />
You will be prompted if you want to copy the file or use the path. Copying is better as the picture will reside with the project. All you have to do then is build&#8217;n run.  </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=38&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2009/05/31/adding-icon-to-iphone-springboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>iPhone 3.0 Beta Environment Setup</title>
		<link>http://debounce.wordpress.com/2009/05/31/31/</link>
		<comments>http://debounce.wordpress.com/2009/05/31/31/#comments</comments>
		<pubDate>Sun, 31 May 2009 15:35:13 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[iPhone & XCode dev]]></category>

		<guid isPermaLink="false">http://debounce.org/?p=31</guid>
		<description><![CDATA[This is my first foray into iPhone development (especially with using iPhone beta firmware). This was slightly more challenging, as it required the use of a Beta OS, than rather a released iPhone OS firmware. Firstly, you will need to enroll into the iPhone dev. This will require an Apple ID.  From my experience it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=31&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first foray into iPhone development (especially with using iPhone beta firmware). This was slightly more challenging, as it required the use of a Beta OS, than rather a released iPhone OS firmware.</p>
<p>Firstly, you will need to enroll into the iPhone dev. This will require an Apple ID. </p>
<p>From my experience it was easier to enroll as a single developer than rather as a company/business (as it required less documentation) and the turnaround time was 1-2 days (this included acceptance of payment for developing).</p>
<p>Please checkout: http://developer.apple.com/iphone  for further information</p>
<p>Follow the instructions as per the website above. </p>
<p>Generally, the process is the following:</p>
<ol>
<li>Download SDK, OS Firmware and iTunes images (these should be in format *.dmg)</li>
<li>Install the software as usual (the OS Beta Firmware is a little different &#8211; read next point)</li>
<li>When installing a beta version of the iPhone OS (eg. iPhone 3.0 Beta 5) in iTunes you have to<strong><em> hold the &#8216;Option&#8217; key and then left mouse click on &#8216;Restore&#8217;. </em><span style="font-weight:normal;">The restore button is located </span><span style="font-weight:normal;">under &#8216;Devices&#8217; -&gt;your iPhone name-&gt;Summary-&gt;Version section.</span></strong> I found this counter intuitive and not well documented. This will open a dialog box for you to select your iPhone OS Firmware. Navigate and select the beta OS. Remember this will wipe out all the Apps on the iPhone but will not actually wipe anything else off (as long as you did a backup).</li>
<li>Click on the <strong>&#8216;</strong><strong>iPhone Developer Program Portal&#8217;</strong> on the right hand pane.  (This took me forever to find!)</li>
<li>Follow the process of creating a <em>team name, developer certificate, App ID and Provision certificates</em>. Note the  developer certificate and provision certificate are most important and have to be installed on both the KeyChain and in XCode Organizer, respectively. </li>
<li>In XCode, for the respective applications, make sure the Target information is correct. That is:</li>
</ol>
<ul>
<li>Base SDK = iPhone Device 3.0</li>
<li>Code Signing Identity=iPhone &lt;name&gt; (this is the developer certificate name on the Key Chain).</li>
<li>Identifier=com.domainname.AppName</li>
</ul>
<p>When running XCode I had a simple &#8216;hello world&#8217; app that . However, I ran into a few issues. </p>
<p><strong><em>Error: XCode would not build the app as the Identifier: com.domain.AppName was incorrect or could not be recognised.</em></strong></p>
<p>Fix: The fix was the Provisioning certificate was only dragged into the Provisioning section of the Devices-&gt;iPhone Name in XCode Organizer. <strong><em>However, this was NOT the only place to put the provisioning certificate, you also had to drag&#8217;n'drop it into IPHONE DEVELOPMENT-&gt;Provisioning Profiles as well!</em></strong></p>
<p><strong><em>Error: </em></strong><strong><em> XCode and A signed resource has been added, modified, or deleted.</em></strong></p>
<p>Fix: &#8220;*If you do not have the WWDR intermediate certificate installed, <a href="http://developer.apple.com/certificationauthority/AppleWWDRCA.cer">click here to download now</a>.&#8221;</p>
<p>The above link basically downloads the following: <strong><em>AppleWWDRCA.cer </em></strong>(Apple World Wide Relations Certificate Authority). This means that you need <strong><em>two certificates installed on your Mac OS X keychain</em></strong> in order to build the application.  Therefore, your keychain should have the following 2 certificates:</p>
<ul>
<li>iPhone Developer: &lt;name&gt; (this is the one you were told to generate and download via the iPhone portal)</li>
<li>Apple Worldwide Developer Relations Certification Authority </li>
</ul>
<p><strong><em>Issue: XCode cannot find the software image to install this version. </em></strong></p>
<p>This error can be seen when navigating to the IPHONE DEVELOPMENT-&gt;Software Images section as there is no 3.0 Beta version. This does not stop the app to be installed and run, but the &#8216;Console&#8217; reports of &#8216;<em><strong>Unknown Kernel [0]</strong></em>&#8216; messages. </p>
<p>Fix: <span style="text-decoration:line-through;">Unknown. </span>  The iPhone firmware images are placed at /Users/&lt;username&gt;/Library/iTunes/iPhone Software Updates. Note the firmware has an extension of: *.ipsw. Therefore, open the file iPhone OS 3.0 Beta .dmg and then copy the .ipsw file into the directory mentioned. This DOES NOT remove the message &#8216;Unknown Kernel [0]&#8216; but it appears to be just a notice message &lt;Debug&gt; and is not an actual error.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=31&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2009/05/31/31/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>Website Name Change</title>
		<link>http://debounce.wordpress.com/2009/04/29/website-name-change/</link>
		<comments>http://debounce.wordpress.com/2009/04/29/website-name-change/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 13:21:28 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://debounce.wordpress.com/?p=5</guid>
		<description><![CDATA[Finally, I have had time &#38; success in changing the domain name to debounce.org Didn&#8217;t take much work. All it really required was buying 10 credits ($10USD) and changing the domain nameservers via my domain host provider. Sweet! I will be conducting some restructuring of the site to &#8216;synergise&#8217; my social networks so that it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=5&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Finally, I have had time &amp; success in changing the domain name to debounce.org </p>
<p>Didn&#8217;t take much work. All it really required was buying 10 credits ($10USD) and changing the domain nameservers via my domain host provider. Sweet!</p>
<p>I will be conducting some restructuring of the site to &#8216;synergise&#8217; my social networks so that it can be accessed from the one location. </p>
<p>There will be a section on photography, with my first DSLR (Canon 1000D) takin centre stage, with the help of flickr, and the forays of a geek trying to get better at taking shots. </p>
<p>A section will be dedicated to iPhone dev and the angst and pros of developing on the platform (esp. with the upcoming iPhone 3.0)</p>
<p>Also, this site will try to be the one-stop shop for tech events or trends happening in Sydney (and possibly around the world!) </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=5&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2009/04/29/website-name-change/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world from the iphone</title>
		<link>http://debounce.wordpress.com/2009/01/13/hello-world/</link>
		<comments>http://debounce.wordpress.com/2009/01/13/hello-world/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 21:41:25 +0000</pubDate>
		<dc:creator>debounce</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Trying out wordpress iPhone app. It seems to be quite intuitive thought it lacks certain features.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=1&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trying out wordpress iPhone app.<br />
It seems to be quite intuitive thought it lacks certain features. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/debounce.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/debounce.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/debounce.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/debounce.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/debounce.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/debounce.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/debounce.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/debounce.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=debounce.wordpress.com&amp;blog=6162417&amp;post=1&amp;subd=debounce&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://debounce.wordpress.com/2009/01/13/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/069913f0f676e5cc5427b9f91c85e45e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">debounce</media:title>
		</media:content>
	</item>
	</channel>
</rss>
