<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Deep Thoughts by Robert Felty</title>
	
	<link>http://blog.robfelty.com</link>
	<description>thoughts on wordpress, latex, cooking et alia</description>
	<lastBuildDate>Tue, 22 Jun 2010 19:59:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/DeepThoughtsByRobertFelty" /><feedburner:info uri="deepthoughtsbyrobertfelty" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>New wordpress plugin – Image Meta</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/huZYIodXu3Q/</link>
		<comments>http://blog.robfelty.com/2010/06/22/new-wordpress-plugin-image-meta/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 19:59:46 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=680</guid>
		<description><![CDATA[I just released my 7th wordpress plugin, Image Meta. This one has to do with image handling. Before wordpress 3.0, when you uploaded an image, the filename of the image was set as the title, and if you had given the image a caption (e.g. with Picasa), then the IPTC caption would be used as [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_681" class="wp-caption alignleft" style="width: 260px"><a href="http://blog.robfelty.com/2010/06/22/new-wordpress-plugin-image-meta/image-meta/" rel="attachment wp-att-681"><img src="http://blog.robfelty.com/wp-content/uploads/2010/06/image-meta-250x159.png" alt="Image meta options" title="image-meta" width="250" height="159" class="size-medium wp-image-681" /></a><p class="wp-caption-text">Image meta options</p></div> I just released my 7th wordpress plugin, <a href='http://wordpress.org/extend/plugins/image-meta'>Image Meta</a>. This one has to do with image handling. Before wordpress 3.0, when you uploaded an image, the filename of the image was set as the title, and if you had given the image a caption (e.g. with Picasa), then the IPTC caption would be used as the caption for the image. In wordpress 3.0, the default is now to use the caption for the title of the image. I don&#8217;t like this, mostly because I had set up my theme&#8217;s image handling based on the old way. So I decided to write a little plugin which hooks into the image uploading process, and sets all four image fields at once &#8211; the title, alt text, caption, and description. The plugin allows you to select between setting each field to either the filename, the IPTC caption, or leaving it blank. I hope some others find it useful.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/eU8ayE_RIQbGlqMyfJhDfRR8hWQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/eU8ayE_RIQbGlqMyfJhDfRR8hWQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eU8ayE_RIQbGlqMyfJhDfRR8hWQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/eU8ayE_RIQbGlqMyfJhDfRR8hWQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/huZYIodXu3Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/06/22/new-wordpress-plugin-image-meta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/06/image-meta-250x159.png" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/06/image-meta-250x159.png" medium="image">
			<media:title type="html">image-meta</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/06/22/new-wordpress-plugin-image-meta/</feedburner:origLink></item>
		<item>
		<title>Showing total number of replies in bbpress</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/rH2fbScUAhc/</link>
		<comments>http://blog.robfelty.com/2010/04/09/showing-total-number-of-replies-in-bbpress/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 21:36:59 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=662</guid>
		<description><![CDATA[For awhile now I have been wanting to show the total number of topics started and replies in a bbpress forum on the profile page. Today I finally figured out how. I like bbpress quite a bit, as it integrates very nicely into wordpress. The main downside of bbpress right now is that the documentation [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_663" class="wp-caption alignleft" style="width: 260px"><a href="http://blog.robfelty.com/2010/04/09/showing-total-number-of-replies-in-bbpress/totalreplies/" rel="attachment wp-att-663"><img src="http://blog.robfelty.com/wp-content/uploads/2010/04/totalReplies-250x189.png" alt="showing total number of replies on a bbpress profile page" title="totalReplies" width="250" height="189" class="size-medium wp-image-663" /></a><p class="wp-caption-text">showing total number of replies on a bbpress profile page</p></div> For awhile now I have been wanting to show the total number of topics started and replies in a bbpress forum on the profile page. Today I finally figured out how. I like bbpress quite a bit, as it integrates very nicely into wordpress. The main downside of bbpress right now is that the documentation is still basically nonexistent. Maybe someday I will help out with it. </p>
<div style='clear:both'></div>
<p>Anyways, to get the total number of replies, simply use the following little mysql query:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;width:100"><div class="php codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw2">&lt;?php</span><br />
<span class="kw3">global</span> <span class="re0">$bbdb</span><span class="sy0">;</span><br />
<span class="re0">$totalReplies</span> <span class="sy0">=</span> <span class="re0">$bbdb</span><span class="sy0">-&gt;</span><span class="me1">get_var</span><span class="br0">&#40;</span><span class="st0">&quot;SELECT COUNT(post_id) FROM &quot;</span> <span class="sy0">.</span><br />
<span class="re0">$bbdb</span><span class="sy0">-&gt;</span><span class="me1">prefix</span> <span class="sy0">.</span> <span class="st0">&quot;posts WHERE poster_id=<span class="es4">$user-&gt;ID</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="sy1">?&gt;</span></div></div>
<p>To get the total number of topics started, use:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;width:100"><div class="php codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw2">&lt;?php</span><br />
<span class="kw3">global</span> <span class="re0">$bbdb</span><span class="sy0">;</span><br />
<span class="re0">$totalTopics</span> <span class="sy0">=</span> <span class="re0">$bbdb</span><span class="sy0">-&gt;</span><span class="me1">get_var</span><span class="br0">&#40;</span><span class="st0">&quot;SELECT COUNT(topic_id) FROM &quot;</span> <span class="sy0">.</span><br />
<span class="re0">$bbdb</span><span class="sy0">-&gt;</span><span class="me1">prefix</span> <span class="sy0">.</span> <span class="st0">&quot;topics WHERE topic_poster=<span class="es4">$user-&gt;ID</span>&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="sy1">?&gt;</span></div></div>

<p><a href="http://feedads.g.doubleclick.net/~a/xjdi3tO-ZOJfrPc7WhfEeD5t2mY/0/da"><img src="http://feedads.g.doubleclick.net/~a/xjdi3tO-ZOJfrPc7WhfEeD5t2mY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xjdi3tO-ZOJfrPc7WhfEeD5t2mY/1/da"><img src="http://feedads.g.doubleclick.net/~a/xjdi3tO-ZOJfrPc7WhfEeD5t2mY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/rH2fbScUAhc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/04/09/showing-total-number-of-replies-in-bbpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/04/totalReplies-250x189.png" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/04/totalReplies-250x189.png" medium="image">
			<media:title type="html">totalReplies</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/04/09/showing-total-number-of-replies-in-bbpress/</feedburner:origLink></item>
		<item>
		<title>New wordpress plugin – category reminder</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/-M1I6pzaomk/</link>
		<comments>http://blog.robfelty.com/2010/04/01/new-wordpress-plugin-category-reminder/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 18:44:57 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=654</guid>
		<description><![CDATA[I recently released my sixth wordpress plugin &#8211; category reminder. I have seen several requests around for a plugin which forces users to select a category for each post they publish, so that the posts don&#8217;t just end up as uncategorized. Bloggers with multiple authors seem especially interested in this. I have wanted this requirement [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_655" class="wp-caption aligncenter" style="width: 610px"><a href="http://blog.robfelty.com/2010/04/01/new-wordpress-plugin-category-reminder/screenshot-1-2/" rel="attachment wp-att-655"><img src="http://blog.robfelty.com/wp-content/uploads/2010/04/screenshot-1-600x327.png" alt="Category reminder screenshot" title="screenshot-1" width="600" height="327" class="size-large wp-image-655" /></a><p class="wp-caption-text">Category reminder screenshot</p></div> I recently released my sixth wordpress plugin &#8211; <a href='http://wordpress.org/extend/plugins/category-reminder'>category reminder</a>. I have seen several requests around for a plugin which forces users to select a category for each post they publish, so that the posts don&#8217;t just end up as uncategorized. Bloggers with multiple authors seem especially interested in this. I have wanted this requirement for myself as well, since I sometimes forget to categorize a post before publishing it. Now users can easily add this functionality via this plugin.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/aM_2uexireUiyeL7kIbMZzC5skI/0/da"><img src="http://feedads.g.doubleclick.net/~a/aM_2uexireUiyeL7kIbMZzC5skI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/aM_2uexireUiyeL7kIbMZzC5skI/1/da"><img src="http://feedads.g.doubleclick.net/~a/aM_2uexireUiyeL7kIbMZzC5skI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/-M1I6pzaomk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/04/01/new-wordpress-plugin-category-reminder/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/04/screenshot-1-600x327.png" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/04/screenshot-1-600x327.png" medium="image">
			<media:title type="html">screenshot-1</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/04/01/new-wordpress-plugin-category-reminder/</feedburner:origLink></item>
		<item>
		<title>Tofu-stuffed eggplant with mushroom ragout</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/ChxupRuJv2U/</link>
		<comments>http://blog.robfelty.com/2010/03/04/tofu-stuffed-eggplant-with-mushroom-ragout/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 03:50:39 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[cooking]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=642</guid>
		<description><![CDATA[Tonight I made a new recipe. Clare had bought some mushrooms the other day, and I bought eggplant yesterday. I thought that an eggplant mushroom ragout sounded good, though I didn&#8217;t know exactly what it would entail. I googled it, and found 2 good possibilities. The first possibility, which I did not choose, was more [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_644" class="wp-caption alignleft" style="width: 260px"><img src="http://blog.robfelty.com/wp-content/uploads/2010/03/IMG_2246-250x166.jpg" alt="Tofu-stuffed eggplant with mushroom ragout" title="IMG_2246" width="250" height="166" class="size-medium wp-image-644" /><p class="wp-caption-text">Tofu-stuffed eggplant with mushroom ragout</p></div> <div id="attachment_643" class="wp-caption alignleft" style="width: 260px"><img src="http://blog.robfelty.com/wp-content/uploads/2010/03/IMG_2241-250x166.jpg" alt="Tofu-stuffed eggplant with mushroom ragout in baking dish" title="IMG_2241" width="250" height="166" class="size-medium wp-image-643" /><p class="wp-caption-text">Tofu-stuffed eggplant with mushroom ragout in baking dish</p></div> Tonight I made a new recipe. Clare had bought some mushrooms the other day, and I bought eggplant yesterday. I thought that an eggplant mushroom ragout sounded good, though I didn&#8217;t know exactly what it would entail. I googled it, and found 2 good possibilities. The first possibility, which I did not choose, was more what I would think of as stuffed eggplant. It involved slicing the eggplants in half and filling them. This particular recipe seemed to throw away most of the eggplant flesh though, which seemed strange to me. The <a href='http://www.canadianliving.com/food/tofu_stuffed_eggplant_with_mushroom_ragout.php#'>second choice</a>, which I did make, instead called for rolling up thin slices of eggplant. I decided that the eggplant would taste better this way, so I went with it.</p>
<p>Even though it took several hours, the result was very tasty, and worth the effort. I followed the recipe almost verbatim, except that I substituted dried tarragon for fresh basil in the stuffing, since my basil plant is pretty much dead. Clare enjoyed it too, though as I predicted, she wasn&#8217;t too wild about the sun-dried tomatoes. She couldn&#8217;t put her finger on it until I told her the ingredients though. She also mentioned that I should have put more olive oil on the eggplant, which is correct.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/7uJrfdkQVSoGnk_uXsmWkZmhHio/0/da"><img src="http://feedads.g.doubleclick.net/~a/7uJrfdkQVSoGnk_uXsmWkZmhHio/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7uJrfdkQVSoGnk_uXsmWkZmhHio/1/da"><img src="http://feedads.g.doubleclick.net/~a/7uJrfdkQVSoGnk_uXsmWkZmhHio/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/ChxupRuJv2U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/03/04/tofu-stuffed-eggplant-with-mushroom-ragout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/03/IMG_2246-250x166.jpg" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/03/IMG_2246-250x166.jpg" medium="image">
			<media:title type="html">IMG_2246</media:title>
		</media:content>

		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/03/IMG_2241-250x166.jpg" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/03/IMG_2241-250x166.jpg" medium="image">
			<media:title type="html">IMG_2241</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/03/04/tofu-stuffed-eggplant-with-mushroom-ragout/</feedburner:origLink></item>
		<item>
		<title>Multi-column balanced lists</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/W3XGlb2txfo/</link>
		<comments>http://blog.robfelty.com/2010/02/18/multi-column-balanced-lists/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 17:25:36 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[(x)html]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=626</guid>
		<description><![CDATA[Recently I was working on a project where a client wanted a list of items to be displayed over multiple columns, and requested that the columns be balanced (as balanced as possible). It didn&#8217;t take me too long to figure out how to do this for 3 columns, but I knew that there was a [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_627" class="wp-caption alignleft" style="width: 260px"><img src="http://blog.robfelty.com/wp-content/uploads/2010/01/balanced-columns-250x187.png" alt="List with balanced columns" title="balanced-columns" width="250" height="187" class="size-medium wp-image-627" /><p class="wp-caption-text">List with balanced columns</p></div> <div id="attachment_630" class="wp-caption alignleft" style="width: 260px"><img src="http://blog.robfelty.com/wp-content/uploads/2010/01/unbalanced-columns-250x196.png" alt="List with unbalanced columns" title="unbalanced-columns" width="250" height="196" class="size-medium wp-image-630" /><p class="wp-caption-text">List with unbalanced columns</p></div> Recently I was working on a project where a client wanted a list of items to be displayed over multiple columns, and requested that the columns be balanced (as balanced as possible). It didn&#8217;t take me too long to figure out how to do this for 3 columns, but I knew that there was a more general solution, which did take me a little time to figure out. I am sharing my solution here for my future reference. Perhaps some one else will find it useful too. The solution is in php, though the general algorithm should apply to any language. </p>
<p>The intuition that led me to this solution was to examine unbalanced columns. Let&#8217;s look at the case of 5 columns with 56 items, as shown in the figures. It quickly becomes obvious that you need 12 items per column (<tt>ceil(56/5)</tt>). However, this yields columns of lengths 12, 12, 12, 12 and 8. If you decrease the number of total items to 55, then you have balanced columns of 11. If you increase the number of items to 60, you have balanced columns of 12. Thus, it is possible for the last column to have <em>n-1</em> items less than the other columns, where <em>n</em> is the number of columns. The preferred output is to have columns of 12, 11, 11, 11, and 11. So what we are doing is shifting over elements from columns 2, 3, and 4 to column 5 (note that we are not messing with the order of the elements). We can always achieve the desired result by simply decreasing the number of items from some of the columns by 1. To determine which columns to decrease, we simply look at the difference in the number of elements per column in the unbalanced solution. In the case of 5 columns with 56 items, the last column would only have 8 items, which is 4 less than 12. So we should start reducing the number of items per column at the 2nd column (<em>(5-4)+1</em>). If we had 57 items total, we would start reducing at the 3rd column (<em>(5-3)+1</em>). </p>
<p>Here is the snippet of code which takes care of figuring this out:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;width:100"><div class="php codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="re0">$numCols</span> <span class="sy0">=</span> <span class="nu0">5</span><span class="sy0">;</span><br />
<span class="re0">$numItems</span> <span class="sy0">=</span> <span class="nu0">56</span><span class="sy0">;</span><br />
<span class="re0">$itemsPerCol</span> <span class="sy0">=</span> <span class="kw3">ceil</span><span class="br0">&#40;</span><span class="re0">$numItems</span> <span class="sy0">/</span> <span class="re0">$numCols</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="re0">$adjustedItemsPerCol</span><span class="sy0">=</span><span class="re0">$itemsPerCol</span><span class="sy0">;</span><br />
<span class="re0">$blank</span> <span class="sy0">=</span><span class="re0">$itemsPerCol</span> <span class="sy0">-</span> <span class="br0">&#40;</span><span class="re0">$numItems</span> <span class="sy0">%</span> <span class="re0">$itemsPerCol</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
<span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$blank</span><span class="sy0">!=</span><span class="re0">$itemsPerCol</span> <span class="sy0">&amp;&amp;</span> <span class="re0">$blank</span> <span class="sy0">&gt;</span><span class="nu0">0</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; <span class="re0">$adjustedItemsPerCol</span><span class="sy0">--;</span><br />
<span class="br0">&#125;</span></div></div>
<p>While we are looping over our array of items (or, in my example case, using a while loop), we check to see which column  we are on, and if we are on the column where we start to decrease the number of items per column, then we switch <tt>$itemsPerCol</tt> to <tt>$adjustedItemsPerCol</tt>.</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;width:100"><div class="php codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$colNum</span> <span class="sy0">==</span> <span class="br0">&#40;</span><span class="re0">$numCols</span> <span class="sy0">-</span> <span class="re0">$blank</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; <span class="re0">$itemsPerCol</span><span class="sy0">=</span><span class="re0">$adjustedItemsPerCol</span><span class="sy0">;</span><br />
<span class="br0">&#125;</span></div></div>
<p>Feel free to look at this <a href='http://robfelty/examples/columns-balanced.php'>working example</a>, along with the <a href='http://robfelty/examples/columns-balanced.phps'>code</a> for it. I have used the CSS float property to make the divs act like columns, and added some colors to help them stand out. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/lQJxtoReptAUzp4E0_nW0JeFeHY/0/da"><img src="http://feedads.g.doubleclick.net/~a/lQJxtoReptAUzp4E0_nW0JeFeHY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lQJxtoReptAUzp4E0_nW0JeFeHY/1/da"><img src="http://feedads.g.doubleclick.net/~a/lQJxtoReptAUzp4E0_nW0JeFeHY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/W3XGlb2txfo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/02/18/multi-column-balanced-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/01/balanced-columns-250x187.png" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/01/balanced-columns-250x187.png" medium="image">
			<media:title type="html">balanced-columns</media:title>
		</media:content>

		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/01/unbalanced-columns-250x196.png" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/01/unbalanced-columns-250x196.png" medium="image">
			<media:title type="html">unbalanced-columns</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/02/18/multi-column-balanced-lists/</feedburner:origLink></item>
		<item>
		<title>A year of new recipes</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/VVnAoSWx9mk/</link>
		<comments>http://blog.robfelty.com/2010/01/13/a-year-of-new-recipes/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:16:49 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[cooking]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=562</guid>
		<description><![CDATA[My resolution for 2009 was to make 52 new recipes throughout the year, or roughly one per week. I tracked my progress using kibotzer.com. I didn&#8217;t quite reach my goal, but I ended up making 45 new recipes, and I am pretty satisfied with that. Most of the recipes were from cookbooks I already own [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_576" class="wp-caption aligncenter" style="width: 607px"><img src="http://blog.robfelty.com/wp-content/uploads/2010/01/recipes-597x400.png" alt="Working towards 52 new recipes in 2009" title="recipes" width="597" height="400" class="size-large wp-image-576" /><p class="wp-caption-text">Working towards 52 new recipes in 2009</p></div>My resolution for 2009 was to make 52 new recipes throughout the year, or roughly one per week. I tracked my progress using <a href='http://kibotzer.com'>kibotzer.com</a>. I didn&#8217;t quite reach my goal, but I ended up making 45 new recipes, and I am pretty satisfied with that. Most of the recipes were from cookbooks I already own or from the internet, but some were my own inspirations. For most of the recipes, I also blogged a little about them, so that I would remember how I made them. In 2010, I am looking forward to revisiting many of these recipes, and continuing to improve upon them to fit my taste.</p>
<p>I tried this goal once several years ago, and enjoyed it, but by June the goal had definitely slipped my mind. Kibotzer helped me keep working towards my goal through gentle reminders every month or so, plus having my goal public also gave me a little extra incentive. </p>
<p>Here is a little slideshow of most of the recipes I tried.<br />
	<ul id="slideshow" style="display:none;">
									<li>
					<h3>IMG_9751</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_9751-599x400.jpg</span>
					<p></p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_9751.jpg" title="IMG_9751"></a>
									</li>
							<li>
					<h3>IMG_8463</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_8463-598x400.jpg</span>
					<p></p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_8463.jpg" title="IMG_8463"></a>
									</li>
							<li>
					<h3>IMG_1974</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1974-599x400.jpg</span>
					<p>Indian ratatouille</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1974.jpg" title="IMG_1974"></a>
									</li>
							<li>
					<h3>IMG_1970</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1970-599x400.jpg</span>
					<p>Indian skillet</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1970.jpg" title="IMG_1970"></a>
									</li>
							<li>
					<h3>IMG_1955</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_19551-599x400.jpg</span>
					<p>Rigatoni with seitan puttanesca sauce</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_19551.jpg" title="IMG_1955"></a>
									</li>
							<li>
					<h3>IMG_1781</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1781-599x400.jpg</span>
					<p>Penne with butternut squash sauce</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1781.jpg" title="IMG_1781"></a>
									</li>
							<li>
					<h3>IMG_1733</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1733-598x400.jpg</span>
					<p>Mjadra sandwich</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1733.jpg" title="IMG_1733"></a>
									</li>
							<li>
					<h3>IMG_1660</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1660-599x400.jpg</span>
					<p>Curried spinach pea soup</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1660.jpg" title="IMG_1660"></a>
									</li>
							<li>
					<h3>IMG_1640</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1640-599x400.jpg</span>
					<p>Spanish bean soup</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1640.jpg" title="IMG_1640"></a>
									</li>
							<li>
					<h3>IMG_1635</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1635-599x400.jpg</span>
					<p>Arctichoke soup provencal</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1635.jpg" title="IMG_1635"></a>
									</li>
							<li>
					<h3>IMG_1629</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1629-599x400.jpg</span>
					<p>Spinach coconut soup</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1629.jpg" title="IMG_1629"></a>
									</li>
							<li>
					<h3>IMG_1608</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1608-599x400.jpg</span>
					<p>Penne with creamy tomato, spinach, and seitan sauce</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1608.jpg" title="IMG_1608"></a>
									</li>
							<li>
					<h3>IMG_1590</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1590-599x400.jpg</span>
					<p>Squash, fennel, and apple soup</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1590.jpg" title="IMG_1590"></a>
									</li>
							<li>
					<h3>IMG_1430</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1430-599x400.jpg</span>
					<p>Vegan cole slaw</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1430.jpg" title="IMG_1430"></a>
									</li>
							<li>
					<h3>IMG_1380</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1380-599x400.jpg</span>
					<p>Sweet and sour seitan</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1380.jpg" title="IMG_1380"></a>
									</li>
							<li>
					<h3>IMG_1377</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1377-599x400.jpg</span>
					<p>Black bean quesadillas with pico de gallo</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1377.jpg" title="IMG_1377"></a>
									</li>
							<li>
					<h3>IMG_1317</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1317-598x400.jpg</span>
					<p>New Orleans sweet potato hash</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1317.jpg" title="IMG_1317"></a>
									</li>
							<li>
					<h3>IMG_1284</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1284-599x400.jpg</span>
					<p>six cheese ravioli</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1284.jpg" title="IMG_1284"></a>
									</li>
							<li>
					<h3>IMG_1157</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1157-598x400.jpg</span>
					<p>Tofu Stroganoff</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1157.jpg" title="IMG_1157"></a>
									</li>
							<li>
					<h3>IMG_1153</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1153-598x400.jpg</span>
					<p>Penne with sweet and spicy pepper, mushroom, and cannelini sauce</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1153.jpg" title="IMG_1153"></a>
									</li>
							<li>
					<h3>IMG_1142</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1142-599x400.jpg</span>
					<p>Mock pork with curried apricot and napa cabbage</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1142.jpg" title="IMG_1142"></a>
									</li>
							<li>
					<h3>IMG_1088</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1088-598x400.jpg</span>
					<p>Lentil, ginger, and cocunut soup</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1088.jpg" title="IMG_1088"></a>
									</li>
							<li>
					<h3>IMG_1028</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1028-598x400.jpg</span>
					<p>Somen noodles with napa cabbage and seitan</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1028.jpg" title="IMG_1028"></a>
									</li>
							<li>
					<h3>IMG_0874</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0874-599x400.jpg</span>
					<p>Creamy red lentil chowder</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0874.jpg" title="IMG_0874"></a>
									</li>
							<li>
					<h3>IMG_0859</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0859-599x400.jpg</span>
					<p>Vegetable korma</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0859.jpg" title="IMG_0859"></a>
									</li>
							<li>
					<h3>IMG_0732</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0732-599x400.jpg</span>
					<p></p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0732.jpg" title="IMG_0732"></a>
									</li>
							<li>
					<h3>IMG_0730</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0730-267x400.jpg</span>
					<p>Black bean corn enchiladas</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0730.jpg" title="IMG_0730"></a>
									</li>
							<li>
					<h3>IMG_0057</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0057-599x400.jpg</span>
					<p>Penne with caramelized onion, mushroom and white bean sauce, accompanied by mixed green salad and cracker with red pepper eggplant spread</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_0057.jpg" title="IMG_0057"></a>
									</li>
							<li>
					<h3>img_9652</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_9652-599x400.jpg</span>
					<p>Fruit swirl bread take two</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_9652.jpg" title="img_9652"></a>
									</li>
							<li>
					<h3>img_9628</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_9628-599x400.jpg</span>
					<p>Sweet potato chana masala and baingan bharta</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_9628.jpg" title="img_9628"></a>
									</li>
							<li>
					<h3>img_9542</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_9542-599x400.jpg</span>
					<p>Fruit swirl bread</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_9542.jpg" title="img_9542"></a>
									</li>
							<li>
					<h3>img_9349</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_9349-599x400.jpg</span>
					<p>Baingan Bharta</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_9349.jpg" title="img_9349"></a>
									</li>
							<li>
					<h3>img_8830</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8830-598x400.jpg</span>
					<p></p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8830.jpg" title="img_8830"></a>
									</li>
							<li>
					<h3>img_8470</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8470-599x400.jpg</span>
					<p>hoisin eggplant and bok choy</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8470.jpg" title="img_8470"></a>
									</li>
							<li>
					<h3>img_8465</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8465-599x400.jpg</span>
					<p>corn bean salad</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8465.jpg" title="img_8465"></a>
									</li>
							<li>
					<h3>img_8428</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8428-599x400.jpg</span>
					<p>Beer-braised red cabbage</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8428.jpg" title="img_8428"></a>
									</li>
							<li>
					<h3>img_8421</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8421-599x400.jpg</span>
					<p>French lentil soup</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8421.jpg" title="img_8421"></a>
									</li>
							<li>
					<h3>img_8288</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8288-599x400.jpg</span>
					<p>Stovetop stuffing</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8288.jpg" title="img_8288"></a>
									</li>
							<li>
					<h3>img_8277</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8277-599x400.jpg</span>
					<p>vegetarian pho</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8277.jpg" title="img_8277"></a>
									</li>
							<li>
					<h3>img_8274</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8274-599x400.jpg</span>
					<p>vegetarian pho up close</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8274.jpg" title="img_8274"></a>
									</li>
							<li>
					<h3>img_8269</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/img_8269-598x400.jpg</span>
					<p>corn chowder</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/img_8269.jpg" title="img_8269"></a>
									</li>
							<li>
					<h3>recipes</h3>
										<span>http://blog.robfelty.com/wp-content/uploads/2010/01/recipes-597x400.png</span>
					<p>Working towards 52 new recipes in 2009</p>
																<a href="http://blog.robfelty.com/wp-content/uploads/2010/01/recipes.png" title="recipes"></a>
									</li>
						</ul>
	
	<div id="slideshow-wrapper">
			
		<div id="fullsize">
			<div id="imgprev" class="imgnav" title="Previous Image"></div>
			<div id="imglink"></div>
			<div id="imgnext" class="imgnav" title="Next Image"></div>
			<div id="image"></div>
							<div id="information">
					<h3></h3>
					<p></p>
				</div>
					</div>
		
			</div>
	
	<script type="text/javascript">
	jQuery.noConflict();
	tid('slideshow').style.display = "none";
	tid('slideshow-wrapper').style.display = 'block';
	
	var slideshow = new TINY.slideshow("slideshow");
	
	jQuery(document).ready(function() {	
		slideshow.auto = true;		slideshow.speed = 4;
		slideshow.imgSpeed = 8;
		slideshow.navOpacity = 25;
		slideshow.navHover = 70;
		slideshow.letterbox = "#000000";
		slideshow.link = "linkhover";
		slideshow.info = "information";
		slideshow.infoSpeed = 6;
		slideshow.thumbs = "";
		slideshow.thumbOpacity = 70;
		slideshow.left = "slideleft";
		slideshow.right = "slideright";
		slideshow.scrollSpeed = 5;
		slideshow.spacing = 5;
		slideshow.active = "#FFFFFF";
		slideshow.init("slideshow","image","imgprev","imgnext","imglink");
	});
	</script>


<p><a href="http://feedads.g.doubleclick.net/~a/yi9RuZxv0oaUwmbFMMpy2mg_S9o/0/da"><img src="http://feedads.g.doubleclick.net/~a/yi9RuZxv0oaUwmbFMMpy2mg_S9o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/yi9RuZxv0oaUwmbFMMpy2mg_S9o/1/da"><img src="http://feedads.g.doubleclick.net/~a/yi9RuZxv0oaUwmbFMMpy2mg_S9o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/VVnAoSWx9mk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/01/13/a-year-of-new-recipes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/01/recipes-597x400.png" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/01/recipes-597x400.png" medium="image">
			<media:title type="html">recipes</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/01/13/a-year-of-new-recipes/</feedburner:origLink></item>
		<item>
		<title>Rigatoni with seitan puttanesca sauce</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/1XjKbFGWmgE/</link>
		<comments>http://blog.robfelty.com/2010/01/09/rigatoni-seitan-puttanesca/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 00:22:51 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[cooking]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=556</guid>
		<description><![CDATA[This was my last new recipe for 2009, and it was fairly improvised. I had recently looked up puttanesca in wikipedia, discovering that it is a &#8220;pantry dish&#8221;, meaning that most of the ingredients are staples in an Italian pantry, and mine too. I did alter it a bit. Normally it has anchovies, which I [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_557" class="wp-caption alignright" style="width: 260px"><img src="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1955-250x166.jpg" alt="Rigatoni with seitan puttanesca sauce" title="IMG_1955" width="250" height="166" class="size-medium wp-image-557" /><p class="wp-caption-text">Rigatoni with seitan puttanesca sauce</p></div> This was my last new recipe for 2009, and it was fairly improvised. I had recently looked up puttanesca in wikipedia, discovering that it is a &#8220;pantry dish&#8221;, meaning that most of the ingredients are staples in an Italian pantry, and mine too. I did alter it a bit. Normally it has anchovies, which I omitted, and normally it does not have onions which I added. And I also added in some seitan for protein. The result was quite tasty. </p>
<p>Here is what I used:</p>
<ul>
<li>3 cloves garlic</li>
<li>2 pasilla (poblano) peppers</li>
<li>1 large onion</li>
<li>1 can mock pork (seitan)</li>
<li>20 green olives, chopped</li>
<li>2 cans petite diced tomatoes</li>
<li>1 can tomato paste</li>
<li>2 tsp capers</li>
<li>1 cup white wine</li>
<li>Italian seasonings</li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/XVE_XnV_9Vt7A02VCOwkz4inkzc/0/da"><img src="http://feedads.g.doubleclick.net/~a/XVE_XnV_9Vt7A02VCOwkz4inkzc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XVE_XnV_9Vt7A02VCOwkz4inkzc/1/da"><img src="http://feedads.g.doubleclick.net/~a/XVE_XnV_9Vt7A02VCOwkz4inkzc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/1XjKbFGWmgE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/01/09/rigatoni-seitan-puttanesca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1955-250x166.jpg" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2010/01/IMG_1955-250x166.jpg" medium="image">
			<media:title type="html">IMG_1955</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2010/01/09/rigatoni-seitan-puttanesca/</feedburner:origLink></item>
		<item>
		<title>WordPress 2.9 image changes</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/X8Mt6D3yqBc/</link>
		<comments>http://blog.robfelty.com/2010/01/02/wordpress-2-9-image-changes/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 22:58:48 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[sql]]></category>
		<category><![CDATA[wiki/cms]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=534</guid>
		<description><![CDATA[WordPress 2.9 has several new image enhancements. One of the biggest features is some basic image editing functionality. Another one is that you can now specify different alt text from the &#8220;caption&#8221; field. The &#8220;caption&#8221; field places a caption under the image. The &#8220;alt&#8221; text is used to describe the picture to non-seeing users (including [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress 2.9 has several new image enhancements. One of the biggest features is some basic image editing functionality. Another one is that you can now specify different alt text from the &#8220;caption&#8221; field. The &#8220;caption&#8221; field places a caption under the image. The &#8220;alt&#8221; text is used to describe the picture to non-seeing users (including search engines). This is a nice addition. However, I usually like my caption, alt text, and title text to be all the same, and I don&#8217;t like to have to enter it all manually or copy and paste. By default, wordpress will use an IPTC caption as its &#8220;description&#8221; field, which shows up in the title attribute of the image. This is nice, since I can add a caption in my image editing program of choice (Picasa) and then I don&#8217;t have to enter it again. Except for those pesky alt and caption fields, which are blank by default. </p>
<p>This is particularly important if I am uploading many pictures. So I wrote a little sql which will set the &#8220;caption&#8221; and &#8220;alt text&#8221; fields to be the same as the description. I already had this working for the &#8220;caption&#8221; field for quite some time, but getting it to work for the different alt text handling in 2.9 was a bit tricky, since I discovered that the alt text is not stored in wp_posts like the other fields. Instead it is stored in the wp_postmeta table, which is new in 2.9. Although it took me awhile to figure this out, the new table is a welcome addition. Now for each image you upload, wordpress stores meta information in this table, including the width and height, different sized versions of the file, the IPTC caption, some EXIF info and a few other goodies. This means that if you like to include EXIF info about your pictures, that doing so requires only a simple database lookup, instead of having to read the headers from the image, which should be considerably faster I would imagine. </p>
<p>Now for my little SQL which sets the &#8220;caption&#8221; and &#8220;alt text&#8221; to be the same as the description. I run this on my server after uploading pictures. It would be even better if I could figure out how to do this as a wordpress plugin.</p>
<div class="codecolorer-container sql dawn" style="overflow:auto;white-space:nowrap;width:100"><div class="sql codecolorer" style="font-family:Monaco,Lucida Console,monospace"><span class="co1">-- First we set the image caption (post_excerpt) to be the same as the</span><br />
<span class="co1">-- description (post_content)</span><br />
<span class="kw1">UPDATE</span> wp_posts <span class="kw1">SET</span> post_excerpt<span class="sy0">=</span>post_content <span class="kw1">WHERE</span> post_type<span class="sy0">=</span><span class="st0">'attachment'</span> <span class="kw1">AND</span><br />
date<span class="br0">&#40;</span>post_date<span class="br0">&#41;</span><span class="sy0">=</span>curdate<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<br />
<span class="co1">-- Next we set the alternative text to be the same as the post_excerpt</span><br />
<span class="kw1">INSERT</span> <span class="kw1">INTO</span> wp_postmeta <span class="br0">&#40;</span>wp_postmeta<span class="sy0">.</span>post_id<span class="sy0">,</span> wp_postmeta<span class="sy0">.</span>meta_value<span class="br0">&#41;</span> <span class="kw1">SELECT</span><br />
<span class="kw1">DISTINCT</span> wp_posts<span class="sy0">.</span>ID<span class="sy0">,</span> wp_posts<span class="sy0">.</span>post_excerpt <span class="kw1">FROM</span> wp_posts<span class="sy0">,</span> wp_postmeta <span class="kw1">WHERE</span><br />
wp_posts<span class="sy0">.</span>ID<span class="sy0">=</span>wp_postmeta<span class="sy0">.</span>post_id <span class="kw1">AND</span> post_type<span class="sy0">=</span><span class="st0">'attachment'</span> <span class="kw1">AND</span><br />
date<span class="br0">&#40;</span>post_date<span class="br0">&#41;</span><span class="sy0">=</span>curdate<span class="br0">&#40;</span><span class="br0">&#41;</span>;<br />
<br />
<span class="co1">-- This line sets the correct meta_key for the previous line, which doesn't</span><br />
<span class="co1">-- seem possible otherwise</span><br />
<span class="kw1">UPDATE</span> wp_postmeta <span class="kw1">SET</span> meta_key<span class="sy0">=</span><span class="st0">'_wp_attachment_image_alt'</span> <span class="kw1">WHERE</span> meta_key <span class="kw1">IS</span><br />
<span class="kw1">NULL</span>;</div></div>

<p><a href="http://feedads.g.doubleclick.net/~a/lzf7hSeriW7tE8kiuYIZphlHDBY/0/da"><img src="http://feedads.g.doubleclick.net/~a/lzf7hSeriW7tE8kiuYIZphlHDBY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/lzf7hSeriW7tE8kiuYIZphlHDBY/1/da"><img src="http://feedads.g.doubleclick.net/~a/lzf7hSeriW7tE8kiuYIZphlHDBY/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/X8Mt6D3yqBc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2010/01/02/wordpress-2-9-image-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.robfelty.com/2010/01/02/wordpress-2-9-image-changes/</feedburner:origLink></item>
		<item>
		<title>Penne with butternut squash sauce</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/2jMk3Rgm994/</link>
		<comments>http://blog.robfelty.com/2009/12/18/penne-butternut-squash/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 23:29:24 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[cooking]]></category>
		<category><![CDATA[pasta]]></category>
		<category><![CDATA[squash]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=530</guid>
		<description><![CDATA[We are leaving for vacation tomorrow, so I have been trying to use up what is in the house. One thing I had on hand was a butternut squash. One of our favorite recipes is corn, bean, and squash soup, but we have had that several times recently, so I decided to try something different. [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_531" class="wp-caption alignleft" style="width: 260px"><a href="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1781.JPG"><img src="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1781-250x166.jpg" alt="Penne with butternut squash sauce" title="IMG_1781" width="250" height="166" class="size-medium wp-image-531" /></a><p class="wp-caption-text">Penne with butternut squash sauce</p></div> We are leaving for vacation tomorrow, so I have been trying to use up what is in the house. One thing I had on hand was a butternut squash. One of our favorite recipes is corn, bean, and squash soup, but we have had that several times recently, so I decided to try something different. I thought it might make a good sauce for pasta, so I went with that. I mostly stuck to <a href='http://www.thenourishinggourmet.com/2008/05/butternut-squash-pasta-sauce-2.html'>this recipe from the nourishing gourmet</a>, but I added some cannellini beans and some whole milk at the end, since I also needed to use that up. The result was ok. Adding more salt helped a lot, but I think that it was too thick, too squashy, and too much sauce for the amount of pasta. So next time I would probably use either more millk and pasta, or less squash (and more salt). It was a nice way to use my new immersion blender though, and I have been looking for tomato-less pasta sauces recently, since I keep hearing how canned tomatoes are bad for me.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/Fvaj9XYbOTJVMiJH0HyStAArkY8/0/da"><img src="http://feedads.g.doubleclick.net/~a/Fvaj9XYbOTJVMiJH0HyStAArkY8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Fvaj9XYbOTJVMiJH0HyStAArkY8/1/da"><img src="http://feedads.g.doubleclick.net/~a/Fvaj9XYbOTJVMiJH0HyStAArkY8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/2jMk3Rgm994" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2009/12/18/penne-butternut-squash/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1781-250x166.jpg" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1781-250x166.jpg" medium="image">
			<media:title type="html">IMG_1781</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2009/12/18/penne-butternut-squash/</feedburner:origLink></item>
		<item>
		<title>Mjadra sandwich</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/e4yc3_H2LWM/</link>
		<comments>http://blog.robfelty.com/2009/12/15/mjadra-sandwich/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 23:33:35 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[cooking]]></category>
		<category><![CDATA[baba ghanoush]]></category>
		<category><![CDATA[bulgar]]></category>
		<category><![CDATA[lentils]]></category>
		<category><![CDATA[middle-eastern]]></category>
		<category><![CDATA[pita]]></category>
		<category><![CDATA[rice]]></category>

		<guid isPermaLink="false">http://blog.robfelty.com/?p=525</guid>
		<description><![CDATA[While we were in Michigan over Thanksgiving we stopped at our favorite Middle Eastern restaurant in Ann Arbor, Jerusalem Garden, for a tasty mjadra sandwich. Mjadra is basically just lentils, caramelized onions, and either rice or bulgar. I haven&#8217;t been able to find it at restaurants in Colorado, so I decided to try to make [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_527" class="wp-caption alignleft" style="width: 260px"><a href="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1733-1.JPG"><img src="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1733-1-250x166.jpg" alt="Mjadra sandwich" title="IMG_1733-1" width="250" height="166" class="size-medium wp-image-527" /></a><p class="wp-caption-text">Mjadra sandwich</p></div> While we were in Michigan over Thanksgiving we stopped at our favorite Middle Eastern restaurant in Ann Arbor, Jerusalem Garden, for a tasty mjadra sandwich. Mjadra is basically just lentils, caramelized onions, and either rice or bulgar. I haven&#8217;t been able to find it at restaurants in Colorado, so I decided to try to make it myself. I found quite a few recipes online, some with rice, and some with bulgar. Some had almost no spices, and some had many. I decided to use a cup each of brown lentils and brown rice, 2 large onions, a little cinnamon and some cumin. I also added about a half cup of bulgar at the end to soak up the remaining water. It was pretty good, though I think next time I will cook it a little longer, use less cinnamon, and add garlic. </p>
<p>I put the mjadra in a pita, along with some baba ghanoush, lettuce, a pickle, feta cheese crumbles, and a little Red Hot. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/sxajnGFQo2EHvFcQWolTAiHWxbU/0/da"><img src="http://feedads.g.doubleclick.net/~a/sxajnGFQo2EHvFcQWolTAiHWxbU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/sxajnGFQo2EHvFcQWolTAiHWxbU/1/da"><img src="http://feedads.g.doubleclick.net/~a/sxajnGFQo2EHvFcQWolTAiHWxbU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/e4yc3_H2LWM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.robfelty.com/2009/12/15/mjadra-sandwich/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1733-1-250x166.jpg" />
		<media:content url="http://blog.robfelty.com/wp-content/uploads/2009/12/IMG_1733-1-250x166.jpg" medium="image">
			<media:title type="html">IMG_1733-1</media:title>
		</media:content>
	<feedburner:origLink>http://blog.robfelty.com/2009/12/15/mjadra-sandwich/</feedburner:origLink></item>
	</channel>
</rss>
