<?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>mochahochabeachside.com &#187; Blog</title>
	<atom:link href="http://mochahochabeachside.com/topics/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://mochahochabeachside.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 May 2011 04:31:12 +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>We&#8217;re back&#8230;</title>
		<link>http://mochahochabeachside.com/2011/05/were-back/</link>
		<comments>http://mochahochabeachside.com/2011/05/were-back/#comments</comments>
		<pubDate>Tue, 10 May 2011 04:31:12 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://mochahochabeachside.com/?p=319</guid>
		<description><![CDATA[... and better than ever... Seriously, sorry for the down time, folks. I've moved servers twice, but I'm finally back.  Thanks to &#60;a href="http://www.avehosting.com"&#62;avehosting.com&#60;/a&#62;, my awesome new hosting provider. If you need web hosting (unlimited disk space and bandwidth, even), check 'em out.  They've also got amazing offers for dedicated servers and reseller accounts. Plus, [...]]]></description>
			<content:encoded><![CDATA[<p>... and better than ever...</p>
<p>Seriously, sorry for the down time, folks. I've moved servers twice, but I'm finally back.  Thanks to &lt;a href="http://www.avehosting.com"&gt;avehosting.com&lt;/a&gt;, my awesome new hosting provider. If you need web hosting (unlimited disk space and bandwidth, even), check 'em out.  They've also got amazing offers for dedicated servers and reseller accounts. Plus, I used to work with the owner, so I know he - and his team - are knowledgeable.</p>
<p>I'll post within the next few days with a nice long post detailing the past few months so we all get caught up, and then I hope to get to a regular routine of posting.  Until then, however, I'll leave you wondering just what a yowling cat, a small black dog, and a poorly installed ceiling fan have in common.</p>
]]></content:encoded>
			<wfw:commentRss>http://mochahochabeachside.com/2011/05/were-back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto-install of WordPress Theme from CLI</title>
		<link>http://mochahochabeachside.com/2010/03/auto-install-of-wordpress-theme-from-cli/</link>
		<comments>http://mochahochabeachside.com/2010/03/auto-install-of-wordpress-theme-from-cli/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 14:27:59 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[install script]]></category>
		<category><![CDATA[themes]]></category>

		<guid isPermaLink="false">http://mochahochabeachside.com/?p=119</guid>
		<description><![CDATA[If you're like me, and you still like to install your WordPress themes from the command line (or you were 3/4 asleep and forgot WordPress now has a nice, easy-to-use auto-installer built into the admin interface), you know it can be a pain.  You have to download the file, unzip it, make sure it's right, [...]]]></description>
			<content:encoded><![CDATA[<p>If you're like me, and you still like to install your WordPress themes from the command line (or you were 3/4 asleep and forgot WordPress now has a nice, easy-to-use auto-installer built into the admin interface), you know it can be a pain.  You have to download the file, unzip it, make sure it's right, delete the archive, chwon the files, etc...  It can be a pain.</p>
<p>So, I created a nice little script to take care of all of that.  wpthemeget will take a download URL from the WordPress Themes directory (in the format of http://(<a href="http://(www.)wordpress.org/extend/themes/download/themename.ver.zip">www.)wordpress.org/extend/themes/download/themename.ver.zip</a> (or .tar.gz, or .tgz)), and will download, unarchive, chown, and remove the downloaded file, with no muss or fuss...  The output?:</p>
<p style="padding-left: 30px;"><a href="mailto:root@fyre">root@fyre</a> [.../wp-content/themes]# wpthemeget <a href="http://wordpress.org/extend/themes/">http://wordpress.org/extend/themes/</a>                                        download/motion.1.0.4.zip<br />
Downloading theme motion.1.0.4.zip...<br />
Theme is a zip archive...<br />
Unzipping... [COMPLETE]<br />
...Removing downloaded archive file... removed `motion.1.0.4.zip'<br />
...Chowning files... [COMPLETE]<br />
...Installation Complete!</p>
<p>No muss, no fuss. The <em>only</em> caveat is that you have to be in your themes directory when you run it.  Future versions probably won't have this requirement, but hey, I hacked this out when I was barely awake, on heavy medication, and repeatedly falling asleep at the keyboard.  At one point, I had to delete something like 40 lines of "zzzzzzzzzzz......" because I fell asleep with my finger on the key.  Fortunately, vi treated it as all one paragraph so '&lt;esc&gt; dd' did the job.  The code for this little script is after the break.  Grab it, chmod it to exec, and drop it in /usr/local/bin, and it'll be good to go anywhere on your system, for all your blogs.  Happy blogging!</p>
<p><span id="more-119"></span></p>
<p><code># wpthemeget - WordPress Theme Installer<br />
# by: Eric Scalf -- @ericscalf.com<br />
# Licensed under SPL (Scalf Public License) v.10<br />
# You are licensed to take, use, and modify this script as you wish, provided<br />
# you give attribution to the original author, and do not use the script for commercial use<br />
# or monetary gain, without first obtaining permission from the original author.<br />
# failure to do so constitutes a breach of license, and you agree that each breach of license<br />
# incurs a fine of $15,000 USD payable to the original author.<br />
#Non-commercial use of this script is encouraged, as is non-commercial distribution.<br />
#<br />
#!/bin/bash<br />
if [ -z "$1" ]<br />
then<br />
        echo "You must enter an URL for theme download..."<br />
        echo "The scrit is called thus:"<br />
        echo $0 "&lt;url&gt;"<br />
        echo<br />
        exit 9<br />
fi</p>
<p>echo -n "Downloading theme "<br />
echo $(echo "<a href="http://wordpress.org/extend/themes/download/motion.1.0.4.zip">http://wordpress.org/extend/themes/download/motion.1.0.4.zip</a>" | cut -d/ -f7)"..."<br />
wget $1 &gt; /dev/null 2&gt;&amp;1<br />
if [ -z $(echo "${1}" | egrep tar[.]gz\|tgz) ]<br />
then<br />
        echo "Theme is a zip archive..."<br />
        ZFILE=$(echo "<a href="http://wordpress.org/extend/themes/download/motion.1.0.4.zip">http://wordpress.org/extend/themes/download/motion.1.0.4.zip</a>" | cut -d/ -f7)<br />
        echo -n "Unzipping... "<br />
        unzip ${ZFILE} &gt; /dev/null<br />
        echo "[COMPLETE]"<br />
        echo -n "...Removing downloaded archive file..."<br />
        rm -fv ${ZFILE}<br />
        echo -n "...Chowning files... "<br />
        TUSER=$(echo ${PWD} | cut -d/ -f3)<br />
        chown -R ${TUSER}.${TUSER} * &gt; /dev/null<br />
        echo "[COMPLETE]"<br />
        echo "...Installation Complete!"<br />
        echo ""<br />
        exit 0<br />
else<br />
        echo "Theme is a .tar.gz or .tgz archive..."<br />
        ZFILE=$(echo "<a href="http://wordpress.org/extend/themes/download/motion.1.0.4.zip">http://wordpress.org/extend/themes/download/motion.1.0.4.zip</a>" | cut -d/ -f7)<br />
        echo -n "Unarchiving... "<br />
        tar -xzf ${ZFILE} &gt; /dev/null<br />
        echo "[COMPLETE]"<br />
        echo -n "...Removing downloaded archive file... "<br />
        rm -fv ${ZFILE}<br />
        echo -n "...Chowning files... "<br />
        TUSER=$(echo ${PWD} | cut -d/ -f3)<br />
        chown -R ${TUSER}/${TUSER} * &gt; /dev/null<br />
        echo "[COMPLETE]"<br />
        echo "...Installation Complete!"<br />
        echo ""<br />
        exit 0<br />
fi</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mochahochabeachside.com/2010/03/auto-install-of-wordpress-theme-from-cli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Additions&#8230;</title>
		<link>http://mochahochabeachside.com/2009/04/new-additions/</link>
		<comments>http://mochahochabeachside.com/2009/04/new-additions/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 00:10:16 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://mochahochabeachside.com/?p=39</guid>
		<description><![CDATA[Figured it was time to expand the functionality of the blog.  There's a few new plugins I've enabled.  The most important are "Related ways to take action," which is a plugin that searches for fundraisers, petitions, and so forth, to enable you to - well - take action.  We'll see how well this works with [...]]]></description>
			<content:encoded><![CDATA[<p>Figured it was time to expand the functionality of the blog.  There's a few new plugins I've enabled.  The most important are "Related ways to take action," which is a plugin that searches for fundraisers, petitions, and so forth, to enable you to - well - take action.  We'll see how well this works with my posts.  I'm not always all that political, so who knows.</p>
<p>I've also added a video embedder.  I've always been a fan of the old-skool blogging.  Low video, few pictures, just my words, your screen.  I figured I'd give the other way a chance, here.</p>
<p>Finally, I've added a post that will automagically tweet my new entries.  If you want to follow my twitter, check out http://twitter.com/fyre.</p>
<p>That's about it.  Vacation post coming soon...</p>
]]></content:encoded>
			<wfw:commentRss>http://mochahochabeachside.com/2009/04/new-additions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

