<?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>Hak5 - Technolust since 2005 &#187; Backstage</title>
	<atom:link href="http://www.hak5.org/category/backstage/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hak5.org</link>
	<description></description>
	<lastBuildDate>Wed, 18 Nov 2009 14:49:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Virginia Tech Live Show</title>
		<link>http://www.hak5.org/backstage/virginia-tech-live-show</link>
		<comments>http://www.hak5.org/backstage/virginia-tech-live-show#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:58:17 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1444</guid>
		<description><![CDATA[
Hak5 will be LIVE at Virginia Tech this Saturday, November 7th. Join us at 7:00 PM for the best of networking, hacking and homebrew and Q&#038;A. We&#8217;ll be in Torgersen 2150 on the Virginia Tech ...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hak5.org/wp-content/uploads/2009/11/vthak5.png" alt="vthak5" title="vthak5" width="450" height="224" class="alignleft size-full wp-image-1445" /></p>
<div style="clear:both;"></div>
<p>Hak5 will be LIVE at Virginia Tech this Saturday, November 7th. Join us at 7:00 PM for the best of networking, hacking and homebrew and Q&#038;A. We&#8217;ll be in <a href="http://www.vt.edu/where_we_are/maps/" target="_blank">Torgersen 2150</a> on the Virginia Tech campus in Blackburg, VA. Then later at 9:00 we&#8217;ll be for the first time experiencing Bar Golf, a VT tradition that we would love to see you at. So lock down your firewalls and get ready for some Technolust as Hak5 begins the campus invasion. See you there!</p>
<p><iframe width="565" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=201+Burruss+Hall,+blacksburg,+va&amp;sll=37.24926,-76.772661&amp;sspn=0.103986,0.222988&amp;ie=UTF8&amp;hq=Burruss+Hall&amp;hnear=Burruss+Hall,+Blacksburg,+VA+24060&amp;ll=37.229174,-80.423785&amp;spn=0.021322,0.038418&amp;output=embed"></iframe><br /><small><a href="http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=201+Burruss+Hall,+blacksburg,+va&amp;sll=37.24926,-76.772661&amp;sspn=0.103986,0.222988&amp;ie=UTF8&amp;hq=Burruss+Hall&amp;hnear=Burruss+Hall,+Blacksburg,+VA+24060&amp;ll=37.229174,-80.423785&amp;spn=0.021322,0.038418" style="color:#0000FF;text-align:left">View Larger Map</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/virginia-tech-live-show/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hak5 Labs</title>
		<link>http://www.hak5.org/backstage/hak5-labs</link>
		<comments>http://www.hak5.org/backstage/hak5-labs#comments</comments>
		<pubDate>Wed, 16 Sep 2009 13:04:13 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1401</guid>
		<description><![CDATA[Today I am pleased to announce Hak5 Labs, an effort to open source the show. Over the next few weeks we will be holding Hak5 Labs meetings with the goal of crowdsourcing content, open development ...]]></description>
			<content:encoded><![CDATA[<p>Today I am pleased to announce Hak5 Labs, an effort to open source the show. Over the next few weeks we will be holding Hak5 Labs meetings with the goal of crowdsourcing content, open development of large projects and group discussions on every aspect of Hak5 the show and the community.</p>
<p>The first meeting will be held on Monday, September 28th at 8:00 PM Eastern Time (-5 GMT) in our <a href="https://webmeeting.dimdim.com/portal/JoinForm.action?confKey=hak5">Dimdim meeting room</a>.</p>
<p>We&#8217;ll be broadcasting live via <a href="http://www.dimdim.com">Dimdim</a>, sharing segment ideas, answering questions and developing killer new projects.</p>
<p>We encourage you to join us for this first of many future Hak5 Lab events.</p>
<p>See you there!</p>
<p>See this post on <a href="http://hak5.org/forums/index.php?showtopic=14351">the forums</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/hak5-labs/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Happy 4th Birthday Hak5</title>
		<link>http://www.hak5.org/backstage/happy-4th-birthday-hak5</link>
		<comments>http://www.hak5.org/backstage/happy-4th-birthday-hak5#comments</comments>
		<pubDate>Thu, 06 Aug 2009 01:47:41 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1367</guid>
		<description><![CDATA[Has it really been 4 years? It seems like just yesterday I was pondering what it would take to put together a podcast. Would the built in mic on my mini-DV cam suffice, or should ...]]></description>
			<content:encoded><![CDATA[<p>Has it really been 4 years? It seems like just yesterday I was pondering what it would take to put together a podcast. Would the built in mic on my mini-DV cam suffice, or should I spend some money on a camera with a mic-in jack and some lavs. I don&#8217;t want to spend a lot though, it is just a podcast ya know?</p>
<p>Little did I know&#8230; Four years, tens of thousands in equipment, two mortgages, 10 terabytes of footage and 10 or so million downloads later Hak5 is kickin&#8217; stronger than ever &#8212; doing what we love when we&#8217;re not slaving 9-5.</p>
<p>This is a thank you to the fans and freaks who&#8217;ve supported us over the years. To everyone who has shook our hand at a hacker con, tipped a frosty one with us, <a href="http://www.hak5.org/store/">bought a t-shirt</a>, <a href="mailto:feedback@hak5.org">emailed</a>, posted in the <a href="http://www.hak5.org/forums/">forums</a>, <a href="http://www.twitter.com/hak5/">retweeted</a> and <a href="http://www.hak5.org/category/episodes">downloaded</a>.</p>
<p>And lets not forget everyone who&#8217;s sailed the USS Technolust, past and present. You are all insane for sacrificing your weekends to research, write and perform into the wee hours of the night.</p>
<p>And <a href="http://www.revision3.com">Revision3</a>, you&#8217;ve made us a better podcast. We&#8217;ve done more shows in the past year than the three before it combined. What a thrill teaming up with the 1st name in Internet television.</p>
<p>So to everyone, stay cool. Stay subscribed, and stay tuned for a nerdcore montage next week followed by the premiere of Season 6 on August 19th.</p>
<p>And if you&#8217;re in the area and want to meetup on August 15th at Busch Gardens Williamsburg we&#8217;d love to have ya. <a href="http://hak5meetup.squarespace.com">Check out the details</a>.</p>
<p>Here&#8217;s to four more fantastic years of Hak5!</p>
<p>&#8211;Darren</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/happy-4th-birthday-hak5/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>HakShop back online</title>
		<link>http://www.hak5.org/backstage/hakshop-back-online</link>
		<comments>http://www.hak5.org/backstage/hakshop-back-online#comments</comments>
		<pubDate>Sat, 04 Jul 2009 14:29:55 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1290</guid>
		<description><![CDATA[After nearly a week of downtime the HakShop is back online. Hooray!
On a personal note, I&#8217;m done playing with e-commerce packages for a while. Everything I&#8217;ve played with from ZenCart to Prestacart to Megento and ...]]></description>
			<content:encoded><![CDATA[<p>After nearly a week of downtime the <a href="http://www.hak5.org/store/">HakShop</a> is back online. Hooray!</p>
<p>On a personal note, I&#8217;m done playing with e-commerce packages for a while. Everything I&#8217;ve played with from ZenCart to Prestacart to Megento and many many more are all fine pieces of software with just one shortcoming or another.</p>
<p>The current store is the result of good ol&#8217; fashioned wordpress, html, css and a little bit of elbow grease. And until we get a dozen more items in, I&#8217;m fine with it.</p>
<p>Thanks for your patience, and your continued support!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/hakshop-back-online/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>HakShop will BRB</title>
		<link>http://www.hak5.org/backstage/hakshop-will-brb</link>
		<comments>http://www.hak5.org/backstage/hakshop-will-brb#comments</comments>
		<pubDate>Thu, 02 Jul 2009 22:05:36 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1189</guid>
		<description><![CDATA[Recent server config changes seem to have broken our already picky Wordpress based e-commerce plugin, Shopp. After spending quite some time trying to get it to work with the new configuration it was time to ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hak5.org/shop/"><img src="/images/prestafail.png" class="alignleft" border="0" /></a>Recent server config changes seem to have broken our already picky Wordpress based e-commerce plugin, <a href="http://shopplugin.net/">Shopp</a>. After spending quite some time trying to get it to work with the new configuration it was time to move on &#8212; which I was cool with since Shopp had failed me on a few issues before.</p>
<p>So yesterday I was up until 6am putting together the sweet new HakShop based on <a href="http://www.prestashop.com/">Prestashop</a>. I love how modern this package is. The back-end is really sweet too. Not too complicated but powerful enough to do what&#8217;s really important. Read: Make sure we don&#8217;t sell more than we have and charge the proper shipping rate for your country.</p>
<p>You can see what I&#8217;m talking about <a href="http://www.hak5.org/shop/">here</a>, but don&#8217;t check out &#8212; you won&#8217;t receive your goodies.</p>
<p>Anyway, lesson learned here is this<span id="more-1189"></span>: Don&#8217;t spend all night making a new system pretty before testing out the actual payment gateway bit. *sigh* There&#8217;s no real way to make Prestashop allow checkout without registering an account, and more importantly the paypal payment module is severely broken. Checkout only sorta works. Payment is processed by paypal but Prestashop doesn&#8217;t notice, leaving items in the cart. There are a bunch of other quirks too. I&#8217;ve searched high and low and it seems this is a show stopper. None of the community hacks and tweaks remedy the issue.</p>
<p>So my apologies on the HakShop downtime. I&#8217;ll be burning the midnight oil once again to bring it back online &#8212; hopefully much prettier and functional.</p>
<p>Cheers,<br />
Darren</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/hakshop-will-brb/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>White Box Server Contest</title>
		<link>http://www.hak5.org/backstage/white-box-server-contest</link>
		<comments>http://www.hak5.org/backstage/white-box-server-contest#comments</comments>
		<pubDate>Thu, 25 Jun 2009 00:39:32 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1175</guid>
		<description><![CDATA[ Spec out your ultimate $2000 white box server for an opportunity to win awesome swag from the hakshop including the last Hak5 shot-glass. Detail the parts and why you picked &#8216;em here and we&#8217;ll ...]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.hak5.org/wp-content/uploads/2009/06/intel-white-box-blade-150x150.jpg" alt="white-box" title="white-box" width="150" height="150" class="alignleft size-thumbnail wp-image-1177" /> Spec out your ultimate $2000 white box server for an opportunity to win awesome swag from the hakshop including the last Hak5 shot-glass. Detail the parts and why you picked &#8216;em here and we&#8217;ll pick a winner based on performance, value and creativity!</p>
<p>Make your entries in the <a href="http://hak5.org/forums/index.php?showtopic=13487&#038;st=0&#038;gopid=134952&#entry134952">5&#215;19 release thread</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/white-box-server-contest/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Photoshop Contest</title>
		<link>http://www.hak5.org/backstage/photoshop-contest</link>
		<comments>http://www.hak5.org/backstage/photoshop-contest#comments</comments>
		<pubDate>Wed, 10 Jun 2009 15:42:45 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1154</guid>
		<description><![CDATA[This week we&#8217;re doing a photoshop contest. The most creative caption or creation with this image wins cool swag from the hakshop.

Your creation should be submitted to the forums contest gallery.
]]></description>
			<content:encoded><![CDATA[<p>This week we&#8217;re doing a photoshop contest. The most creative caption or creation with this image wins cool swag from the <a href="http://www.hak5.org/hakshop/">hakshop</a>.</p>
<p><a href="http://www.flickr.com/photos/darrenkitchen/3607573368/" title="Paul is never gonna let you down by Darren Kitchen, on Flickr"><img src="http://farm4.static.flickr.com/3604/3607573368_444915fc02.jpg" width="500" height="333" alt="Paul is never gonna let you down" /></a></p>
<p>Your creation should be submitted to the <a href="http://hak5.org/forums/index.php?autocom=gallery&#038;req=sc&#038;cat=5">forums contest gallery</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/photoshop-contest/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Your LAN</title>
		<link>http://www.hak5.org/backstage/your-lan</link>
		<comments>http://www.hak5.org/backstage/your-lan#comments</comments>
		<pubDate>Wed, 20 May 2009 18:32:28 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1140</guid>
		<description><![CDATA[Think you&#8217;ve got a hardcore LAN? Show us! Our latest contest is all about mapping your *home* network.
Map your network using an online diagram application like Gliffy, Dia on Linux or jNetMap &#8212; a cross-platform ...]]></description>
			<content:encoded><![CDATA[<p><img src="http://hak5.org/forums/uploads/1242843724/med_gallery_2_5_86614.png"></p>
<p>Think you&#8217;ve got a hardcore LAN? Show us! Our latest contest is all about mapping your *home* network.</p>
<p>Map your network using an online diagram application like <a href="http://www.gliffy.com/">Gliffy</a>, <a href="http://projects.gnome.org/dia/">Dia</a> on Linux or <a href="http://www.rakudave.ch/?q=node/38">jNetMap</a> &#8212; a cross-platform network mapping app developed by Hak5 fan Rakudave!</p>
<p>Then submit your entries as an image and description over in the new Hak5 forums <a href="http://hak5.org/forums/index.php?autocom=gallery&#038;req=sc&#038;cat=5">Contest Submission gallery</a>.</p>
<p>Entries will be judges on network creativity. Feel free to be as detailed as you&#8217;d like. No business or university networks please. If you have a site to site VPN between home and office that&#8217;s cool but no need to map past the initial link.</p>
<p>Entries are due by Friday May 29th. The winning network will be featured on episode 516. The winner will receive some cozy Hak5 gear from the <a href="http://www.hak5.org/hakshop/">HakShop</a>.</p>
<p><img src="http://darrenkitchen.net/img/N0048.png"><br />
<i>HakHouse Network as mapped by jNetMap</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/your-lan/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>HakShop open for beta testing&#8230;.err&#8230;purchases</title>
		<link>http://www.hak5.org/backstage/hakshop-open-for-beta-testingerrpurchases</link>
		<comments>http://www.hak5.org/backstage/hakshop-open-for-beta-testingerrpurchases#comments</comments>
		<pubDate>Fri, 15 May 2009 05:44:54 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1123</guid>
		<description><![CDATA[As you all know I&#8217;ve been struggling with a few e-commerce platforms. Eventually I settled on the Shopp plugin for Wordpress. I really like how simple the system is. It&#8217;s just what I need (inventory ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hak5.org/hakshop/"><img src="/wp-content/uploads/2009/05/hakshop.png" style="float:left;"></a></p>
<p>As you all know I&#8217;ve been struggling with a few e-commerce platforms. Eventually I settled on the Shopp plugin for Wordpress. I really like how simple the system is. It&#8217;s just what I need (inventory management, weight rate shipping) and not what I don&#8217;t. Once I got past the first bug or two I really warmed up to it.</p>
<p>A big thanks to everyone who has offered their help setting this up and making recommendations. I still have zen-cart and oscommerce in the back of my mind if this doesn&#8217;t work out &#8212; but for now I&#8217;m giving this a go.</p>
<p>I&#8217;ve spent a few days getting intimately familiar with the code and hacking together the templates. I really like how well it integrates with the site. It&#8217;s not finished by any stretch of the imagination but I believe the core functionality is there.</p>
<p>I&#8217;m looking for feedback on the store. If you can offer any comments on usability, features, or otherwise please sound off in the comments. I&#8217;ll be continuing to add new stuff (user gallery, specifications, more products) as time goes on.</p>
<p>If all goes well over the next few days I&#8217;ll be sure to make a much better announcement for our grand opening. In the mean time, consider the <a href="http://www.hak5.org/hakshop">HakShop</a> open for beta testing.</p>
<p><a href="http://www.hak5.org/hakshop">www.hak5.org/hakshop</a> (Please report any bug to darren@hak5.org)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/hakshop-open-for-beta-testingerrpurchases/feed</wfw:commentRss>
		<slash:comments>65</slash:comments>
		</item>
		<item>
		<title>The HakShop won&#8217;t be making its debut today :(</title>
		<link>http://www.hak5.org/backstage/the-hakshop-wont-be-making-its-debut-today</link>
		<comments>http://www.hak5.org/backstage/the-hakshop-wont-be-making-its-debut-today#comments</comments>
		<pubDate>Wed, 06 May 2009 03:40:32 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=1106</guid>
		<description><![CDATA[After a frustrating day fighting with e-commerce code I must forfeit. I really wanted to have this online today but it doesn&#8217;t look like it&#8217;ll happen. If you&#8217;re reading this post after watching episode 512, ...]]></description>
			<content:encoded><![CDATA[<p>After a frustrating day fighting with e-commerce code I must forfeit. I really wanted to have this online today but it doesn&#8217;t look like it&#8217;ll happen. If you&#8217;re reading this post after watching episode 512, I&#8217;m sorry. Check back in a day or two. Maybe then this code and mysql will start to behave.</p>
<p>&#8211;Darren</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/the-hakshop-wont-be-making-its-debut-today/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Code Challenge</title>
		<link>http://www.hak5.org/backstage/code-challenge</link>
		<comments>http://www.hak5.org/backstage/code-challenge#comments</comments>
		<pubDate>Wed, 22 Apr 2009 15:27:48 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Backstage]]></category>

		<guid isPermaLink="false">http://www.hak5.org/?p=975</guid>
		<description><![CDATA[
The first Code Challenge for Hak5 Season 5 &#8212; the Gmail Procrastination Badge. What started as a tongue in cheek comment on twitter about needing to declare email bankruptcy lead to proof of concept Gmail ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.hak5.org/hak5/code-challenge/"><img src="/images/codechallenge.png" border="0"></a></p>
<div style="clear:both;"></div>
<p>The first Code Challenge for Hak5 Season 5 &#8212; the <b>Gmail Procrastination Badge</b>. What started as a tongue in cheek comment on twitter about needing to declare email bankruptcy lead to proof of concept Gmail Unread Badge code.</p>
<h2>The code</h2>
<pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php

$mbox </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_open </span><span style="color: #007700">(</span><span style="color: #DD0000">"{imap.googlemail.com:993/imap/ssl}INBOX"</span><span style="color: #007700">,
</span><span style="color: #DD0000">"gmailusername"</span><span style="color: #007700">, </span><span style="color: #DD0000">"gmailpassword"</span><span style="color: #007700">, </span><span style="color: #0000BB">OP_READONLY</span><span style="color: #007700">)
or die(</span><span style="color: #DD0000">"can't connect: " </span><span style="color: #007700">. </span><span style="color: #0000BB">imap_last_error</span><span style="color: #007700">());

</span><span style="color: #0000BB">$check </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_mailboxmsginfo</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">);
</span><span style="color: #0000BB">?&gt;</span></span></pre>
<p><span id="more-975"></span></p>
<pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php
</span><span style="color: #007700">if (</span><span style="color: #0000BB">$check</span><span style="color: #007700">) {
   print </span><span style="color: #0000BB">$check</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">Unread</span><span style="color: #007700">; </span><span style="color: #FF8000">//. "/" . $check-&gt;Nmsgs;
</span><span style="color: #007700">} else {
   print </span><span style="color: #DD0000">"Failed"</span><span style="color: #007700">;
}

</span><span style="color: #FF8000">/*
Special thanks to our friend Robin Wood aka Digininja
at http://www.digininja.org for the code snippet
*/

</span><span style="color: #0000BB">?&gt;</span></span></pre>
<p>It works. Not very quickly because I have 80 unread and 8000 read in my inbox, but it works. If you execute it from terminal it&#8217;ll take a minute and return unread messages. <b>Edit: See code below for MUCH faster inbox reading.</b></p>
<pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php


$mbox </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_open </span><span style="color: #007700">(</span><span style="color: #DD0000">"{imap.googlemail.com:993/imap/ssl}INBOX"</span><span style="color: #007700">,
</span><span style="color: #DD0000">"gmailuser"</span><span style="color: #007700">, </span><span style="color: #DD0000">"gmailpassword"</span><span style="color: #007700">, </span><span style="color: #0000BB">OP_READONLY</span><span style="color: #007700">)
or die(</span><span style="color: #DD0000">"can't connect: " </span><span style="color: #007700">. </span><span style="color: #0000BB">imap_last_error</span><span style="color: #007700">());

</span><span style="color: #0000BB">$status </span><span style="color: #007700">= </span><span style="color: #0000BB">imap_status</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">, </span><span style="color: #DD0000">"{imap.googlemail.com:993/imap/ssl}INBOX"</span><span style="color: #007700">, </span><span style="color: #0000BB">SA_ALL</span><span style="color: #007700">);
if (</span><span style="color: #0000BB">$status</span><span style="color: #007700">) {
  echo </span><span style="color: #DD0000">"Messages:   " </span><span style="color: #007700">. </span><span style="color: #0000BB">$status</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">messages    </span><span style="color: #007700">. </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
  echo </span><span style="color: #DD0000">"Recent:     " </span><span style="color: #007700">. </span><span style="color: #0000BB">$status</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">recent      </span><span style="color: #007700">. </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
  echo </span><span style="color: #DD0000">"Unseen:     " </span><span style="color: #007700">. </span><span style="color: #0000BB">$status</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">unseen      </span><span style="color: #007700">. </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
  echo </span><span style="color: #DD0000">"UIDnext:    " </span><span style="color: #007700">. </span><span style="color: #0000BB">$status</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">uidnext     </span><span style="color: #007700">. </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
  echo </span><span style="color: #DD0000">"UIDvalidity:" </span><span style="color: #007700">. </span><span style="color: #0000BB">$status</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">uidvalidity </span><span style="color: #007700">. </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
} else {
  echo </span><span style="color: #DD0000">"imap_status failed: " </span><span style="color: #007700">. </span><span style="color: #0000BB">imap_last_error</span><span style="color: #007700">() . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;
}

</span><span style="color: #0000BB">imap_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$mbox</span><span style="color: #007700">);

</span><span style="color: #FF8000">/* Thanks to Emeryth for pointing out imap_status
http://us.php.net/function.imap_status */

</span><span style="color: #0000BB">?&gt;</span></span></pre>
<h2>The Rules</h2>
<p>This code inspired my to start the first code challenge of the season so here are the rules:<!--more--></p>
<ul>
<li>Must be PHP (Maybe we&#8217;ll do perl/python/whitespace next time)</li>
<li>Must be a badge (for your blog, forum signature) of some sort that displays unread messages in a Gmail inbox</li>
<li>Does not need to store or display anything other than unread count. Caching preferred but not necessary.</li>
<li>May use additional libraries and other resources as long as they&#8217;re included with the submission</li>
<li>Entries will be judged on <u>creativity</u> (Think imagemagick, ajax, wordpress plugin, twitter integration, emacs replacement)</li>
<li>Submit entries to darren@hak5.org with &#8220;Code Challenge&#8221; in subject line. I&#8217;ll accept code in body, attached archive, or link to your hosted files.</li>
<li>All entries are due by April 30th</li>
</ul>
<h2>The Prize</h2>
<p>The winning entry will be demoed on a future episode of Hak5. Winner will receive deluxe Hak5 <a href="http://www.hak5.org/stickers/">HakPack</a> as well as Mario Lurig&#8217;s <a href="http://www.phpreferencebook.com/">PHP Book</a> PHP Reference: Beginner to Intermediate PHP5.</p>
<p>All entries will be posted for your enjoyment at the end of the contest.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hak5.org/backstage/code-challenge/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>
