<?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>JoePahl.is</title> <atom:link href="http://joepahl.is/feed/" rel="self" type="application/rss+xml" /><link>http://joepahl.is</link> <description>A tangled web from wall to wall</description> <lastBuildDate>Thu, 09 Aug 2012 02:56:22 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.5.1</generator> <item><title>Phish – 6.30.2012 &#8220;Golden Age&#8221; -&gt; &#8220;Also Sprach Zarathustra&#8221;</title><link>http://joepahl.is/phish-6-30-2012-golden-age-2001/</link> <comments>http://joepahl.is/phish-6-30-2012-golden-age-2001/#comments</comments> <pubDate>Mon, 02 Jul 2012 21:25:28 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Music]]></category> <category><![CDATA[2001]]></category> <category><![CDATA[Alpine Valley]]></category> <category><![CDATA[Ghost]]></category> <category><![CDATA[Phish]]></category><guid
isPermaLink="false">http://joepahl.is/?p=317</guid> <description><![CDATA[A post worthy jam from this weekend. Why did I skip the first leg? DOH!!!]]></description> <content:encoded><![CDATA[<p>A post worthy jam from this weekend. Why did I skip the first leg? DOH!!!</p><div
style="margin-bottom: 25px;"><script type='text/javascript'>_wpaudio.enc['wpaudio-519c371969dee']='\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u006a\u006f\u0065\u0070\u0061\u0068\u006c\u002e\u0069\u0073\u002f\u007a\u007a\u007a\u005f\u0064\u006f\u0077\u006e\u006c\u006f\u0061\u0064\u0073\u002f\u0070\u0068\u0031\u0032\u0030\u0036\u0033\u0030\u005f\u0047\u006f\u006c\u0064\u0065\u006e\u005f\u0041\u0067\u0065\u005f\u0032\u0030\u0030\u0031\u002e\u006d\u0070\u0033';</script><a
id='wpaudio-519c371969dee' class='wpaudio wpaudio-enc' href='http://joepahl.is/zzz_downloads/ph120630_Golden_Age_2001.mp3'>Alpine Valley, WI 2012-06-30 "Golden Age" -&gt; "Also Sprach Zarathustra"</a></div><p><img
class="image-link" src="http://joepahl.is/wp-content/uploads/2012/07/alpine-poster.jpg" alt="" title="Alpine Valley 2012 Phish Poster" width="719" height="960" class="alignleft size-full wp-image-318" /></p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/phish-6-30-2012-golden-age-2001/feed/</wfw:commentRss> <slash:comments>0</slash:comments> <enclosure
url="http://joepahl.is/zzz_downloads/ph120630_Golden_Age_2001.mp3" length="13176216" type="audio/mpeg" /> </item> <item><title>Work in Progress</title><link>http://joepahl.is/work-in-progress/</link> <comments>http://joepahl.is/work-in-progress/#comments</comments> <pubDate>Wed, 21 Dec 2011 22:55:31 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Responsive Design]]></category><guid
isPermaLink="false">http://joepahl.is/?p=308</guid> <description><![CDATA[This is a new theme I&#8217;ve been tinkering with. It started out as a responsive design sandbox, but I want to develop it into a polished WP theme and eventually publish it. If you don&#8217;t know about responsive design, drag the window to change it&#8217;s size. Magic!]]></description> <content:encoded><![CDATA[<p>This is a new theme I&#8217;ve been tinkering with. It started out as a responsive design sandbox, but I want to develop it into a polished WP theme and eventually publish it.</p><p>If you don&#8217;t know about responsive design, drag the window to change it&#8217;s size. Magic!</p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/work-in-progress/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Michele Bachmann gets a snarky salute from the Roots</title><link>http://joepahl.is/michele-bachmann-gets-a-snarky-salute-from-the-roots/</link> <comments>http://joepahl.is/michele-bachmann-gets-a-snarky-salute-from-the-roots/#comments</comments> <pubDate>Tue, 22 Nov 2011 14:22:37 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Music]]></category> <category><![CDATA[Politics]]></category> <category><![CDATA[Fishbone]]></category> <category><![CDATA[Jimmy Fallon]]></category> <category><![CDATA[Late Night]]></category> <category><![CDATA[Lyin' Ass Bitch]]></category> <category><![CDATA[Michele Bachmann]]></category> <category><![CDATA[the Roots]]></category> <category><![CDATA[Twitter]]></category> <category><![CDATA[Video]]></category><guid
isPermaLink="false">http://joepahl.is/?p=300</guid> <description><![CDATA[We already know that Jimmy Fallon has the best house band in late-night, but this takes it to another level. Last night the Roots greeted Michele Bachmann with a Fishbone song that expresses the feelings that many people share for the Republican nominee. Don&#8217;t get it? Neither did I, but thanks to Twitter&#8230; The Late [...]]]></description> <content:encoded><![CDATA[<p>We already know that Jimmy Fallon has the best house band in late-night, but this takes it to another level. Last night the Roots greeted Michele Bachmann with a Fishbone song that expresses the feelings that many people share for the Republican nominee.</p><p><object
width="512" height="288"><param
name="movie" value="http://www.hulu.com/embed/1sN-pV1fmLzcryytFNF_aw/1320/1846/i1337"></param><param
name="allowFullScreen" value="true"></param><embed
src="http://www.hulu.com/embed/1sN-pV1fmLzcryytFNF_aw/1320/1846/i1337" type="application/x-shockwave-flash"  width="512" height="288" allowFullScreen="true"></embed></object></p><p>Don&#8217;t get it? Neither did I, but thanks to Twitter&#8230;</p><p><span
id="more-300"></span></p><div
style="margin-bottom:24px;"><div
id="attachment_142" class="wp-caption alignnone" style="width: 632px"><style type='text/css'>#bbpBox_138861052338249728
a{text-decoration:none;color:#0f0102}#bbpBox_138861052338249728 a:hover{text-decoration:underline}</style><div
id='bbpBox_138861052338249728' class='bbpBox' style='padding:20px; margin:5px 0; background-color:#663d00; background-image:url(http://a1.twimg.com/profile_background_images/54883997/babydrum.png);'><div
style='background:#fff; padding:10px; margin:0; min-height:48px; color:#8a8a26; -moz-border-radius:5px; -webkit-border-radius:5px;'><span
style='width:100%; font-size:18px; line-height:22px;'>aight late night walkon song devotees: you love it when we snark: this next one takes the cake. ask around cause i aint tweeting title.</span><div
class='bbp-actions' style='font-size:12px; width:100%; padding:5px 0; margin:0 0 10px 0; border-bottom:1px solid #e6e6e6;'><img
align='middle' src='http://joepahl.is/wp-content/plugins/twitter-blackbird-pie//images/bird.png' /><a
title='tweeted on November 22, 2011 1:07 am' href='http://twitter.com/#!/questlove/status/138861052338249728' target='_blank'>November 22, 2011 1:07 am</a> via web<a
href='https://twitter.com/intent/tweet?in_reply_to=138861052338249728' class='bbp-action bbp-reply-action' title='Reply'><span><em
style='margin-left: 1em;'></em><strong>Reply</strong></span></a><a
href='https://twitter.com/intent/retweet?tweet_id=138861052338249728' class='bbp-action bbp-retweet-action' title='Retweet'><span><em
style='margin-left: 1em;'></em><strong>Retweet</strong></span></a><a
href='https://twitter.com/intent/favorite?tweet_id=138861052338249728' class='bbp-action bbp-favorite-action' title='Favorite'><span><em
style='margin-left: 1em;'></em><strong>Favorite</strong></span></a></div><div
style='float:left; padding:0; margin:0'><a
href='http://twitter.com/intent/user?screen_name=questlove'><img
style='width:48px; height:48px; padding-right:7px; border:none; background:none; margin:0' src='http://a0.twimg.com/profile_images/1168342829/Screen_shot_2010-11-15_at_9.08.26_PM_normal.png' /></a></div><div
style='float:left; padding:0; margin:0'><a
style='font-weight:bold' href='http://twitter.com/intent/user?screen_name=questlove'>@questlove</a><div
style='margin:0; padding-top:2px'>Questo of The Roots</div></div><div
style='clear:both'></div></div></div><p
class="wp-caption-text">Questlove hinted that they had something special planned, but didn't name the song outright.</p></div></div><div
style="margin-bottom:24px;"><div
id="attachment_142" class="wp-caption alignnone" style="width: 632px"><style type='text/css'>#bbpBox_138862578804862976
a{text-decoration:none;color:#0084B4}#bbpBox_138862578804862976 a:hover{text-decoration:underline}</style><div
id='bbpBox_138862578804862976' class='bbpBox' style='padding:20px; margin:5px 0; background-color:#C0DEED; background-image:url(http://a3.twimg.com/profile_background_images/242845396/229887_10150159015957882_9994477881_6783750_5177594_n.jpg);'><div
style='background:#fff; padding:10px; margin:0; min-height:48px; color:#333333; -moz-border-radius:5px; -webkit-border-radius:5px;'><span
style='width:100%; font-size:18px; line-height:22px;'>@<a
href="http://twitter.com/intent/user?screen_name=questlove" class="twitter-action">questlove</a> L.A.B.? Wowowowowowowowowowowowowowowowowowowow</span><div
class='bbp-actions' style='font-size:12px; width:100%; padding:5px 0; margin:0 0 10px 0; border-bottom:1px solid #e6e6e6;'><img
align='middle' src='http://joepahl.is/wp-content/plugins/twitter-blackbird-pie//images/bird.png' /><a
title='tweeted on November 22, 2011 1:13 am' href='http://twitter.com/#!/PRBLMMTC/status/138862578804862976' target='_blank'>November 22, 2011 1:13 am</a> via web<a
href='https://twitter.com/intent/tweet?in_reply_to=138862578804862976' class='bbp-action bbp-reply-action' title='Reply'><span><em
style='margin-left: 1em;'></em><strong>Reply</strong></span></a><a
href='https://twitter.com/intent/retweet?tweet_id=138862578804862976' class='bbp-action bbp-retweet-action' title='Retweet'><span><em
style='margin-left: 1em;'></em><strong>Retweet</strong></span></a><a
href='https://twitter.com/intent/favorite?tweet_id=138862578804862976' class='bbp-action bbp-favorite-action' title='Favorite'><span><em
style='margin-left: 1em;'></em><strong>Favorite</strong></span></a></div><div
style='float:left; padding:0; margin:0'><a
href='http://twitter.com/intent/user?screen_name=PRBLMMTC'><img
style='width:48px; height:48px; padding-right:7px; border:none; background:none; margin:0' src='http://a1.twimg.com/profile_images/1299850411/Enemy_normal.jpg' /></a></div><div
style='float:left; padding:0; margin:0'><a
style='font-weight:bold' href='http://twitter.com/intent/user?screen_name=PRBLMMTC'>@PRBLMMTC</a><div
style='margin:0; padding-top:2px'>Ronald Clark</div></div><div
style='clear:both'></div></div></div><p
class="wp-caption-text">I wouldn't have figured it out if it weren't for another hint. Questlove retweeted this a little while later.</p></div></div><p>The <a
href="http://www.latenightwithjimmyfallon.com/" title="Late Night with Jimmy Fallon">Late Night website</a> removed Bachmann&#8217;s intro and walk-on from the interview clip. Hopefully Hulu keeps full episode intact. I tip my hat to the Roots.</p><p>Check out the original 1985 Fishbone track.</p><p><iframe
width="500" height="281" src="http://www.youtube.com/embed/1OuiuolN1r4?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p><blockquote><h3>Lyin&#8217; Ass Bitch</h3><p>Lalalala Lalalalala<br
/> Lalalala Lalalalala<br
/> Lalalala Lalalalala<br
/> Lalalala Lalalalala</p><p>I knew her and she knew me<br
/> When she asks me to introduce him<br
/> When I did we were three<br
/> Until she tried to seduce him</p><p>I really thought our love was much too strong<br
/> But that little slut just proved us wrong<br
/> I still care and that&#8217;s my fatal flaw<br
/> Cause sharing you will surely kill us all!</p><p>She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala<br
/> She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala<br
/> She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala<br
/> She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala</p><p>You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she loves you but you know she don&#8217;t care<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she needs you but you know she really don&#8217;t care<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she loves you but you know she don&#8217;t care<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she needs you but you know she really don&#8217;t care</p><p>She swears that her heart&#8217;s for you<br
/> And she swears that her love never ends<br
/> She swears that she&#8217;s all for you<br
/> As she messes around with your friends</p><p>I really thought our love was much too strong<br
/> But that little slut just proved us wrong<br
/> I still care and that&#8217;s my fatal flaw<br
/> Cause sharing you will surely kill us all!!</p><p>She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala<br
/> She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala<br
/> She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala<br
/> She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala</p><p>You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she loves you but you know she don&#8217;t care<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she needs you but you know she really don&#8217;t care</p><p>She&#8217;s just a&#8230;<br
/> Lalalala Lalalalala</p><p>You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she loves you but you know she doesn&#8217;t<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she says she loves you but you know she doesn&#8217;t<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!<br
/> You know she&#8217;s got you pussy-whipped but you&#8217;re not sorry!<br
/> You&#8217;re nothing but a little lyin&#8217; ass bitch!</p><p>She&#8217;s just so full of shit&#8230;<br
/> this is dedicated<br
/> to lyin&#8217; ass Yvette</p><p>The lyin&#8217;, piece of, sack of shit<br
/> Slut trash can scummy<br
/> Dirt bag&#8230; Biiiitch!!!!!!!</p><p><small>&mdash; L. Grant, K. Jones, A. Moore</small></p></blockquote> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/michele-bachmann-gets-a-snarky-salute-from-the-roots/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Phish – 7.1.11 &#8220;Peaches En Regalia&#8221;</title><link>http://joepahl.is/phish-peaches-en-regalia/</link> <comments>http://joepahl.is/phish-peaches-en-regalia/#comments</comments> <pubDate>Tue, 05 Jul 2011 22:43:03 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Music]]></category> <category><![CDATA[Frank Zappa]]></category> <category><![CDATA[Peaches En Regalia]]></category> <category><![CDATA[Phish]]></category> <category><![CDATA[Super Ball IX]]></category><guid
isPermaLink="false">http://joepahl.is/?p=299</guid> <description><![CDATA[Not perfect, but Phish doesn&#8217;t have an orchestra backing them up. I think this would make Frank smile. Trey&#8217;s sounding great this summer. &#160;]]></description> <content:encoded><![CDATA[<p>Not perfect, but Phish doesn&#8217;t have an orchestra backing them up. I think this would make Frank smile.</p><p>Trey&#8217;s sounding great this summer.</p><p><script type='text/javascript'>_wpaudio.enc['wpaudio-519c3719814f4']='\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u006a\u006f\u0065\u0070\u0061\u0068\u006c\u002e\u0069\u0073\u002f\u007a\u007a\u007a\u005f\u0064\u006f\u0077\u006e\u006c\u006f\u0061\u0064\u0073\u002f\u0050\u0065\u0061\u0063\u0068\u0065\u0073\u002d\u0045\u006e\u002d\u0052\u0065\u0067\u0061\u006c\u0069\u0061\u002e\u006d\u0070\u0033';</script><a
id='wpaudio-519c3719814f4' class='wpaudio wpaudio-enc' href='http://joepahl.is/zzz_downloads/Peaches-En-Regalia.mp3'>Phish – 7.1.11 "Peaches En Regalia"</a>&nbsp;</p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/phish-peaches-en-regalia/feed/</wfw:commentRss> <slash:comments>2</slash:comments> <enclosure
url="http://joepahl.is/zzz_downloads/Peaches-En-Regalia.mp3" length="8057482" type="audio/mpeg" /> </item> <item><title>Happy 4th of July!</title><link>http://joepahl.is/happy-4th-of-july/</link> <comments>http://joepahl.is/happy-4th-of-july/#comments</comments> <pubDate>Mon, 04 Jul 2011 13:12:25 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Reverie]]></category> <category><![CDATA[4th of July]]></category> <category><![CDATA[Animated GIF]]></category> <category><![CDATA[Fireworks]]></category> <category><![CDATA[Sparklers]]></category><guid
isPermaLink="false">http://joepahl.is/?p=297</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<p><span
id="more-297"></span><img
class="alignnone" title="Happy 4th of July!" src="http://farm8.staticflickr.com/7101/7257977330_6d1d0ef554_o.gif" alt="Happy 4th of July!" width="480" height="640" /></p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/happy-4th-of-july/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Chinese Character Count in PHP</title><link>http://joepahl.is/chinese-character-count-in-php/</link> <comments>http://joepahl.is/chinese-character-count-in-php/#comments</comments> <pubDate>Mon, 13 Jun 2011 01:44:06 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Chinese]]></category> <category><![CDATA[Function]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Unicode]]></category> <category><![CDATA[UTF-8]]></category><guid
isPermaLink="false">http://joepahl.is/?p=294</guid> <description><![CDATA[I just spent five hours banging my head against the wall trying to figure this out. In hopes that I can prevent someone else from suffering the same fate, I decided to share this. Background &#038; Issues: Chinese characters are word symbols rather than letters. A word count is impossible because there are no spaces [...]]]></description> <content:encoded><![CDATA[<p>I just spent five hours banging my head against the wall trying to figure this out. In hopes that I can prevent someone else from suffering the same fate, I decided to share this.</p><h6>Background &#038; Issues:</h6><p>Chinese characters are word symbols rather than letters. A word count is impossible because there are no spaces between words.</p><p>Instead you have to do a character count. Unfortunately using a substring (PHP: <code
class="codecolorer text default"><span
class="text">substr()</span></code>) won&#8217;t work because Chinese characters are encoded in Unicode.</p><p>Keep in mind that the <code
class="codecolorer text default"><span
class="text">$content</span></code> string is UTF-8 encoded. Each Chinese character is composed of multiple characters. A ten character long string is equal to only three UTF-8 Chinese characters.</p><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #000088;">$content</span> <span
style="color: #339933;">=</span> <span
style="color: #0000ff;">'有史以來最好的網站'</span><span
style="color: #339933;">;</span> <br
/> <span
style="color: #666666; font-style: italic;">// In Unicode (UTF-8) this string equals '%E6%9C%89%E5%8F%B2%E4%BB%A5%E4%BE%86%E6%9C%80%E5%A5%BD%E7%9A%84%E7%B6%B2%E7%AB%99'</span><br
/> <br
/> <span
style="color: #000088;">$excerpt</span> <span
style="color: #339933;">=</span> <span
style="color: #990000;">substr</span><span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$content</span><span
style="color: #339933;">,</span> <span
style="color: #cc66cc;">0</span><span
style="color: #339933;">,</span> <span
style="color: #cc66cc;">10</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span> <br
/> <span
style="color: #666666; font-style: italic;">// substr() does not recognize Unicode characters, this results in broken characters at the end of the excerpt.</span><br
/> <br
/> <span
style="color: #b1b100;">echo</span> <span
style="color: #000088;">$excerpt</span><span
style="color: #339933;">;</span></div></div><p>The above snippet will output:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">有史以�<br
/> <br
/> (The black-diamond-question-mark symbol denotes a broken Unicode character.)</div></div><p><span
id="more-294"></span></p><h6>Solution:</h6><p>The multi-byte string cut function <code
class="codecolorer text default"><span
class="text">mb_strcut()</span></code>) function recognizes encoded characters and removes partially encoded characters from the return value.</p><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #000088;">$content</span> <span
style="color: #339933;">=</span> <span
style="color: #0000ff;">'有史以來最好的網站'</span><span
style="color: #339933;">;</span><br
/> <br
/> <span
style="color: #000088;">$excerpt</span> <span
style="color: #339933;">=</span> <span
style="color: #990000;">mb_strcut</span><span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$content</span><span
style="color: #339933;">,</span> <span
style="color: #cc66cc;">0</span><span
style="color: #339933;">,</span> <span
style="color: #cc66cc;">10</span><span
style="color: #339933;">,</span> <span
style="color: #0000ff;">'UTF-8'</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span> <br
/> <br
/> <span
style="color: #b1b100;">echo</span> <span
style="color: #000088;">$excerpt</span><span
style="color: #339933;">;</span></div></div><p>The above snippet will output:</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">有史以</div></div> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/chinese-character-count-in-php/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Dominique Strauss-Kahn Gets Skooled</title><link>http://joepahl.is/dominique-strauss-kahn-gets-skooled/</link> <comments>http://joepahl.is/dominique-strauss-kahn-gets-skooled/#comments</comments> <pubDate>Wed, 25 May 2011 18:47:26 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Politics]]></category> <category><![CDATA[Reverie]]></category> <category><![CDATA[IMF]]></category> <category><![CDATA[Prison]]></category> <category><![CDATA[SNL]]></category> <category><![CDATA[Strauss-Kahn]]></category> <category><![CDATA[Video]]></category><guid
isPermaLink="false">http://joepahl.is/?p=292</guid> <description><![CDATA[]]></description> <content:encoded><![CDATA[<div
class="wp-caption aligncenter" style="width: 632px"><object
width="630" height="364"><param
name="movie" value="http://www.hulu.com/embed/0BzEeSHJZqRGR0ZKGXhzRA"></param><param
name="flashvars" value="ap=1"></param><embed
src="http://www.hulu.com/embed/0BzEeSHJZqRGR0ZKGXhzRA" type="application/x-shockwave-flash" width="630" height="364" flashvars="ap=1"></embed></object><p
class="wp-caption-text"><i>"Germans be good at bein&#39; austere!"</i></p></div> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/dominique-strauss-kahn-gets-skooled/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Dynamic Light App or Marty McFly&#8217;s Hand</title><link>http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/</link> <comments>http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/#comments</comments> <pubDate>Wed, 13 Apr 2011 14:20:17 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Art]]></category> <category><![CDATA[Reverie]]></category> <category><![CDATA[Back to the Future]]></category> <category><![CDATA[Dynamic Light]]></category> <category><![CDATA[Gallery]]></category> <category><![CDATA[HDR]]></category> <category><![CDATA[HDRI]]></category> <category><![CDATA[Instagram]]></category> <category><![CDATA[iPhone]]></category> <category><![CDATA[Photos]]></category> <category><![CDATA[Seattle]]></category><guid
isPermaLink="false">http://joepahl.is/?p=257</guid> <description><![CDATA[To be honest, I had never heard of HDR (or HDRI) until the iPhone 4 came out. It wasn&#8217;t until today that I learned that the initials stand for high-dynamic-range imaging. The only reason I know now is because of my new favorite photo app &#8211; Dynamic Light. Since I&#8217;m learning about HDR for the [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://joepahl.is/wp-content/uploads/2011/04/IMG_2341.png"><img
src="http://joepahl.is/wp-content/uploads/2011/04/IMG_2341-100x150.png" alt="Dynamic Light" title="Dynamic Light" width="100" height="150" class="alignleft size-thumbnail wp-image-289" /></a>To be honest, I had never heard of HDR (or HDRI) until the iPhone 4 came out. It wasn&#8217;t until today that I learned that the initials stand for <strong>high-dynamic-range</strong> imaging. The only reason I know now is because of my new favorite photo app &ndash; <a
href="http://itunes.apple.com/us/app/dynamic-light/id422494924" title="Dynamic Light">Dynamic Light</a>.</p><p>Since I&#8217;m learning about HDR for the first time, I&#8217;m not going to try and explain it. According to <a
href="http://en.wikipedia.org/wiki/High-dynamic-range_imaging" title="Wikipedia | High-dynamic-range imaging">Wikipedia</a>:</p><blockquote><p>High-dynamic-range imaging (HDRI or just HDR) is a set of techniques that allow a greater dynamic range of luminance between the lightest and darkest areas of an image than current standard digital imaging techniques or photographic methods. This wide dynamic range allows HDR images to more accurately represent the range of intensity levels found in real scenes, ranging from direct sunlight to faint starlight.</p></blockquote><p><span
id="more-257"></span></p><p>In short, the Dynamic Light app gives you control of the HDR settings. You can dial up or down the dynamic range between light and dark. Additionally, the app has filters that you can apply to your images.</p><p>Dynamic Light is published by <a
href="http://www.mediachance.com" title="MediaChance">MediaChance</a>. The $0.99 iPhone app is a steal, especially considering they sell a desktop version of this software for $55. Dynamic Light has replaced <a
href="http://joepahl.is/waking-up-with-instagram/" title="Waking Up with Instagram | Joe Pahl is">Instagram</a> as my favorite photo editing app (though I will still use Instagram to upload images).</p><p>I took this pic on a recent trip to the Seattle area. The original image isn&#8217;t very impressive, but the iPhone HDR version combined a frame with the hand and a frame without the hand, giving the image a cool effect. With Dynamic Light I was able to turn this &#8220;mistake&#8221; into something interesting. Here&#8217;s a sampling of what you can do with the app:</p><div
class="wp-caption alignleft clear" style="width: 300px; margin-right :35px; padding-left:0; padding-right:0;"><a
href="http://joepahl.is/wp-content/uploads/2011/04/Original1.jpg"><img
src="http://joepahl.is/wp-content/uploads/2011/04/Original1-300x224.jpg" alt="Original" title="Original" width="300" height="224" class="size-large" style="margin-right:0; margin-left:0;" /></a><p
class="wp-caption-text" style="margin-right:0; margin-left:0;">The Original</p></div><div
class="wp-caption alignleft" style="width: 300px; margin-right : 0; padding-left:0; padding-right:0;"><a
href="http://joepahl.is/wp-content/uploads/2011/04/Original.jpg"><img
src="http://joepahl.is/wp-content/uploads/2011/04/Original-300x224.jpg" alt="Original HDR" title="Original HDR" width="300" height="224" class="size-large" style="margin-right:0; margin-left:0;" /></a><p
class="wp-caption-text" style="margin-right:0; margin-left:0;">The Original HDR</p></div><a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/normal/' title='Normal (Dynamic Light)'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Normal-150x112.jpg" class="attachment-thumbnail" alt="Normal (Dynamic Light)" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Normal-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Normal-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Normal-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Normal.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/black-white/' title='Black &amp; White'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Black-White-150x112.jpg" class="attachment-thumbnail" alt="Black &amp; White" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Black-White-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Black-White-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Black-White-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Black-White.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/infrared/' title='Infrared'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Infrared-150x112.jpg" class="attachment-thumbnail" alt="Infrared" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Infrared-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Infrared-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Infrared-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Infrared.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/orton/' title='Orton'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Orton-150x112.jpg" class="attachment-thumbnail" alt="Orton" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Orton-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Orton-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Orton-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Orton.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/orton-ir/' title='Orton IR'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Orton-IR-150x112.jpg" class="attachment-thumbnail" alt="Orton IR" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Orton-IR-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Orton-IR-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Orton-IR-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Orton-IR.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/sepia/' title='Sepia'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Sepia-150x112.jpg" class="attachment-thumbnail" alt="Sepia" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Sepia-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Sepia-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Sepia-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Sepia.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/sepia-ir/' title='Sepia IR'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Sepia-IR-150x112.jpg" class="attachment-thumbnail" alt="Sepia IR" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Sepia-IR-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Sepia-IR-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Sepia-IR-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Sepia-IR.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/vignette/' title='Vignette'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Vignette-150x112.jpg" class="attachment-thumbnail" alt="Vignette" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Vignette-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Vignette-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Vignette-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Vignette.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/dutch-light/' title='Dutch Light'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Dutch-Light-150x112.jpg" class="attachment-thumbnail" alt="Dutch Light" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Dutch-Light-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Dutch-Light-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Dutch-Light-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Dutch-Light.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/mysterious-light/' title='Mysterious Light'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Mysterious-Light-150x112.jpg" class="attachment-thumbnail" alt="Mysterious Light" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Mysterious-Light-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Mysterious-Light-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Mysterious-Light-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Mysterious-Light.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/comic/' title='Comic'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Comic-150x112.jpg" class="attachment-thumbnail" alt="Comic" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Comic-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Comic-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Comic-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Comic.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/manga/' title='Manga'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Manga-150x112.jpg" class="attachment-thumbnail" alt="Manga" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Manga-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Manga-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Manga-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Manga.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/img_2338/' title='Ultra Contrast'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/IMG_2338-150x112.jpg" class="attachment-thumbnail" alt="Ultra Contrast" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/IMG_2338-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/IMG_2338-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/IMG_2338-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/IMG_2338.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/img_2339/' title='Overcooked HDR'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/IMG_2339-150x112.jpg" class="attachment-thumbnail" alt="Overcooked HDR" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/IMG_2339-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/IMG_2339-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/IMG_2339-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/IMG_2339.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/img_2340/' title='No more HDR'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/IMG_2340-150x112.jpg" class="attachment-thumbnail" alt="No more HDR" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/IMG_2340-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/IMG_2340-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/IMG_2340-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/IMG_2340.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/blue-tint/' title='Blue Tint'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Blue-Tint-150x112.jpg" class="attachment-thumbnail" alt="Blue Tint" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Blue-Tint-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Blue-Tint-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Blue-Tint-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Blue-Tint.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/green-tint/' title='Green Tint'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Green-Tint-150x112.jpg" class="attachment-thumbnail" alt="Green Tint" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Green-Tint-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Green-Tint-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Green-Tint-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Green-Tint.jpg" /></a> <a
href='http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/red-tint/' title='Red Tint'><img
width="150" height="112" src="http://joepahl.is/wp-content/uploads/2011/04/Red-Tint-150x112.jpg" class="attachment-thumbnail" alt="Red Tint" src-thumbnail="http://joepahl.is/wp-content/uploads/2011/04/Red-Tint-150x112.jpg" src-medium="http://joepahl.is/wp-content/uploads/2011/04/Red-Tint-300x224.jpg" src-large="http://joepahl.is/wp-content/uploads/2011/04/Red-Tint-622x464.jpg" src-full="http://joepahl.is/wp-content/uploads/2011/04/Red-Tint.jpg" /></a><p><small>There are more examples of Dynamic Light pics in my <a
href="http://www.flickr.com/photos/nastyrumor/" title="Flickr | joepahl's photostream">Flickr photostream</a>.</small></p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/dynamic-light-app-or-marty-mcflys-hand/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Custom Taxonomies with WPML + My First Contribution to the WordPress Codex</title><link>http://joepahl.is/custom-taxonomies-wpml/</link> <comments>http://joepahl.is/custom-taxonomies-wpml/#comments</comments> <pubDate>Mon, 04 Apr 2011 04:35:33 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Birds]]></category> <category><![CDATA[Codex]]></category> <category><![CDATA[Custom Taxonomy]]></category> <category><![CDATA[Function]]></category> <category><![CDATA[get_terms]]></category> <category><![CDATA[Interpunct]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WPML]]></category><guid
isPermaLink="false">http://joepahl.is/?p=246</guid> <description><![CDATA[This may be a rare case, but if you call the get_terms(); function to retrieve a custom taxonomy array, and you are using the WPML (WordPress Multilingual) plugin for language translation, there is an undocumented (see below) argument that you will need to use. If, for example, your custom taxonomy, &#8220;Birds,&#8221; has a the following [...]]]></description> <content:encoded><![CDATA[<p>This may be a rare case, but if you call the <code
class="codecolorer text default"><span
class="text">get_terms();</span></code> function to retrieve a custom taxonomy array, and you are using the WPML (WordPress Multilingual) plugin for language translation, there is an <del
datetime="2011-04-03T18:48:34+00:00">undocumented</del> (<a
href="/custom-taxonomies-wpml/#codex">see below</a>) argument that you will need to use.</p><p>If, for example, your custom taxonomy, &#8220;Birds,&#8221; has a the following terms: hummingbird, sparrow, dove, crow, parrot, hawk. You can use WPML to add Spanish translations: colibrí, gorrión, paloma, cuervo, loro, halcón. To display a list of the <code
class="codecolorer text default"><span
class="text">birds</span></code> taxonomy, you would call:</p><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #000088;">$terms</span> <span
style="color: #339933;">=</span> get_terms<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">'birds'</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <br
/> <span
style="color: #000088;">$count</span> <span
style="color: #339933;">=</span> <span
style="color: #990000;">count</span><span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$terms</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <span
style="color: #b1b100;">if</span> <span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$count</span> <span
style="color: #339933;">&gt;</span> <span
style="color: #cc66cc;">0</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span><br
/> &nbsp; &nbsp; <span
style="color: #000088;">$bird_list</span> <span
style="color: #339933;">=</span> <span
style="color: #0000ff;">'&lt;ul class=&quot;birds-list&quot;&gt;'</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; <span
style="color: #b1b100;">foreach</span> <span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$terms</span> <span
style="color: #b1b100;">as</span> <span
style="color: #000088;">$term</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$bird_list</span> <span
style="color: #339933;">.=</span> <span
style="color: #0000ff;">'&lt;li&gt;'</span> <span
style="color: #339933;">.</span> <span
style="color: #000088;">$term</span><span
style="color: #339933;">-&gt;</span><span
style="color: #004000;">name</span> <span
style="color: #339933;">.</span> <span
style="color: #0000ff;">'&lt;/li&gt;'</span><span
style="color: #339933;">;</span> <br
/> &nbsp; &nbsp; <span
style="color: #009900;">&#125;</span><br
/> &nbsp; &nbsp; <span
style="color: #000088;">$bird_list</span> <span
style="color: #339933;">.=</span> <span
style="color: #0000ff;">'&lt;/ul&gt;'</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; <span
style="color: #b1b100;">echo</span> <span
style="color: #000088;">$bird_list</span><span
style="color: #339933;">;</span><br
/> <span
style="color: #009900;">&#125;</span><br
/> <br
/> <span
style="color: #666666; font-style: italic;">/****************************************<br
/> <br
/> Regardless of which language is selected, this snippet will display:<br
/> &nbsp; &nbsp; &nbsp; &nbsp; <br
/> &nbsp; &nbsp; colibrí<br
/> &nbsp; &nbsp; crow<br
/> &nbsp; &nbsp; cuervo<br
/> &nbsp; &nbsp; dove<br
/> &nbsp; &nbsp; gorrión<br
/> &nbsp; &nbsp; halcón<br
/> &nbsp; &nbsp; hawk<br
/> &nbsp; &nbsp; hummingbird<br
/> &nbsp; &nbsp; loro<br
/> &nbsp; &nbsp; paloma<br
/> &nbsp; &nbsp; parrot<br
/> &nbsp; &nbsp; sparrow<br
/> */</span></div></div><p><span
id="more-246"></span></p><p>To get a language specific set of terms, you need to set the taxonomy argument along with the parameter:</p><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span
style="color: #000088;">$args</span> <span
style="color: #339933;">=</span> <span
style="color: #990000;">array</span><span
style="color: #009900;">&#40;</span> <span
style="color: #0000ff;">'taxonomy'</span> <span
style="color: #339933;">=&gt;</span> <span
style="color: #0000ff;">'birds'</span> <span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <br
/> <span
style="color: #000088;">$terms</span> <span
style="color: #339933;">=</span> get_terms<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">'birds'</span><span
style="color: #339933;">,</span> <span
style="color: #000088;">$args</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <br
/> <span
style="color: #000088;">$count</span> <span
style="color: #339933;">=</span> <span
style="color: #990000;">count</span><span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$terms</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span> <span
style="color: #000088;">$i</span><span
style="color: #339933;">=</span><span
style="color: #cc66cc;">0</span><span
style="color: #339933;">;</span><br
/> <span
style="color: #b1b100;">if</span> <span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$count</span> <span
style="color: #339933;">&gt;</span> <span
style="color: #cc66cc;">0</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span><br
/> &nbsp; &nbsp; <span
style="color: #000088;">$birds_list</span> <span
style="color: #339933;">=</span> <span
style="color: #0000ff;">'&lt;p class=&quot;birds-archive&quot;&gt;'</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; <span
style="color: #b1b100;">foreach</span> <span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$terms</span> <span
style="color: #b1b100;">as</span> <span
style="color: #000088;">$term</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$i</span><span
style="color: #339933;">++;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$birds_list</span> <span
style="color: #339933;">.=</span> <span
style="color: #0000ff;">'&lt;a href=&quot;/birds-url-base/'</span> <span
style="color: #339933;">.</span> <span
style="color: #000088;">$term</span><span
style="color: #339933;">-&gt;</span><span
style="color: #004000;">slug</span> <span
style="color: #339933;">.</span> <span
style="color: #0000ff;">'&quot; title=&quot;'</span> <span
style="color: #339933;">.</span> <span
style="color: #990000;">sprintf</span><span
style="color: #009900;">&#40;</span>__<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">'View all post filed under %s'</span><span
style="color: #339933;">,</span> <span
style="color: #0000ff;">'localization_domain'</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">,</span> <span
style="color: #000088;">$term</span><span
style="color: #339933;">-&gt;</span><span
style="color: #004000;">name</span><span
style="color: #009900;">&#41;</span> <span
style="color: #339933;">.</span> <span
style="color: #0000ff;">'&quot;&gt;'</span> <span
style="color: #339933;">.</span> <span
style="color: #000088;">$term</span><span
style="color: #339933;">-&gt;</span><span
style="color: #004000;">name</span> <span
style="color: #339933;">.</span> <span
style="color: #0000ff;">'&lt;/a&gt;'</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #b1b100;">if</span> <span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$count</span> <span
style="color: #339933;">!=</span> <span
style="color: #000088;">$i</span><span
style="color: #009900;">&#41;</span> <span
style="color: #000088;">$birds_list</span> <span
style="color: #339933;">.=</span> <span
style="color: #0000ff;">' &amp;middot; '</span><span
style="color: #339933;">;</span> <span
style="color: #b1b100;">else</span> <span
style="color: #000088;">$birds_list</span> <span
style="color: #339933;">.=</span> <span
style="color: #0000ff;">'&lt;/p&gt;'</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; <span
style="color: #009900;">&#125;</span><br
/> &nbsp; &nbsp; <span
style="color: #b1b100;">echo</span> <span
style="color: #000088;">$birds_list</span><span
style="color: #339933;">;</span><br
/> <span
style="color: #009900;">&#125;</span><br
/> <br
/> <span
style="color: #666666; font-style: italic;">/****************************************<br
/> <br
/> In English, this snippets‎ displays:<br
/> <br
/> &nbsp; &nbsp; crow · dove · hawk · hummingbird · parrot · sparrow <br
/> <br
/> In Spanish:<br
/> <br
/> &nbsp; &nbsp; colibrí · cuervo · gorrión · halcón · loro · paloma<br
/> */</span></div></div><p><a
id="codex"></a></p><p>So that I never again have to look up this detail, I decided to write this post. Halfway through writing, I realized that if there was something missing on the <a
href="http://codex.wordpress.org/Function_Reference/get_terms" title="Function Reference/get terms &laquo; WordPress Codex">get_terms Function Reference Page</a>, I should just add it. And so, I did.</p><p><a
href="http://joepahl.is/wp-content/uploads/2011/04/argument_shot.png"><img
src="http://joepahl.is/wp-content/uploads/2011/04/argument_shot-622x330.png" alt="WordPress.org Codex | get_terms | taxonomy argument" title="WordPress.org Codex | get_terms | taxonomy argument" width="622" height="330" class="aligncenter size-large wp-image-255" /></a></p><p>To explain when to use the taxonomy argument, I added this example:</p><p><a
href="http://joepahl.is/wp-content/uploads/2011/04/wpml_example.png"><img
src="http://joepahl.is/wp-content/uploads/2011/04/wpml_example-622x330.png" alt="WordPress.org Codex | get_terms | WPML Example" title="WordPress.org Codex | get_terms | WPML Example" width="622" height="330" class="aligncenter size-large wp-image-254" /></a></p><p>This was my first experience editing the WordPress Codex. It feels good to contribute to a resource that I have depended on for so long. Hopefully, someone finds what I added useful.</p><p><small><em>Thanks to <a
href="http://wordpress.stackexchange.com/users/3071/kaaviar" title="User: Kaaviar | WordPress Stack Exchange">Kaaviar</a> for the <a
href="http://wordpress.stackexchange.com/questions/9587/wpml-taxonomies-not-translated" title="WPML taxonomies not translated | WordPress Stack Exchange">tip</a>.</em></small></p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/custom-taxonomies-wpml/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Sizing oEmbeds in WordPress</title><link>http://joepahl.is/sizing-oembeds-in-wordpress/</link> <comments>http://joepahl.is/sizing-oembeds-in-wordpress/#comments</comments> <pubDate>Tue, 29 Mar 2011 01:28:44 +0000</pubDate> <dc:creator>Joe Pahl</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Embeds]]></category> <category><![CDATA[Filter]]></category> <category><![CDATA[Function]]></category> <category><![CDATA[Marlon Brando]]></category> <category><![CDATA[oEmbed]]></category> <category><![CDATA[Video]]></category> <category><![CDATA[WordPress]]></category><guid
isPermaLink="false">http://joepahl.is/?p=244</guid> <description><![CDATA[I have been a fan of the auto-embed feature in WordPress ever since it was introduced. Auto-embeds are powered by the oEmbed protocol. When you enter a YouTube link, the protocol grabs the embed from YouTube and displays it. http://www.youtube.com/watch?v=yCENBce_dls Being stuck with one size when inserting auto-embeds has been the only flaw I&#8217;ve encountered. [...]]]></description> <content:encoded><![CDATA[<p>I have been a fan of the <a
href="http://codex.wordpress.org/Embeds" title="Embeds | WordPress.org Codex">auto-embed feature</a> in WordPress ever since it was introduced. Auto-embeds are powered by the oEmbed protocol. When you enter a YouTube link, the protocol grabs the embed from YouTube and displays it.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http://www.youtube.com/watch?v=yCENBce_dls</div></div><p><iframe
width="500" height="375" src="http://www.youtube.com/embed/yCENBce_dls?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p><p><span
id="more-244"></span></p><p>Being stuck with one size when inserting auto-embeds has been the only flaw I&#8217;ve encountered. You can, however, use a shortcode to set the maximum height and width of an individual video.</p><div
class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[embed width=&quot;460&quot; height=&quot;400&quot;]http://www.youtube.com/watch?v=esUMvBL3gnY[/embed]</div></div><p><object
width="460" height="370"><param
name="movie" value="http://www.youtube.com/v/esUMvBL3gnY?version=3"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed
src="http://www.youtube.com/v/esUMvBL3gnY?version=3" type="application/x-shockwave-flash" width="460" height="370" allowscriptaccess="always" allowfullscreen="true"></embed></object></p><p>This is great, but there is still an issue if you have different layout widths. If, for example, the width of your blog&#8217;s content area is 460px, but the single post template is wider, then you may want to set the embed width dynamically. I had to deal with this on a recent project and the solution was easier than I had imagined. All you have to do is add a filter to the <code
class="codecolorer text default"><span
class="text">embed_defaults()</span></code> function and set the height and width values conditionally.</p><div
class="wp-caption"><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">add_filter<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">'embed_defaults'</span><span
style="color: #339933;">,</span> <span
style="color: #0000ff;">'custom_embed_defaults'</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <br
/> <span
style="color: #000000; font-weight: bold;">function</span> custom_embed_defaults<span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$embed_size</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span><br
/> &nbsp; &nbsp; <span
style="color: #b1b100;">if</span> <span
style="color: #009900;">&#40;</span>is_single<span
style="color: #009900;">&#40;</span><span
style="color: #009900;">&#41;</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span> <span
style="color: #666666; font-style: italic;">// Conditionally set max height and width</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$embed_size</span><span
style="color: #009900;">&#91;</span><span
style="color: #0000ff;">'width'</span><span
style="color: #009900;">&#93;</span> <span
style="color: #339933;">=</span> <span
style="color: #cc66cc;">640</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$embed_size</span><span
style="color: #009900;">&#91;</span><span
style="color: #0000ff;">'height'</span><span
style="color: #009900;">&#93;</span> <span
style="color: #339933;">=</span> <span
style="color: #cc66cc;">600</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; <span
style="color: #009900;">&#125;</span> <span
style="color: #b1b100;">else</span> <span
style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #666666; font-style: italic;">// Default values</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$embed_size</span><span
style="color: #009900;">&#91;</span><span
style="color: #0000ff;">'width'</span><span
style="color: #009900;">&#93;</span> <span
style="color: #339933;">=</span> <span
style="color: #cc66cc;">460</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; &nbsp; &nbsp; <span
style="color: #000088;">$embed_size</span><span
style="color: #009900;">&#91;</span><span
style="color: #0000ff;">'height'</span><span
style="color: #009900;">&#93;</span> <span
style="color: #339933;">=</span> <span
style="color: #cc66cc;">600</span><span
style="color: #339933;">;</span><br
/> &nbsp; &nbsp; <span
style="color: #009900;">&#125;</span><br
/> &nbsp; &nbsp; <span
style="color: #b1b100;">return</span> <span
style="color: #000088;">$embed_size</span><span
style="color: #339933;">;</span> <span
style="color: #666666; font-style: italic;">// Return new size</span><br
/> <span
style="color: #009900;">&#125;</span></div></div><p
class="wp-caption-text">Note: You usually don&#8217;t need worry about the height value as long as you<br
/>set it high enough. Most embeds are wider than they are tall.</p></div><p>I dropped this snippet in <code
class="codecolorer text default"><span
class="text">functions.php</span></code>, but it could easily be turned into a plugin. Hope this help someone. Enjoy!</p><p><iframe
width="500" height="375" src="http://www.youtube.com/embed/eeVq1e6JKlw?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p> ]]></content:encoded> <wfw:commentRss>http://joepahl.is/sizing-oembeds-in-wordpress/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: joepahl.is @ 2013-05-21 22:10:20 -->