<?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>Clayton McIlrath &#187; automate</title> <atom:link href="http://thinkclay.com/tag/automate/feed" rel="self" type="application/rss+xml" /><link>http://thinkclay.com</link> <description>Creative Media Design, Powered by Wordpress</description> <lastBuildDate>Tue, 10 Apr 2012 01:24:47 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>The Best, Free WordPress 3.1 Plugins</title><link>http://thinkclay.com/technology/best-free-wordpress-plugins</link> <comments>http://thinkclay.com/technology/best-free-wordpress-plugins#comments</comments> <pubDate>Sat, 09 Apr 2011 04:26:06 +0000</pubDate> <dc:creator>Clay McIlrath</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[blogging]]></category> <category><![CDATA[resources]]></category> <category><![CDATA[seo]]></category> <category><![CDATA[wordpress]]></category> <guid
isPermaLink="false">http://thinkclay.com/?p=1488</guid> <description><![CDATA[There are thousands of WordPress Plugins out there, but it takes a lot of time and trial to find the ones that are truly exceptional. After years of building custom websites, I&#8217;ve decided to refine and publish my master list of plugins (for the user, not the dev) that are awesome or essential to nearly [...]]]></description> <content:encoded><![CDATA[<p>There are thousands of WordPress Plugins out there, but it takes a lot of time and trial to find the ones that are truly exceptional. After years of building custom websites, I&#8217;ve decided to refine and publish my master list of plugins (for the user, not the dev) that are awesome or essential to nearly every site I have launched!</p><h3>Galleries</h3><p>WordPress is getting more robust with every release, yet for some reason, there&#8217;s still no great way to do Galleries natively. Fear not, we have found that Nextgen and CataBlog will do the job well enough!</p><h3>Worpress and Search Engine Optimization</h3><p>When it comes to SEO, there are absolutely no open source platforms that I&#8217;ve seen that do as superb of a job providing tools and automating the process. Keys to wordpress SEO include meta control, monitoring, links and social networking. Here are the best tools for the job:</p><h4><a
href="http://wordpress.org/extend/plugins/wp-stats-dashboard/">WordPress Stats Plugin</a></h4><p>The <a
href="http://wordpress.org/extend/plugins/wp-stats-dashboard/">WP Stats</a> is actually two essential plugins, one by the creators of WP and the other as a dashboard tool to take analytics through the roof. The WP stats plugin lets you monitor social traffic, alexa, compete, and far more — all enabled and monitored without leaving your admin!</p><h4><a
href="http://yoast.com/wordpress/seo/">WordPress SEO by Yoast</a></h4><p>For years, i used the All in one SEO plugin, and even gave headspace a shot but Yoast knocked them both out of the water for me. The yoast plugin boasts some great tools to help you generate meta content, plus looks and works the way a good WP plugin should.</p><h4><a
href="http://wordpress.org/extend/plugins/seo-automatic-links/">SEO Smart Links</a></h4><p>Internal site links are a huge usability and SEO boost, and nothing helps you build these links better than this plugin. I usually dump in a keyword list that I&#8217;ve built with Google&#8217;s Keyword tool and over time I aim to write articles and link them to those keywords.</p><h4>Worpress SEO requires a <a
href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Sitemap</a></h4><p>Don&#8217;t let the name fool you, Google SEO sitemap covers all the major search engines and notifies them automatically whenever you publish new content. Don&#8217;t skip this one, a sitemap is a must in helping a search engine index your site, and is even more crucial for frequent bloggers.</p><h4>Faster page loads in WordPress</h4><p>We all want more cache don&#8217;t we? <a
href="http://www.wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a> speeds up your site significantly making your pages load faster, which is favorable for both man and machine! Follow that with <a
href="http://wordpress.org/extend/plugins/wp-smushit/">Smush.it</a>, <a
href="http://wordpress.org/extend/plugins/wp-optimize/stats/">Database Optimization</a> and <a
href="http://wordpress.org/extend/plugins/wp-minify/">Minification</a> and you&#8217;re looking at a 20-30% faster site on average (estimated from personal use and client sites).</p><h3>Get Social with WordPress</h3><p>Social networking is huge and most blogs completely fail to engage their audience (guilty), part of the problem is obviously content but the other part is often the tools and approach. If your website is large and well known (or has the capacity to be) why not extend WordPress with <a
href="http://buddypress.com">BuddyPress</a> and launch your own social network? Or keep it simple and drop in <a
href="http://wordpress.org/extend/plugins/socialize/">Socialize</a> widgets and <a
href="http://wordpress.org/extend/plugins/disqus-comment-system/">Disqus Comments</a> so that your users can engage using existing social platforms.</p><h3>WordPress Utilities you can&#8217;t Live Without</h3><p>There are a TON of utilities that I would love to talk about, but for brevity I will only mention <a
href="http://wordpress.org/extend/plugins/scissors-continued/">Scissors</a> and <a
href="http://wordpress.org/extend/plugins/wp-db-backup/">WP DB Backup</a>. Scissors lets you crop and rotate media which is something I hope wordpress will include in its core. WP Backup makes a data backup for you automatically and emails it to you, allowing you to have a backup outside of your host.</p><p>I hope these plugins help, and if you feel I missed one that HAS to be on the list, just mention it in the comments below and I&#8217;ll argue about it a bit <img
src='http://thinkclay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> <wfw:commentRss>http://thinkclay.com/technology/best-free-wordpress-plugins/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Zen Coding</title><link>http://thinkclay.com/technology/zen-coding</link> <comments>http://thinkclay.com/technology/zen-coding#comments</comments> <pubDate>Mon, 23 Nov 2009 20:22:13 +0000</pubDate> <dc:creator>Clay McIlrath</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[best practices]]></category> <category><![CDATA[developer tools]]></category> <category><![CDATA[front-end]]></category> <category><![CDATA[MAC]]></category> <category><![CDATA[PC]]></category> <category><![CDATA[semantics]]></category> <guid
isPermaLink="false">http://thinkclay.com/?p=1193</guid> <description><![CDATA[As a developer, I&#8217;m always looking for ways to improve my coding practices and efficiency. In the programming world, I work almost completely with frameworks such as Zend and CodeIgnitor using MVC at it&#8217;s fullest. On the front-end, I&#8217;ve learned to use Blueprint CSS combined with semantic markup to standardize my layouts. But now, I&#8217;ve [...]]]></description> <content:encoded><![CDATA[<p>As a developer, I&#8217;m always looking for ways to improve my coding practices and efficiency. In the programming world, I work almost completely with frameworks such as <a
href="http://www.zend.com/">Zend</a> and <a
href="http://codeigniter.com/">CodeIgnitor</a> using <a
href="http://www.oreillynet.com/onlamp/blog/2007/06/what_is_mvc.html">MVC</a> at it&#8217;s fullest. On the front-end, I&#8217;ve learned to use <a
href="http://blueprintcss.org">Blueprint CSS</a> combined with semantic markup to standardize my layouts. But now, I&#8217;ve added another INCREDIBLE tool to my belt, and I want to share it with all of you as well.. <strong>Zen Coding</strong></p><h2>What is Zen Coding?</h2><p>From a general perspective Zen Coding is simply the practice of making lightweight and reusable code to allow for peaceful coding and debugging (that&#8217;s my definition anyways). There has been a movement in the front-end development community towards finding new ways to use <a
href="http://www.csszengarden.com/">CSS with semantic markup</a> in order to produce the desired layouts and styles. Now Sergey Chikuyonok has taken that to a whole new level. He&#8217;s reversed the idea of Zen Coding using HTML markup to generate CSS Selectors and allowed us to create our markup from using CSS Selectors. This might seem confusing, so lets look at some code:</p><p>Plain and simply put, the Zen Coding plugin (supported on multiple text editors) translates code like this:</p><div
class="wp_syntax"><div
class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #cc00cc;">#header</span><span style="color: #00AA00;">&gt;</span>ul.nav<span style="color: #00AA00;">&gt;</span>li<span style="color: #00AA00;">*</span><span style="color: #cc66cc;">5</span></pre></div></div><p>into this:</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;header&quot;&gt;
	&lt;ul class=&quot;nav&quot;&gt;
		&lt;li&gt;&lt;/li&gt;
		&lt;li&gt;&lt;/li&gt;
		&lt;li&gt;&lt;/li&gt;
		&lt;li&gt;&lt;/li&gt;
		&lt;li&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;</pre></div></div><p>.. and yet, this is still nothing folks! Dive in deeper over at <a
