<?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>0xC0DEFEED.com</title>
	<atom:link href="http://www.c0defeed.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.c0defeed.com</link>
	<description>The meaning of life in base 16...</description>
	<pubDate>Fri, 29 May 2009 18:25:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gearman v0.6 with persistent queues</title>
		<link>http://www.c0defeed.com/2009/05/29/gearman-persistent-queues/</link>
		<comments>http://www.c0defeed.com/2009/05/29/gearman-persistent-queues/#comments</comments>
		<pubDate>Fri, 29 May 2009 18:20:11 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
		
		<category><![CDATA[Resources]]></category>

		<guid isPermaLink="false">http://www.c0defeed.com/?p=48</guid>
		<description><![CDATA[I have been watching the Gearman project for almost two years now, played around with it a little but never considered putting it in production because of the lack of persistent queues.  With the release of version 0.6 I am going to have to take a serious look at it.
As you may know, PushButton [...]]]></description>
			<content:encoded><![CDATA[<p>I have been watching the Gearman project for almost two years now, played around with it a little but never considered putting it in production because of the lack of persistent queues.  With the release of version 0.6 I am going to have to take a serious look at it.</p>
<p>As you may know, <a href="http://pushbuttonlabs.com">PushButton Labs</a>, my new company, just acquired <a href="www.greatgamesexperiment.com">GreatGamesExperiment.com</a> (aka GGE).  GGE does a ton of background tasks, reading and building hundreds of rss feeds, computing game recommendations, popularity, etc, etc.  A perfect job for Gearman. We have our own job queue system right now that gets polled from cron once a minute, but there are a few jobs that need to be done NOW.  Gearman could help solve this problem and make it much easier to scale the site later.</p>
<p>I will let you know how it goes. You can check out the <a href="http://www.gearman.org/doku.php">Gearman Project Page</a> here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c0defeed.com/2009/05/29/gearman-persistent-queues/feed/</wfw:commentRss>
		</item>
		<item>
		<title>100 Best JavaScript Resources</title>
		<link>http://www.c0defeed.com/2009/02/13/100-best-javascript-resources/</link>
		<comments>http://www.c0defeed.com/2009/02/13/100-best-javascript-resources/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 05:32:27 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
		
		<category><![CDATA[Resources]]></category>

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

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

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

		<guid isPermaLink="false">http://www.c0defeed.com/?p=40</guid>
		<description><![CDATA[Spoonfed Design did a tremendous wrap up on some of the best javascript resources of 2008.  Normally I just skim these round-ups for the one or two nuggets but this one is full of keepers, especially if you are a jQuery junkie. View the article.
]]></description>
			<content:encoded><![CDATA[<p>Spoonfed Design did a tremendous wrap up on some of the best javascript resources of 2008.  Normally I just skim these round-ups for the one or two nuggets but this one is full of keepers, especially if you are a jQuery junkie.<a href="http://www.spoonfeddesign.com/100-best-javascript-resources"> View the article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c0defeed.com/2009/02/13/100-best-javascript-resources/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HowTo use CSS to style the Wordpress Tag Cloud Widget</title>
		<link>http://www.c0defeed.com/2008/09/30/howto-use-css-to-style-the-wordpress-tag-cloud-widget/</link>
		<comments>http://www.c0defeed.com/2008/09/30/howto-use-css-to-style-the-wordpress-tag-cloud-widget/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 19:08:40 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
		
		<category><![CDATA[howto]]></category>

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

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

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

		<guid isPermaLink="false">http://www.c0defeed.com/?p=32</guid>
		<description><![CDATA[If you are using the Wordpress Tag Cloud widget (like you should be) and not hard-coding it in your template (like you had to back in the day) you will discover that you are unable to set any of the configuration parameters necessary to style it the way you like.  If you call it [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using the Wordpress Tag Cloud widget (like you should be) and not hard-coding it in your template (like you had to back in the day) you will discover that you are unable to set any of the configuration parameters necessary to style it the way you like.  If you call it directly from PHP in your template there are a few options you can use to control the look (kinda).  Unfortunately the widgetized version does not give you access to those options so you&#8217;re stuck with the default &#8212; which is impossible to style with CSS.  I&#8217;ll submit a patch to the Automattic guys to fix the Tag Cloud Widget but until it gets rolled into a release you can fix it with this little filter function without even touching the Wordpress core.</p>
<p>First lets take a look at the HTML the default Tag Cloud widget outputs:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;http://www.c0defeed.com/?tag=wordpress&quot; class='tag-link-1' title='3 topic'  style='font-size: 8pt;'&gt;wordpress&lt;/a&gt;</pre></div></div>

<p>Unfortunately the CLASS attribute is unique per tag and does not include any weighting information.  And the STYLE tag hard-codes the font size based on weight but would override any CSS font-sizing we might have been able apply with the CLASS. Fortunately we can use the font-size information from the STYLE to determine the weight and write a small filter function to rewrite the CLASS and STYLE declarations so we can use CSS to style the tag cloud.</p>
<p>Here is the filter function we&#8217;ll be using to do the rewriting:</p>

<div class="wp_syntax"><div class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Copy this code block to your functions.php file in your active template.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// filter tag clould output so that it can be styled by CSS</span>
<span style="color: #000000; font-weight: bold;">function</span> style_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace_callback</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;|(class='tag-link-[0-9]+)('.*?)(style='font-size: )([0-9]+)(pt;')|&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span>
			<span style="">'$match'</span><span style="color: #339933;">,</span>
			<span style="">'$low=1; $high=5; $sz=($match[4]-8.0)/(22-8)*($high-$low)+$low; return &quot;{$match[1]} tagsz-{$sz}{$match[2]}&quot;;'</span>
		<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #000088;">$tags</span><span style="color: #009900;">&#41;</span>;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$tags</span>;
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Hook into the rendering of the tag cloud widget</span>
add_action<span style="color: #009900;">&#40;</span><span style="">'wp_tag_cloud'</span><span style="color: #339933;">,</span> <span style="">'style_tag_cloud'</span><span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>So what does that do? It rewrites the tag links to look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a href=&quot;http://www.c0defeed.com/?tag=wordpress&quot; class='tag-link-1 tagsz-1' title='3 topic'&gt;wordpress&lt;/a&gt;</pre></div></div>

<p>The default tag cloud uses font-sizes from 8 to 22 points.  The filter function uses a regular expression to extract that size and remap the default range (8-22) to the range defined by the $low and $high variables, for this example I used 1 though 5. An additional CLASS is added &#8216;tagsz-n&#8217; where &#8216;n&#8217; is 1-5 and then the STYLE attribute is removed.  With the additional class you can now add something like this to your style.css and make the Tag Cloud look any way you&#8217;d like!</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">a<span style="color: #6666ff;">.tagsz-1</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span>  <span style="color: #933;">8px</span>; <span style="color: #00AA00;">&#125;</span>
a<span style="color: #6666ff;">.tagsz-2</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span>; <span style="color: #00AA00;">&#125;</span>
a<span style="color: #6666ff;">.tagsz-3</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span>; <span style="color: #00AA00;">&#125;</span>
a<span style="color: #6666ff;">.tagsz-4</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span>; <span style="color: #00AA00;">&#125;</span>
a<span style="color: #6666ff;">.tagsz-5</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span>; <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>If you find this useful I&#8217;d love to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c0defeed.com/2008/09/30/howto-use-css-to-style-the-wordpress-tag-cloud-widget/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Spring Flowers</title>
		<link>http://www.c0defeed.com/2008/06/24/spring-flowers/</link>
		<comments>http://www.c0defeed.com/2008/06/24/spring-flowers/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 05:31:14 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
		
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://www.c0defeed.com/?p=8</guid>
		<description><![CDATA[The flowers are starting to fade now but this spring brought us a specular display here at our new home in the country. Enjoy.
























Testing the Shashin Picasa plugin for wordpress.  As with most things wordpress it took a while to get it up and running but I like the end result.  If anyone has any [...]]]></description>
			<content:encoded><![CDATA[<p>The flowers are starting to fade now but this spring brought us a specular display here at our new home in the country. Enjoy.</p>
<table class="shashin_thumbs_table" style="float:float;clear:clear;">
<tr>
<td>
<div class="shashin_thumb" style="width: 150px;"><a href="http://lh5.ggpht.com/rick.overman/SGF8xhctmGI/AAAAAAAAATo/k0PF0GpdIyk/IMG_9578.JPG?imgmax=640" class="highslide" id="thumb7" onclick="return hs.expand(this, { slideshowGroup: 'group-2' })"><img src="http://lh5.ggpht.com/rick.overman/SGF8xhctmGI/AAAAAAAAATo/k0PF0GpdIyk/IMG_9578.JPG?imgmax=144" alt="" title="" width="144" height="95" /></a></div>
</td>
<td>
<div class="shashin_thumb" style="width: 150px;"><a href="http://lh3.ggpht.com/rick.overman/SGF81ENJUWI/AAAAAAAAATs/27uc7vEJb_8/IMG_9541.JPG?imgmax=640" class="highslide" id="thumb8" onclick="return hs.expand(this, { slideshowGroup: 'group-2' })"><img src="http://lh3.ggpht.com/rick.overman/SGF81ENJUWI/AAAAAAAAATs/27uc7vEJb_8/IMG_9541.JPG?imgmax=144" alt="A large spiral flower garden in progress" title="A large spiral flower garden in progress" width="144" height="95" /></a></div>
</td>
<td>
<div class="shashin_thumb" style="width: 150px;"><a href="http://lh5.ggpht.com/rick.overman/SGF4Nf2Oi9I/AAAAAAAAATM/bBS5LBOJlBk/IMG_9529.JPG?imgmax=640" class="highslide" id="thumb9" onclick="return hs.expand(this, { slideshowGroup: 'group-2' })"><img src="http://lh5.ggpht.com/rick.overman/SGF4Nf2Oi9I/AAAAAAAAATM/bBS5LBOJlBk/IMG_9529.JPG?imgmax=144" alt="" title="" width="144" height="95" /></a></div>
</td>
</tr>
<tr>
<td>
<div class="shashin_thumb" style="width: 150px;"><a href="http://lh5.ggpht.com/rick.overman/SGF4Pcl2j9I/AAAAAAAAATQ/lfgeRiUvL4M/IMG_9526.JPG?imgmax=640" class="highslide" id="thumb10" onclick="return hs.expand(this, { slideshowGroup: 'group-2' })"><img src="http://lh5.ggpht.com/rick.overman/SGF4Pcl2j9I/AAAAAAAAATQ/lfgeRiUvL4M/IMG_9526.JPG?imgmax=144" alt="" title="" width="144" height="95" /></a></div>
</td>
<td>
<div class="shashin_thumb" style="width: 138px;"><a href="http://lh5.ggpht.com/rick.overman/SGF4LXKm3SI/AAAAAAAAATI/MVn-BLKqyPE/IMG_9521_1024.jpg?imgmax=640" class="highslide" id="thumb11" onclick="return hs.expand(this, { slideshowGroup: 'group-2' })"><img src="http://lh5.ggpht.com/rick.overman/SGF4LXKm3SI/AAAAAAAAATI/MVn-BLKqyPE/IMG_9521_1024.jpg?imgmax=144" alt="" title="" width="132" height="144" /></a></div>
</td>
<td>
<div class="shashin_thumb" style="width: 150px;"><a href="http://lh6.ggpht.com/rick.overman/SGF4RdNvvhI/AAAAAAAAATU/ttBatfCU7qw/IMG_9518.JPG?imgmax=640" class="highslide" id="thumb12" onclick="return hs.expand(this, { slideshowGroup: 'group-2' })"><img src="http://lh6.ggpht.com/rick.overman/SGF4RdNvvhI/AAAAAAAAATU/ttBatfCU7qw/IMG_9518.JPG?imgmax=144" alt="" title="" width="144" height="95" /></a></div>
</td>
</tr>
</table>
<p>Testing the <a href="http://wordpress.org/extend/plugins/shashin/">Shashin Picasa plugin</a> for wordpress.  As with most things wordpress it took a while to get it up and running but I like the end result.  If anyone has any experience with other Picasa plugins I would like to hear from you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c0defeed.com/2008/06/24/spring-flowers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress 2.6 beta1 - test drive</title>
		<link>http://www.c0defeed.com/2008/06/24/wordpress-26-beta1-test-drive/</link>
		<comments>http://www.c0defeed.com/2008/06/24/wordpress-26-beta1-test-drive/#comments</comments>
		<pubDate>Tue, 24 Jun 2008 15:01:09 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
		
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.c0defeed.com/?p=6</guid>
		<description><![CDATA[I upgraded from an old 2.3.3 install of wordpress this morning to the latest 2.6 beta1 and everything went smoothly.  I did not have a tweaked out theme or a ton of plugins so that probably saved me from a bunch of misery.
]]></description>
			<content:encoded><![CDATA[<p>I upgraded from an old 2.3.3 install of wordpress this morning to the latest 2.6 beta1 and everything went smoothly.  I did not have a tweaked out theme or a ton of plugins so that probably saved me from a bunch of misery.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.c0defeed.com/2008/06/24/wordpress-26-beta1-test-drive/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
  
