<?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>Rick Beckman &#187; Journal</title>
	<atom:link href="http://www.rickbeckman.org/category/journal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickbeckman.org</link>
	<description>Brazenly geek. Brazenly atheist. Brazenly me.</description>
	<lastBuildDate>Thu, 17 May 2012 03:34:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>An Excerpt from the Bible Version the World Desperately Needs</title>
		<link>http://www.rickbeckman.org/an-excerpt-from-the-bible-version-the-world-desperately-needs/</link>
		<comments>http://www.rickbeckman.org/an-excerpt-from-the-bible-version-the-world-desperately-needs/#comments</comments>
		<pubDate>Sun, 06 May 2012 00:16:08 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Expeditions in Reasonableness]]></category>
		<category><![CDATA[Journal]]></category>
		<category><![CDATA[Bible remix]]></category>
		<category><![CDATA[rationalism]]></category>

		<guid isPermaLink="false">http://www.rickbeckman.org/?p=2334</guid>
		<description><![CDATA[Comments are open; add yours!Copyright © 2012, Rick Beckman. Some rights reserved. Originally posted at BrazenlyGeek.You may also enjoy… World’s Best Bible Reading Plan “All” about the King James Version My Position Regarding the King James Version]]></description>
			<content:encoded><![CDATA[<p></p><div id="attachment_2336" class="wp-caption aligncenter" style="width: 661px">
	<a href="http://www.rickbeckman.org/wp-content/uploads/rational-version.jpg"><img src="http://www.rickbeckman.org/wp-content/uploads/rational-version-661x495.jpg" alt="“And this is the condemnation, that knowledge is come into the world, and men loved ignorance rather than knowledge, because their deeds were superstitious.”" title="John 3:19, Rational Version" width="661" height="495" class="size-large wp-image-2336" /></a>
	<p class="wp-caption-text">“And this is the condemnation, that knowledge is come into the world, and men loved ignorance rather than knowledge, because their deeds were superstitious.” — John 3:19, Rational Version</p>
</div>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/an-excerpt-from-the-bible-version-the-world-desperately-needs/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2012, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/an-excerpt-from-the-bible-version-the-world-desperately-needs/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/worlds-best-bible-reading-plan/' rel='bookmark' title='World’s Best Bible Reading Plan'>World’s Best Bible Reading Plan</a></li>
<li><a href='http://www.rickbeckman.org/all-about-the-king-james-version/' rel='bookmark' title='“All” about the King James Version'>“All” about the King James Version</a></li>
<li><a href='http://www.rickbeckman.org/my-position-regarding-the-king-james-version/' rel='bookmark' title='My Position Regarding the King James Version'>My Position Regarding the King James Version</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/an-excerpt-from-the-bible-version-the-world-desperately-needs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We’re Having a Yard Sale</title>
		<link>http://www.rickbeckman.org/were-having-a-yard-sale/</link>
		<comments>http://www.rickbeckman.org/were-having-a-yard-sale/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 06:54:18 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>
		<category><![CDATA[materialism]]></category>
		<category><![CDATA[yard sale]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2302</guid>
		<description><![CDATA[Seven years ago, i was taking a hard look at my life, preparing to move completely out of Mom’s house for the first time, into a home that for which i’d be personally responsible. To be honest, that post would have been long forgotten — it barely resulted in a blip in this site’s traffic [...]]]></description>
			<content:encoded><![CDATA[<p><a class="post_image_link" href="http://www.rickbeckman.org/were-having-a-yard-sale/" title="Permanent link to We’re Having a Yard Sale"><img class="post_image alignnone frame" src="http://rickbeckman.org/wp-content/uploads/DSC00095-661x496.jpg" width="661" height="496" alt="yard sale preparation -- it's a process" /></a>
</p><p><span class="drop_cap">S</span>even years ago, i <a href="/moving-out/">was taking a hard look at my life</a>, preparing to move completely out of Mom’s house for the first time, into a home that for which i’d be personally responsible.</p>
<p>To be honest, that post would have been long forgotten — it barely resulted in a blip in this site’s traffic nor did it solicit any comments or linkbacks — but the entry did merit a remark from <a href="http://mytimetowaste.com/" rel="parent">Dad</a> that that was the sort of blog entry i should be writing, that by tying theology into something practical, theology actually becomes interesting.</p>
<p>His remark did impact me — i began to see that post as sort of a benchmark for my writing, though i rarely came anywhere close to writing such practical theology again. <span id="more-2302"></span></p>
<p>Perhaps that is because i have lead a fairly ordinary life. Big events which force a theological response in my mind don’t come along too often — moving out of Mom’s was a relatively huge deal.</p>
<p>Flash forward to today. My girlfriend &amp; i have been working for several days now in preparation of the yard sale we’re hoping to have this weekend. And yet again, i’m faced with the task of examining just about every item i own.</p>
<p>This time, however, i’ve not been evaluating my possessions via a theological lens — a lens which so distracted me seven years ago that i referred to my Nintendo DS system as a “Game Boy DS” in that old post ;) — but rather via a purely practical lens.</p>
<p>And what it boils down to is that over the past seven years, i have accumulated a ton of stuff. Jess too has a ton of stuff, not to mention our six-year-old.</p>
<p>Looking at some of the things i own, i’m left to wonder about the whys. Why do i own a pile of t-shirts that barely fit me? Why do i own a small stack of jeans, while only one pair fit me? Why did i ever buy all of those fluff theology books when i was never going to read them in the first place? </p>
<p>Right now, it feels as though our home is filling up — our bedroom is getting packed with priced &amp; (somewhat) organized items to sell, our dining room is a triage area of items awaiting pricing, furniture to be stored is spread throughout the house in almost every room. And we still have lots at both of our moms’ houses through which to go.</p>
<p>I look forward to this weekend, to what i hope will be <a href="https://www.facebook.com/events/345640605485430/">a very successful yard sale</a>. I look forward with eager anticipation of a much less cluttered home, within which we feel much more able to function. We have so many things we want to do — herb gardens, decorating, yard work, numerous repairs — but every time we turn around, we’re faced with messes.</p>
<p>Messes because those pillows haven’t had a home in months. Because those pants don’t fit into my dresser. Because those candles don’t have a place.</p>
<p>Because it’s far easier to let a mess accumulate than to fight the clutter in order to find a place for everything other than the floor or the coffee table.</p>
<p>I’m ready for a space to breathe, for the house to be a comfortable home, not simply a glorified storage unit.</p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/were-having-a-yard-sale/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2012, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/were-having-a-yard-sale/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/were-having-a-yard-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What to Expect from Thesis 2.0</title>
		<link>http://www.rickbeckman.org/what-to-expect-from-thesis-2-0/</link>
		<comments>http://www.rickbeckman.org/what-to-expect-from-thesis-2-0/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 15:23:26 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2082</guid>
		<description><![CDATA[It’s been over three years since i first began using Thesis &#38; participating in its awesome community. Three years from its humble beginnings. Before the abstracted framework. Before it’s powerful design control panel. Before my OpenHook plugin. Before Thesis became the new hotness in WordPress design and development. A lot has changed, and today we [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>It’s been <a href="http://rickbeckman.org/semi-sweet-morsels/">over three years</a> since i first began using <a href="http://get-thesis.com/">Thesis</a> &amp; participating in its awesome community. Three years from its humble beginnings. Before the abstracted framework. Before it’s powerful design control panel. Before my OpenHook plugin.</p>
<p>Before Thesis became the new hotness in WordPress design and development.</p>
<p>A lot has changed, and today we are on the verge of the next huge milestone: <strong>Thesis 2.0</strong> But what do we know about it? If there’s anything developer Chris Pearson is really good at, it’s being secretive, leaking only teasers to keep our appetites whetted for what’s to come. Here are some of the highlights!</p>
<h3>Hooks are dead! Long live hooks!</h3>
<p>Most notable to me is that 2.0 will feature new &amp; exciting methods of customization, rendering hooks unnecessary. But hooks are not being abandoned! Those of you who are comfortable customizing via hooks (and by extension, via OpenHook) will be thrilled to know that <a href="http://twitter.com/#!/iamthesis/status/104679386376183809">there will be more hooks than ever</a> in 2.0, allowing an even greater degree of customization.</p>
<p>Thesis (and OpenHook) really helped bring the idea of customizing themes via hooks to the masses, and now it seems that every other theme is playing catchup in the hook department. Looks like we’ll be leaving them behind yet again…</p>
<h3>New <abbr title="application programming interface">API</abbr> for add-ons!</h3>
<p>While it isn’t yet clear to what extent this new interface will allow us to customize, Chris promises <a href="http://twitter.com/#!/iamthesis/status/104681089183907840">the sexiest add-ons ever</a>. Bold words, but if there’s one thing i know, it’s not to doubt the creativity of the Thesis community, and this new layer of customization will no doubt burst at the seams with awesomeness very soon after launch.</p>
<h3>Roll Your Own Web Apps?</h3>
<p>I’m most curious about this: the ability to <a href="http://twitter.com/#!/iamthesis/status/104673903263232000">create your own apps</a>, whether <a href="http://twitter.com/#!/iamthesis/status/104676767465353216">backend or frontend</a>, and apparently it’s so robust, <a href="http://twitter.com/#!/iamthesis/status/104677231497986048">Thesis’ own option panels are built using it</a>.</p>
<p>My guess? We’ll be able to port popular WordPress plugins to native Thesis apps. My hope? I’ll be able to roll out OpenHook as a native Thesis app, living within Thesis as opposed to being a separate plugin in WordPress.</p>
<p>My dream? A Thesis app directory featuring the ability to add/update add-ons via WordPress. (I know WordPress allows you to check other repositories for upgrades &amp; such rather than just their own… So this may be a possibility at some point!)</p>
<h3>Widgets are dead! Long live widgets!</h3>
<p>Yep, just like with hooks, it looks as though <a href="http://twitter.com/#!/iamthesis/status/104681927453327360">widgets may no longer be a necessary customization tool</a>, but for those who choose to use them, 2.0 will be handling them better than ever.</p>
<h3>Email list empowerment!</h3>
<p>Thesis has always been a powerful, marketing-friendly theme, and now you’ll be able to engage your users even further with <a href="http://twitter.com/#!/iamthesis/status/104679711929675776">native email list integration</a> if you’re using a service such as Aweber or MailChimp. Chris wants to make your WordPress+Thesis site your one-stop for engaging your readers and customers online, and being able to manage your email lists from within that setup is just another step in the right direction.</p>
<h3>Pricing</h3>
<p><a href="http://get-thesis.com/"><img src="http://www.shareasale.com/image/24570/thesis-260x125.png" alt="Thesis Theme for WordPress:  Options Galore and a Helpful Support Community" border="0" class="aligncenter" /></a></p>
<p>It looks as though the price for new customers won’t change: <a href="http://get-thesis.com/">$87 for the Personal Option &amp; $164 for the Developer’s Option</a>. Currently, however, if you already have a Personal Option, the upgrade price to claim the Developer’s Option is a cool $77. And if you’ve ever thought about upgrading, do so soon! The upgrade price <a href="http://www.shareasale.com/r.cfm?u=402949&#038;b=198392&#038;m=24570&#038;afftrack=&#038;urllink=diythemes%2Ecom%2Fplans%2F%23f4">is likely to increase when 2.0 hits</a>.</p>
<h3>Eye candy… Candy for the eyes!</h3>
<p>I’m really digging the <a href="http://yfrog.com/h4g9towp">splash of green</a> in 2.0. The style likely isn’t final yet (I don’t think Chris is ever truly “done” with tweaking styles!), but it’s already looking great. </p>
<h3>WHEN‽</h3>
<p>The only thing I know for sure is that it’s <em>possible</em> that we may see 2.0 <a href="http://twitter.com/#!/iamthesis/status/106740662946373632">by Halloween</a>. And if you want to be ready for it, <a href="http://get-thesis.com/">buy Thesis today and prepare to take your site to the next level</a>. </p>
<h3>What else?</h3>
<p>Have you heard something i haven’t? Share it in the comments! I’m excited for <a href="http://get-thesis.com/">the next generation of the world’s greatest WordPress theme</a>, and if you’re rocking Thesis, I’m sure you are too. Bring on the new hotness, Chris! Also, be sure to follow <a href="http://twitter.com/#!/iamthesis">Thesis on Twitter</a>, as well as <a href="http://twitter.com/#!/brazenlygeek">my own account</a>, where i’m sharing all sorts of sweet little customizations for your WordPress+Thesis installation.</p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/what-to-expect-from-thesis-2-0/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/what-to-expect-from-thesis-2-0/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/thesis-wordpress-2-9/' rel='bookmark' title='Thesis and WordPress 2.9'>Thesis and WordPress 2.9</a></li>
<li><a href='http://www.rickbeckman.org/thesis-15-is-coming/' rel='bookmark' title='Thesis 1.5 is Coming'>Thesis 1.5 is Coming</a></li>
<li><a href='http://www.rickbeckman.org/widgetizing-thesis-multimedia-box/' rel='bookmark' title='Widgetizing Thesis’ Multimedia Box'>Widgetizing Thesis’ Multimedia Box</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/what-to-expect-from-thesis-2-0/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Update TimThumb to Keep Your Thesis Site Secure</title>
		<link>http://www.rickbeckman.org/update-timthumb-to-keep-your-thesis-site-secure/</link>
		<comments>http://www.rickbeckman.org/update-timthumb-to-keep-your-thesis-site-secure/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 13:00:50 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2048</guid>
		<description><![CDATA[In order to provide you snazzy thumbnails on posts with featured images, Thesis makes use of the TimThumb image thumbnailing script. Recently, TimThumb was found to be insecure, and so using the most up-to-date version of it is highly recommended. Thesis ships with version 1.09. The latest version is 2.8. Time to update! Thankfully, this [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>In order to provide you snazzy thumbnails on posts with featured images, <a href="http://get-thesis.com/">Thesis</a> makes use of the <a href="http://code.google.com/p/timthumb/">TimThumb</a> image thumbnailing script. Recently, TimThumb <a href="http://wpcandy.com/reports/timthumb-security-vulnerability-discovered">was found to be insecure</a>, and so using the most up-to-date version of it is highly recommended.</p>
<p>Thesis ships with version 1.09. The latest version is 2.8. Time to update!</p>
<p>Thankfully, this is a very easy task:</p>
<p>Open up Thesis’ <code>lib/scripts/thumb.php</code> file, delete everything in it, and then paste in just this:</p>
<pre><code>&lt;?php
/**
 * TimThumb by Ben Gillbanks and Mark Maunder
 * Based on work done by Tim McDaniels and Darren Hoyt
 * http://code.google.com/p/timthumb/
 *
 * GNU General Public License, version 2
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 *
 * Examples and documentation available on the project homepage
 * http://www.binarymoon.co.uk/projects/timthumb/
 */

/*
        -----TimThumb CONFIGURATION-----
        You can either edit the configuration variables manually here, or you can
        create a file called timthumb-config.php and define variables you want
        to customize in there. It will automatically be loaded by timthumb.
        This will save you having to re-edit these variables everytime you download
        a new version of timthumb.

*/
define ('VERSION', '2.8');                                                                              // Version of this script
//Load a config file if it exists. Otherwise, use the values below.
if( file_exists('timthumb-config.php'))         require_once('timthumb-config.php');
if(! defined( 'DEBUG_ON' ) )                    define ('DEBUG_ON', false);                             // Enable debug logging to web server error log (STDERR)
if(! defined('DEBUG_LEVEL') )                   define ('DEBUG_LEVEL', 1);                              // Debug level 1 is less noisy and 3 is the most noisy
if(! defined('MEMORY_LIMIT') )                  define ('MEMORY_LIMIT', '30M');                         // Set PHP memory limit
if(! defined('BLOCK_EXTERNAL_LEECHERS') )       define ('BLOCK_EXTERNAL_LEECHERS', false);              // If the image or webshot is being loaded on an external site, display a red &quot;No Hotlinking&quot; gif.

//Image fetching and caching
if(! defined('ALLOW_EXTERNAL') )                define ('ALLOW_EXTERNAL', TRUE);                        // Allow image fetching from external websites. Will check against ALLOWED_SITES if ALLOW_ALL_EXTERNAL_SITES is false
if(! defined('ALLOW_ALL_EXTERNAL_SITES') )      define ('ALLOW_ALL_EXTERNAL_SITES', false);             // Less secure.
if(! defined('FILE_CACHE_ENABLED') )            define ('FILE_CACHE_ENABLED', TRUE);                    // Should we store resized/modified images on disk to speed things up?
if(! defined('FILE_CACHE_TIME_BETWEEN_CLEANS')) define ('FILE_CACHE_TIME_BETWEEN_CLEANS', 86400);       // How often the cache is cleaned
if(! defined('FILE_CACHE_MAX_FILE_AGE') )       define ('FILE_CACHE_MAX_FILE_AGE', 86400);              // How old does a file have to be to be deleted from the cache
if(! defined('FILE_CACHE_SUFFIX') )             define ('FILE_CACHE_SUFFIX', '.timthumb.txt');          // What to put at the end of all files in the cache directory so we can identify them
if(! defined('FILE_CACHE_DIRECTORY') )          define ('FILE_CACHE_DIRECTORY', '../../custom/cache');             // Directory where images are cached. Left blank it will use the system temporary directory (which is better for security)
if(! defined('MAX_FILE_SIZE') )                 define ('MAX_FILE_SIZE', 10485760);                     // 10 Megs is 10485760. This is the max internal or external file size that we'll process.
if(! defined('CURL_TIMEOUT') )                  define ('CURL_TIMEOUT', 20);                            // Timeout duration for Curl. This only applies if you have Curl installed and aren't using PHP's default URL fetching mechanism.
if(! defined('WAIT_BETWEEN_FETCH_ERRORS') )     define ('WAIT_BETWEEN_FETCH_ERRORS', 3600);             //Time to wait between errors fetching remote file
//Browser caching
if(! defined('BROWSER_CACHE_MAX_AGE') )         define ('BROWSER_CACHE_MAX_AGE', 864000);               // Time to cache in the browser
if(! defined('BROWSER_CACHE_DISABLE') )         define ('BROWSER_CACHE_DISABLE', false);                // Use for testing if you want to disable all browser caching

//Image size and defaults
if(! defined('MAX_WIDTH') )                     define ('MAX_WIDTH', 1500);                             // Maximum image width
if(! defined('MAX_HEIGHT') )                    define ('MAX_HEIGHT', 1500);                            // Maximum image height
if(! defined('NOT_FOUND_IMAGE') )               define ('NOT_FOUND_IMAGE', '');                         //Image to serve if any 404 occurs
if(! defined('ERROR_IMAGE') )                   define ('ERROR_IMAGE', '');                             //Image to serve if an error occurs instead of showing error message 

//Image compression is enabled if either of these point to valid paths

//These are now disabled by default because the file sizes of PNGs (and GIFs) are much smaller than we used to generate.
//They only work for PNGs. GIFs and JPEGs are not affected.
if(! defined('OPTIPNG_ENABLED') )               define ('OPTIPNG_ENABLED', false);
if(! defined('OPTIPNG_PATH') )                  define ('OPTIPNG_PATH', '/usr/bin/optipng'); //This will run first because it gives better compression than pngcrush.
if(! defined('PNGCRUSH_ENABLED') )              define ('PNGCRUSH_ENABLED', false);
if(! defined('PNGCRUSH_PATH') )                 define ('PNGCRUSH_PATH', '/usr/bin/pngcrush'); //This will only run if OPTIPNG_PATH is not set or is not valid

/*
        -------====Website Screenshots configuration - BETA====-------

        If you just want image thumbnails and don't want website screenshots, you can safely leave this as is.  

        If you would like to get website screenshots set up, you will need root access to your own server.

        Enable ALLOW_ALL_EXTERNAL_SITES so you can fetch any external web page. This is more secure now that we're using a non-web folder for cache.
        Enable BLOCK_EXTERNAL_LEECHERS so that your site doesn't generate thumbnails for the whole Internet.

        Instructions to get website screenshots enabled on Ubuntu Linux:

        1. Install Xvfb with the following command: sudo apt-get install subversion libqt4-webkit libqt4-dev g++ xvfb
        2. Go to a directory where you can download some code
        3. Check-out the latest version of CutyCapt with the following command: svn co https://cutycapt.svn.sourceforge.net/svnroot/cutycapt
        4. Compile CutyCapt by doing: cd cutycapt/CutyCapt
        5. qmake
        6. make
        7. cp CutyCapt /usr/local/bin/
        8. Test it by running: xvfb-run --server-args=&quot;-screen 0, 1024x768x24&quot; CutyCapt --url=&quot;http://markmaunder.com/&quot; --out=test.png
        9. If you get a file called test.png with something in it, it probably worked. Now test the script by accessing it as follows:
        10. http://yoursite.com/path/to/timthumb.php?src=http://markmaunder.com/&amp;webshot=1

        Notes on performance:
        The first time a webshot loads, it will take a few seconds.
        From then on it uses the regular timthumb caching mechanism with the configurable options above
        and loading will be very fast.

        --ADVANCED USERS ONLY--
        If you'd like a slight speedup (about 25%) and you know Linux, you can run the following command which will keep Xvfb running in the background.
        nohup Xvfb :100 -ac -nolisten tcp -screen 0, 1024x768x24 &gt; /dev/null 2&gt;&amp;1 &amp;
        Then set WEBSHOT_XVFB_RUNNING = true below. This will save your server having to fire off a new Xvfb server and shut it down every time a new shot is generated.
        You will need to take responsibility for keeping Xvfb running in case it crashes. (It seems pretty stable)
        You will also need to take responsibility for server security if you're running Xvfb as root. 

*/
if(! defined('WEBSHOT_ENABLED') )       define ('WEBSHOT_ENABLED', false);                      //Beta feature. Adding webshot=1 to your query string will cause the script to return a browser screenshot rather than try to fetch an image.
if(! defined('WEBSHOT_CUTYCAPT') )      define ('WEBSHOT_CUTYCAPT', '/usr/local/bin/CutyCapt'); //The path to CutyCapt.
if(! defined('WEBSHOT_XVFB') )          define ('WEBSHOT_XVFB', '/usr/bin/xvfb-run');           //The path to the Xvfb server
if(! defined('WEBSHOT_SCREEN_X') )      define ('WEBSHOT_SCREEN_X', '1024');                    //1024 works ok
if(! defined('WEBSHOT_SCREEN_Y') )      define ('WEBSHOT_SCREEN_Y', '768');                     //768 works ok
if(! defined('WEBSHOT_COLOR_DEPTH') )   define ('WEBSHOT_COLOR_DEPTH', '24');                   //I haven't tested anything besides 24
if(! defined('WEBSHOT_IMAGE_FORMAT') )  define ('WEBSHOT_IMAGE_FORMAT', 'png');                 //png is about 2.5 times the size of jpg but is a LOT better quality
if(! defined('WEBSHOT_TIMEOUT') )       define ('WEBSHOT_TIMEOUT', '20');                       //Seconds to wait for a webshot
if(! defined('WEBSHOT_USER_AGENT') )    define ('WEBSHOT_USER_AGENT', &quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.18) Gecko/20110614 Firefox/3.6.18&quot;); //I hate to do this, but a non-browser robot user agent might not show what humans see. So we pretend to be Firefox
if(! defined('WEBSHOT_JAVASCRIPT_ON') ) define ('WEBSHOT_JAVASCRIPT_ON', true);                 //Setting to false might give you a slight speedup and block ads. But it could cause other issues.
if(! defined('WEBSHOT_JAVA_ON') )       define ('WEBSHOT_JAVA_ON', false);                      //Have only tested this as fase
if(! defined('WEBSHOT_PLUGINS_ON') )    define ('WEBSHOT_PLUGINS_ON', true);                    //Enable flash and other plugins
if(! defined('WEBSHOT_PROXY') )         define ('WEBSHOT_PROXY', '');                           //In case you're behind a proxy server.
if(! defined('WEBSHOT_XVFB_RUNNING') )  define ('WEBSHOT_XVFB_RUNNING', false);                 //ADVANCED: Enable this if you've got Xvfb running in the background.

// If ALLOW_EXTERNAL is true and ALLOW_ALL_EXTERNAL_SITES is false, then external images will only be fetched from these domains and their subdomains.
if(! isset($ALLOWED_SITES)){
        $ALLOWED_SITES = array (
                        'flickr.com',
                        'picasa.com',
                        'img.youtube.com',
                        'upload.wikimedia.org',
                        'photobucket.com',
                        'imgur.com',
                        'imageshack.us',
                        'tinypic.com'
        );
}
// -------------------------------------------------------------
// -------------- STOP EDITING CONFIGURATION HERE --------------
// -------------------------------------------------------------

timthumb::start();

class timthumb {
        protected $src = &quot;&quot;;
        protected $is404 = false;
        protected $docRoot = &quot;&quot;;
        protected $lastURLError = false;
        protected $localImage = &quot;&quot;;
        protected $localImageMTime = 0;
        protected $url = false;
        protected $myHost = &quot;&quot;;
        protected $isURL = false;
        protected $cachefile = '';
        protected $errors = array();
        protected $toDeletes = array();
        protected $cacheDirectory = '';
        protected $startTime = 0;
        protected $lastBenchTime = 0;
        protected $cropTop = false;
        protected $salt = &quot;&quot;;
        protected $fileCacheVersion = 1; //Generally if timthumb.php is modifed (upgraded) then the salt changes and all cache files are recreated. This is a backup mechanism to force regen.
        protected $filePrependSecurityBlock = &quot;&lt;?php die('Execution denied!'); //&quot;; //Designed to have three letter mime type, space, question mark and greater than symbol appended. 6 bytes total.
        protected static $curlDataWritten = 0;
        protected static $curlFH = false;
        public static function start(){
                $tim = new timthumb();
                $tim-&gt;handleErrors();
                $tim-&gt;securityChecks();
                if($tim-&gt;tryBrowserCache()){
                        exit(0);
                }
                $tim-&gt;handleErrors();
                if(FILE_CACHE_ENABLED &amp;&amp; $tim-&gt;tryServerCache()){
                        exit(0);
                }
                $tim-&gt;handleErrors();
                $tim-&gt;run();
                $tim-&gt;handleErrors();
                exit(0);
        }
        public function __construct(){
                global $ALLOWED_SITES;
                $this-&gt;startTime = microtime(true);
                date_default_timezone_set('UTC');
                $this-&gt;debug(1, &quot;Starting new request from &quot; . $this-&gt;getIP() . &quot; to &quot; . $_SERVER['REQUEST_URI']);
                $this-&gt;calcDocRoot();
                //On windows systems I'm assuming fileinode returns an empty string or a number that doesn't change. Check this.
                $this-&gt;salt = @filemtime(__FILE__) . '-' . @fileinode(__FILE__);
                $this-&gt;debug(3, &quot;Salt is: &quot; . $this-&gt;salt);
                if(FILE_CACHE_DIRECTORY){
                        if(! is_dir(FILE_CACHE_DIRECTORY)){
                                @mkdir(FILE_CACHE_DIRECTORY);
                                if(! is_dir(FILE_CACHE_DIRECTORY)){
                                        $this-&gt;error(&quot;Could not create the file cache directory.&quot;);
                                        return false;
                                }
                        }
                        $this-&gt;cacheDirectory = FILE_CACHE_DIRECTORY;
                        touch($this-&gt;cacheDirectory . '/index.html');
                } else {
                        $this-&gt;cacheDirectory = sys_get_temp_dir();
                }
                //Clean the cache before we do anything because we don't want the first visitor after FILE_CACHE_TIME_BETWEEN_CLEANS expires to get a stale image.
                $this-&gt;cleanCache();

                $this-&gt;myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']);
                $this-&gt;src = $this-&gt;param('src');
                $this-&gt;url = parse_url($this-&gt;src);
                if(strlen($this-&gt;src) &lt;= 3){
                        $this-&gt;error(&quot;No image specified&quot;);
                        return false;
                }
                if(BLOCK_EXTERNAL_LEECHERS &amp;&amp; array_key_exists('HTTP_REFERER', $_SERVER) &amp;&amp; (! preg_match('/^https?:\/\/(?:www\.)?' . $this-&gt;myHost . '(?:$|\/)/i', $_SERVER['HTTP_REFERER']))){
                        // base64 encoded red image that says 'no hotlinkers'
                        // nothing to worry about! :)
                        $imgData = base64_decode(&quot;R0lGODlhUAAMAIAAAP8AAP///yH5BAAHAP8ALAAAAABQAAwAAAJpjI+py+0Po5y0OgAMjjv01YUZ\nOGplhWXfNa6JCLnWkXplrcBmW+spbwvaVr/cDyg7IoFC2KbYVC2NQ5MQ4ZNao9Ynzjl9ScNYpneb\nDULB3RP6JuPuaGfuuV4fumf8PuvqFyhYtjdoeFgAADs=&quot;);
                        header('Content-Type: image/gif');
                        header('Content-Length: ' . sizeof($imgData));
                        header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
                        header(&quot;Pragma: no-cache&quot;);
                        header('Expires: ' . gmdate ('D, d M Y H:i:s', time()));
                        echo $imgData;
                        return false;
                        exit(0);
                }
                if(preg_match('/https?:\/\/(?:www\.)?' . $this-&gt;myHost . '(?:$|\/)/i', $this-&gt;src)){
                        $this-&gt;src = preg_replace('/https?:\/\/(?:www\.)?' . $this-&gt;myHost . '/i', '', $this-&gt;src);
                }
                if(preg_match('/^https?:\/\/[^\/]+/i', $this-&gt;src)){
                        $this-&gt;debug(2, &quot;Is a request for an external URL: &quot; . $this-&gt;src);
                        $this-&gt;isURL = true;
                } else {
                        $this-&gt;debug(2, &quot;Is a request for an internal file: &quot; . $this-&gt;src);
                }
                if($this-&gt;isURL &amp;&amp; (! ALLOW_EXTERNAL)){
                        $this-&gt;error(&quot;You are not allowed to fetch images from an external website.&quot;);
                        return false;
                }
                if($this-&gt;isURL){
                        if(ALLOW_ALL_EXTERNAL_SITES){
                                $this-&gt;debug(2, &quot;Fetching from all external sites is enabled.&quot;);
                        } else {
                                $this-&gt;debug(2, &quot;Fetching only from selected external sites is enabled.&quot;);
                                $allowed = false;
                                foreach($ALLOWED_SITES as $site){
                                        if (preg_match ('/(?:^|\.)' . $site . '$/i', $this-&gt;url['host'])) {
                                                $this-&gt;debug(3, &quot;URL hostname {$this-&gt;url['host']} matches $site so allowing.&quot;);
                                                $allowed = true;
                                        }
                                }
                                if(! $allowed){
                                        return $this-&gt;error(&quot;You may not fetch images from that site. To enable this site in timthumb, you can either add it to \$ALLOWED_SITES and set ALLOW_EXTERNAL=true. Or you can set ALLOW_ALL_EXTERNAL_SITES=true, depending on your security needs.&quot;);
                                }
                        }
                }

                $cachePrefix = ($this-&gt;isURL ? 'timthumb_ext_' : 'timthumb_int_');
                if($this-&gt;isURL){
                        $this-&gt;cachefile = $this-&gt;cacheDirectory . '/' . $cachePrefix . md5($this-&gt;salt . $_SERVER ['QUERY_STRING'] . $this-&gt;fileCacheVersion) . FILE_CACHE_SUFFIX;
                } else {
                        $this-&gt;localImage = $this-&gt;getLocalImagePath($this-&gt;src);
                        if(! $this-&gt;localImage){
                                $this-&gt;debug(1, &quot;Could not find the local image: {$this-&gt;localImage}&quot;);
                                $this-&gt;error(&quot;Could not find the internal image you specified.&quot;);
                                $this-&gt;set404();
                                return false;
                        }
                        $this-&gt;debug(1, &quot;Local image path is {$this-&gt;localImage}&quot;);
                        $this-&gt;localImageMTime = @filemtime($this-&gt;localImage);
                        //We include the mtime of the local file in case in changes on disk.
                        $this-&gt;cachefile = $this-&gt;cacheDirectory . '/' . $cachePrefix . md5($this-&gt;salt . $this-&gt;localImageMTime . $_SERVER ['QUERY_STRING'] . $this-&gt;fileCacheVersion) . FILE_CACHE_SUFFIX;
                }
                $this-&gt;debug(2, &quot;Cache file is: &quot; . $this-&gt;cachefile);

                return true;
        }
        public function __destruct(){
                foreach($this-&gt;toDeletes as $del){
                        $this-&gt;debug(2, &quot;Deleting temp file $del&quot;);
                        @unlink($del);
                }
        }
        public function run(){
                if($this-&gt;isURL){
                        if(! ALLOW_EXTERNAL){
                                $this-&gt;debug(1, &quot;Got a request for an external image but ALLOW_EXTERNAL is disabled so returning error msg.&quot;);
                                $this-&gt;error(&quot;You are not allowed to fetch images from an external website.&quot;);
                                return false;
                        }
                        $this-&gt;debug(3, &quot;Got request for external image. Starting serveExternalImage.&quot;);
                        if($this-&gt;param('webshot')){
                                if(WEBSHOT_ENABLED){
                                        $this-&gt;debug(3, &quot;webshot param is set, so we're going to take a webshot.&quot;);
                                        $this-&gt;serveWebshot();
                                } else {
                                        $this-&gt;error(&quot;You added the webshot parameter but webshots are disabled on this server. You need to set WEBSHOT_ENABLED == true to enable webshots.&quot;);
                                }
                        } else {
                                $this-&gt;debug(3, &quot;webshot is NOT set so we're going to try to fetch a regular image.&quot;);
                                $this-&gt;serveExternalImage();

                        }
                } else {
                        $this-&gt;debug(3, &quot;Got request for internal image. Starting serveInternalImage()&quot;);
                        $this-&gt;serveInternalImage();
                }
                return true;
        }
        protected function handleErrors(){
                if($this-&gt;haveErrors()){
                        if(NOT_FOUND_IMAGE &amp;&amp; $this-&gt;is404()){
                                if($this-&gt;serveImg(NOT_FOUND_IMAGE)){
                                        exit(0);
                                } else {
                                        $this-&gt;error(&quot;Additionally, the 404 image that is configured could not be found or there was an error serving it.&quot;);
                                }
                        }
                        if(ERROR_IMAGE){
                                if($this-&gt;serveImg(ERROR_IMAGE)){
                                        exit(0);
                                } else {
                                        $this-&gt;error(&quot;Additionally, the error image that is configured could not be found or there was an error serving it.&quot;);
                                }
                        }

                        $this-&gt;serveErrors();
                        exit(0);
                }
                return false;
        }
        protected function tryBrowserCache(){
                if(BROWSER_CACHE_DISABLE){ $this-&gt;debug(3, &quot;Browser caching is disabled&quot;); return false; }
                if(!empty($_SERVER['HTTP_IF_MODIFIED_SINCE']) ){
                        $this-&gt;debug(3, &quot;Got a conditional get&quot;);
                        $mtime = false;
                        //We've already checked if the real file exists in the constructor
                        if(! is_file($this-&gt;cachefile)){
                                //If we don't have something cached, regenerate the cached image.
                                return false;
                        }
                        if($this-&gt;localImageMTime){
                                $mtime = $this-&gt;localImageMTime;
                                $this-&gt;debug(3, &quot;Local real file's modification time is $mtime&quot;);
                        } else if(is_file($this-&gt;cachefile)){ //If it's not a local request then use the mtime of the cached file to determine the 304
                                $mtime = @filemtime($this-&gt;cachefile);
                                $this-&gt;debug(3, &quot;Cached file's modification time is $mtime&quot;);
                        }
                        if(! $mtime){ return false; }

                        $iftime = strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']);
                        $this-&gt;debug(3, &quot;The conditional get's if-modified-since unixtime is $iftime&quot;);
                        if($iftime &lt; 1){
                                $this-&gt;debug(3, &quot;Got an invalid conditional get modified since time. Returning false.&quot;);
                                return false;
                        }
                        if($iftime &lt; $mtime){ //Real file or cache file has been modified since last request, so force refetch.
                                $this-&gt;debug(3, &quot;File has been modified since last fetch.&quot;);
                                return false;
                        } else { //Otherwise serve a 304
                                $this-&gt;debug(3, &quot;File has not been modified since last get, so serving a 304.&quot;);
                                header ('HTTP/1.1 304 Not Modified');
                                $this-&gt;debug(1, &quot;Returning 304 not modified&quot;);
                                return true;
                        }
                }
                return false;
        }
        protected function tryServerCache(){
                $this-&gt;debug(3, &quot;Trying server cache&quot;);
                if(file_exists($this-&gt;cachefile)){
                        $this-&gt;debug(3, &quot;Cachefile {$this-&gt;cachefile} exists&quot;);
                        if($this-&gt;isURL){
                                $this-&gt;debug(3, &quot;This is an external request, so checking if the cachefile is empty which means the request failed previously.&quot;);
                                if(filesize($this-&gt;cachefile) &lt; 1){
                                        $this-&gt;debug(3, &quot;Found an empty cachefile indicating a failed earlier request. Checking how old it is.&quot;);
                                        //Fetching error occured previously
                                        if(time() - @filemtime($this-&gt;cachefile) &gt; WAIT_BETWEEN_FETCH_ERRORS){
                                                $this-&gt;debug(3, &quot;File is older than &quot; . WAIT_BETWEEN_FETCH_ERRORS . &quot; seconds. Deleting and returning false so app can try and load file.&quot;);
                                                @unlink($this-&gt;cachefile);
                                                return false; //to indicate we didn't serve from cache and app should try and load
                                        } else {
                                                $this-&gt;debug(3, &quot;Empty cachefile is still fresh so returning message saying we had an error fetching this image from remote host.&quot;);
                                                $this-&gt;set404();
                                                $this-&gt;error(&quot;An error occured fetching image.&quot;);
                                                return false;
                                        }
                                }
                        } else {
                                $this-&gt;debug(3, &quot;Trying to serve cachefile {$this-&gt;cachefile}&quot;);
                        }
                        if($this-&gt;serveCacheFile()){
                                $this-&gt;debug(3, &quot;Succesfully served cachefile {$this-&gt;cachefile}&quot;);
                                return true;
                        } else {
                                $this-&gt;debug(3, &quot;Failed to serve cachefile {$this-&gt;cachefile} - Deleting it from cache.&quot;);
                                //Image serving failed. We can't retry at this point, but lets remove it from cache so the next request recreates it
                                @unlink($this-&gt;cachefile);
                                return true;
                        }
                }
        }
        protected function error($err){
                $this-&gt;debug(3, &quot;Adding error message: $err&quot;);
                $this-&gt;errors[] = $err;
                return false;

        }
        protected function haveErrors(){
                if(sizeof($this-&gt;errors) &gt; 0){
                        return true;
                }
                return false;
        }
        protected function serveErrors(){
                $html = '&lt;ul&gt;';
                foreach($this-&gt;errors as $err){
                        $html .= '&lt;li&gt;' . htmlentities($err) . '&lt;/li&gt;';
                }
                $html .= '&lt;/ul&gt;';
                header ('HTTP/1.1 400 Bad Request');
                echo '&lt;h1&gt;A TimThumb error has occured&lt;/h1&gt;The following error(s) occured:&lt;br /&gt;' . $html . '&lt;br /&gt;';
                echo '&lt;br /&gt;Query String : ' . htmlentities ($_SERVER['QUERY_STRING']);
                echo '&lt;br /&gt;TimThumb version : ' . VERSION . '&lt;/pre&gt;';
        }
        protected function serveInternalImage(){
                $this-&gt;debug(3, &quot;Local image path is $this-&gt;localImage&quot;);
                if(! $this-&gt;localImage){
                        $this-&gt;sanityFail(&quot;localImage not set after verifying it earlier in the code.&quot;);
                        return false;
                }
                $fileSize = filesize($this-&gt;localImage);
                if($fileSize &gt; MAX_FILE_SIZE){
                        $this-&gt;error(&quot;The file you specified is greater than the maximum allowed file size.&quot;);
                        return false;
                }
                if($fileSize &lt;= 0){
                        $this-&gt;error(&quot;The file you specified is &lt;= 0 bytes.&quot;);
                        return false;
                }
                $this-&gt;debug(3, &quot;Calling processImageAndWriteToCache() for local image.&quot;);
                if($this-&gt;processImageAndWriteToCache($this-&gt;localImage)){
                        $this-&gt;serveCacheFile();
                        return true;
                } else {
                        return false;
                }
        }
        protected function cleanCache(){
                $this-&gt;debug(3, &quot;cleanCache() called&quot;);
                $lastCleanFile = $this-&gt;cacheDirectory . '/timthumb_cacheLastCleanTime.touch';

                //If this is a new timthumb installation we need to create the file
                if(! is_file($lastCleanFile)){
                        $this-&gt;debug(1, &quot;File tracking last clean doesn't exist. Creating $lastCleanFile&quot;);
                        touch($lastCleanFile);
                        return;
                }
                if(@filemtime($lastCleanFile) &lt; (time() - FILE_CACHE_TIME_BETWEEN_CLEANS) ){ //Cache was last cleaned more than 1 day ago
                        $this-&gt;debug(1, &quot;Cache was last cleaned more than &quot; . FILE_CACHE_TIME_BETWEEN_CLEANS . &quot; seconds ago. Cleaning now.&quot;);
                        // Very slight race condition here, but worst case we'll have 2 or 3 servers cleaning the cache simultaneously once a day.
                        touch($lastCleanFile);
                        $files = glob($this-&gt;cacheDirectory . '/*' . FILE_CACHE_SUFFIX);
                        $timeAgo = time() - FILE_CACHE_MAX_FILE_AGE;
                        foreach($files as $file){
                                if(@filemtime($file) &lt; $timeAgo){
                                        $this-&gt;debug(3, &quot;Deleting cache file $file older than max age: &quot; . FILE_CACHE_MAX_FILE_AGE . &quot; seconds&quot;);
                                        @unlink($file);
                                }
                        }
                        return true;
                } else {
                        $this-&gt;debug(3, &quot;Cache was cleaned less than &quot; . FILE_CACHE_TIME_BETWEEN_CLEANS . &quot; seconds ago so no cleaning needed.&quot;);
                }
                return false;
        }
        protected function processImageAndWriteToCache($localImage){
                $sData = getimagesize($localImage);
                $origType = $sData[2];
                $mimeType = $sData['mime'];

                $this-&gt;debug(3, &quot;Mime type of image is $mimeType&quot;);
                if(! preg_match('/^image\/(?:gif|jpg|jpeg|png)$/i', $mimeType)){
                        return $this-&gt;error(&quot;The image being resized is not a valid gif, jpg or png.&quot;);
                }

                if (!function_exists ('imagecreatetruecolor')) {
                    return $this-&gt;error('GD Library Error: imagecreatetruecolor does not exist - please contact your webhost and ask them to install the GD library');
                }

                if (function_exists ('imagefilter') &amp;&amp; defined ('IMG_FILTER_NEGATE')) {
                        $imageFilters = array (
                                1 =&gt; array (IMG_FILTER_NEGATE, 0),
                                2 =&gt; array (IMG_FILTER_GRAYSCALE, 0),
                                3 =&gt; array (IMG_FILTER_BRIGHTNESS, 1),
                                4 =&gt; array (IMG_FILTER_CONTRAST, 1),
                                5 =&gt; array (IMG_FILTER_COLORIZE, 4),
                                6 =&gt; array (IMG_FILTER_EDGEDETECT, 0),
                                7 =&gt; array (IMG_FILTER_EMBOSS, 0),
                                8 =&gt; array (IMG_FILTER_GAUSSIAN_BLUR, 0),
                                9 =&gt; array (IMG_FILTER_SELECTIVE_BLUR, 0),
                                10 =&gt; array (IMG_FILTER_MEAN_REMOVAL, 0),
                                11 =&gt; array (IMG_FILTER_SMOOTH, 0),
                        );
                }

                // get standard input properties
                $new_width =  (int) abs ($this-&gt;param('w', 0));
                $new_height = (int) abs ($this-&gt;param('h', 0));
                $zoom_crop = (int) $this-&gt;param('zc', 1);
                $quality = (int) abs ($this-&gt;param('q', 90));
                $align = $this-&gt;cropTop ? 't' : $this-&gt;param('a', 'c');
                $filters = $this-&gt;param('f', '');
                $sharpen = (bool) $this-&gt;param('s', 0);
                $canvas_color = $this-&gt;param('cc', 'ffffff');

                // set default width and height if neither are set already
                if ($new_width == 0 &amp;&amp; $new_height == 0) {
                    $new_width = 100;
                    $new_height = 100;
                }

                // ensure size limits can not be abused
                $new_width = min ($new_width, MAX_WIDTH);
                $new_height = min ($new_height, MAX_HEIGHT);

                // set memory limit to be able to have enough space to resize larger images
                $this-&gt;setMemoryLimit();

                // open the existing image
                $image = $this-&gt;openImage ($mimeType, $localImage);
                if ($image === false) {
                        return $this-&gt;error('Unable to open image.');
                }

                // Get original width and height
                $width = imagesx ($image);
                $height = imagesy ($image);
                $origin_x = 0;
                $origin_y = 0;

                // generate new w/h if not provided
                if ($new_width &amp;&amp; !$new_height) {
                        $new_height = floor ($height * ($new_width / $width));
                } else if ($new_height &amp;&amp; !$new_width) {
                        $new_width = floor ($width * ($new_height / $height));
                }

                // scale down and add borders
                if ($zoom_crop == 3) {

                        $final_height = $height * ($new_width / $width);

                        if ($final_height &gt; $new_height) {
                                $new_width = $width * ($new_height / $height);
                        } else {
                                $new_height = $final_height;
                        }

                }

                // create a new true color image
                $canvas = imagecreatetruecolor ($new_width, $new_height);
                imagealphablending ($canvas, false);

                if (strlen ($canvas_color) &lt; 6) {
                        $canvas_color = 'ffffff';
                }

                $canvas_color_R = hexdec (substr ($canvas_color, 0, 2));
                $canvas_color_G = hexdec (substr ($canvas_color, 2, 2));
                $canvas_color_B = hexdec (substr ($canvas_color, 2, 2));

                // Create a new transparent color for image
                $color = imagecolorallocatealpha ($canvas, $canvas_color_R, $canvas_color_G, $canvas_color_B, 127);

                // Completely fill the background of the new image with allocated color.
                imagefill ($canvas, 0, 0, $color);

                // scale down and add borders
                if ($zoom_crop == 2) {

                        $final_height = $height * ($new_width / $width);

                        if ($final_height &gt; $new_height) {

                                $origin_x = $new_width / 2;
                                $new_width = $width * ($new_height / $height);
                                $origin_x = round ($origin_x - ($new_width / 2));

                        } else {

                                $origin_y = $new_height / 2;
                                $new_height = $final_height;
                                $origin_y = round ($origin_y - ($new_height / 2));

                        }

                }

                // Restore transparency blending
                imagesavealpha ($canvas, true);

                if ($zoom_crop &gt; 0) {

                        $src_x = $src_y = 0;
                        $src_w = $width;
                        $src_h = $height;

                        $cmp_x = $width / $new_width;
                        $cmp_y = $height / $new_height;

                        // calculate x or y coordinate and width or height of source
                        if ($cmp_x &gt; $cmp_y) {

                                $src_w = round ($width / $cmp_x * $cmp_y);
                                $src_x = round (($width - ($width / $cmp_x * $cmp_y)) / 2);

                        } else if ($cmp_y &gt; $cmp_x) {

                                $src_h = round ($height / $cmp_y * $cmp_x);
                                $src_y = round (($height - ($height / $cmp_y * $cmp_x)) / 2);

                        }

                        // positional cropping!
                        if ($align) {
                                if (strpos ($align, 't') !== false) {
                                        $src_y = 0;
                                }
                                if (strpos ($align, 'b') !== false) {
                                        $src_y = $height - $src_h;
                                }
                                if (strpos ($align, 'l') !== false) {
                                        $src_x = 0;
                                }
                                if (strpos ($align, 'r') !== false) {
                                        $src_x = $width - $src_w;
                                }
                        }

                        imagecopyresampled ($canvas, $image, $origin_x, $origin_y, $src_x, $src_y, $new_width, $new_height, $src_w, $src_h);

                } else {

                        // copy and resize part of an image with resampling
                        imagecopyresampled ($canvas, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);

                }

                if ($filters != '' &amp;&amp; function_exists ('imagefilter') &amp;&amp; defined ('IMG_FILTER_NEGATE')) {
                        // apply filters to image
                        $filterList = explode ('|', $filters);
                        foreach ($filterList as $fl) {

                                $filterSettings = explode (',', $fl);
                                if (isset ($imageFilters[$filterSettings[0]])) {

                                        for ($i = 0; $i &lt; 4; $i ++) {
                                                if (!isset ($filterSettings[$i])) {
                                                        $filterSettings[$i] = null;
                                                } else {
                                                        $filterSettings[$i] = (int) $filterSettings[$i];
                                                }
                                        }

                                        switch ($imageFilters[$filterSettings[0]][1]) {

                                                case 1:

                                                        imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1]);
                                                        break;

                                                case 2:

                                                        imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2]);
                                                        break;

                                                case 3:

                                                        imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2], $filterSettings[3]);
                                                        break;

                                                case 4:

                                                        imagefilter ($canvas, $imageFilters[$filterSettings[0]][0], $filterSettings[1], $filterSettings[2], $filterSettings[3], $filterSettings[4]);
                                                        break;

                                                default:

                                                        imagefilter ($canvas, $imageFilters[$filterSettings[0]][0]);
                                                        break;

                                        }
                                }
                        }
                }

                // sharpen image
                if ($sharpen &amp;&amp; function_exists ('imageconvolution')) {

                        $sharpenMatrix = array (
                                        array (-1,-1,-1),
                                        array (-1,16,-1),
                                        array (-1,-1,-1),
                                        );

                        $divisor = 8;
                        $offset = 0;

                        imageconvolution ($canvas, $sharpenMatrix, $divisor, $offset);

                }
                //Straight from WordPress core code. Reduces filesize by up to 70% for PNG's
                if ( (IMAGETYPE_PNG == $origType || IMAGETYPE_GIF == $origType) &amp;&amp; function_exists('imageistruecolor') &amp;&amp; !imageistruecolor( $image ) &amp;&amp; imagecolortransparent( $image ) &gt; 0 ){
                        imagetruecolortopalette( $canvas, false, imagecolorstotal( $image ) );
                }

                $imgType = &quot;&quot;;
                $tempfile = tempnam($this-&gt;cacheDirectory, 'timthumb_tmpimg_');
                if(preg_match('/^image\/(?:jpg|jpeg)$/i', $mimeType)){
                        $imgType = 'jpg';
                        imagejpeg($canvas, $tempfile, $quality);
                } else if(preg_match('/^image\/png$/i', $mimeType)){
                        $imgType = 'png';
                        imagepng($canvas, $tempfile, floor($quality * 0.09));
                } else if(preg_match('/^image\/gif$/i', $mimeType)){
                        $imgType = 'gif';
                        imagegif($canvas, $tempfile);
                } else {
                        return $this-&gt;sanityFail(&quot;Could not match mime type after verifying it previously.&quot;);
                }

                if($imgType == 'png' &amp;&amp; OPTIPNG_ENABLED &amp;&amp; OPTIPNG_PATH &amp;&amp; @is_file(OPTIPNG_PATH)){
                        $exec = OPTIPNG_PATH;
                        $this-&gt;debug(3, &quot;optipng'ing $tempfile&quot;);
                        $presize = filesize($tempfile);
                        $out = `$exec -o1 $tempfile`; //you can use up to -o7 but it really slows things down
                        clearstatcache();
                        $aftersize = filesize($tempfile);
                        $sizeDrop = $presize - $aftersize;
                        if($sizeDrop &gt; 0){
                                $this-&gt;debug(1, &quot;optipng reduced size by $sizeDrop&quot;);
                        } else if($sizeDrop &lt; 0){
                                $this-&gt;debug(1, &quot;optipng increased size! Difference was: $sizeDrop&quot;);
                        } else {
                                $this-&gt;debug(1, &quot;optipng did not change image size.&quot;);
                        }
                } else if($imgType == 'png' &amp;&amp; PNGCRUSH_ENABLED &amp;&amp; PNGCRUSH_PATH &amp;&amp; @is_file(PNGCRUSH_PATH)){
                        $exec = PNGCRUSH_PATH;
                        $tempfile2 = tempnam($this-&gt;cacheDirectory, 'timthumb_tmpimg_');
                        $this-&gt;debug(3, &quot;pngcrush'ing $tempfile to $tempfile2&quot;);
                        $out = `$exec $tempfile $tempfile2`;
                        $todel = &quot;&quot;;
                        if(is_file($tempfile2)){
                                $sizeDrop = filesize($tempfile) - filesize($tempfile2);
                                if($sizeDrop &gt; 0){
                                        $this-&gt;debug(1, &quot;pngcrush was succesful and gave a $sizeDrop byte size reduction&quot;);
                                        $todel = $tempfile;
                                        $tempfile = $tempfile2;
                                } else {
                                        $this-&gt;debug(1, &quot;pngcrush did not reduce file size. Difference was $sizeDrop bytes.&quot;);
                                        $todel = $tempfile2;
                                }
                        } else {
                                $this-&gt;debug(3, &quot;pngcrush failed with output: $out&quot;);
                                $todel = $tempfile2;
                        }
                        @unlink($todel);
                }

                $this-&gt;debug(3, &quot;Rewriting image with security header.&quot;);
                $tempfile4 = tempnam($this-&gt;cacheDirectory, 'timthumb_tmpimg_');
                $context = stream_context_create ();
                $fp = fopen($tempfile,'r',0,$context);
                file_put_contents($tempfile4, $this-&gt;filePrependSecurityBlock . $imgType . ' ?' . '&gt;'); //6 extra bytes, first 3 being image type
                file_put_contents($tempfile4, $fp, FILE_APPEND);
                fclose($fp);
                @unlink($tempfile);
                $this-&gt;debug(3, &quot;Locking and replacing cache file.&quot;);
                $lockFile = $this-&gt;cachefile . '.lock';
                $fh = fopen($lockFile, 'w');
                if(! $fh){
                        return $this-&gt;error(&quot;Could not open the lockfile for writing an image.&quot;);
                }
                if(flock($fh, LOCK_EX)){
                        @unlink($this-&gt;cachefile); //rename generally overwrites, but doing this in case of platform specific quirks. File might not exist yet.
                        rename($tempfile4, $this-&gt;cachefile);
                        flock($fh, LOCK_UN);
                        fclose($fh);
                        @unlink($lockFile);
                } else {
                        fclose($fh);
                        @unlink($lockFile);
                        @unlink($tempfile4);
                        return $this-&gt;error(&quot;Could not get a lock for writing.&quot;);
                }
                $this-&gt;debug(3, &quot;Done image replace with security header. Cleaning up and running cleanCache()&quot;);
                imagedestroy($canvas);
                imagedestroy($image);
                return true;
        }
        protected function calcDocRoot(){
                $docRoot = @$_SERVER['DOCUMENT_ROOT'];
                if(!isset($docRoot)){
                        $this-&gt;debug(3, &quot;DOCUMENT_ROOT is not set. This is probably windows. Starting search 1.&quot;);
                        if(isset($_SERVER['SCRIPT_FILENAME'])){
                                $docRoot = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));
                                $this-&gt;debug(3, &quot;Generated docRoot using SCRIPT_FILENAME and PHP_SELF as: $docRoot&quot;);
                        }
                }
                if(!isset($docRoot)){
                        $this-&gt;debug(3, &quot;DOCUMENT_ROOT still is not set. Starting search 2.&quot;);
                        if(isset($_SERVER['PATH_TRANSLATED'])){
                                $docRoot = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));
                                $this-&gt;debug(3, &quot;Generated docRoot using PATH_TRANSLATED and PHP_SELF as: $docRoot&quot;);
                        }
                }
                if($docRoot &amp;&amp; $_SERVER['DOCUMENT_ROOT'] != '/'){ $docRoot = preg_replace('/\/$/', '', $docRoot); }
                $this-&gt;debug(3, &quot;Doc root is: &quot; . $docRoot);
                $this-&gt;docRoot = $docRoot;

        }
        protected function getLocalImagePath($src){
                $src = preg_replace('/^\//', '', $src); //strip off the leading '/'
                $realDocRoot = realpath($this-&gt;docRoot);  //See issue 224. Using realpath as a windows fix.
                if(! $this-&gt;docRoot){
                        $this-&gt;debug(3, &quot;We have no document root set, so as a last resort, lets check if the image is in the current dir and serve that.&quot;);
                        //We don't support serving images outside the current dir if we don't have a doc root for security reasons.
                        $file = preg_replace('/^.*?([^\/\\\\]+)$/', '$1', $src); //strip off any path info and just leave the filename.
                        if(is_file($file)){
                                return realpath($file);
                        }
                        return $this-&gt;error(&quot;Could not find your website document root and the file specified doesn't exist in timthumbs directory. We don't support serving files outside timthumb's directory without a document root for security reasons.&quot;);
                } //Do not go past this point without docRoot set

                //Try src under docRoot
                if(file_exists ($this-&gt;docRoot . '/' . $src)) {
                        $this-&gt;debug(3, &quot;Found file as &quot; . $this-&gt;docRoot . '/' . $src);
                        $real = realpath($this-&gt;docRoot . '/' . $src);
                        if(strpos($real, $realDocRoot) === 0){
                                return $real;
                        } else {
                                $this-&gt;debug(1, &quot;Security block: The file specified occurs outside the document root.&quot;);
                                //allow search to continue
                        }
                }
                //Check absolute paths and then verify the real path is under doc root
                $absolute = realpath('/' . $src);
                if($absolute &amp;&amp; file_exists($absolute)){ //realpath does file_exists check, so can probably skip the exists check here
                        $this-&gt;debug(3, &quot;Found absolute path: $absolute&quot;);
                        if(! $this-&gt;docRoot){ $this-&gt;sanityFail(&quot;docRoot not set when checking absolute path.&quot;); }
                        if(strpos($absolute, $realDocRoot) === 0){
                                return $absolute;
                        } else {
                                $this-&gt;debug(1, &quot;Security block: The file specified occurs outside the document root.&quot;);
                                //and continue search
                        }
                }
                $base = $this-&gt;docRoot;
                foreach (explode('/', str_replace($this-&gt;docRoot, '', $_SERVER['SCRIPT_FILENAME'])) as $sub){
                        $base .= $sub . '/';
                        $this-&gt;debug(3, &quot;Trying file as: &quot; . $base . $src);
                        if(file_exists($base . $src)){
                                $this-&gt;debug(3, &quot;Found file as: &quot; . $base . $src);
                                $real = realpath($base . $src);
                                if(strpos($real, $realDocRoot) === 0){
                                        return $real;
                                } else {
                                        $this-&gt;debug(1, &quot;Security block: The file specified occurs outside the document root.&quot;);
                                        //And continue search
                                }
                        }
                }
                return false;
        }
        protected function toDelete($name){
                $this-&gt;debug(3, &quot;Scheduling file $name to delete on destruct.&quot;);
                $this-&gt;toDeletes[] = $name;
        }
        protected function serveWebshot(){
                $this-&gt;debug(3, &quot;Starting serveWebshot&quot;);
                $instr = &quot;Please follow the instructions at http://code.google.com/p/timthumb/ to set your server up for taking website screenshots.&quot;;
                if(! is_file(WEBSHOT_CUTYCAPT)){
                        return $this-&gt;error(&quot;CutyCapt is not installed. $instr&quot;);
                }
                if(! is_file(WEBSHOT_XVFB)){
                        return $this-&gt;Error(&quot;Xvfb is not installed. $instr&quot;);
                }
                $cuty = WEBSHOT_CUTYCAPT;
                $xv = WEBSHOT_XVFB;
                $screenX = WEBSHOT_SCREEN_X;
                $screenY = WEBSHOT_SCREEN_Y;
                $colDepth = WEBSHOT_COLOR_DEPTH;
                $format = WEBSHOT_IMAGE_FORMAT;
                $timeout = WEBSHOT_TIMEOUT * 1000;
                $ua = WEBSHOT_USER_AGENT;
                $jsOn = WEBSHOT_JAVASCRIPT_ON ? 'on' : 'off';
                $javaOn = WEBSHOT_JAVA_ON ? 'on' : 'off';
                $pluginsOn = WEBSHOT_PLUGINS_ON ? 'on' : 'off';
                $proxy = WEBSHOT_PROXY ? ' --http-proxy=' . WEBSHOT_PROXY : '';
                $tempfile = tempnam($this-&gt;cacheDirectory, 'timthumb_webshot');
                $url = $this-&gt;src;
                if(! preg_match('/^https?:\/\/[a-zA-Z0-9\.\-]+/i', $url)){
                        return $this-&gt;error(&quot;Invalid URL supplied.&quot;);
                }
                $url = preg_replace('/[^A-Za-z0-9\-\.\_\~:\/\?\#\[\]\@\!\$\&amp;\'\(\)\*\+\,\;\=]+/', '', $url); //RFC 3986
                //Very important we don't allow injection of shell commands here. URL is between quotes and we are only allowing through chars allowed by a the RFC
                // which AFAIKT can't be used for shell injection.
                if(WEBSHOT_XVFB_RUNNING){
                        putenv('DISPLAY=:100.0');
                        $command = &quot;$cuty $proxy --max-wait=$timeout --user-agent=\&quot;$ua\&quot; --javascript=$jsOn --java=$javaOn --plugins=$pluginsOn --js-can-open-windows=off --url=\&quot;$url\&quot; --out-format=$format --out=$tempfile&quot;;
                } else {
                        $command = &quot;$xv --server-args=\&quot;-screen 0, {$screenX}x{$screenY}x{$colDepth}\&quot; $cuty $proxy --max-wait=$timeout --user-agent=\&quot;$ua\&quot; --javascript=$jsOn --java=$javaOn --plugins=$pluginsOn --js-can-open-windows=off --url=\&quot;$url\&quot; --out-format=$format --out=$tempfile&quot;;
                }
                $this-&gt;debug(3, &quot;Executing command: $command&quot;);
                $out = `$command`;
                $this-&gt;debug(3, &quot;Received output: $out&quot;);
                if(! is_file($tempfile)){
                        $this-&gt;set404();
                        return $this-&gt;error(&quot;The command to create a thumbnail failed.&quot;);
                }
                $this-&gt;cropTop = true;
                if($this-&gt;processImageAndWriteToCache($tempfile)){
                        $this-&gt;debug(3, &quot;Image processed succesfully. Serving from cache&quot;);
                        return $this-&gt;serveCacheFile();
                } else {
                        return false;
                }
        }
        protected function serveExternalImage(){
                if(! preg_match('/^https?:\/\/[a-zA-Z0-9\-\.]+/i', $this-&gt;src)){
                        $this-&gt;error(&quot;Invalid URL supplied.&quot;);
                        return false;
                }
                $tempfile = tempnam($this-&gt;cacheDirectory, 'timthumb');
                $this-&gt;debug(3, &quot;Fetching external image into temporary file $tempfile&quot;);
                $this-&gt;toDelete($tempfile);
                #fetch file here
                if(! $this-&gt;getURL($this-&gt;src, $tempfile)){
                        @unlink($this-&gt;cachefile);
                        touch($this-&gt;cachefile);
                        $this-&gt;debug(3, &quot;Error fetching URL: &quot; . $this-&gt;lastURLError);
                        $this-&gt;error(&quot;Error reading the URL you specified from remote host.&quot; . $this-&gt;lastURLError);
                        return false;
                }

                $mimeType = $this-&gt;getMimeType($tempfile);
                if(! preg_match(&quot;/^image\/(?:jpg|jpeg|gif|png)$/i&quot;, $mimeType)){
                        $this-&gt;debug(3, &quot;Remote file has invalid mime type: $mimeType&quot;);
                        @unlink($this-&gt;cachefile);
                        touch($this-&gt;cachefile);
                        $this-&gt;error(&quot;The remote file is not a valid image.&quot;);
                        return false;
                }
                if($this-&gt;processImageAndWriteToCache($tempfile)){
                        $this-&gt;debug(3, &quot;Image processed succesfully. Serving from cache&quot;);
                        return $this-&gt;serveCacheFile();
                } else {
                        return false;
                }
        }
        public static function curlWrite($h, $d){
                fwrite(self::$curlFH, $d);
                self::$curlDataWritten += strlen($d);
                if(self::$curlDataWritten &gt; MAX_FILE_SIZE){
                        return 0;
                } else {
                        return strlen($d);
                }
        }
        protected function serveCacheFile(){
                $this-&gt;debug(3, &quot;Serving {$this-&gt;cachefile}&quot;);
                if(! is_file($this-&gt;cachefile)){
                        $this-&gt;error(&quot;serveCacheFile called in timthumb but we couldn't find the cached file.&quot;);
                        return false;
                }
                $fp = fopen($this-&gt;cachefile, 'rb');
                if(! $fp){ return $this-&gt;error(&quot;Could not open cachefile.&quot;); }
                fseek($fp, strlen($this-&gt;filePrependSecurityBlock), SEEK_SET);
                $imgType = fread($fp, 3);
                fseek($fp, 3, SEEK_CUR);
                if(ftell($fp) != strlen($this-&gt;filePrependSecurityBlock) + 6){
                        @unlink($this-&gt;cachefile);
                        return $this-&gt;error(&quot;The cached image file seems to be corrupt.&quot;);
                }
                $imageDataSize = filesize($this-&gt;cachefile) - (strlen($this-&gt;filePrependSecurityBlock) + 6);
                $this-&gt;sendImageHeaders($imgType, $imageDataSize);
                $bytesSent = @fpassthru($fp);
                fclose($fp);
                if($bytesSent &gt; 0){
                        return true;
                }
                $content = file_get_contents ($this-&gt;cachefile);
                if ($content != FALSE) {
                        $content = substr($content, strlen($this-&gt;filePrependSecurityBlock) + 6);
                        echo $content;
                        $this-&gt;debug(3, &quot;Served using file_get_contents and echo&quot;);
                        return true;
                } else {
                        $this-&gt;error(&quot;Cache file could not be loaded.&quot;);
                        return false;
                }
        }
        protected function sendImageHeaders($mimeType, $dataSize){
                if(! preg_match('/^image\//i', $mimeType)){
                        $mimeType = 'image/' . $mimeType;
                }
                if(strtolower($mimeType) == 'image/jpg'){
                        $mimeType = 'image/jpeg';
                }
                $gmdate_expires = gmdate ('D, d M Y H:i:s', strtotime ('now +10 days')) . ' GMT';
                $gmdate_modified = gmdate ('D, d M Y H:i:s') . ' GMT';
                // send content headers then display image
                header ('Content-Type: ' . $mimeType);
                header ('Accept-Ranges: none'); //Changed this because we don't accept range requests
                header ('Last-Modified: ' . $gmdate_modified);
                header ('Content-Length: ' . $dataSize);
                if(BROWSER_CACHE_DISABLE){
                        $this-&gt;debug(3, &quot;Browser cache is disabled so setting non-caching headers.&quot;);
                        header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
                        header(&quot;Pragma: no-cache&quot;);
                        header('Expires: ' . gmdate ('D, d M Y H:i:s', time()));
                } else {
                        $this-&gt;debug(3, &quot;Browser caching is enabled&quot;);
                        header('Cache-Control: max-age=' . BROWSER_CACHE_MAX_AGE . ', must-revalidate');
                        header('Expires: ' . $gmdate_expires);
                }
                return true;
        }
        protected function securityChecks(){
        }
        protected function param($property, $default = ''){
                if (isset ($_GET[$property])) {
                        return $_GET[$property];
                } else {
                        return $default;
                }
        }
        protected function openImage($mimeType, $src){
                switch ($mimeType) {
                        case 'image/jpg': //This isn't a valid mime type so we should probably remove it
                        case 'image/jpeg':
                                $image = imagecreatefromjpeg ($src);
                                break;

                        case 'image/png':
                                $image = imagecreatefrompng ($src);
                                break;

                        case 'image/gif':
                                $image = imagecreatefromgif ($src);
                                break;
                }

                return $image;
        }
        protected function getIP(){
                $rem = @$_SERVER[&quot;REMOTE_ADDR&quot;];
                $ff = @$_SERVER[&quot;HTTP_X_FORWARDED_FOR&quot;];
                $ci = @$_SERVER[&quot;HTTP_CLIENT_IP&quot;];
                if(preg_match('/^(?:192\.168|172\.16|10\.|127\.)/', $rem)){
                        if($ff){ return $ff; }
                        if($ci){ return $ci; }
                        return $rem;
                } else {
                        if($rem){ return $rem; }
                        if($ff){ return $ff; }
                        if($ci){ return $ci; }
                        return &quot;UNKNOWN&quot;;
                }
        }
        protected function debug($level, $msg){
                if(DEBUG_ON &amp;&amp; $level &lt;= DEBUG_LEVEL){
                        $execTime = sprintf('%.6f', microtime(true) - $this-&gt;startTime);
                        $tick = sprintf('%.6f', 0);
                        if($this-&gt;lastBenchTime &gt; 0){
                                $tick = sprintf('%.6f', microtime(true) - $this-&gt;lastBenchTime);
                        }
                        $this-&gt;lastBenchTime = microtime(true);
                        error_log(&quot;TimThumb Debug line &quot; . __LINE__ . &quot; [$execTime : $tick]: $msg&quot;);
                }
        }
        protected function sanityFail($msg){
                return $this-&gt;error(&quot;There is a problem in the timthumb code. Message: Please report this error at &lt;a href='http://code.google.com/p/timthumb/issues/list'&gt;timthumb's bug tracking page&lt;/a&gt;: $msg&quot;);
        }
        protected function getMimeType($file){
                $info = getimagesize($file);
                if(is_array($info) &amp;&amp; $info['mime']){
                        return $info['mime'];
                }
                return '';
        }
        protected function setMemoryLimit(){
                $inimem = ini_get('memory_limit');
                $inibytes = timthumb::returnBytes($inimem);
                $ourbytes = timthumb::returnBytes(MEMORY_LIMIT);
                if($inibytes &lt; $ourbytes){
                        ini_set ('memory_limit', MEMORY_LIMIT);
                        $this-&gt;debug(3, &quot;Increased memory from $inimem to &quot; . MEMORY_LIMIT);
                } else {
                        $this-&gt;debug(3, &quot;Not adjusting memory size because the current setting is &quot; . $inimem . &quot; and our size of &quot; . MEMORY_LIMIT . &quot; is smaller.&quot;);
                }
        }
        protected static function returnBytes($size_str){
                switch (substr ($size_str, -1))
                {
                        case 'M': case 'm': return (int)$size_str * 1048576;
                        case 'K': case 'k': return (int)$size_str * 1024;
                        case 'G': case 'g': return (int)$size_str * 1073741824;
                        default: return $size_str;
                }
        }
        protected function getURL($url, $tempfile){
                $this-&gt;lastURLError = false;
                $url = preg_replace('/ /', '%20', $url);
                if(function_exists('curl_init')){
                        $this-&gt;debug(3, &quot;Curl is installed so using it to fetch URL.&quot;);
                        self::$curlFH = fopen($tempfile, 'w');
                        if(! self::$curlFH){
                                $this-&gt;error(&quot;Could not open $tempfile for writing.&quot;);
                                return false;
                        }
                        self::$curlDataWritten = 0;
                        $this-&gt;debug(3, &quot;Fetching url with curl: $url&quot;);
                        $curl = curl_init($url);
                        curl_setopt ($curl, CURLOPT_TIMEOUT, CURL_TIMEOUT);
                        curl_setopt ($curl, CURLOPT_USERAGENT, &quot;Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30&quot;);
                        curl_setopt ($curl, CURLOPT_RETURNTRANSFER, TRUE);
                        curl_setopt ($curl, CURLOPT_HEADER, 0);
                        curl_setopt ($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
                        curl_setopt ($curl, CURLOPT_WRITEFUNCTION, 'timthumb::curlWrite');
                        @curl_setopt ($curl, CURLOPT_FOLLOWLOCATION, true);
                        @curl_setopt ($curl, CURLOPT_MAXREDIRS, 10);

                        $curlResult = curl_exec($curl);
                        fclose(self::$curlFH);
                        $httpStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE);
                        if($httpStatus == 404){
                                $this-&gt;set404();
                        }
                        if($curlResult){
                                curl_close($curl);
                                return true;
                        } else {
                                $this-&gt;lastURLError = curl_error($curl);
                                curl_close($curl);
                                return false;
                        }
                } else {
                        $img = @file_get_contents ($url);
                        if($img === false){
                                $err = error_get_last();
                                if(is_array($err) &amp;&amp; $err['message']){
                                        $this-&gt;lastURLError = $err['message'];
                                } else {
                                        $this-&gt;lastURLError = $err;
                                }
                                if(preg_match('/404/', $this-&gt;lastURLError)){
                                        $this-&gt;set404();
                                }

                                return false;
                        }
                        if(! file_put_contents($tempfile, $img)){
                                $this-&gt;error(&quot;Could not write to $tempfile.&quot;);
                                return false;
                        }
                        return true;
                }

        }
        protected function serveImg($file){
                $s = getimagesize($file);
                if(! ($s &amp;&amp; $s['mime'])){
                        return false;
                }
                header ('Content-Type: ' . $s['mime']);
                header ('Content-Length: ' . filesize($file) );
                header ('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
                header (&quot;Pragma: no-cache&quot;);
                $bytes = @readfile($file);
                if($bytes &gt; 0){
                        return true;
                }
                $content = @file_get_contents ($file);
                if ($content != FALSE){
                        echo $content;
                        return true;
                }
                return false;

        }
        protected function set404(){
                $this-&gt;is404 = true;
        }
        protected function is404(){
                return $this-&gt;is404;
        }
}
?&gt;</code></pre>
<p>Note that the above code has been slightly altered to point to Thesis’ cache folder within <code>custom/</code>. Other than that, it is an unmodified TimThumb 2.8 block of code.</p>
<p>Or download the above as a file: <a href='http://rickbeckman.org/wp-content/uploads/2011/08/thumb.php_.zip'>thumb.php Upgrade for Thesis</a>. Unzip it, then upload it via <abbr title="file transfer protocol">FTP</abbr> to your Thesis’ <code>lib/scripts/</code> folder, overwriting the original <code>thumb.php</code> file.</p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/update-timthumb-to-keep-your-thesis-site-secure/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/update-timthumb-to-keep-your-thesis-site-secure/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/how-to-update-your-wordpress-permalinks-without-causing-link-rot/' rel='bookmark' title='How to Update Your WordPress Permalinks Without Causing Link Rot'>How to Update Your WordPress Permalinks Without Causing Link Rot</a></li>
<li><a href='http://www.rickbeckman.org/brief-personal-update/' rel='bookmark' title='Brief Personal Update'>Brief Personal Update</a></li>
<li><a href='http://www.rickbeckman.org/how-to-keep-your-visitors-on-your-site-longer-by-opening-commenter-links-in-new-windows/' rel='bookmark' title='How to Keep Your Visitors on Your Site Longer by Opening Commenter Links in New Windows'>How to Keep Your Visitors on Your Site Longer by Opening Commenter Links in New Windows</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/update-timthumb-to-keep-your-thesis-site-secure/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Walmart.com’s Wondrously Compactable Dr. Pepper</title>
		<link>http://www.rickbeckman.org/walmart-coms-wondrously-compactable-dr-pepper/</link>
		<comments>http://www.rickbeckman.org/walmart-coms-wondrously-compactable-dr-pepper/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 03:56:58 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2022</guid>
		<description><![CDATA[I’m trying to cut down on caffeine (an endeavor i’ve tried &#38; failed before). So far, I’m really liking Sierra Mist Natural, but I was curious about which other sodas were caffeine-free as well. A search for Dr. Pepper led me to Walmart.com, mostly out of surprise that food items were listed there. The Walmart.com [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I’m trying to cut down on caffeine (an endeavor i’ve tried &amp; failed before). So far, I’m really liking Sierra Mist Natural, but I was curious about which other sodas were caffeine-free as well. A search for Dr. Pepper led me to Walmart.com, mostly out of surprise that food items were listed there.</p>
<p>The <a href="http://www.walmart.com/ip/Dr-Pepper-Caffeine-Free-12-Oz-Cool-Pack-Soda-12-pk/10452499">Walmart.com listing for Dr. Pepper Caffeine Free 12 packs</a> contains this, which caught my eye:</p>
<p><img class="aligncenter size-full wp-image-2023" title="Walmart.com Dr. Pepper Listing" src="http://rickbeckman.org/wp-content/uploads/2011/08/Screen-Shot-2011-08-24-at-11.45.24-PM.png" alt="" width="447" height="296" /></p>
<p>Now, I confess I’m not up on the latest shipping technologies, but unless they have discovered <a href="http://en.wikipedia.org/wiki/Hammerspace">Hammerspace</a>, I question their ability to squeeze a 12-pack case of pop into a 1.861 cubic inch space, the weight of which is only 1.23 pounds.</p>
<p>Now, it’s just speculation on my part, but I’d say somebody at Walmart.com really likes the number 1.23.</p>
<p>Silly… pointless… But there you go.</p>
<p><small>Disclaimer: I work at a brick-and-mortar Walmart.</small></p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/walmart-coms-wondrously-compactable-dr-pepper/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/walmart-coms-wondrously-compactable-dr-pepper/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/walmart-coms-wondrously-compactable-dr-pepper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleverbot on “Twilight” and “Star Trek”</title>
		<link>http://www.rickbeckman.org/cleverbot-on-%e2%80%9ctwilight%e2%80%9d-and-%e2%80%9cstar-trek%e2%80%9d/</link>
		<comments>http://www.rickbeckman.org/cleverbot-on-%e2%80%9ctwilight%e2%80%9d-and-%e2%80%9cstar-trek%e2%80%9d/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 01:34:25 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2012</guid>
		<description><![CDATA[I asked Cleverbot, the popular artificial intelligence chat bot, whether it liked “Twilight.” It responded in the best way I could have imagined: “I don’t like robots.” As a long time science-fiction fan, however, I have to stick up for robots: Most of them have far more personality than the character of Bella Swan. Incidentally, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I asked Cleverbot, the <a href="http://cleverbot.com/">popular artificial intelligence chat bot</a>, whether it liked “Twilight.” It responded in the best way I could have imagined: “I don’t like robots.”</p>
<p>As a long time science-fiction fan, however, I have to stick up for robots: Most of them have far more personality than the character of Bella Swan.</p>
<p>Incidentally, I then went on to ask whether Cleverbot liked “Star Trek.” When Cleverbot responded negatively, I asked why.</p>
<p>“Because I don’t believe in Jesus.”</p>
<p><em>Fascinating.</em></p>
<p><img class="aligncenter size-full wp-image-2017" title="Cleverbot on movies" src="http://rickbeckman.org/wp-content/uploads/2011/08/Screen-Shot-2011-08-23-at-9.31.45-PM.png" alt="Cleverbot chat screen shot" width="420" height="523" /></p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/cleverbot-on-%e2%80%9ctwilight%e2%80%9d-and-%e2%80%9cstar-trek%e2%80%9d/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/cleverbot-on-%e2%80%9ctwilight%e2%80%9d-and-%e2%80%9cstar-trek%e2%80%9d/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/the-hype-of-star-wars/' rel='bookmark' title='The Hype of Star Wars'>The Hype of Star Wars</a></li>
<li><a href='http://www.rickbeckman.org/top-ten-reasons-why-star-wars-characters-are-better/' rel='bookmark' title='Top Ten Reasons Why Star Wars Characters Are Better'>Top Ten Reasons Why Star Wars Characters Are Better</a></li>
<li><a href='http://www.rickbeckman.org/star-wars-the-clone-wars/' rel='bookmark' title='Star Wars: The Clone Wars'>Star Wars: The Clone Wars</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/cleverbot-on-%e2%80%9ctwilight%e2%80%9d-and-%e2%80%9cstar-trek%e2%80%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Walking with Jesus in America</title>
		<link>http://www.rickbeckman.org/walking-with-jesus-in-america/</link>
		<comments>http://www.rickbeckman.org/walking-with-jesus-in-america/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 16:16:55 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2002</guid>
		<description><![CDATA[Seen on Facebook moments ago, this kind of stuff really annoys me. I don’t care how devout a Christian you are, nobody is ever raised to “walk with Jesus,” at least not in American Christianity. What we know of the Jesus of the Bible is that he didn’t spend his Sundays in a church with [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="aligncenter size-large wp-image-2004" title="Facebook Walking with Jesus" src="http://rickbeckman.org/wp-content/uploads/2011/08/Screen-Shot-2011-08-21-at-11.07.05-AM-500x156.png" alt="screenshot of a Facebook status" width="500" height="156" /></p>
<p>Seen on Facebook moments ago, this kind of stuff really annoys me.</p>
<p>I don’t care how devout a Christian you are, nobody is ever raised to “walk with Jesus,” at least not in American Christianity.</p>
<p>What we know of the Jesus of the Bible is that he didn’t spend his Sundays in a church with folks just like him. He didn’t expect his followers to do that either.</p>
<p>He didn’t live at home, he all but ignored his family in deference to his religious work, he got pissy when an out-of-season tree wasn’t bearing fruit for him, he hung out with the most questionable crowds, and he added more booze to a party that has already drank til the last drop once.</p>
<p>Raised to “walk with Jesus”? Hardly. Raised to “walk with Paul”? That’s a little more probable, but even he suffered hallucinations and was so in-your-face with what he taught that he was chased out of towns with stones.</p>
<p>I wonder if either Jesus or Paul would have traded how they lived for a life in America, where six days a week nobody gives a flying duck whether or not you’re a Christian, so long as you’re in a cushioned, air-conditioned, finely tuned worship service on Sunday morning.</p>
<p>Image transcription:</p>
<blockquote><p>User 1: Jill is getting baptized this morning…so proud of the young lady she is becoming. Looking forward to services today.<br />
User 2: Have a wonderful day!<br />
User 3: I’m sure you have much to be proud of! You’ve raised four girls to walk with Jesus!!</p></blockquote>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/walking-with-jesus-in-america/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/walking-with-jesus-in-america/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/hope-for-america/' rel='bookmark' title='Hope for America?'>Hope for America?</a></li>
<li><a href='http://www.rickbeckman.org/i-want-to-be-invested-in-america/' rel='bookmark' title='I Want to Be Invested in America'>I Want to Be Invested in America</a></li>
<li><a href='http://www.rickbeckman.org/americas-condemnation-codified-by-president-obama/' rel='bookmark' title='America’s Condemnation Codified by President Obama'>America’s Condemnation Codified by President Obama</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/walking-with-jesus-in-america/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bachmann’s Cheap Promise…</title>
		<link>http://www.rickbeckman.org/bachmanns-cheap-promise/</link>
		<comments>http://www.rickbeckman.org/bachmanns-cheap-promise/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 03:38:42 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=2000</guid>
		<description><![CDATA[When you’re a batshit crazy presidential candidate, appealing to the intelligence of the masses isn’t quite an option. Appealing to their greed, however, is a different story. Here’s hoping the conservative voters will ignore greed while listening to Michele Bachmann, who promises $2 per gallon gasoline under her leadership. (Sounds good, right? But did I [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>When you’re a batshit crazy presidential candidate, appealing to the intelligence of the masses isn’t quite an option. <a href="http://www.leftlanenews.com/presidential-candidate-michele-bachmann-promises-2-gas.html">Appealing to their greed</a>, however, is a different story.</p>
<p>Here’s hoping the conservative voters will ignore greed while listening to Michele Bachmann, who promises $2 per gallon gasoline under her leadership. (Sounds good, right? But did I mention she is <a href="http://politicalhumor.about.com/od/republicans/a/michele-bachmann-quotes.htm">batshit crazy</a>?)</p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/bachmanns-cheap-promise/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/bachmanns-cheap-promise/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/more-to-come-i-promise/' rel='bookmark' title='More to Come… I Promise!'>More to Come… I Promise!</a></li>
<li><a href='http://www.rickbeckman.org/its-a-sad-day-when-even-lego-goes-cheap/' rel='bookmark' title='It’s a Sad Day When Even LEGO Goes Cheap…'>It’s a Sad Day When Even LEGO Goes Cheap…</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/bachmanns-cheap-promise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convenience is Killing Us</title>
		<link>http://www.rickbeckman.org/convenience-is-killing-us/</link>
		<comments>http://www.rickbeckman.org/convenience-is-killing-us/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 03:25:38 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=1998</guid>
		<description><![CDATA[Convenience is going to be the death of our way of life. Transcription of image text: It’s pretty amazing that our society has reached a point where the effort necessary to extract oil from the ground, ship it to a refinery, turn it into plastic, shape it appropriately, truck it to a store, buy it, [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Convenience is going to be the death of our way of life.</p>
<p><img src="http://shredsomething.files.wordpress.com/2010/01/tumblr_kuzlmgcsal1qz5stso1_500.jpg?w=468&amp;h=428" alt="plastic spoon" /></p>
<p>Transcription of image text:</p>
<blockquote><p>It’s pretty amazing that our society has reached a point where the effort necessary to extract oil from the ground, ship it to a refinery, turn it into plastic, shape it appropriately, truck it to a store, buy it, and bring it home is considered to be less effort than what it takes to just wash the spoon when  you’re done with it.</p></blockquote>
<p>Via <a href="http://shredsomething.wordpress.com/">shredsomething</a>.</p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/convenience-is-killing-us/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/convenience-is-killing-us/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/more-bittersweet-changes-at-work/' rel='bookmark' title='More Bittersweet Changes at Work'>More Bittersweet Changes at Work</a></li>
<li><a href='http://www.rickbeckman.org/the-plunge/' rel='bookmark' title='“The Plunge”'>“The Plunge”</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/convenience-is-killing-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where Are the Peacemakers?</title>
		<link>http://www.rickbeckman.org/where-are-the-peacemakers/</link>
		<comments>http://www.rickbeckman.org/where-are-the-peacemakers/#comments</comments>
		<pubDate>Sat, 20 Aug 2011 03:54:45 +0000</pubDate>
		<dc:creator>Rick Beckman</dc:creator>
				<category><![CDATA[Journal]]></category>

		<guid isPermaLink="false">http://rickbeckman.org/?p=1995</guid>
		<description><![CDATA[I realize that by acknowledging and especially by writing about this, i’m basically saying i should get off my ass for this… But i would be remiss if i didn’t say what was on my mind. As I write this, the United States is involved in ten distinct military conflicts (although several of those are [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I realize that by acknowledging and especially by writing about this, i’m basically saying i should get off my ass for this… But i would be remiss if i didn’t say what was on my mind.</p>
<p>As I write this, the United States is involved in <a href="http://en.wikipedia.org/wiki/List_of_wars_involving_the_United_States">ten distinct military conflicts</a> (although several of those are part of the larger War on Terror).</p>
<p><em>Ten.</em></p>
<p>Several of those conflicts are nearly ten years old, and one of them began as recently as five months ago.</p>
<p>I’m not up on current news — Netflix doesn’t give me the news, nor do I take the paper — but it seems as though most people I know — including myself — have accepted these wars as status quo.</p>
<p>Hell, i had never even heard of Operation Odyssey Dawn, but it’s been underway since March, never mind the War on Terror, which is twice as old as our kindergartener.</p>
<p>But where are the peace protesters? Where is the anti-war movement? Where are the Dr. King’s &amp; Ghandis of this generation?</p>
<p>I know my circle of influence is smallish, but i don’t recall war even being a topic of conversation for at least a couple of years now.</p>
<p>Have we learned to ignore it? Or have we been conditioned to accept it as necessary?</p>
<p>As normal?</p>
<p>I take back what I said about not recently hearing any war conversation; that’s not entirely true. I have heard folks condemn the <a href="http://original.antiwar.com/justin/2010/07/30/why-we-need-wikileaks/">antiwar</a> <a href="http://wikileaks.org/">Wikileaks</a> rather vehemently.</p>
<p>Our streets are not lined with propaganda posters, so how has this predominately Christian nation so thoroughly accepted the ongoing conflicts with nary a whisper of offense?</p>
<p>People are dying, and we concern ourselves with homosexuality, economics, abortion, the rights and limits of government, and so forth.</p>
<p>People. <big>Are. <big>Dying.</big></big></p>
<p>On the list of priorities, that seems like it should be right there at the top. End the wars. Now.</p>
<p>Consider this: By my estimate, the United States has enjoyed only around twenty-one years of peace. <em>Twenty-one.</em></p>
<p>America has been at peace for less than ten percent of its history.</p>
<p>Maybe war &amp; conflict is status quo after all.</p>
<p>Blessed are the peacemakers…</p>
<p>Comments are open; <strong><a href="http://www.rickbeckman.org/where-are-the-peacemakers/#respond">add yours</a>!</strong></p><div style="text-align: center;"><p><small>Copyright © 2011, Rick Beckman. <a href="http://rickbeckman.org/license/">Some rights reserved</a>. <a href="http://www.rickbeckman.org/where-are-the-peacemakers/">Originally posted</a> at <a href="http://rickbeckman.org/">BrazenlyGeek</a>.</small></p><p><a href="http://get-thesis.com/" rel="nofollow"><img src="http://www.rickbeckman.org/wp-content/themes/thesis/custom/images/thesis-468x15.jpg" title="Get Thesis, the Worlds Most Advanced WordPress Theme" alt="Thesis: A search engine optimized WordPress theme with options galore for serious online publishers." /></a></p></div><big><p>You may also enjoy…</big></p><ul>
<li><a href='http://www.rickbeckman.org/the-stage-is-set/' rel='bookmark' title='The Stage Is Set?'>The Stage Is Set?</a></li>
<li><a href='http://www.rickbeckman.org/peace-begins-with-a-smile/' rel='bookmark' title='Peace Begins with a Smile'>Peace Begins with a Smile</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.rickbeckman.org/where-are-the-peacemakers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

