<?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>Ross Henderson</title>
	<atom:link href="http://blog.rosshenderson.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rosshenderson.info</link>
	<description>One blog or another</description>
	<lastBuildDate>Fri, 30 Dec 2011 18:59:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>E4X giving &#8216;not working&#8217;?  Check the namespace.</title>
		<link>http://blog.rosshenderson.info/564/e4x-giving-not-working-check-the-namespace/</link>
		<comments>http://blog.rosshenderson.info/564/e4x-giving-not-working-check-the-namespace/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 22:21:21 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=564</guid>
		<description><![CDATA[If you are trying to run some e4x and getting no results, the problem may be that the XML you are working with is namespaced. http://dispatchevent.org/roger/using-e4x-with-xhtml-watch-your-namespaces/]]></description>
			<content:encoded><![CDATA[<p>If you are trying to run some e4x and getting no results, the problem may be that the XML you are working with is namespaced.  </p>
<p>http://dispatchevent.org/roger/using-e4x-with-xhtml-watch-your-namespaces/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/564/e4x-giving-not-working-check-the-namespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename partial files &#8211; command line</title>
		<link>http://blog.rosshenderson.info/560/rename-partial-files-command-line/</link>
		<comments>http://blog.rosshenderson.info/560/rename-partial-files-command-line/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 17:21:18 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=560</guid>
		<description><![CDATA[http://hints.macworld.com/article.php?story=20010509130450691]]></description>
			<content:encoded><![CDATA[<p><a href="http://hints.macworld.com/article.php?story=20010509130450691">http://hints.macworld.com/article.php?story=20010509130450691</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/560/rename-partial-files-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X svn reference</title>
		<link>http://blog.rosshenderson.info/549/os-x-svn-reference/</link>
		<comments>http://blog.rosshenderson.info/549/os-x-svn-reference/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 16:25:37 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=549</guid>
		<description><![CDATA[To check out, navigate to target directory and: svn ci "[repos uri]" To add files to project, navigate to parent directory and: svn add * svn add [file and or directory path/names] works, as well, if you want to target a particular directory or file. Also, the process will stop once it hits a file [...]]]></description>
			<content:encoded><![CDATA[<p>To check out, navigate to target directory and:</p>
<p><code>svn ci "[repos uri]"</code></p>
<p>To add files to project, navigate to parent directory and:</p>
<p><code>svn add *</code></p>
<p><code>svn add [file and or directory path/names]</code> works, as well, if you want to target a particular directory or file.</p>
<p>Also, the process will stop once it hits a file that is already under version control (this may be a new behavior in Lion).  So, you have to add the &#8211;force argument:</p>
<p><code>svn add * --force</code></p>
<p>Discussion at <a href="http://stackoverflow.com/questions/1598968/add-all-unversioned-files-to-svn" target="_blank">StackOverflow</a>.</p>
<p>To delete files:</p>
<p><code>svn delete</code> or <code>svn rm</code></p>
<p>To specifically target files that are missing (svn status prints them with a &#8216;!&#8217;):</p>
<p><code>svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )</code></p>
<p>Found that <a href="http://wpquicktips.wordpress.com/2011/04/14/remove-all-missing-files-from-a-svn-working-copy/">here</a>.</p>
<p>To commit files to project, navigate to parent directory and:</p>
<p><code>svn ci -m "[commit message]" [file and/or directory path/names]</code></p>
<p>To update:</p>
<p><code>svn update</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/549/os-x-svn-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripting Photoshop</title>
		<link>http://blog.rosshenderson.info/544/scripting-photoshop/</link>
		<comments>http://blog.rosshenderson.info/544/scripting-photoshop/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 14:57:27 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=544</guid>
		<description><![CDATA[Scripting Guide Javascript Tools Guide Javascript Scripting Reference]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_scripting_guide.pdf">Scripting Guide</a></strong></p>
<p><strong><a href="http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/indesign/pdfs/JavaScriptToolsGuide_CS5.pdf">Javascript Tools Guide</a></strong></p>
<p><strong><a href="http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_javascript_ref.pdf">Javascript Scripting Reference</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/544/scripting-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iceFaces and jQuery: colons in iceFaces ids breaks jQuery</title>
		<link>http://blog.rosshenderson.info/541/icefaces-and-jquery-colons-in-icefaces-ids-breaks-jquery/</link>
		<comments>http://blog.rosshenderson.info/541/icefaces-and-jquery-colons-in-icefaces-ids-breaks-jquery/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 17:44:25 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Ouch]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=541</guid>
		<description><![CDATA[iceFaces generates id values for all iceFaces tags, and the id values look something like this: mainContentForm:j_idt117:1:j_idt118 If you want to select a given element, or set of elements, by id with jQuery, good luck &#8211; jQuery will break on the colons. This means that anything you want to select by id requires an additional [...]]]></description>
			<content:encoded><![CDATA[<p>iceFaces generates id values for all iceFaces tags, and the id values look something like this:</p>
<p>mainContentForm:j_idt117:1:j_idt118</p>
<p>If you want to select a given element, or set of elements, by id with jQuery, good luck &#8211; jQuery will break on the colons.</p>
<p>This means that anything you want to select by id requires an additional div/span wrapper that exists solely for providing a readable id value.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/541/icefaces-and-jquery-colons-in-icefaces-ids-breaks-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iceFaces and JS: loops break</title>
		<link>http://blog.rosshenderson.info/539/icefaces-and-js-loops-break/</link>
		<comments>http://blog.rosshenderson.info/539/icefaces-and-js-loops-break/#comments</comments>
		<pubDate>Wed, 29 Jun 2011 15:37:23 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Ouch]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=539</guid>
		<description><![CDATA[I&#8217;m working on an iceFaces project at work &#8211; mostly just applying style, but some minor logic when needed. On a recent go-round, I found that JS written into a tag in a given xhtml page would break whenever it tried to run a loop of any sort. Or, rather, the loop would break. It [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m working on an iceFaces project at work &#8211; mostly just applying style, but some minor logic when needed.  On a recent go-round, I found that JS written into a <script> tag in a given xhtml page would break whenever it tried to run a loop of any sort.  Or, rather, the loop would break.</p>
<p>It turned out that just moving the JS to an external .js document and importing into the page allows JS to run as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/539/icefaces-and-js-loops-break/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iceFACES: Give last item in a Panel Series a different style</title>
		<link>http://blog.rosshenderson.info/528/icefaces-give-last-item-in-a-panel-series-a-different-style/</link>
		<comments>http://blog.rosshenderson.info/528/icefaces-give-last-item-in-a-panel-series-a-different-style/#comments</comments>
		<pubDate>Mon, 16 May 2011 18:28:23 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Almost Random]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=528</guid>
		<description><![CDATA[To access the exposed &#8216;varStatus&#8217; info for the panelSeries component, provide an id for the varStatus attribute. You can then access the available information &#8211; first, last, index. Among other things, this lets you apply different style to the last item in the series (or the first item, or every other item, etc). The id [...]]]></description>
			<content:encoded><![CDATA[<p>To access the exposed &#8216;varStatus&#8217; info for the panelSeries component, provide an id for the varStatus attribute.  You can then access the available information &#8211; first, last, index.</p>
<p>Among other things, this lets you apply different style to the last item in the series (or the first item, or every other item, etc).</p>
<p>The id you give to &#8216;var&#8217; provides access to the backing bean.  The id you give to &#8216;varStatus&#8217; provides access to the given component.</p>
<p><code><br />
&lt;ice:panelSeries value="#{note.studentEvents}" var="item" varStatus="rowCounter"&gt;<br />
					&lt;div class="#{rowCounter.last eq true ? 'list-item-last' : 'list-item'}"&gt;<br />
						&lt;div class="col1"&gt;#{item.name}&lt;/div&gt;<br />
						&lt;div class="col2"&gt;#{item.min}&lt;/div&gt;<br />
						&lt;div class="col3"&gt;#{item.max}&lt;/div&gt;<br />
					&lt;/div&gt;<br />
&lt;/ice:panelSeries&gt;<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/528/icefaces-give-last-item-in-a-panel-series-a-different-style/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing php 5.2 on Snow Leopard</title>
		<link>http://blog.rosshenderson.info/513/installing-php-5-2-on-snow-leopard/</link>
		<comments>http://blog.rosshenderson.info/513/installing-php-5-2-on-snow-leopard/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 19:25:35 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Almost Random]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=513</guid>
		<description><![CDATA[I need to run Drupal 6 locally, which does not support php 5.3. Snow Leopard comes with 5.3. So, just install 5.2 and change httpd.conf to point at the libphp5.so in the 5.2 directory tree, right? No. Run the following in Terminal and you will get an error letting you know that the lib could [...]]]></description>
			<content:encoded><![CDATA[<p>I need to run Drupal 6 locally, which does not support php 5.3.</p>
<p>Snow Leopard comes with 5.3.</p>
<p>So, just install 5.2 and change httpd.conf to point at the libphp5.so in the 5.2 directory tree, right?</p>
<p>No.  Run the following in Terminal and you will get an error letting you know that the lib could not be loaded into the server.</p>
<p><code>sudo apachectl configtest</code></p>
<p>Huh.  </p>
<p>It turns out that the installer available at entropy.ch doesn&#8217;t play with Snow Leopard (or, rather, the other way around, probably).  It didn&#8217;t work with Leopard, either.  See <a href="http://www.entropy.ch/phpbb2/viewtopic.php?t=5366&#038;highlight=multiple+versions">here</a> or <a href="http://www.entropy.ch/phpbb2/viewtopic.php?t=2668">here</a> for relevant thread on entropy.ch&#8217;s forums. </p>
<p>Incidentally, the reason mcrypt is not available &#8211; you&#8217;ll have noticed this if you use phpMyAdmin &#8211; is that Apple&#8217;s version of PHP doesn&#8217;t support his extension.</p>
<p>There are several posts on the web from folks who have been successful with a MacPorts or Homebrew solution &#8211; though I&#8217;m not 100% sure any of them were working with Snow Leopard.<br />
So, <a href="http://mark-story.com/posts/view/maintaining-two-versions-of-php-with-macports">something with MacPorts</a> or <a href="http://boztek.net/blog/2009/10/07/install-lamp-stack-source-mac-os-x-106-snow-leopard-using-homebrew">something with Homebrew</a>?  Maybe <a href="http://boztek.net/blog/2009/10/07/install-lamp-stack-source-mac-os-x-106-snow-leopard-using-homebrew">something with FastCGI</a>? No?  Mmff&#8230;</p>
<p>Aside from not being able to get these to work for various reasons, they generally pulled down and installed a lot of stuff that I already have installed (i.e. apache, mysql), and I couldn&#8217;t tell if I would break the solution by not including those elements.</p>
<p>After some thought, some sleep, and a lot of googling, I realized that what I probably need to do is compile php from source on my machine.  The thing that all of the MacPorts/Homebrew solutions have in common is they all compile php from source, rather than use Entropy&#8217;s installer package.</p>
<p>Ondrej Simek has <a href="http://ondrejsimek.com/2009/08/running-multiple-php-versions-is-so-easy-with-fastcgi/">a nice post</a> about setting up nginx to run two versions of php.  He&#8217;s running in a UNIX environment, but it looks like everything is directly applicable to OS X.</p>
<p>Ondrej&#8217;s post covers pulling down and compiling php, which is what I <em>think</em> I need.  I don&#8217;t care about supporting multiple php versions at this point &#8211; if I can modify httpd.conf to point to a different .so file, that&#8217;ll be good enough.</p>
<p>Sean Coates has a post on <a href="http://seancoates.com/blogs/php-53-on-snow-leopard">compiling php on Snow Leopard</a>, which I&#8217;m hoping will corroborate and fill in any missing information from Ondrej&#8217;s post.  However, Sean&#8217;s solution uses Homebrew, so we&#8217;ll see where that leads.</p>
<p>Also &#8211; there is this <a href="http://www.malisphoto.com/tips/php-on-os-x.html">great-looking tutorial</a> on compiling PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/513/installing-php-5-2-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open file in application from terminal</title>
		<link>http://blog.rosshenderson.info/501/open-file-in-application-from-terminal/</link>
		<comments>http://blog.rosshenderson.info/501/open-file-in-application-from-terminal/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 16:24:28 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Almost Random]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=501</guid>
		<description><![CDATA[The following will open Apache&#8217;s httpd.conf file in Coda: open -a Coda.app /etc/apache2/httpd.conf The following will open Preview: open -a Preview.app]]></description>
			<content:encoded><![CDATA[<p>The following will open Apache&#8217;s httpd.conf file in Coda:</p>
<p><code>open -a Coda.app /etc/apache2/httpd.conf</code></p>
<p>The following will open Preview:</p>
<p><code>open -a Preview.app</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/501/open-file-in-application-from-terminal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get phoneGap/Sencha project working with XCode4</title>
		<link>http://blog.rosshenderson.info/505/get-phonegapsencha-project-working-with-xcode4/</link>
		<comments>http://blog.rosshenderson.info/505/get-phonegapsencha-project-working-with-xcode4/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 22:16:11 +0000</pubDate>
		<dc:creator>Ross</dc:creator>
				<category><![CDATA[Almost Random]]></category>

		<guid isPermaLink="false">http://blog.rosshenderson.info/?p=505</guid>
		<description><![CDATA[Create a working project by going to https://build.phonegap.com/generate. Then copy the &#8216;apps&#8217; directory from previous version of app into &#8216;www&#8217; directory of new project. Open project in XCode4. Open XCode Preferences and select the &#8216;Source Trees&#8217; menu item. In the &#8216;Source Trees&#8217; area: enter a Display Name make sure the Path value is correct make [...]]]></description>
			<content:encoded><![CDATA[<p>Create a working project by going to <a href="https://build.phonegap.com/generate">https://build.phonegap.com/generate</a>.</p>
<p>Then copy the &#8216;apps&#8217; directory from previous version of app into &#8216;www&#8217; directory of new project.</p>
<p>Open project in XCode4.  Open XCode Preferences and select the &#8216;Source Trees&#8217; menu item.  In the &#8216;Source Trees&#8217; area:</p>
<ul>
<li>enter a Display Name</li>
<li>make sure the Path value is correct</li>
<li>make sure the Setting Name value  is PHONEGAPLIB</li>
</ul>
<p>Open PhoneGapLib.xcodeproj and in the &#8216;Architectures&#8217; section go to the &#8216;Valid Architectures&#8217; section and add an entry for &#8220;i386&#8243; to the Debug row.  You may need to add the same to the Release row&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rosshenderson.info/505/get-phonegapsencha-project-working-with-xcode4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

