<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Stephen Nomura</title>
	
	<link>http://stephennomura.com</link>
	<description>Web Producer / Technical Writer</description>
	<lastBuildDate>Fri, 30 Dec 2011 02:43:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/StephenNomura" /><feedburner:info uri="stephennomura" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Interviewed by Erika about being Gluten-Free</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/0yntJ48qqD4/interviewed-by-erika-about-being-gluten-free</link>
		<comments>http://stephennomura.com/blog/interviewed-by-erika-about-being-gluten-free#comments</comments>
		<pubDate>Sun, 11 Sep 2011 00:58:03 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[diet]]></category>
		<category><![CDATA[gluten-free]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[lifestyle]]></category>
		<category><![CDATA[nutrition]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=223</guid>
		<description><![CDATA[Hi all, this post is a total departure from my usual coding and web development posts. For those that don&#8217;t know, I don&#8217;t eat foods containing gluten. Gluten is found in wheat, rye, and barley. This means nothing containing wheat flour&#8230; which is pretty much all bread and noodles. I&#8217;m also not supposed to drink [...]]]></description>
			<content:encoded><![CDATA[<p>Hi all, this post is a total departure from my usual coding and web development posts. For those that don&#8217;t know, I don&#8217;t eat foods containing gluten. Gluten is found in wheat, rye, and barley. This means nothing containing wheat flour&#8230; which is pretty much all bread and noodles. I&#8217;m also not <em>supposed</em> to drink beer or whiskey. Beer is delicious and bourbon has a special spot in my heart, so I cheat at that sometimes. A very close friend of mine named Erika recently interviewed me about my diet and posted it to her blog.</p>
<p>Check it out here: <a title="The Erika Immersive Experience Experiment featuring Stephen Nomura" href="http://erikaexperience.wordpress.com/2011/08/08/featured-stephen-nemora/">The Erika Immersive Experiment Experience featuring Stephen Nomura</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/mABK7bsUQowg3enh7HBerD7pRps/0/da"><img src="http://feedads.g.doubleclick.net/~a/mABK7bsUQowg3enh7HBerD7pRps/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/mABK7bsUQowg3enh7HBerD7pRps/1/da"><img src="http://feedads.g.doubleclick.net/~a/mABK7bsUQowg3enh7HBerD7pRps/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/0yntJ48qqD4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/interviewed-by-erika-about-being-gluten-free/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/interviewed-by-erika-about-being-gluten-free</feedburner:origLink></item>
		<item>
		<title>WordPress: Remove ‘Favorite Actions’ from Admin Header</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/32jpPRL-pXA/wordpress-remove-favorite-actions-from-admin-header</link>
		<comments>http://stephennomura.com/blog/wordpress-remove-favorite-actions-from-admin-header#comments</comments>
		<pubDate>Sat, 22 Jan 2011 19:57:07 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[favorite actions]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=210</guid>
		<description><![CDATA[I&#8217;ve been doing some admin UI customizations for the Arty Apt project lately. Here&#8217;s how to remove the &#8216;Favorite Actions&#8217; item from WordPress&#8217; admin header. Drop this snippet in functions.php and you&#8217;re done! /** * Remove 'Favorite Actions' from Admin Header */ function remove_admin_fav_actions&#40;&#41;&#123; return array&#40;&#41;; &#125; add_filter&#40;'favorite_actions','remove_admin_fav_actions'&#41;;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some admin UI customizations for the Arty Apt project lately. Here&#8217;s how to remove the &#8216;Favorite Actions&#8217; item from WordPress&#8217; admin header.</p>
<p><div class="wp-caption alignleft" style="width: 305px"><img alt="" src="http://stephennomura.com/pub/skitch/Roles_%E2%80%B9_Arty_Apt_%E2%80%94_WordPress-20110122-144849.jpg" title="Favorite Actions - Before" width="295" height="88" /><p class="wp-caption-text">BEFORE</p></div> <div class="wp-caption alignright" style="width: 305px"><img alt="" src="http://stephennomura.com/pub/skitch/Roles_%E2%80%B9_Arty_Apt_%E2%80%94_WordPress-20110122-145009.jpg" title="Favorite Actions - After" width="295" height="88" /><p class="wp-caption-text">AFTER</p></div></p>
<p>Drop this snippet in functions.php and you&#8217;re done!</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/**
 * Remove 'Favorite Actions' from Admin Header
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> remove_admin_fav_actions<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'favorite_actions'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'remove_admin_fav_actions'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<p><a href="http://feedads.g.doubleclick.net/~a/z0T1xwXiLYwuvK483furkQNdLlA/0/da"><img src="http://feedads.g.doubleclick.net/~a/z0T1xwXiLYwuvK483furkQNdLlA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/z0T1xwXiLYwuvK483furkQNdLlA/1/da"><img src="http://feedads.g.doubleclick.net/~a/z0T1xwXiLYwuvK483furkQNdLlA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/32jpPRL-pXA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/wordpress-remove-favorite-actions-from-admin-header/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/wordpress-remove-favorite-actions-from-admin-header</feedburner:origLink></item>
		<item>
		<title>Northern Pine Longboards: Storefront Added</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/UgbHcSlv33s/northern-pine-longboards-storefront-added</link>
		<comments>http://stephennomura.com/blog/northern-pine-longboards-storefront-added#comments</comments>
		<pubDate>Fri, 19 Nov 2010 13:28:16 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[northern pine longboards]]></category>
		<category><![CDATA[nplboards]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpurchase]]></category>
		<category><![CDATA[screaming]]></category>
		<category><![CDATA[sleep deprivation]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=193</guid>
		<description><![CDATA[I finally finished adding a shopping cart to the Northern Pine site. It&#8217;s basically my first ecommerce site (drag-n-drop paypal buttons don&#8217;t count). Holy crap, what a headache, but it&#8217;s done. The site uses PHPurchase to handle the Paypal API, my own modified version of Custom Post Types UI and Verve Meta Boxes for back-end [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href='http://stephennomura.com/blog/northern-pine-longboards-storefront-added/northern-pine-storefront' title='northern pine storefront'><img width="200" height="141" src="http://stephennomura.com/wp-content/uploads/2010/11/northern-pine-storefront-200x141.png" class="attachment-thumbnail" alt="northern pine storefront" title="northern pine storefront" /></a>
<br />
I <em>finally</em> finished adding a shopping cart to the Northern Pine site. It&#8217;s basically my first ecommerce site (drag-n-drop paypal buttons don&#8217;t count). Holy crap, what a headache, but it&#8217;s done.</p>
<p>The site uses <a href="www.phpurchase.com/">PHPurchase</a> to handle the Paypal API, my own <a href="http://stephennomura.com/blog/enhanced-version-of-custom-post-types-ui">modified version of Custom Post Types UI</a> and <a href="http://wordpress.org/extend/plugins/verve-meta-boxes/">Verve Meta Boxes</a> for back-end management. They&#8217;re all three sort of twisted together into a nice organized and streamlined mess of PHP.</p>
<p>I was having problems with PHPurchase for a long time. It would successfully redirect me to Paypal but fail on the Paypal to WordPress redirect. <abbr title="instant payment notification">IPN</abbr> was working fine. Receipts were NOT working. But payments were still going through&#8230; all very weird.</p>
<p>The problem was so damn simple I would have screamed had it not been 4:30 in the morning and had my grandma not been sleeping upstairs. I had the plugin <a href="http://yoast.com/wordpress/permalink-redirect/">Permalink Redirect</a> enabled, which strips queries (?) and fragments (#) out of the URL.</p>
<p>Wow, Stephen.</p>
<p>Just wow.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/TIiMe0LHxp-WOrsBDotBjyyBtZc/0/da"><img src="http://feedads.g.doubleclick.net/~a/TIiMe0LHxp-WOrsBDotBjyyBtZc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TIiMe0LHxp-WOrsBDotBjyyBtZc/1/da"><img src="http://feedads.g.doubleclick.net/~a/TIiMe0LHxp-WOrsBDotBjyyBtZc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/UgbHcSlv33s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/northern-pine-longboards-storefront-added/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/northern-pine-longboards-storefront-added</feedburner:origLink></item>
		<item>
		<title>ArtyApt: First Draft</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/IZl5SggegZA/artyapt-first-draft</link>
		<comments>http://stephennomura.com/blog/artyapt-first-draft#comments</comments>
		<pubDate>Thu, 11 Nov 2010 06:57:01 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[artyapt]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[ovative group]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=190</guid>
		<description><![CDATA[Just finished the first draft of the new ArtyApt website. While the branding is pretty much the same, the core code has been completely overhauled. The new site is a good 20 times easier for admins to manage and images should load a hell of a lot faster. Phase 2 is hooking it into the [...]]]></description>
			<content:encoded><![CDATA[<p>Just finished the first draft of the new <a href="http://artyapt.com">ArtyApt website</a>. While the branding is pretty much the same, the core code has been <em><strong>completely</strong></em> overhauled. The new site is a good 20 times easier for admins to manage and images should load a hell of a lot faster.</p>
<p>Phase 2 is hooking it into the Flickr API.</p>
<p>Phase 3 is updated branding (new theme and other css work).</p>
<p>Thoughts? Critiques? Please? Anyone? Bueller? Bueller?</p>

<a href='http://stephennomura.com/blog/artyapt-first-draft/arty-apt-art-for-your-apartment' title='Arty Apt - First Draft - Landing Page'><img width="200" height="298" src="http://stephennomura.com/wp-content/uploads/2010/11/Arty-Apt-Art-for-your-Apartment-200x298.png" class="attachment-thumbnail" alt="Arty Apt - First Draft - Landing Page Image" title="Arty Apt - First Draft - Landing Page" /></a>


<p><a href="http://feedads.g.doubleclick.net/~a/rq8UIiVPJVj6MSCIRv-VTNOaMBo/0/da"><img src="http://feedads.g.doubleclick.net/~a/rq8UIiVPJVj6MSCIRv-VTNOaMBo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/rq8UIiVPJVj6MSCIRv-VTNOaMBo/1/da"><img src="http://feedads.g.doubleclick.net/~a/rq8UIiVPJVj6MSCIRv-VTNOaMBo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/IZl5SggegZA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/artyapt-first-draft/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/artyapt-first-draft</feedburner:origLink></item>
		<item>
		<title>CSS Trick: Layout Engine classes in Thematic</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/1Nvi0KfYqxU/css-trick-layout-engine-classes-in-thematic</link>
		<comments>http://stephennomura.com/blog/css-trick-layout-engine-classes-in-thematic#comments</comments>
		<pubDate>Sat, 30 Oct 2010 19:02:33 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[browser engine]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[gecko]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[layout engine]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[presto]]></category>
		<category><![CDATA[rendering engine]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[thematic]]></category>
		<category><![CDATA[trident]]></category>
		<category><![CDATA[webkit]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=188</guid>
		<description><![CDATA[Solve browser compatibility problems using layout engine css classes. This code is specific to the Thematic WordPress Theme. However, it is easily modified to work with any setup. Steps Add code to functions.php Edit style.css The Code function layout_engine_body_class&#40;$c&#41; &#123; // AMENDS thematic_body_class with layout engine classes &#160; global $wp_query, $current_user; $browser = $_SERVER&#91; 'HTTP_USER_AGENT' [...]]]></description>
			<content:encoded><![CDATA[<p>Solve browser compatibility problems using layout engine css classes.</p>
<p>This code is specific to the <a href="http://themeshaper.com/">Thematic WordPress Theme</a>. However, it is easily modified to work with any setup.</p>
<h2>Steps</h2>
<ol>
<li>Add code to <strong>functions.php</strong></li>
<li>Edit <strong>style.css</strong></li>
</ol>
<p><span id="more-188"></span></p>
<h2>The Code</h2>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> layout_engine_body_class<span style="color: #009900;">&#40;</span><span style="color: #000088;">$c</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// AMENDS thematic_body_class with layout engine classes</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">,</span> <span style="color: #000088;">$current_user</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$browser</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span> <span style="color: #0000ff;">'HTTP_USER_AGENT'</span> <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/Chrome/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$browser</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$c</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'engine-webkit'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/Safari/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$browser</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$c</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'engine-webkit'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/Opera/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$browser</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$c</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'engine-presto'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/MSIE/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$browser</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$c</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'engine-trident'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;/Gecko/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$browser</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$c</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'engine-gecko'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$c</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'thematic_body_class'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'layout_engine_body_class'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h2>Example CSS</h2>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.engine-gecko</span> <span style="color: #6666ff;">.cboxElement</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> -moz-zoom-in<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.engine-webkit</span> <span style="color: #6666ff;">.cboxElement</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> -webkit-zoom-in<span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>


<p><a href="http://feedads.g.doubleclick.net/~a/5s2bIMMpKJrbIl_lgDMALiA04kw/0/da"><img src="http://feedads.g.doubleclick.net/~a/5s2bIMMpKJrbIl_lgDMALiA04kw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5s2bIMMpKJrbIl_lgDMALiA04kw/1/da"><img src="http://feedads.g.doubleclick.net/~a/5s2bIMMpKJrbIl_lgDMALiA04kw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/1Nvi0KfYqxU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/css-trick-layout-engine-classes-in-thematic/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/css-trick-layout-engine-classes-in-thematic</feedburner:origLink></item>
		<item>
		<title>Portfolio Section Added</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/P2LxvyxYge4/portfolio-section-added</link>
		<comments>http://stephennomura.com/blog/portfolio-section-added#comments</comments>
		<pubDate>Thu, 07 Oct 2010 00:43:59 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[portfolio]]></category>
		<category><![CDATA[site news]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=162</guid>
		<description><![CDATA[Added a portfolio section to my site. Check it out!]]></description>
			<content:encoded><![CDATA[<p>Added a portfolio section to my site. <a href="http://stephennomura.com/portfolio">Check it out!</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/hJtIj8frQsvtJN6w8cmLfwdc_Dg/0/da"><img src="http://feedads.g.doubleclick.net/~a/hJtIj8frQsvtJN6w8cmLfwdc_Dg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hJtIj8frQsvtJN6w8cmLfwdc_Dg/1/da"><img src="http://feedads.g.doubleclick.net/~a/hJtIj8frQsvtJN6w8cmLfwdc_Dg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/P2LxvyxYge4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/portfolio-section-added/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/portfolio-section-added</feedburner:origLink></item>
		<item>
		<title>Rhetoric: Work Every Angle with the Rhetorical Situation</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/wQuLasH7K_4/rhetoric-work-every-angle-with-the-rhetorical-situation</link>
		<comments>http://stephennomura.com/blog/rhetoric-work-every-angle-with-the-rhetorical-situation#comments</comments>
		<pubDate>Mon, 04 Oct 2010 22:07:21 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[brainstorming]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[methodology]]></category>
		<category><![CDATA[rhetoric]]></category>
		<category><![CDATA[technical communication]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=41</guid>
		<description><![CDATA[Save time, be more persuasive, and boost the readability of your communication work. This brainstorming framework is the starting point for all my communication work. It applies to all forms of communication, both written and visual. Best of all, it&#8217;s fill-in-the-blank easy. The Rhetorical Situation Roberts and Kostelnick&#8217;s book, Designing Visual Language, defines the rhetorical [...]]]></description>
			<content:encoded><![CDATA[<p>Save time, be more persuasive, and boost the readability of your communication work. This brainstorming framework is <em>the</em> starting point for all my communication work. It applies to all forms of communication, both written and visual.</p>
<p>Best of all, it&#8217;s <strong><em>fill-in-the-blank easy.</em></strong></p>
<p><span id="more-41"></span></p>
<h2 id="the-rhetorical-situation">The Rhetorical Situation</h2>
<p>Roberts and Kostelnick&#8217;s book, <cite><a title="Designing Visual Language by Roberts and Kostelnick" href="http://books.google.com/books?id=GIUAQgAACAAJ">Designing Visual Language</a></cite>, defines the rhetorical situation as follows.</p>
<dl>
<dt id="audience-definition">Audience</dt>
<dd><q>those who are going to use your document; who they are, what they know about the subject, their previous experience with  documents like the one you’re designing, even their cultural  background.</q> &#8211; Roberts p.5</dd>
<dt id="purpose-definition">Purpose</dt>
<dd><q>what you want your document to accomplish: persuade your  readers to think or act a certain way, enable them to perform a task,  help them understand something, change their attitude, and so on.</q> &#8211; Roberts p.5</dd>
<dt id="context-definition">Context</dt>
<dd><q>the circumstances in which readers will use your document: at  their office desk, in a manufacturing plant while they’re completing a  task, while they’re sitting around a conference table, and so on.</q> &#8211; Roberts p.5</dd>
</dl>
<p>Their definition is good, but not complete. I propose a fourth element, the Author.</p>
<dl>
<dt id="author-definition">Author</dt>
<dd>The <em>perceived</em> author of your document. Not the actual author (that&#8217;s you), but rather how the audience imagines the author. A rich woman? A humble desk clerk? An educated politician? An uneducated politician? A speech writer doing a bad job at making it look like the speaker actually wrote it themselves? <img src='http://stephennomura.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </dd>
</dl>
<h2 id="example-1">Example: Sue&#8217;s Apple Orchard</h2>
<p>Sue is an apple orchard owner and she wants you to design and write a flyer. Sales have been down since a similar orchard was caught using banned pesticides. Sue&#8217;s orchard uses a natural and non-toxic method of pest control.</p>
<p>The rhetorical situation brainstorm and associated design decisions might look like this:</p>
<dl>
<dt>Audience</dt>
<dd>
<dl>
<dt>30 to 50 year old suburban parents.</dt>
<dd>
<ul>
<li>Sell it as a good family experience.</li>
<li>Stress how healthy apples are for growing children.</li>
<li>Makes for good apple pie!</li>
</ul>
</dd>
<dt>Children.</dt>
<dd>
<ul>
<li>Use pictures of a character (like Barney)</li>
</ul>
</dd>
<dt>Organizations that plan field trips: day cares, schools, etc.</dt>
<dd>
<ul>
<li>Mention group discounts.</li>
<li>Sell it as an educational experience or teaching tool.</li>
</ul>
</dd>
<dt>Local markets</dt>
<dd>
<ul>
<li>Mention wholesale pricing.</li>
</ul>
</dd>
</dl>
</dd>
<dt>Purpose</dt>
<dd>
<dl>
<dt>To disassociate with the bad orchard.</dt>
<dd>
<ul>
<li>Bold statements like &#8220;Pesticide Free! We never use chemicals!&#8221;</li>
</ul>
</dd>
<dt>To sell the apple picking experience.</dt>
<dd>
<ul>
<li>Image of a child smiling while chomping down on a freshly picked apple?</li>
</ul>
</dd>
<dt>To sell apples.</dt>
<dd>
<ul>
<li>You know the drill—pick your sales/marketing poison. Discounts, comparisons to competitors, etc.</li>
</ul>
</dd>
<dd></dd>
</dl>
</dd>
<dt>Context</dt>
<dd>
<dl>
<dt>Tacked to bulletin boards, walls, and light posts. At bus stops. Exposed to the elements. Viewed from a distance.</dt>
<dd>
<ul>
<li>Keep text big, bold, and sans-serif to maximize readability at a distance and to help maintain readability if it becomes torn or soggy or whatever.</li>
</ul>
</dd>
<dd></dd>
<dt>As an insert in the local newspaper.</dt>
<dd>
<ul>
<li>Use colored paper so it stands out from the newsprint?</li>
</ul>
</dd>
<dd></dd>
<dt>It may be photocopied. The photocopies may be photocopied.</dt>
<dd>
<ul>
<li>Use typefaces and graphics that photocopy well.</li>
<li>Don&#8217;t rely on color.</li>
</ul>
</dd>
<dd></dd>
<dt>During apple season—late summer and fall</dt>
<dd>
<ul>
<li>Will it rain enough to damage the flyers?</li>
<li>Capitalize on back-to-school season somehow?</li>
</ul>
</dd>
</dl>
</dd>
<dt>Author</dt>
<dd>
<dl>
<dt>Business Owner</dt>
<dd>
<ul>
<li>Display her signature below main text</li>
</ul>
</dd>
<dt>Eco Friendly</dt>
<dd>
<ul>
<li>Use recycled paper and mention it (subtly)</li>
</ul>
</dd>
<dt>Trustworthy / has nothing to hide</dt>
<dd>
<ul>
<li>Encourage questions, both by phone and drop-in.</li>
</ul>
</dd>
<dt>A member of the community (not &#8220;above&#8221; anyone)</dt>
<dd>
<ul>
<li>Display the owner&#8217;s cell phone alongside her first name?</li>
</ul>
</dd>
</dl>
</dd>
</dl>
<p>Of course, many of the above ideas would be completely scrapped or replaced with better ones if it were a real job. But it isn&#8217;t, so don&#8217;t get caught up in the details. Remember, this is meant to be a brainstorm; write down every idea you have, regardless of its perceived viability!</p>
<h2 id="advanced-details">Advanced Details</h2>
<h3 id="audience-advanced">Audience</h3>
<ul>
<li>Audience is <em>always plural</em>—prepare for misunderstanding.</li>
<li>What audiences or individuals might view the document in addition to the target audience? How might they misunderstand it?</li>
<li>Are there parties that should not view the document? Parties that must not view the document?</li>
<li>Will the document be photographed or scanned for OCR software?</li>
</ul>
<h3 id="purpose-advanced">Purpose</h3>
<ul>
<li>The purpose is <em>always persuasion</em>—aim to persuade and the rest will follow.</li>
<li>Some texts layer purpose as follows: inform, convince, persuade. I ignore all but &#8220;persuade.&#8221; Writing a persuasive document will require both informing and convincing.</li>
</ul>
<h3 id="context-advanced">Context</h3>
<ul>
<li>Context is <em>infinitely vast</em>—don&#8217;t get sucked into the abyss.</li>
<li>Consider temporal, spatial, cultural, social, emotional, political, ethical, etc.</li>
<li>What will the environment be like? Weather and light condition(s)? Viewing distance(s), angle(s), and height(s) relative to eye level? Will multiple people try use it at the same time?</li>
<li>How many times will it be used? And for how long or until when? Will it be passed on?</li>
<li>When/if the document expires, where is its final destination? Filing Cabinet? Landfill? Recycled? Digitization?</li>
</ul>
<h3 id="author-advanced">Author</h3>
<ul>
<li>The author is an <em>imaginary character</em>—conveying them is a form of acting.</li>
<li>Why are they writing this document? What are their motivations?</li>
<li>Who do they work for?</li>
<li>What are their biases?</li>
<li>Is it one person? a team? a company? an organization?</li>
<li>Is the author human?</li>
<li>Or maybe it’s not supposed to read like it has an author, like it’s some sort of universal fact or concept that “just is,” like a famous quote with an unknown author.</li>
<li>Is the perceived author a skilled writer? Should typos or poor grammar be injected?</li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/a513qno_SOJKbq3LfpQIIgre0Cw/0/da"><img src="http://feedads.g.doubleclick.net/~a/a513qno_SOJKbq3LfpQIIgre0Cw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/a513qno_SOJKbq3LfpQIIgre0Cw/1/da"><img src="http://feedads.g.doubleclick.net/~a/a513qno_SOJKbq3LfpQIIgre0Cw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/wQuLasH7K_4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/rhetoric-work-every-angle-with-the-rhetorical-situation/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/rhetoric-work-every-angle-with-the-rhetorical-situation</feedburner:origLink></item>
		<item>
		<title>Fixed: Blogroll Links Favicons plugin not showing default favicon</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/8eWah_kyrzI/fixed-blogroll-links-favicons-plugin-not-showing-default-favicon</link>
		<comments>http://stephennomura.com/blog/fixed-blogroll-links-favicons-plugin-not-showing-default-favicon#comments</comments>
		<pubDate>Thu, 23 Sep 2010 23:27:25 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[blogroll links favicon]]></category>
		<category><![CDATA[favicons]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=44</guid>
		<description><![CDATA[Blogroll Links Favicons v1.6.2 has a bug that prevents using a default favicon for sites that don&#8217;t have their own. Luckily, it&#8217;s a one-line fix. The Fix The problem is line 29. This is wrong: 28 29 30 if&#40;$cached_favicons&#91;$bookmark_url&#93; == 'empty'&#41;&#123; $favicon = ''; $cache_update&#91;$bookmark_url&#93; = 'empty'; This is right: 28 29 30 if&#40;$cached_favicons&#91;$bookmark_url&#93; == [...]]]></description>
			<content:encoded><![CDATA[<p>Blogroll Links Favicons v1.6.2 has a bug that prevents using a default favicon for sites that don&#8217;t have their own. Luckily, it&#8217;s a one-line fix.</p>
<h3>The Fix</h3>
<p>The problem is line 29.</p>
<p>This is wrong:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>28
29
30
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cached_favicons</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bookmark_url</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'empty'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$favicon</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$cache_update</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bookmark_url</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'empty'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>This is right:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>28
29
30
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$cached_favicons</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bookmark_url</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'empty'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$favicon</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$default_favicon</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$cache_update</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$bookmark_url</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'empty'</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Change line 29 and you&#8217;re done!</p>
<p>Blogroll Links Favicons is by John Turner. For more info, <a href="http://joshbetz.com/2010/01/blogroll-links-favicons-2/">read the blog post</a> or <a href="http://wordpress.org/extend/plugins/blogroll-links-favicons/">visit the plugin on WordPress.org</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/bc7Ssq5ZO6pPkVwP6dw5rqdXOZ4/0/da"><img src="http://feedads.g.doubleclick.net/~a/bc7Ssq5ZO6pPkVwP6dw5rqdXOZ4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/bc7Ssq5ZO6pPkVwP6dw5rqdXOZ4/1/da"><img src="http://feedads.g.doubleclick.net/~a/bc7Ssq5ZO6pPkVwP6dw5rqdXOZ4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/8eWah_kyrzI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/fixed-blogroll-links-favicons-plugin-not-showing-default-favicon/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/fixed-blogroll-links-favicons-plugin-not-showing-default-favicon</feedburner:origLink></item>
		<item>
		<title>Applescript: Customizable iPhoto Export</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/Yc9YF7YiBBw/applescript-customizable-iphoto-export</link>
		<comments>http://stephennomura.com/blog/applescript-customizable-iphoto-export#comments</comments>
		<pubDate>Wed, 22 Sep 2010 03:18:36 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[color profile]]></category>
		<category><![CDATA[exif]]></category>
		<category><![CDATA[image processing]]></category>
		<category><![CDATA[iphoto]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[srgb]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=18</guid>
		<description><![CDATA[This script exports image batches out of iPhoto and prepares them for uploading to the internet. It uses Applescript to interface with applications and shell scripts to do the heavy lifting. If you need help with installation or setup, leave a comment; I&#8217;d be glad to help. Also, I apologize for the lack of line [...]]]></description>
			<content:encoded><![CDATA[<p>This script exports image batches out of iPhoto and prepares them for uploading to the internet. It uses Applescript to interface with applications and shell scripts to do the heavy lifting. If you need help with installation or setup, leave a comment; I&#8217;d be glad to help.</p>
<p>Also, I apologize for the lack of line wrapping; I could use some advice on auto-wrapping Applescript for web display. (help? <img src='http://stephennomura.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<h3>What it does:</h3>
<ol>
<li>Copy images out of iPhoto to ~/Pictures/_Processed_Images</li>
<li>Rename images as &#8220;[title in iPhoto] by [artist name]&#8220;</li>
<li>Convert to JPEG</li>
<li>Resize by longest dimension</li>
<li>Convert to sRGB</li>
<li>Embed EXIF data (artist &amp; keywords)</li>
</ol>
<p><span id="more-18"></span></p>
<h3>What you need:</h3>
<ol>
<li>iPhoto (tested with &#8217;08 and &#8217;09)</li>
<li><a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">ExifTool by Phil Harvey</a></li>
<li>The following script.</li>
</ol>
<h3>The Script:</h3>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">(*
(*
NAME: iPhoto Export - Process for Web
AUTHOR: Stephen Nomura
AUTHOR URI: http://stephennomura.com
SCRIPT URI: http://stephennomura.com/blog/applescript-customizable-iphoto-export
VERSION: 0.5 (2010-09-21)
SYNOPSIS: Takes any images selected in iPhoto and prepares them for uploading to the internet. This briefly entails:
&nbsp;
			1- Copy image(s) out of iPhoto
			2- Rename based on iPhoto title and artist name
			3- Convert to jpeg (or other type)
			4- Resize by longest dimension
			5- Convert to sRGB (or other profile)
			6- Embed EXIF data
&nbsp;
NOTE: This script depends on the 'ExifTool' by Phil Harvey. You must have it installed to run this script. It can be found at http://www.sno.phy.queensu.ca/~phil/exiftool/
*)</span>
&nbsp;
<span style="color: #808080; font-style: italic;">-------------------</span>
<span style="color: #808080; font-style: italic;">(* SETTINGS *)</span>
<span style="color: #808080; font-style: italic;">-------------------</span>
<span style="color: #808080; font-style: italic;">(* The following properties can be modified as you see fit. Have fun! *)</span>
<span style="color: #ff0033; font-weight: bold;">property</span> maxDimension : <span style="color: #000000;">1440</span>
<span style="color: #ff0033; font-weight: bold;">property</span> newFileFormat : <span style="color: #009900;">&quot;jpeg&quot;</span>
<span style="color: #808080; font-style: italic;">-- File Format can be &quot;jpeg&quot;, &quot;tiff&quot;, &quot;png&quot;, &quot;gif&quot;, &quot;jp2&quot;, &quot;pict&quot;, &quot;bmp&quot;, &quot;qtif&quot;, &quot;psd&quot;, &quot;sgi&quot;, or &quot;tga&quot; as paramater.</span>
<span style="color: #ff0033; font-weight: bold;">property</span> colorProfile : <span style="color: #009900;">&quot;sRGB Profile&quot;</span>
<span style="color: #808080; font-style: italic;">-- Color Profile can be &quot;AdobeRGB1998&quot;, &quot;Generic CMYK Profile&quot;, &quot;Generic Gray Gamma 2.2 Profile&quot;, &quot;Generic Gray Profile&quot;, &quot;Generic Lab Profile&quot;, &quot;Generic RGB Profile&quot;, &quot;Generic XYZ Profile&quot;, or &quot;sRGB Profile&quot;</span>
<span style="color: #808080; font-style: italic;">-- (note: I've only tested &quot;sRGB Profile&quot; but the rest should all work in theory.)</span>
<span style="color: #ff0033; font-weight: bold;">property</span> outputDir : <span style="color: #0066ff;">POSIX path</span> <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #0066ff;">path to</span> pictures <span style="color: #0066ff;">folder</span> <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">string</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;_Processed_Images:&quot;</span><span style="color: #000000;">&#41;</span>
<span style="color: #808080; font-style: italic;">-- If you modify the output directory, don't forget the trailing colon!</span>
&nbsp;
<span style="color: #808080; font-style: italic;">---------------------</span>
<span style="color: #808080; font-style: italic;">(* THE SCRIPT *)</span>
<span style="color: #808080; font-style: italic;">---------------------</span>
<span style="color: #ff0033; font-weight: bold;">global</span> artistName, metaKeywords, runTime
<span style="color: #ff0033; font-weight: bold;">set</span> sipsCmd <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;&quot;</span>
<span style="color: #ff0033; font-weight: bold;">set</span> exifCmd <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;&quot;</span>
<span style="color: #ff0033; font-weight: bold;">try</span>
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iPhoto&quot;</span>
		<span style="color: #0066ff;">activate</span>
		<span style="color: #ff0033; font-weight: bold;">copy</span> <span style="color: #000000;">&#40;</span><span style="color: #ff0033; font-weight: bold;">my</span> selected_images<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">to</span> these_images
		<span style="color: #ff0033; font-weight: bold;">if</span> these_images <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #0066ff;">false</span> <span style="color: #ff0033; font-weight: bold;">then</span> <span style="color: #ff0033; font-weight: bold;">error</span> <span style="color: #009900;">&quot;Please select at least one image to process.&quot;</span>
&nbsp;
		<span style="color: #ff0033; font-weight: bold;">set</span> artistName <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">text</span> returned <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Enter Artist Name to embed in meta and append to file name.&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> title <span style="color: #009900;">&quot;Enter Artist Name&quot;</span> <span style="color: #0066ff;">default answer</span> <span style="color: #009900;">&quot;&quot;</span> <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;Continue…&quot;</span><span style="color: #000000;">&#125;</span> default button <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>
		<span style="color: #ff0033; font-weight: bold;">set</span> metaKeywords <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">text</span> returned <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Enter Keywords to embed in meta. Separate with commas.&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> title <span style="color: #009900;">&quot;Enter Keywords&quot;</span> <span style="color: #0066ff;">default answer</span> <span style="color: #009900;">&quot;&quot;</span> <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;Continue…&quot;</span><span style="color: #000000;">&#125;</span> default button <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>
&nbsp;
		<span style="color: #808080; font-style: italic;">(* CONFIRMATION *)</span>
		<span style="color: #ff0033; font-weight: bold;">my</span> confirmation<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
		<span style="color: #808080; font-style: italic;">(* BUILD SHELL SCRIPT *)</span>
		<span style="color: #ff0033; font-weight: bold;">repeat</span> <span style="color: #ff0033; font-weight: bold;">with</span> i <span style="color: #ff0033; font-weight: bold;">from</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> <span style="color: #0066ff;">count</span> <span style="color: #ff0033; font-weight: bold;">of</span> these_images
			<span style="color: #ff0033; font-weight: bold;">set</span> this_photo <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> these_images
&nbsp;
			<span style="color: #808080; font-style: italic;">(* DEFINE FIELDS *)</span>
			<span style="color: #ff0033; font-weight: bold;">tell</span> this_photo
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> image_title <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> title
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> image_path <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> image path <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">string</span>
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> new_image_path <span style="color: #ff0033; font-weight: bold;">to</span> outputDir <span style="color: #000000;">&amp;</span> image_title <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot; by &quot;</span> <span style="color: #000000;">&amp;</span> artistName <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;.&quot;</span> <span style="color: #000000;">&amp;</span> newFileFormat
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> image_filename <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> image filename
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> image_comment <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> comment
				<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #ff0033;">the</span> assigned_keywords <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> <span style="color: #0066ff;">name</span> <span style="color: #ff0033; font-weight: bold;">of</span> keywords
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
&nbsp;
			<span style="color: #808080; font-style: italic;">(* DEFINE DIR CMD *)</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> dirCmd <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;mkdir -p &quot;</span> <span style="color: #000000;">&amp;</span> outputDir <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;/; &quot;</span>
&nbsp;
			<span style="color: #808080; font-style: italic;">(* DEFINE SIPS CMD *)</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> sipsCmd <span style="color: #ff0033; font-weight: bold;">to</span> sipsCmd <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;sips -s format &quot;</span> <span style="color: #000000;">&amp;</span> newFileFormat <span style="color: #000000;">&amp;</span> ¬
				<span style="color: #009900;">&quot; -Z &quot;</span> <span style="color: #000000;">&amp;</span> maxDimension <span style="color: #000000;">&amp;</span> ¬
				<span style="color: #009900;">&quot; -i '&quot;</span> <span style="color: #000000;">&amp;</span> image_path <span style="color: #000000;">&amp;</span> ¬
				<span style="color: #009900;">&quot;' --out '&quot;</span> <span style="color: #000000;">&amp;</span> new_image_path <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;'; &quot;</span>
&nbsp;
			<span style="color: #808080; font-style: italic;">(* DEFINE EXIFTOOL CMD *)</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> exifCmd <span style="color: #ff0033; font-weight: bold;">to</span> exifCmd <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;exiftool -overwrite_original_in_place '-icc_profile&amp;lt;=/System/Library/ColorSync/Profiles/&quot;</span> <span style="color: #000000;">&amp;</span> colorProfile <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;.icc' -ImageDescription='&quot;</span> <span style="color: #000000;">&amp;</span> image_title <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;' -artist='&quot;</span> <span style="color: #000000;">&amp;</span> artistName <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;' -keywords='&quot;</span> <span style="color: #000000;">&amp;</span> metaKeywords <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;' '&quot;</span> <span style="color: #000000;">&amp;</span> new_image_path <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;'; &quot;</span>
&nbsp;
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">repeat</span>
&nbsp;
		<span style="color: #808080; font-style: italic;">(* PROCESS IMAGES *)</span>
		<span style="color: #0066ff;">do shell script</span> dirCmd <span style="color: #000000;">&amp;</span> sipsCmd <span style="color: #000000;">&amp;</span> exifCmd
&nbsp;
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">(* SUCCESS! *)</span>
	<span style="color: #ff0033; font-weight: bold;">my</span> success<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">(* IF ERROR… *)</span>
<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span> error_message <span style="color: #0066ff;">number</span> error_number
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iPhoto&quot;</span>
		<span style="color: #0066ff;">activate</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #ff0033;">the</span> error_number <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">not</span> <span style="color: #000000;">-</span><span style="color: #000000;">128</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #0066ff;">display dialog</span> error_message <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;OK&quot;</span><span style="color: #000000;">&#125;</span> default button <span style="color: #000000;">1</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
&nbsp;
<span style="color: #808080; font-style: italic;">---------------------</span>
<span style="color: #808080; font-style: italic;">(* METHODS *)</span>
<span style="color: #808080; font-style: italic;">---------------------</span>
<span style="color: #ff0033; font-weight: bold;">on</span> selected_images<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iPhoto&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">try</span>
			<span style="color: #808080; font-style: italic;">-- get selection</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> these_items <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> <span style="color: #0066ff;">selection</span>
			<span style="color: #808080; font-style: italic;">-- check for single album selected</span>
			<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #ff0033;">the</span> class <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #0066ff;">item</span> <span style="color: #000000;">1</span> <span style="color: #ff0033; font-weight: bold;">of</span> these_items <span style="color: #ff0033; font-weight: bold;">is</span> album <span style="color: #ff0033; font-weight: bold;">then</span> <span style="color: #ff0033; font-weight: bold;">error</span> <span style="color: #009900;">&quot;Please select individual images, not albums.&quot;</span>
			<span style="color: #808080; font-style: italic;">-- return the list of selected photos</span>
			<span style="color: #ff0033; font-weight: bold;">return</span> these_items
		<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span>
			<span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #0066ff;">false</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
<span style="color: #ff0033; font-weight: bold;">end</span> selected_images
&nbsp;
<span style="color: #ff0033; font-weight: bold;">on</span> confirmation<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iPhoto&quot;</span>
		<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Meta data to embed...
	Artist: &quot;</span> <span style="color: #000000;">&amp;</span> artistName <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;
	Keywords: &quot;</span> <span style="color: #000000;">&amp;</span> metaKeywords <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;
&nbsp;
Image data to modify...
	Max Dimension: &quot;</span> <span style="color: #000000;">&amp;</span> maxDimension <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;px
	File Format: &quot;</span> <span style="color: #000000;">&amp;</span> newFileFormat <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;
	Color Profile: &quot;</span> <span style="color: #000000;">&amp;</span> colorProfile <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;
&nbsp;
New images can be found at...
&quot;</span> <span style="color: #000000;">&amp;</span> outputDir <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;
&nbsp;
You will be notified with a chime and dialog when the images are ready.&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
<span style="color: #ff0033; font-weight: bold;">end</span> confirmation
&nbsp;
<span style="color: #ff0033; font-weight: bold;">on</span> success<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;afplay /System/Library/Sounds/Hero.aiff&quot;</span>
	<span style="color: #ff0033; font-weight: bold;">try</span>
		<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;iPhoto&quot;</span>
			<span style="color: #ff0033; font-weight: bold;">if</span> button returned <span style="color: #ff0033; font-weight: bold;">of</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Images Ready!
&nbsp;
New images can be found at...
&quot;</span> <span style="color: #000000;">&amp;</span> outputDir <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;
&nbsp;
--
~Stephen Nomura (http://stephennomura.com)&quot;</span> <span style="color: #ff0033; font-weight: bold;">with</span> title <span style="color: #009900;">&quot;Images Ready!&quot;</span> <span style="color: #0066ff;">buttons</span> <span style="color: #000000;">&#123;</span><span style="color: #009900;">&quot;OK&quot;</span>, <span style="color: #009900;">&quot;Show files in Finder&quot;</span><span style="color: #000000;">&#125;</span> default button <span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #009900;">&quot;Show files in Finder&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
				<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;open &quot;</span> <span style="color: #000000;">&amp;</span> outputDir
			<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">if</span>
		<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
	<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
<span style="color: #ff0033; font-weight: bold;">end</span> success
<span style="color: #808080; font-style: italic;">(*
Inspiration:
   http://hints.macworld.com/article.php?story=20070822121100394
Godsend resource:
   http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
&nbsp;
TO DO:
 + Use a temp folder for processing
 + Display progress meter
 + Option: process selected files in finder
 + Option: set all settings with dialog prompt
 + Metadata keywords from iPhoto keywords
 + XMP Metadata Support
 + Move all settings to UI
&nbsp;
*)</span></pre></div></div>

<h3>References</h3>
<ul>
<li>Inspiration: <a href="http://hints.macworld.com/article.php?story=20070822121100394">http://hints.macworld.com/article.php?story=20070822121100394</a></li>
<li>Godsend resource: <a href="http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html">http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html</a></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/Cc9dKDN9azWPyR858Mc3iq9OH6M/0/da"><img src="http://feedads.g.doubleclick.net/~a/Cc9dKDN9azWPyR858Mc3iq9OH6M/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Cc9dKDN9azWPyR858Mc3iq9OH6M/1/da"><img src="http://feedads.g.doubleclick.net/~a/Cc9dKDN9azWPyR858Mc3iq9OH6M/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/Yc9YF7YiBBw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/applescript-customizable-iphoto-export/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/applescript-customizable-iphoto-export</feedburner:origLink></item>
		<item>
		<title>Enhanced Version of Custom Post Type UI Plugin (v0.7)</title>
		<link>http://feedproxy.google.com/~r/StephenNomura/~3/GM4g0NXPDcU/enhanced-version-of-custom-post-types-ui</link>
		<comments>http://stephennomura.com/blog/enhanced-version-of-custom-post-types-ui#comments</comments>
		<pubDate>Mon, 06 Sep 2010 15:11:24 +0000</pubDate>
		<dc:creator>Stephen Nomura</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[admin icon]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[custom post type]]></category>
		<category><![CDATA[custom post type ui]]></category>
		<category><![CDATA[custom taxonomy]]></category>
		<category><![CDATA[menu_icon]]></category>
		<category><![CDATA[permalinks]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[with_front]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://stephennomura.com/?p=20</guid>
		<description><![CDATA[Here&#8217;s an enhanced version of Brad Williams&#8217; excellent Custom Post Type UI plugin for WordPress. New Features: Admin Menu Icons &#8211; Adds ability to set admin menu icons for post types via the &#8216;menu_icon&#8217; field. Rewrite With Front &#8211; Adds ability to set the rewrite &#8216;with_front&#8217; option for both post types and taxonomies. Aside from [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s an enhanced version of Brad Williams&#8217; excellent <em>Custom Post Type UI</em> plugin for WordPress.</p>
<p>New Features:</p>
<ul>
<li><strong>Admin Menu Icons</strong> &#8211; Adds ability to set admin menu icons for post types via the &#8216;menu_icon&#8217; field.</li>
<li><strong>Rewrite With Front</strong> &#8211; Adds ability to set the rewrite &#8216;with_front&#8217; option for both post types and taxonomies.</li>
</ul>
<p>Aside from the actual plugin, which you can <a href="http://www.strangework.com/2010/03/03/custom-post-type-ui-plugin-for-wordpress/">read about on Brad&#8217;s blog</a>, I was inspired by <a href="http://wordpress.org/support/topic/permalink-after-changing-taxonomy-of-custom-post-type?replies=10#post-1521743">a comment made by Rofflox</a> on the WordPress.org support forums.</p>
<p><a href="http://stephennomura.com/wp-content/uploads/2011/06/custom-post-type-ui-0.7-enhanced.zip">Download Custom Post Type UI Enhanced 0.7 (Newest Version)</a><br />
<a href="http://stephennomura.com/wp-content/uploads/2010/09/custom-post-type-ui-enhanced.zip">Download Custom Post Type UI Enhanced 0.6.1</a></p>
<p>If you&#8217;d prefer I list line-by-line changes, request it in the comments; I really wouldn&#8217;t mind but I&#8217;m not going to spend the time unless people want it. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/iApB7VIV8sLcAixkirY4HQ-TtNY/0/da"><img src="http://feedads.g.doubleclick.net/~a/iApB7VIV8sLcAixkirY4HQ-TtNY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/iApB7VIV8sLcAixkirY4HQ-TtNY/1/da"><img src="http://feedads.g.doubleclick.net/~a/iApB7VIV8sLcAixkirY4HQ-TtNY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/StephenNomura/~4/GM4g0NXPDcU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://stephennomura.com/blog/enhanced-version-of-custom-post-types-ui/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://stephennomura.com/blog/enhanced-version-of-custom-post-types-ui</feedburner:origLink></item>
	</channel>
</rss>