href="http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/">Smashing Mag</a></p> ]]></content:encoded> <wfw:commentRss>http://thinkclay.com/technology/zen-coding/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>RFP Application for Download</title><link>http://thinkclay.com/technology/rfp-application-for-download</link> <comments>http://thinkclay.com/technology/rfp-application-for-download#comments</comments> <pubDate>Tue, 23 Jun 2009 16:37:24 +0000</pubDate> <dc:creator>Clay McIlrath</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[developer tools]]></category> <category><![CDATA[freelance]]></category> <category><![CDATA[jQuery]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[resources]]></category> <guid
isPermaLink="false">http://thinkclay.com/?p=1024</guid> <description><![CDATA[<a
href="http://thinkclay.com/technology/rfp-application-for-download" title="Chosen RFP Application"><img
class="alignleft" src="http://thinkclay.com/timthumb.php?src=/wp-content/uploads/2009/06/rfp.jpg&#38;w=300&#38;h=200&#38;zc=1" alt="Chosen RFP Application" title="rfp application" width="300" height="200" /></a>A while back, I developed an application to automate our workflow and gather information from potential clients before meeting with them. This was a pretty basic RFP form, but I had many people tell me how interested they were in it, and that they wanted to use it for themselves. Within a few weeks of launching that RFP we had finished our new brand and it was already outdated. Rather than updating and re-skinning I decided to start from scratch and share the old one with whoever wants it. You can customize this application as necessary, but please give credit to Chosen with a link back to this site or the main Chosen site.. even if the link is hidden, we still like it there for SEO.]]></description> <content:encoded><![CDATA[<p><a
href="http://thinkclay.com/technology/rfp-application-for-download" title="Chosen RFP Application"><img
class="alignleft" src="http://thinkclay.com/timthumb.php?src=/wp-content/uploads/2009/06/rfp.jpg&amp;w=300&amp;h=200&amp;zc=1" alt="Chosen RFP Application" title="rfp application" width="300" height="200" /></a>A while back, I developed an application to automate our workflow and gather information from potential clients before meeting with them. This was a pretty basic RFP form, but I had many people tell me how interested they were in it, and that they wanted to use it for themselves. Within a few weeks of launching that RFP we had finished our new brand and it was already outdated. Rather than updating and re-skinning I decided to start from scratch and share the old one with whoever wants it. You can customize this application as necessary, but please give credit to Chosen with a link back to this site or the main Chosen site.. even if the link is hidden, we still like it there for SEO.</p><p><a
href="http://demo.bychosen.com/rfp/" title="demo and preview the RFP application">View Demo</a> or <a
href="http://chosendevelopment.com/wp-content/plugins/download-monitor/download.php?id=6" title="download RFP application">Download</a></p><h3>Lansing Web and Technology</h3><p>If you are a <strong>web design</strong> or <strong>web development</strong> firm in <strong>Lansing, MI</strong> then talk to me personally about an even better version of this application. I&#8217;m offering it only to <strong>Lansing Web Design</strong> Companies because I believe in giving the <strong>Lansing Area</strong> a competitive advantage when it comes to technology. Feel free to contact me at the email in my header.</p> ]]></content:encoded> <wfw:commentRss>http://thinkclay.com/technology/rfp-application-for-download/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>AppleScript: YUI Compression</title><link>http://thinkclay.com/technology/applescript-yui-compression</link> <comments>http://thinkclay.com/technology/applescript-yui-compression#comments</comments> <pubDate>Tue, 09 Jun 2009 23:42:26 +0000</pubDate> <dc:creator>Clay McIlrath</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[developer tools]]></category> <category><![CDATA[MAC]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[resources]]></category> <guid
isPermaLink="false">http://thinkclay.com/?p=995</guid> <description><![CDATA[<a
href="http://thinkclay.com/technology/applescript-yui-compression"><img
class="alignleft" src="http://thinkclay.com/wp-content/uploads/2009/06/apple-script.jpg" alt="applescript" title="apple script" width="300" height="200" /></a>I love learning new programming languages, especially if it solves a need that I have and automates my process a bit more. I spent a couple hours learning AppleScript which is a programming language for Mac that let's you access the API and make basic function calls to cocoa based programs and applications. One such need that I had is compressing my JavaScript and CSS files before uploading to the web server. There are many applications and ways to this online, but they all are three or more steps to get the compressed file. A while back I downloaded the YUI java applet to do the compression on my desktop via Terminal, which sped up my process a bit, but since I only used it once in a great while, I'd always have to look up the parameters that I needed to pass to it. So today when I went to look it up, I decided I was going to be adventurous and try something new. That adventure led me to a solution that I'm happy with, and you may enjoy as well. ]]></description> <content:encoded><![CDATA[<p>I love learning new programming languages, especially if it solves a need that I have and <strong>automates</strong> my process a bit more. I spent a couple hours learning AppleScript which is a programming language for Mac that let&#8217;s you access the API and make basic function calls to cocoa based programs and applications. One such need that I had is compressing my <strong>JavaScript</strong> and <strong>CSS</strong> files before uploading to the web server. There are many applications and ways to this online, but they all are three or more steps to get the compressed file. A while back I downloaded the <a
href="http://developer.yahoo.com/yui/compressor/">YUI java applet</a> to do the compression on my <strong>Mac</strong> via Terminal, which sped up my process a bit. However, since I only used it once in a great while, I&#8217;d always have to look up the parameters that I needed to pass to the compressor. So today when I went to look up the syntax, I decided I was going to be adventurous and try something new. That adventure led me to an <strong>applescript</strong> solution that I&#8217;m happy with, and you may enjoy as well.</p><h2>Download the YUI Compression AppleScript</h2><p><a
href='http://thinkclay.com/wp-content/uploads/2009/06/yui-compressor-script.zip'><img
src="http://thinkclay.com/wp-content/uploads/2009/06/download-yui-compressor-applescript.png" alt="download the YUI compressor applescript" title="download the YUI compressor applescript" width="490" height="96" /></a></p><h2>The AppleScript Source:</h2><div
class="wp_syntax"><div
class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #0066ff;">run</span>
	<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">set</span> this_item <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #0066ff;">choose file</span> <span style="color: #ff0033; font-weight: bold;">with</span> prompt <span style="color: #009900;">&quot;Choose CSS or JS file:&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">set</span> dir <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">the</span> <span style="color: #0066ff;">selection</span> <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">alias</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;">set</span> mypath <span style="color: #ff0033; font-weight: bold;">to</span> posix_path<span style="color: #000000;">&#40;</span>this_item<span style="color: #000000;">&#41;</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> dirpath <span style="color: #ff0033; font-weight: bold;">to</span> posix_path<span style="color: #000000;">&#40;</span>dir<span style="color: #000000;">&#41;</span>
&nbsp;
	runCompression<span style="color: #000000;">&#40;</span>mypath, dirpath<span style="color: #000000;">&#41;</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #0066ff;">run</span>
&nbsp;
<span style="color: #ff0033; font-weight: bold;">on</span> posix_path<span style="color: #000000;">&#40;</span>mac_path<span style="color: #000000;">&#41;</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> mac_path <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>mac_path <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span><span style="color: #000000;">&#41;</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> root <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">offset of</span> <span style="color: #009900;">&quot;:&quot;</span> <span style="color: #ff0033; font-weight: bold;">in</span> mac_path<span style="color: #000000;">&#41;</span>
	<span style="color: #ff0033; font-weight: bold;">set</span> rootdisk <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #000000;">&#40;</span>characters <span style="color: #000000;">1</span> <span style="color: #ff0033;">thru</span> <span style="color: #000000;">&#40;</span>root <span style="color: #000000;">-</span> <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">of</span> mac_path<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;Finder&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #0066ff;">disk</span> <span style="color: #000000;">&#40;</span>rootdisk <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">string</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">the</span> startup <span style="color: #0066ff;">disk</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> unixpath <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;/&quot;</span> <span style="color: #000000;">&amp;</span> <span style="color: #000000;">&#40;</span>characters <span style="color: #000000;">&#40;</span>root <span style="color: #000000;">+</span> <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #ff0033;">thru</span> <span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">of</span> mac_path<span style="color: #000000;">&#41;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> unixpath <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;/Volumes:&quot;</span> <span style="color: #000000;">&amp;</span> mac_path
		<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;">set</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #ff0033;">every</span> character <span style="color: #ff0033; font-weight: bold;">of</span> unixpath
	<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;">2</span> <span style="color: #ff0033; font-weight: bold;">to</span> length <span style="color: #ff0033; font-weight: bold;">of</span> chars
		<span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;/&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;:&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;:&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;/&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;'&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span>'&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span>&quot;</span> <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\&quot;</span>&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;*&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span>*&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;?&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span>?&quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot; &quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span> &quot;</span>
		<span style="color: #ff0033; font-weight: bold;">else</span> <span style="color: #ff0033; font-weight: bold;">if</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">text</span> <span style="color: #ff0033; font-weight: bold;">is</span> <span style="color: #ff0033;">equal</span> <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span>&quot;</span> <span style="color: #ff0033; font-weight: bold;">then</span>
			<span style="color: #ff0033; font-weight: bold;">set</span> <span style="color: #0066ff;">item</span> i <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033; font-weight: bold;">to</span> <span style="color: #009900;">&quot;<span style="color: #000000; font-weight: bold;">\\</span><span style="color: #000000; font-weight: bold;">\\</span>&quot;</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;">repeat</span>
	<span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #ff0033;">every</span> <span style="color: #0066ff;">item</span> <span style="color: #ff0033; font-weight: bold;">of</span> chars <span style="color: #ff0033;">as</span> <span style="color: #0066ff;">string</span>
<span style="color: #ff0033; font-weight: bold;">end</span> posix_path
&nbsp;
<span style="color: #ff0033; font-weight: bold;">on</span> runCompression<span style="color: #000000;">&#40;</span>mypath, dirpath<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;Terminal&quot;</span>
		<span style="color: #0066ff;">do shell script</span> <span style="color: #009900;">&quot;java -jar &quot;</span> <span style="color: #000000;">&amp;</span> dirpath <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;yuicompressor-2.4.2.jar &quot;</span> <span style="color: #000000;">&amp;</span> mypath <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot; -o &quot;</span> <span style="color: #000000;">&amp;</span> mypath <span style="color: #000000;">&amp;</span> <span style="color: #009900;">&quot;.min.js&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> runCompression</pre></div></div><p>If you like this <strong>YUI Compression AppleScript</strong> please do share that with me, as praise is my sole motivation for producing scripts for others. I&#8217;ve only skimmed the surface of applescript, but with so few scripts out there that meet the needs that I have, I&#8217;m sure I could quickly make some other web developer tools for Mac as well.</p> ]]></content:encoded> <wfw:commentRss>http://thinkclay.com/technology/applescript-yui-compression/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Learn Custom Fields in WordPress</title><link>http://thinkclay.com/technology/learn-custom-fields-wordpress</link> <comments>http://thinkclay.com/technology/learn-custom-fields-wordpress#comments</comments> <pubDate>Fri, 20 Mar 2009 23:08:23 +0000</pubDate> <dc:creator>Clay McIlrath</dc:creator> <category><![CDATA[Technology]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[developer tools]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[programming]]></category> <category><![CDATA[resources]]></category> <category><![CDATA[web 2.0]]></category> <guid
isPermaLink="false">http://thinkclay.com/?p=777</guid> <description><![CDATA[<a
href="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif"><img
class="alignleft" src="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif" alt="custom fields" title="custom fields in Wordpress" width="300" height="200" class="size-full wp-image-788" /></a>Wordpress is jam-packed with some great features out of the box, and has been developed to make customization simple. However, Wordpress started out as a blogging CMS, and still has a way to go before some features are one-click or drag-n-drop easy. One such feature, <strong>custom fields</strong>, are a powerful and great tool to make your WP theme a little more creative. However, to take advantage of custom fields, you’ll need to get dirty with the code.]]></description> <content:encoded><![CDATA[<p><a
href="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif"><img
class="alignleft" src="http://thinkclay.com/wp-content/uploads/2009/03/custom-fields.gif" alt="custom fields" title="custom fields in WordPress" width="300" height="200" class="size-full wp-image-788" /></a>WordPress is jam-packed with some great features out of the box, and has been developed to make customization simple. However, WordPress started out as a blogging CMS, and still has a way to go before some features are one-click or drag-n-drop easy. One such feature, <strong>custom fields</strong>, are a powerful and great tool to make your WP theme a little more creative. However, to take advantage of custom fields, you’ll need to get dirty with the code.</p><h2>What are Custom Fields?</h2><p>Custom fields are a predefined function within the WP system. All you have to do is pass a parameter to the function to receive data back. Though there is great <a
title="Documentation on Custom Fields Function" href="http://codex.wordpress.org/Using_Custom_Fields" target="_blank">documentation for custom fields</a> in the WordPress Codex, to a new coder, this documentation can be overwhelming. Instead, let&#8217;s breakdown and look at a very specific piece of the function..</p><p>So hypothetically, let&#8217;s say you want a thumbnail in the beginning each post on your homepage (take a look at <a
href="http://thinkclay.com">my homepage</a> to see the layout I&#8217;m referring to). Thumbnails and images are important for blogs to break up the content and add visual appeal. For quite a while I&#8217;ve been going into each of my posts, uploading an image and floating it left, and then taking that image and intro text and putting it into the excerpt box. This method, while functional, is a three step process that slows down my blogging time. So to speed up the process I can use custom fields and the RSS limit function to display the same results automatically without having to do it manually each time.</p><p>In my blog post, I create a new custom field called &#8220;imagethumb&#8221;. After defining the imagethumb &#8220;key&#8221; once, I can then use that custom field on each blog post by selecting it from the dropdown field, and all I have to do is specify a value (location) of the image. So the custom field should display as:</p><blockquote><p>Name: imagethumb<br
/> Value: http://yourimage.url</p></blockquote><p>Then I need to edit my index.php file and add the thumbnail to the post loop and set two modes for posts with or without images.</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">// Start the post loop</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;date&quot;&gt;
  &lt;span class=&quot;day&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'j'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
  &lt;span class=&quot;month&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'M'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
  &lt;span class=&quot;year&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/span&gt;
&lt;/div&gt;
&nbsp;
&lt;h1&gt;Title Goes Here&lt;/h1&gt;
&nbsp;
&lt;p class=&quot;postmetadata&quot;&gt;
  <span style="color: #000000; font-weight: bold;">&lt;?</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> |
  <span style="color: #000000; font-weight: bold;">&lt;?</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;?</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&nbsp;
&lt;div class=&quot;entry&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">// Get custom field by passing the parameter to get_post_custom_values() function</span>
<span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> get_post_custom_values<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;image&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// If custom field is set, format the image with the content</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;img class=&quot;alignleft&quot; src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
  &lt;p class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_content_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">TRUE</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">100</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// if not set, pull in the excerpt instead</span>
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
  &lt;p&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span> the_excerpt<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// end loop</span>
<span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div><p>You can go one step further in the automation process and use a cropping script to automatically crop the image to the desired size. All you&#8217;ll need is <a
href="http://timthumb.googlecode.com/svn/trunk/timthumb.php">timthumb</a> and to set the parameters you want on the image</p><div
class="wp_syntax"><div
class="code"><pre class="html" style="font-family:monospace;">Parameters
----------------------
w: width
h: height
zc: zoom crop (0 or 1)
q: quality (default is 75 and max is 100)
&nbsp;
example:
&lt;img src=&quot;&lt;? bloginfo('url'); ?&gt;/timthumb.php?src=&lt;?=$values[0];?&gt;&amp;w=300&amp;h=200&amp;zc=1&quot; /&gt;</pre></div></div> ]]></content:encoded> <wfw:commentRss>http://thinkclay.com/technology/learn-custom-fields-wordpress/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> </channel> </rss>
