<?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>Josh Schumacher: A PHP Developer</title>
	<atom:link href="http://blog.joshschumacher.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joshschumacher.com</link>
	<description>The biggest and the best in the Northwest</description>
	<lastBuildDate>Fri, 14 Oct 2011 06:15:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress: transition_post_status action</title>
		<link>http://blog.joshschumacher.com/2011/10/11/wordpress-transition_post_status-action/</link>
		<comments>http://blog.joshschumacher.com/2011/10/11/wordpress-transition_post_status-action/#comments</comments>
		<pubDate>Tue, 11 Oct 2011 00:23:24 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=99</guid>
		<description><![CDATA[I needed an action to monitor for posts being published, unpublished or updated after they were already published in my WordPress plugin. I discovered Post_Status_Transitions and specifically the transtion_post_status action that is called for every change to a post&#8217;s status. I then check if either the $old_status or the $new_status variables are &#8216;publish&#8216; and then [...]]]></description>
			<content:encoded><![CDATA[<p>I needed an action to monitor for posts being published, unpublished or updated after they were already published in my WordPress plugin. I discovered <a href="http://codex.wordpress.org/Post_Status_Transitions">Post_Status_Transitions</a> and specifically the <code>transtion_post_status</code> action that is called for every change to a post&#8217;s status. I then check if either the <code>$old_status </code>or the <code>$new_status</code> variables are &#8216;<code>publish</code>&#8216; and then I know the article is either being published or being unpublished.</p>
<h3>An important note when you are implementing the <code>transition_post_status</code> action</h3>
<p>When you call <code>add_action</code>, you need to modify the <code>$accepted_args</code> parameter. The default value is 1, it needs to be changed to 3.</p>
<p>The action <code>transition_post_status</code> (as defined at <a href="http://codex.wordpress.org/Post_Status_Transitions">http://codex.wordpress.org/Post_Status_Transitions</a>) sends three parameters, <code>$new_status</code>, <code>$old_status</code>, <code>$post</code>.</p>
<p>If you only write <code>add_action('transition_post_status', 'my_function')</code>, the default number of parameters that are sent to <code>my_function</code> is 1 so you will only get the <code>$new_status</code> parameter and the other two params won&#8217;t be sent.</p>
<p>The <strong>correct syntax</strong> to add a transition_post_status action is: <code>add_action('transition_post_status', 'my_function', 10, 3);</code> my_function will then be called with all three parameters (<code>$new_status, $old_status, $post</code>).</p>
<p>Some good reference posts if you&#8217;re working with this action:
<ul>
<li><a href="http://codex.wordpress.org/Post_Status_Transitions">http://codex.wordpress.org/Post_Status_Transitions</a></li>
<li><a href="http://codex.wordpress.org/Function_Reference/add_action">http://codex.wordpress.org/Function_Reference/add_action</a></li>
<li><a href="http://codex.wordpress.org/Function_Reference/_transition_post_status">http://codex.wordpress.org/Function_Reference/_transition_post_status</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2011/10/11/wordpress-transition_post_status-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XCode4 &#8211; The operation couldn’t be completed. No such file or directory.</title>
		<link>http://blog.joshschumacher.com/2011/04/06/xcode4-the-operation-couldn%e2%80%99t-be-completed-no-such-file-or-directory/</link>
		<comments>http://blog.joshschumacher.com/2011/04/06/xcode4-the-operation-couldn%e2%80%99t-be-completed-no-such-file-or-directory/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 23:14:59 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=63</guid>
		<description><![CDATA[When attempting to share an application after archiving in XCode4, I kept getting an error message, &#8220;The operation couldn’t be completed. No such file or directory.&#8221; It appears that there was a similar issue in XCode3 that could be resolved by turning on &#8220;Generate Debug Symbols&#8221; but that did not resolve the issue for me [...]]]></description>
			<content:encoded><![CDATA[<p>When attempting to share an application after archiving in XCode4, I kept getting an error message, &#8220;The operation couldn’t be completed. No such file or directory.&#8221; It appears that there was a similar issue in XCode3 that could be resolved by turning on &#8220;<a href="http://stackoverflow.com/questions/3161134/xcodes-build-and-archive-not-working">Generate Debug Symbols</a>&#8221; but that did not resolve the issue for me at all.</p>
<p><strong>Resolution</strong>: After clicking <em>Share&#8230;</em> in the Archives section of the Organizer, click on the identity dropdown. Do not allow it to use the Automatic Profile Selection, instead manually choose the correct profile to sign your archive.</p>
<p style="text-align: left;"><a href="http://blog.joshschumacher.com/wp-content/uploads/2011/04/Screen-shot-2011-04-06-at-3.45.25-PM-copy.png"><img class="aligncenter size-full wp-image-64" title="The operation couldn’t be completed. No such file or directory" src="http://blog.joshschumacher.com/wp-content/uploads/2011/04/Screen-shot-2011-04-06-at-3.45.25-PM-copy.png" alt="" width="510" height="401" /></a><br />
If you manually select the identity to sign your application, you shouldn&#8217;t get the error message and you should be able to successfully save and share your application.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2011/04/06/xcode4-the-operation-couldn%e2%80%99t-be-completed-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remove .svn directories from Zend Studio 7</title>
		<link>http://blog.joshschumacher.com/2009/10/29/remove-svn-directories-from-zend-studio-7/</link>
		<comments>http://blog.joshschumacher.com/2009/10/29/remove-svn-directories-from-zend-studio-7/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 21:53:49 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Zend Studio]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=38</guid>
		<description><![CDATA[I recently upgraded from Zend Studio 6 to the Zend Studio 7.1 beta. During the upgrade, all of my .svn folders showed up in the file browser (who would ever want to see their .svn folders in the file browser&#8230;). To remove these svn folders from your project, right click on the project > Build [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded from Zend Studio 6 to the <a href="http://www.zend.com/en/products/studio/studio-71-whats-new">Zend Studio 7.1 beta</a>. During the upgrade, all of my .svn folders showed up in the file browser (who would ever want to see their .svn folders in the file browser&#8230;).
<div style="text-align: center;padding-bottom:14px;"><a href="http://blog.joshschumacher.com/wp-content/uploads/2009/10/Project_File_Browser.png"><img src="http://blog.joshschumacher.com/wp-content/uploads/2009/10/Project_File_Browser.png" alt="Project_File_Browser" title="Project_File_Browser" width="270" height="115" class="aligncenter size-full wp-image-40" /></a></div>
<p>To remove these svn folders from your project, right click on the project > Build Path > Configure Inclusion / Exclusion Filters&#8230;
<div style="text-align: center;padding-bottom:14px;"><a href="http://blog.joshschumacher.com/wp-content/uploads/2009/10/Configure_Inclusion_Exclusion_Filters.png"><img src="http://blog.joshschumacher.com/wp-content/uploads/2009/10/Configure_Inclusion_Exclusion_Filters.png" alt="Configure_Inclusion_Exclusion_Filters" title="Configure_Inclusion_Exclusion_Filters" width="500" class="aligncenter size-full wp-image-41" /></a></div>
<p>Click &#8220;Add&#8230;&#8221; next to the &#8220;Exclusion patterns:&#8221; box.  Add the rule &#8220;**/.svn/&#8221;.  The &#8220;**/&#8221; will make it a recursive rule.  Click Finish and your annoying .svn folders should now be hidden in the file browser.
<div style="text-align: center;padding-bottom:14px;"><a href="http://blog.joshschumacher.com/wp-content/uploads/2009/10/Add_rule_to_remove_svn_folders_from_zend_studio_project.png"><img src="http://blog.joshschumacher.com/wp-content/uploads/2009/10/Add_rule_to_remove_svn_folders_from_zend_studio_project.png" alt="Add_rule_to_remove_svn_folders_from_zend_studio_project" title="Add_rule_to_remove_svn_folders_from_zend_studio_project" width="500" class="aligncenter size-full wp-image-42" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2009/10/29/remove-svn-directories-from-zend-studio-7/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Enable Samba Access For A User (Linux)</title>
		<link>http://blog.joshschumacher.com/2009/10/23/enable-samba-access-for-a-user-linux/</link>
		<comments>http://blog.joshschumacher.com/2009/10/23/enable-samba-access-for-a-user-linux/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 21:59:44 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[manage]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[users]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=34</guid>
		<description><![CDATA[If you are attempting to connect to a samba (smb) share and you are denied, there&#8217;s a high probability your user account hasn&#8217;t been granted access to the samba server yet. To grant a user access use the smbpasswd command line tool. SSH to the samba server Log in as root smbpasswd -a username Enter [...]]]></description>
			<content:encoded><![CDATA[<p>If you are attempting to connect to a samba (smb) share and you are denied, there&#8217;s a high probability your user account hasn&#8217;t been granted access to the samba server yet.  To grant a user access use the <code>smbpasswd</code> command line tool.</p>
<ol>
<li>SSH to the samba server</li>
<li>Log in as root</li>
<li><code>smbpasswd -a <i>username</i></code></li>
<li>Enter password (twice) &#8211; no characters will appear on the screen</li>
</ol>
<p>Interesting note: if you aren&#8217;t logged in as root, the <code>smbpasswd</code> command line tool can be used to change you samba password.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2009/10/23/enable-samba-access-for-a-user-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Advanced iPhone Web Development</title>
		<link>http://blog.joshschumacher.com/2009/05/06/advanced-iphone-web-development/</link>
		<comments>http://blog.joshschumacher.com/2009/05/06/advanced-iphone-web-development/#comments</comments>
		<pubDate>Wed, 06 May 2009 19:06:06 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mobile Development]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=26</guid>
		<description><![CDATA[Yesterday (May 5th, 2009), I gave a presentation at the Seattle iPhone App Developers and Designers Meetup titled, &#8220;Advanced iPhone Web Development.&#8221; This presentation focused on the unique capabilities available in WebKit on the iPhone and on possibilities for utilizing UIWebViews inside of your native applications. You can download a pdf version of the presentation [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday (May 5th, 2009), I gave a presentation at the <a href="http://www.meetup.com/The-Seattle-iPhone-Development-Meetup-Group/">Seattle iPhone App Developers and Designers Meetup</a> titled, &#8220;Advanced iPhone Web Development.&#8221;  This presentation focused on the unique capabilities available in WebKit on the iPhone and on possibilities for utilizing UIWebViews inside of your native applications.</p>
<p>You can download a pdf version of the presentation here: <a href='http://blog.joshschumacher.com/wp-content/uploads/2009/05/advanced-iphone-web-development.pdf'>Advanced iPhone Web Development</a> <img src="http://joshschumacher.com/images/pdf.png" alt="[PDF]" /></p>
<div style="width:500px;text-align:left" id="__ss_1395729"><a style="font:14px Helvetica,Arial,Sans-serif;display:block;margin:12px 0 3px 0;text-decoration:underline;" href="http://www.slideshare.net/joshs633/advanced-iphone-web-development?type=powerpoint" title="Advanced iPhone Web Development">Advanced iPhone Web Development Slideshow</a> (Best Viewed In Fullscreen)<object style="margin:0px" width="500" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=advancediphonewebdevelopment-090506130756-phpapp02&#038;rel=0&#038;stripped_title=advanced-iphone-web-development" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=advancediphonewebdevelopment-090506130756-phpapp02&#038;rel=0&#038;stripped_title=advanced-iphone-web-development" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;">View more <a style="text-decoration:underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration:underline;" href="http://www.slideshare.net/joshs633">Josh Schumacher</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2009/05/06/advanced-iphone-web-development/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The future of mobile web applications</title>
		<link>http://blog.joshschumacher.com/2009/03/18/the-future-of-mobile-web-applications/</link>
		<comments>http://blog.joshschumacher.com/2009/03/18/the-future-of-mobile-web-applications/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 19:07:26 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[Mobile Development]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=21</guid>
		<description><![CDATA[Thinking back three years ago, I was starting to play around with developing web applications for mobile devices.  The hot device of the time was the Palm Treo.  The default browser that came with the Treo, Blazer, really sucks.  It was rough trying to write pages that worked perfectly in Blazer.  Sure, simple, basic HTML [...]]]></description>
			<content:encoded><![CDATA[<p><span>Thinking back three years ago, I was starting to play around with developing web applications for mobile devices.  The hot device of the time was the Palm Treo.  The default browser that came with the Treo, Blazer, really sucks.  It was rough trying to write pages that worked perfectly in Blazer.  Sure, simple, basic HTML rendered just fine but I had a background in developing for the traditional desktop web experience and I wanted to write awesome sites utilizing CSS and Javascript.  I wanted to write an AJAX application for mobile devices.  It would be icing on the cake if I could get it to work on lower end devices as well, but that seemed pretty pie in the sky at the time.</span></p>
<p><span>Webkit will be the future rendering engine of the mobile web (at least I hope it is).  It’s an amazing, full featured engine with bleeding edge web standards implementations of HTML 5 and CSS 3.  Webkit has been getting some great traction lately with some amazing devices implementing it as their default browser engine, Android, Palm Pre and of course the iPhone (and iPod Touch) have all fully embraced Webkit.  I want to see that list get a lot longer; I hope to start seeing Webkit on lower end mobile devices.</span></p>
<p><span>What makes Webkit so awesome?  How about CSS effects, blazing fast javascript execution (especially in their new Nitro engine in Safari 4), HTML offline support &#8211; including offline data storage and support for offline cache manifests, CSS gradients, CSS border radius and border images, CSS transforms, and a lot more.  On the iPhone, it now even has custom events to pass down gesture events to the DOM.  You can now do most things you could once only dream of doing in flash in straight HTML, CSS and Javascript on small devices stored in someone’s pocket.</span></p>
<p><span>The future of mobile web applications are social, location aware, providing a tailored experience based on user preferences.  Future mobile web applications will morph based on user behavior.  The will provide a graphically rich experience with beautiful design elements enhancing every aspect of the application.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2009/03/18/the-future-of-mobile-web-applications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reading Common and Custom Values From Your Info.plist</title>
		<link>http://blog.joshschumacher.com/2009/02/19/reading-common-and-custom-values-from-your-infoplist/</link>
		<comments>http://blog.joshschumacher.com/2009/02/19/reading-common-and-custom-values-from-your-infoplist/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 00:35:21 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[iPhone Development]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=20</guid>
		<description><![CDATA[It seems like a pretty simple, common thing you would want to do in objective-c right?  All applications have an Info.plist (or a different plist file as defined in your "Info.plist File" property of your build target).  I've been pretty frustrated with the quality of google search results when trying to figure out how to [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like a pretty simple, common thing you would want to do in objective-c right?  All applications have an Info.plist (or a different plist file as defined in your "Info.plist File" property of your build target).  I've been pretty frustrated with the quality of google search results when trying to figure out how to do more or less mundane things with the iPhone SDK.  I'm going to start writting posts, especially when I have a hard time trying to find what I was looking for in search results.</p>
<p>Here's the quick and dirty: I have a game that we're building here at <a href="http://treemolabs.com">Treemo Labs</a>, <a href="http://www.ticatacgames.net">Tic A Tac Poker</a>.  We're working on getting a lite version out the door.  I wanted to read a custom value out of the Info.plist to tell if it's the lite version or not.  I couldn't figure out how to read a simple value from the default property list file.  Here's some sample code to get the bundleIdentifier, bundle version and custom values from your Info.plist</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Create a new NSBundle pointer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">NSBundle* mainBundle;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// The Info.plist is considered the mainBundle.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mainBundle = <span style="color:#006600; font-weight:bold;">&#91;</span>NSBundle mainBundle<span style="color:#006600; font-weight:bold;">&#93;</span>;&nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Reads the value of the custom key I added to the Info.plist</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>mainBundle objectForInfoDictionaryKey:@<span style="color:#CC0000;">"myCustomKey"</span><span style="color:#006600; font-weight:bold;">&#93;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Another handy thing I had to search around for a little</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Get the value for the &quot;Bundle version&quot; from the Info.plist</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>mainBundle objectForInfoDictionaryKey:@<span style="color:#CC0000;">"CFBundleVersion"</span><span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// Need the bundle identifier? (probably something like com.mycorp.product)</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>mainBundle bundleIdentifier<span style="color:#006600; font-weight:bold;">&#93;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>For more information about the NSBundle, view the <a href="http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSBundle_Class/Reference/Reference.html#//apple_ref/doc/uid/20000214">NSBundle Reference Documentation</a>.</p>
<p>To see an alphabetical list of the standard keys you can use in an information property list file, along with a brief description and the platforms to which they apply (Mac OS X or iPhone) check out the <a href="http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html">Property List Key Reference</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2009/02/19/reading-common-and-custom-values-from-your-infoplist/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Strategic Analysis: Google Presentation</title>
		<link>http://blog.joshschumacher.com/2008/06/03/strategic-analysis-google-presentation/</link>
		<comments>http://blog.joshschumacher.com/2008/06/03/strategic-analysis-google-presentation/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 09:39:27 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[pestel]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[strategic analysis]]></category>
		<category><![CDATA[swot]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/?p=18</guid>
		<description><![CDATA[Important: This presentation was created in December of 2006, the information most likely is out of date. I am posting this in response to the demand from slideshare. During my senior year at Western Washington University, for a final project in my Management 495 class, I did group presentation, performing a strategic analysis of Google [...]]]></description>
			<content:encoded><![CDATA[<p><b>Important: This presentation was created in December of 2006, the information most likely is out of date.  I am posting this in response to the demand from slideshare.</b></p>
<p>During my senior year at <a href="http://www.wwu.edu/">Western Washington University</a>, for a final project in my Management 495 class, I did group presentation, performing a strategic analysis of Google and the positioning in the search engine market.  I posted this slideshow to <a href="http://slideshare.net">slideshare</a> and received an incredible amount of comments and messages asking for the presentation.  The presentation currently has over 25,000 views and over 100 favorites.</p>
<p>Like I said in the disclaimer, this slideshow is a year and a half old so a lot of the information is out dated.  Also, looking back at the slideshow, there are some formatting issues that I would resolve if I had to go back and do it again.  The presentation, was put together using Apple's <a href="http://www.apple.com/iwork/keynote/">Keynote</a> software.  This was a group presentation so I was not the only contributer.  The other contributers were: Charity Thomas, Frieder Mack and Jennifer Bell.</p>
<p>You can download a pdf version of the presentation here: <a href='http://blog.joshschumacher.com/wp-content/uploads/2008/06/google-presentation.pdf'>Google Strategic Analysis Presentation</a> <img src="http://joshschumacher.com/images/pdf.png" alt="[PDF]" /> (December 2006)</p>
<div style="width:425px;text-align:left" id="__ss_32219"><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc=strategic-analysis-google-15381&#038;rel=0"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc=strategic-analysis-google-15381&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>
<div style="font-size:11px;font-family:tahoma,arial;height:26px;padding-top:2px;"><a href="http://www.slideshare.net/?src=embed"><img src="http://static.slideshare.net/swf/logo_embd.png" style="border:0px none;margin-bottom:-5px" alt="SlideShare"/></a> | <a href="http://www.slideshare.net/joshs633/strategic-analysis-google?src=embed" title="View Strategic Analysis: Google on SlideShare">View</a> | <a href="http://www.slideshare.net/upload?src=embed">Upload your own</a></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2008/06/03/strategic-analysis-google-presentation/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Standardizing a way to represent an object in PHP</title>
		<link>http://blog.joshschumacher.com/2008/04/23/standardizing-a-way-to-represent-an-object-in-php/</link>
		<comments>http://blog.joshschumacher.com/2008/04/23/standardizing-a-way-to-represent-an-object-in-php/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 06:20:04 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/2007/08/04/standardizing-a-way-to-represent-an-object-in-php/</guid>
		<description><![CDATA[During the process of designing our API at Treemo, one of the first major design implementation hurdles we had to overcome was how to standardize a way to define what data in an object was "exportable" and can later be transformed into XML. The solution that I came up with defines a Node and a [...]]]></description>
			<content:encoded><![CDATA[<p>During the process of designing our API at <a href="http://treemo.com">Treemo</a>, one of the first major design implementation hurdles we had to overcome was how to standardize a way to define what data in an object was "exportable" and can later be transformed into XML.  The solution that I came up with defines a Node and a NodeCollection object.</p>
<p>When deciding what the data structure should look like, I wrote some pseudo XML that we need to be able to model.</p>
<div class="igBar"><span id="lxml-5"><a href="#" onclick="javascript:showPlainTxt('xml-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-5">
<div class="xml">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;channel<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;owner</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"testuser"</span> <span style="color: #000066;">email</span>=<span style="color: #ff0000;">"test@test.com"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;list</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"foo"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;item</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"123"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;files<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;image</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://foo.bar.com"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;3gp</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"http://3gp.foo.bar.com"</span> <span style="font-weight: bold; color: black;">/&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/files<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/item<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/list<span style="font-weight: bold; color: black;">&gt;</span></span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/channel<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>A Node has a <tt>(string) $type</tt>, <tt>(mixed) $attributes</tt> and <tt>(NodeCollection) $children</tt>.  Using the above XML as a reference, our root node (let's call it <tt>$root</tt>) would have <tt>$type</tt> = 'channel' and no attributes.  You would then add two nodes to the NodeCollection <tt>$children</tt>, owner and list.  Owner would have <tt>$attributes</tt> of <tt>array('name'=&gt;'testuser', 'email'=&gt;'test@test.com')</tt> and <tt>$children</tt> would be an empty NodeCollection.</p>
<p>The biggest design decision made about NodeCollection was that <tt>NodeCollection implements Iterator</tt>.  By implementing Iterator, you can later foreach over <tt>$children</tt> and it can loop through the elements with no problem.  Implementing Iterator is a pretty cool design pattern - I'll have to write a post about it in the near future.  The ability to foreach over <tt>$children</tt> helps tremendously when writing ExportNodeToXml.</p>
<p>Wrapping up, pseudo code to export and object to a Node that can later be transformed to XML would look like this:</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> Channel implements iExportable <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; public <span style="color:#000000; font-weight:bold;">function</span> toExportable<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$root</span> = <span style="color:#000000; font-weight:bold;">new</span> Node<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'channel'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$root</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">addNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> Node<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'list'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'name'</span>=&gt;<span style="color:#FF0000;">'testuser'</span>, <span style="color:#FF0000;">'email'</span>=&gt;<span style="color:#FF0000;">'test@test.com'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$root</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">addNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> Node<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'list'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'id'</span>=&gt;<span style="color:#FF0000;">'123'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$root</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">getNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">addNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">new</span> Node<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'files'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$root</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">getNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">getNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">addNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'image'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'href'</span>=&gt;<span style="color:#FF0000;">'http://foo.bar.com'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$root</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">getNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">2</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">getNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">children</span>-&gt;<span style="color:#006600;">addNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'3gp'</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'href'</span>=&gt;<span style="color:#FF0000;">'http://3gp.foo.bar.com'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2008/04/23/standardizing-a-way-to-represent-an-object-in-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I love public radio in Seattle</title>
		<link>http://blog.joshschumacher.com/2007/08/03/i-love-public-radio-in-seattle/</link>
		<comments>http://blog.joshschumacher.com/2007/08/03/i-love-public-radio-in-seattle/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 00:37:57 +0000</pubDate>
		<dc:creator>Josh Schumacher</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://blog.joshschumacher.com/2007/08/03/i-love-public-radio-in-seattle/</guid>
		<description><![CDATA[For the majority of my life, my dad worked for a public radio station in Spokane, KPBX, so I've always had an affinity for public radio. Since moving to the Seattle area and spending a lot of time in my car commuting to and from work (usually about 35 min - 1 hour each way) [...]]]></description>
			<content:encoded><![CDATA[<p>For the majority of my life, my dad worked for a public radio station in Spokane, <a href="http://kpbx.org/">KPBX</a>, so I've always had an affinity for public radio.  Since moving to the Seattle area and spending a lot of time in my car commuting to and from work (usually about 35 min - 1 hour each way) I've been listening to a lot of radio.  When I first started commuting, I listened to a lot of commercial radio but I find that stuff gets really old, really fast.  I can only listen to <a href="http://www.youtube.com/watch?v=mrTUhkN7RFA">Umbrella by Rihanna</a> so many times before my head wants to explode.</p>
<p>Recently, I've rediscovered my love for public radio. With the trio of eclectic music from <a href="http://kexp.org">KEXP 90.9</a>, dance and techno from <a href="http://www.c895worldwide.com">C89.5</a> and local, national and international news from <a href="http://www.kuow.org/">KUOW 94.9</a> I can always find something good to listen to. Not only am I aurally satisfied, listening to public radio often seems to put me in a civically minded mood - encouraging me to soaking up as much information and culture as my brain can handle.</p>
<p>On another note, I haven't posted in a while - after graduating, I started at a company called <a href="http://ascentium.com/">Ascentium</a>.  They are an interactive technical marketing and consulting firm.  I worked there as a web developer for about 2.5 months and then I decided I wasn't really being challenged enough and I missed writing PHP a lot.  So I left to start working at a startup that I had looked at during my initial job search right after graduating, <a href="http://treemo.com">Treemo</a>.</p>
<p>I've been at Treemo since the middle of June and I'm loving it.  We have some really cool stuff coming down the pipe in the near future.  Right now, I'm working on writing an API - very exciting work.  Now that I'm working back in the PHP biz, I'm going to start writing about developing PHP again.  Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshschumacher.com/2007/08/03/i-love-public-radio-in-seattle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

