<?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/"
	>

<channel>
	<title>Elliott C. Back</title>
	<atom:link href="http://elliottback.com/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://elliottback.com/wp</link>
	<description>&#60;3 Wendy Bug</description>
	<pubDate>Mon, 29 Jun 2009 21:05:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gizmodo&#8217;s Ad-Filled RSS Feed</title>
		<link>http://elliottback.com/wp/gizmodos-ad-filled-rss-feed/</link>
		<comments>http://elliottback.com/wp/gizmodos-ad-filled-rss-feed/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 21:08:33 +0000</pubDate>
		<dc:creator>Elliott Back</dc:creator>
		
		<category><![CDATA[Adsense]]></category>

		<category><![CDATA[Blogging]]></category>

		<guid isPermaLink="false">http://elliottback.com/wp/?p=3169</guid>
		<description><![CDATA[I&#8217;m not a very big fan of Gizmodo, but I found their RSS feed interesting today.  Check out the attached photo, which highlights four ad units nicely clustered at the bottom of every post.  They&#8217;ve got two text ads (one from Pheedo, one from Google) and two Google Image/Video blocks:

I have mixed feelings [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not a very <a href="http://elliottback.com/wp/gizmodo-sucks-loses-credibility/">big fan of Gizmodo</a>, but I found their RSS feed interesting today.  Check out the attached photo, which highlights four ad units nicely clustered at the bottom of every post.  They&#8217;ve got two text ads (one from Pheedo, one from Google) and two Google Image/Video blocks:</p>
<p><a href="http://elliottback.com/wp/wp-content/uploads/2009/06/gizmodo-rss-ads.jpg"><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/gizmodo-rss-ads-450x493.jpg" alt="gizmodo-rss-ads" title="gizmodo-rss-ads" width="450" height="493" class="alignnone size-thumbnail wp-image-3170" /></a></p>
<p>I have mixed feelings about this.  One the one hand, that&#8217;s a lot of ads.  On the other hand, they&#8217;re tasteful and all clustered together so that you&#8217;re clear they are ads.  They are compact, and don&#8217;t interrupt readers who are reading the feed.  So in some sense, they&#8217;re an excellent example of how to do RSS feed advertising.</p>
]]></content:encoded>
			<wfw:commentRss>http://elliottback.com/wp/gizmodos-ad-filled-rss-feed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Windows 7 Preorder Coupon Sale!</title>
		<link>http://elliottback.com/wp/windows-7-preorder-coupon-sale/</link>
		<comments>http://elliottback.com/wp/windows-7-preorder-coupon-sale/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 23:11:26 +0000</pubDate>
		<dc:creator>Elliott Back</dc:creator>
		
		<category><![CDATA[Amazon]]></category>

		<category><![CDATA[Deals & Savings]]></category>

		<category><![CDATA[Microsoft]]></category>

		<category><![CDATA[Windows]]></category>

		<category><![CDATA[Windows Vista]]></category>

		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://elliottback.com/wp/?p=3166</guid>
		<description><![CDATA[I just preordered Microsoft Windows 7 Home on Amazon, because right now it&#8217;s over 50% off.  For just $49.99 (58% savings) you will get it delivered to your door on the official release date of October 22, 2009 (if you&#8217;re a PRIME member, which I am).

Microsoft Windows 7 Home Premium Upgrade

Microsoft Windows 7 Professional [...]]]></description>
			<content:encoded><![CDATA[<p>I just preordered Microsoft Windows 7 Home on Amazon, because right now it&#8217;s over 50% off.  For just $49.99 (58% savings) you will get it delivered to your door on the official release date of October 22, 2009 (if you&#8217;re a PRIME member, which I am).</p>
<div style="float:left; width:150px; padding-left: 75px;"><a href="http://www.amazon.com/gp/product/B002DHLUWK?ie=UTF8&#038;tag=elliottback-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B002DHLUWK"><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/41rbugsn3ol_sl160_.jpg" alt="41rbugsn3ol_sl160_" title="41rbugsn3ol_sl160_" width="128" height="160" class="alignnone size-full wp-image-3168" /></a><br />
<a href="http://www.amazon.com/gp/product/B002DHLUWK?ie=UTF8&#038;tag=elliottback-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B002DHLUWK">Microsoft Windows 7 Home Premium Upgrade</a></div>
<div style="float:left; width:150px;"><a href="http://www.amazon.com/gp/product/B002DHGM50?ie=UTF8&#038;tag=elliottback-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B002DHGM50"><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/41oyhfzrtvl_sl160_.jpg" alt="41oyhfzrtvl_sl160_" title="41oyhfzrtvl_sl160_" width="128" height="160" class="alignnone size-full wp-image-3167" /></a><br />
<a href="http://www.amazon.com/gp/product/B002DHGM50?ie=UTF8&#038;tag=elliottback-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B002DHGM50">Microsoft Windows 7 Professional Upgrade</a></div>
<div style="clear:both;"></div>
<p>As fas as I can tell, the only difference between Home Premium and Professional is that you don&#8217;t get their virtualization for XP software support (which is probably like VMWare Fusion on the Mac), no automatic backup features, and it&#8217;s missing some enterprise Active Directory thing called &#8220;Domain Join&#8221; that I doubt I&#8217;d ever use.  So I&#8217;m not paying any $ for that.  </p>
<p>One advantage I&#8217;ll get out of this is the ability to (a) run DX10 for the latest games, and (b) 64bit support, so finally I can run all 4 GB of RAM properly without PAE and any other proprietary crap.  Right now my 4GB only shows up as about 3.4 anyway.  Also, SSD support is much better in Windows 7, from what I&#8217;ve read.  So my Intel X25-M will continue to serve me well!</p>
]]></content:encoded>
			<wfw:commentRss>http://elliottback.com/wp/windows-7-preorder-coupon-sale/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WP SuperCache .htaccess mod_rewrite rules for Blogs in Subdomains/Subdirectories</title>
		<link>http://elliottback.com/wp/wp-supercache-htaccess/</link>
		<comments>http://elliottback.com/wp/wp-supercache-htaccess/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 02:00:59 +0000</pubDate>
		<dc:creator>Elliott Back</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<category><![CDATA[Mod_Rewrite]]></category>

		<category><![CDATA[WP]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://elliottback.com/wp/?p=3165</guid>
		<description><![CDATA[I have a unique problem, which is that I have installed my wordpress to a subdirectory, and symlinked httpdocs from several subdomains to that directory.  The structure looks like this:
httpdocs/wp/ -&#62; WP Install
subdomains/gadgets/httpdocs/ -&#62; /elliottback.com/httpdocs/wp/
subdomains/books/httpdocs/ -&#62; /elliottback.com/httpdocs/wp/
This means that from my domain, we&#8217;re always sticking an extra /wp onto things, but from the subdomains, [...]]]></description>
			<content:encoded><![CDATA[<p>I have a unique problem, which is that I have installed my wordpress to a subdirectory, and symlinked <strong>httpdocs</strong> from several subdomains to that directory.  The structure looks like this:</p>
<blockquote><p>httpdocs/wp/ -&gt; WP Install<br />
subdomains/gadgets/httpdocs/ -&gt; /elliottback.com/httpdocs/wp/<br />
subdomains/books/httpdocs/ -&gt; /elliottback.com/httpdocs/wp/</p></blockquote>
<p>This means that from my domain, we&#8217;re always sticking an extra /wp onto things, but from the subdomains, they go directly into the wp-content directories from the root , in both relative and absolute sense.  I consolidated my subdomains this way so that I could run a single WP install and maintain them together.  Here&#8217;s the .htaccess file that lets WP Super Cache work on either of them:</p>
<pre class="brush:apache"># BEGIN WPSuperCache
&lt;ifmodule mod_rewrite.c&gt;
RewriteEngine On
AddDefaultCharset UTF-8
RewriteBase /
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_URI} ^(/wp)?/
RewriteCond %{DOCUMENT_ROOT}%1/wp-content/cache/supercache/%{HTTP_HOST}/%1/$1/index.html.gz -f
RewriteRule ^(.*) %1/wp-content/cache/supercache/%{HTTP_HOST}/%1/$1/index.html.gz [L]

RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{REQUEST_URI} ^(/wp)?/
RewriteCond %{DOCUMENT_ROOT}%1/wp-content/cache/supercache/%{HTTP_HOST}%1/$1/index.html -f
RewriteRule ^(.*) %1/wp-content/cache/supercache/%{HTTP_HOST}%1/$1/index.html [L]
&lt;/ifmodule&gt;
# END WPSuperCache</pre>
<p>Let me know what you think&#8211;performance stats show that it&#8217;s working fine for both the /wp subdirectory and the other subdomains!</p>
]]></content:encoded>
			<wfw:commentRss>http://elliottback.com/wp/wp-supercache-htaccess/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Staten Island Film Festival 2009</title>
		<link>http://elliottback.com/wp/staten-island-film-festival-2009/</link>
		<comments>http://elliottback.com/wp/staten-island-film-festival-2009/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 06:08:44 +0000</pubDate>
		<dc:creator>Elliott Back</dc:creator>
		
		<category><![CDATA[Movies]]></category>

		<category><![CDATA[NYC]]></category>

		<guid isPermaLink="false">http://elliottback.com/wp/?p=3144</guid>
		<description><![CDATA[I went to the Staten Island Film Festival today to watch Block Three: Love Is Hard To Find (1 hr 28 min).  I saw the following films:
Love Bombing (7 minutes)
Director: Philip Lepherd

Four friends discuss the cult recruitment technique of &#8216;Love Bombing&#8217;. Three of them seem to know an awful lot about it. Is it [...]]]></description>
			<content:encoded><![CDATA[<p>I went to the <a href="http://www.sifilmfestival.org/">Staten Island Film Festival</a> today to watch Block Three: Love Is Hard To Find (1 hr 28 min).  I saw the following films:</p>
<p><strong><a href="http://www.imdb.com/title/tt1311656/">Love Bombing (7 minutes)</a></strong><br />
<small>Director: Philip Lepherd</small></p>
<p><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/love-bombing.jpg" alt="love-bombing" title="love-bombing" width="450" height="253" class="alignnone size-full wp-image-3146" /></p>
<blockquote><p>Four friends discuss the cult recruitment technique of &#8216;Love Bombing&#8217;. Three of them seem to know an awful lot about it. Is it possible they&#8217;ve tried the technique before?</p></blockquote>
<p>I thought this film was absolutely a blast, from the brilliantly sharp production quality and cinemetography, to the lovely accents and crisp dialog.  It&#8217;s a great short film on the concept of <a href="http://en.wikipedia.org/wiki/Love_bombing">Love Bombing</a>, a process cults use to attract new blood.  Check out the trailer on IMDB, too, it&#8217;ll give you some sense of it.</p>
<p><strong><a href="http://www.imdb.com/title/tt1344648/">Number Nine (26 minutes)</a></strong><br />
Director: Brendan Ferrer</p>
<p><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/number-9.jpg" alt="number-9" title="number-9" width="208" height="117" class="alignnone size-full wp-image-3148" /></p>
<blockquote><p>Set in an underwear factory called Material World Garments, Number Nine tells the story of Inspector #9, a meek briefs inspector who is color-blind. This could be the worst day of #9&#8217;s life, until he meets Miss #9, his equivalent in the brassier department.</p></blockquote>
<p>An excellent short film, Brendan&#8217;s choice to shoot in black-and-white perfectly matches the total colour-blindness of the protagonist.  The 35mm gives the film and old-style Three-Stooges feel (although Brendan said he was shooting for Chaplain).  At 26 minutes, it&#8217;s probably 6 minutes too long, but it rarely drags.</p>
<p><strong><a href="http://www.amazon.com/gp/product/B001D0F74K?ie=UTF8&#038;tag=elliottback-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B001D0F74K">Avatars (30 minutes)</a></strong><br />
Director: Michael Ofenheim</p>
<p><a href="http://www.amazon.com/gp/product/B001D0F74K?ie=UTF8&#038;tag=elliottback-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B001D0F74K"><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/avatars-450x450.jpg" alt="avatars" title="avatars" width="450" height="450" class="alignnone size-thumbnail wp-image-3149" /></a></p>
<blockquote><p>When Lisa catches her husband, Tyler, cheating on her in cyberspace, HotWetLinda turns the tables on TyMeUp.  And, when their avatars meet on a blind date, Lisa discovers that in real-life, two online wrongs CAN make a right.</p></blockquote>
<p>Although you can buy this movie on Amazon, I don&#8217;t recommend watching it.  From the start it drags&#8211;the cheating husband is so terrible an actor that you feel neither annoyed at him for being a bastard nor sorry for him for losing his love, but total apathy.  The mercilessly repeated punchline &#8220;So, do you have any Pot?&#8221; is Avatars only attempt at humour.  The plot itself is tripe, trying to weave together notions of solipsism and internet dating, with a touch of the implausible Nigerian 419 email scam.  I don&#8217;t know if the director&#8217;s brains were addled with pot himself when he did this&#8211;but it&#8217;s no good at all.</p>
<p><strong><a href="http://www.2095themovie.com/home.html">2095 (25 minutes)</a></strong><br />
Director: Troy Romeo</p>
<p><img src="http://elliottback.com/wp/wp-content/uploads/2009/06/2095-450x300.jpg" alt="2095" title="2095" width="450" height="300" class="alignnone size-thumbnail wp-image-3155" /></p>
<blockquote><p>A young man who falls in love with a woman he thinks is his female co-worker, discovers that his own computer may offer him more than any human ever could.</p></blockquote>
<p>There&#8217;s an <a href="http://www.silive.com/entertainment/tvfilm/index.ssf/2009/06/closeup_filmmaker_troy_romeo_o.html">interview here</a>.  As for the film, it was OK.  I felt that too much time and effort ($40,000 and 4 years, according to the director) were spent on the production, leaving the screenplay a bit spaghetti.  Its major flaw is that it spends most of the time focusing on the things that don&#8217;t matter, and then blitzes by the important developments in seconds.</p>
]]></content:encoded>
			<wfw:commentRss>http://elliottback.com/wp/staten-island-film-festival-2009/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Exclusive Single Process Mutex</title>
		<link>http://elliottback.com/wp/php-exclusive-single-process-mutex/</link>
		<comments>http://elliottback.com/wp/php-exclusive-single-process-mutex/#comments</comments>
		<pubDate>Sun, 31 May 2009 18:35:02 +0000</pubDate>
		<dc:creator>Elliott Back</dc:creator>
		
		<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://elliottback.com/wp/?p=3119</guid>
		<description><![CDATA[When running php via cron, there are certainly situations where you only want a single instance of the php file to be running at the same time.  Multiple processes shouldn&#8217;t be allowed.  For example, every 5 minutes, a process is launched to poll for weather updates, and publish them to Twitter.  If, [...]]]></description>
			<content:encoded><![CDATA[<p>When running php via cron, there are certainly situations where you only want a single instance of the php file to be running at the same time.  Multiple processes shouldn&#8217;t be allowed.  For example, every 5 minutes, a process is launched to poll for weather updates, and publish them to Twitter.  If, for some reason, this process takes more than 15m&#8211;because Twitter is very slow&#8211;I don&#8217;t want more to buildup.  At a rate of 12/hr, I would exhaust the number of MySQL connection on my box in a couple hours.</p>
<p>So, here&#8217;s the solution I used:</p>
<pre class="brush:php">
&lt;?php
class pid {
    protected $filename;
    protected $fp;
    public $already_running = false;
    function __construct() {
        $this-&gt;filename = dirname(__FILE__).'/'.basename($_SERVER['PHP_SELF']) . '.pid';
        $this-&gt;fp = fopen( $this-&gt;filename, 'w+ );

        if ( !flock( $this-&gt;fp, LOCK_EX + LOCK_NB ) )
        {
            echo "FAILED lock $this-&gt;filename\n";
            $this-&gt;already_running = true;
            fclose($this-&gt;fp);
        } else {
            echo "Acquired lock $this-&gt;filename\n";
        }
    }
    public function __destruct() {
        if( !$this-&gt;already_running )
        {
            echo "Releasing lock $this-&gt;filename\n";
            flock($this-&gt;fp, LOCK_UN);
            fclose($this-&gt;fp);
        }
    }
}
?&gt;
</pre>
<p>It works fine from command line, but for some reason, doesn&#8217;t work when invoked via Apache over the web.  But since I&#8217;m just using it for cron jobs, this is good enough for now.  If you know why FLOCK( LOCK_EX + LOCK_NB ) won&#8217;t work when invoked through Apache, let me know!!  I&#8217;m running PHP 5.2.6 (cli) and Apache/2.2.9 (Unix).</p>
]]></content:encoded>
			<wfw:commentRss>http://elliottback.com/wp/php-exclusive-single-process-mutex/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.365 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2009-07-02 23:47:26 -->
<!-- Compression = gzip -->