<?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>robfelty.com</title>
	
	<link>http://robfelty.com</link>
	<description />
	<lastBuildDate>Sat, 12 Nov 2011 05:01:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</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>Em dash in LaTeX</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/tY3ReIHzAr0/em-dash-in-latex</link>
		<comments>http://robfelty.com/2011/11/11/em-dash-in-latex#comments</comments>
		<pubDate>Sat, 12 Nov 2011 04:53:43 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1170</guid>
		<description><![CDATA[My friend Daniel Reeves was recently discussing different ways to typeset em dashes. Here is the way I like to do it in LaTeX. \documentclass{minimal} %this sets up a new command \dash, which makes nice dashes \DeclareRobustCommand\dash{% \unskip\nobreak\thinspace\textemdash\thinspace\ignorespaces} \begin{document} Let's test out several different variants on making an em dash using the \LaTeX typesetting system [...]]]></description>
			<content:encoded><![CDATA[<p>My friend Daniel Reeves was recently discussing different ways to typeset em dashes. Here is the way I like to do it in LaTeX.</p>
<div class="codecolorer-container tex dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="tex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">minimal</span><span style="color: #E02020; ">}</span><br />
<span style="color: #2C922C; font-style: italic;">%this sets up a new command \dash, which makes nice dashes</span><br />
<span style="color: #800000; font-weight: normal;">\DeclareRobustCommand</span><span style="color: #800000; font-weight: normal;">\dash</span><span style="color: #E02020; ">{</span><span style="color: #2C922C; font-style: italic;">% </span><br />
<span style="color: #800000; font-weight: normal;">\unskip</span><span style="color: #800000; font-weight: normal;">\nobreak</span><span style="color: #800000; font-weight: normal;">\thinspace</span><span style="color: #800000; font-weight: normal;">\textemdash</span><span style="color: #800000; font-weight: normal;">\thinspace</span><span style="color: #800000; font-weight: normal;">\ignorespaces</span><span style="color: #E02020; ">}</span> <br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span><br />
Let's test out several different variants on making an em dash using the<br />
<span style="color: #E02020; ">\</span><span style="color: #800000;">LaTeX</span> typesetting system --- this one uses <span style="color: #800000; font-weight: normal;">\verb</span>|---| with spaces around it<br />
<br />
Let's test out several different variants on making an em dash using the<br />
<span style="color: #E02020; ">\</span><span style="color: #800000;">LaTeX</span> typesetting system---this one uses <span style="color: #800000; font-weight: normal;">\verb</span>|---| with no spaces around it<br />
<br />
Let's test out several different variants on making an em dash using the<br />
<span style="color: #E02020; ">\</span><span style="color: #800000;">LaTeX</span> typesetting system <span style="color: #800000; font-weight: normal;">\dash</span> this one uses my <span style="color: #800000; font-weight: normal;">\verb</span>|<span style="color: #800000; font-weight: normal;">\dash</span>| command<br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">verbatim</span></span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\DeclareRobustCommand</span><span style="color: #800000; font-weight: normal;">\dash</span><span style="color: #E02020; ">{</span><span style="color: #2C922C; font-style: italic;">% </span><br />
<span style="color: #800000; font-weight: normal;">\unskip</span><span style="color: #800000; font-weight: normal;">\nobreak</span><span style="color: #800000; font-weight: normal;">\thinspace</span><span style="color: #800000; font-weight: normal;">\textemdash</span><span style="color: #800000; font-weight: normal;">\thinspace</span><span style="color: #800000; font-weight: normal;">\ignorespaces</span><span style="color: #E02020; ">}</span> <br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">verbatim</span></span><span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></div></div>
<p>Here is the resulting output:<br />
<div id="attachment_1171" class="wp-caption aligncenter" style="width: 610px"><a href="http://robfelty.com/wp-content/uploads/2011/11/emdash.png"><img src="http://robfelty.com/wp-content/uploads/2011/11/emdash.png" alt="Different ways to make em dashes in LaTeX" title="emdash" class="size-original wp-image-1171" /></a><p class="wp-caption-text">Different ways to make em dashes in LaTeX</p></div> </p>
<p>Notice how using spaces around the <tt>---</tt> can result in a dash at the end of a line, which is not desirable. And using no spaces around the <tt>---</tt> doesn&#8217;t look nice, and can also result in problems when copying and pasting. The <tt>\dash</tt> command solves both of these issues. I did not come up with it myself, but I cannot remember where I found it. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/D3-xvBvpaz4q-ClaKn8oVCR3F74/0/da"><img src="http://feedads.g.doubleclick.net/~a/D3-xvBvpaz4q-ClaKn8oVCR3F74/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/D3-xvBvpaz4q-ClaKn8oVCR3F74/1/da"><img src="http://feedads.g.doubleclick.net/~a/D3-xvBvpaz4q-ClaKn8oVCR3F74/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/tY3ReIHzAr0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/11/11/em-dash-in-latex/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2011/11/emdash.png" />
		<media:content url="http://robfelty.com/wp-content/uploads/2011/11/emdash.png" medium="image">
			<media:title type="html">emdash</media:title>
		</media:content>
	<feedburner:origLink>http://robfelty.com/2011/11/11/em-dash-in-latex</feedburner:origLink></item>
		<item>
		<title>Vetting vignetting</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/6YkEneDeLP8/vetting-vignetting</link>
		<comments>http://robfelty.com/2011/09/28/vetting-vignetting#comments</comments>
		<pubDate>Thu, 29 Sep 2011 04:18:16 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1165</guid>
		<description><![CDATA[We recently got some family portraits taken at JCPenney. I think they turned out very nicely. They had a bunch of different effects that they could apply. While we were at the studio, I really liked the way that the vignetting effect brought out our faces. However, after investigating the full set (we bought the [...]]]></description>
			<content:encoded><![CDATA[<p>We recently got some family portraits taken at JCPenney. I think they turned out very nicely. They had a bunch of different effects that they could apply. While we were at the studio, I really liked the way that the vignetting effect brought out our faces. However, after investigating the full set (we bought the digital images), I decided I didn&#8217;t like the vignetting, because it was actually making my face a bit dark in one shot. Then I decided to play around with vignetting a bit more. I was disappointed to see that Picasa does not support vignetting. Fortunately I found a handy <a href='http://registry.gimp.org/node/17267'>gimp script</a> to do the job. At first I tried using it with a rectangular selection. Then I tried an oval one which I like best. Here are the various pictures:<br />

<a href='http://robfelty.com/2011/09/28/vetting-vignetting/fedibblety1' title='fedibblety1'><img width="250" height="311" src="http://robfelty.com/wp-content/uploads/2011/09/fedibblety1-250x311.jpg" class="attachment-medium" alt="Fedibbletys - no vignette" title="fedibblety1" /></a>
<a href='http://robfelty.com/2011/09/28/vetting-vignetting/fedibblety2' title='fedibblety2'><img width="250" height="312" src="http://robfelty.com/wp-content/uploads/2011/09/fedibblety2-250x312.jpg" class="attachment-medium" alt="Fedibbletys - JCPenney vignette" title="fedibblety2" /></a>
<a href='http://robfelty.com/2011/09/28/vetting-vignetting/fedibblety3' title='fedibblety3'><img width="250" height="311" src="http://robfelty.com/wp-content/uploads/2011/09/fedibblety3-250x311.jpg" class="attachment-medium" alt="Fedibbletys - gimp rectangular vignette" title="fedibblety3" /></a>
<a href='http://robfelty.com/2011/09/28/vetting-vignetting/fedibblety4' title='fedibblety4'><img width="250" height="311" src="http://robfelty.com/wp-content/uploads/2011/09/fedibblety4-250x311.jpg" class="attachment-medium" alt="Fedibbletys - gimp oval vignette" title="fedibblety4" /></a>
</p>

<p><a href="http://feedads.g.doubleclick.net/~a/wyZ2EJfEdLZlGpeSOfpHedkngl0/0/da"><img src="http://feedads.g.doubleclick.net/~a/wyZ2EJfEdLZlGpeSOfpHedkngl0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/wyZ2EJfEdLZlGpeSOfpHedkngl0/1/da"><img src="http://feedads.g.doubleclick.net/~a/wyZ2EJfEdLZlGpeSOfpHedkngl0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/6YkEneDeLP8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/09/28/vetting-vignetting/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://robfelty.com/2011/09/28/vetting-vignetting</feedburner:origLink></item>
		<item>
		<title>UNIX/Linux permissions and groups – getent</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/iCUDf0MCIMk/unixlinux-permissions-and-groups-getent</link>
		<comments>http://robfelty.com/2011/09/06/unixlinux-permissions-and-groups-getent#comments</comments>
		<pubDate>Tue, 06 Sep 2011 15:16:50 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1163</guid>
		<description><![CDATA[I keep forgetting this command, so I writing it here so I know where to find it. Getent will list information about users and groups on a UNIX/Linux system, including NIS and LDAP users, which is crucial networks with multiple nodes. For example to list information about a user named robert_felty, you can do: $ [...]]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting this command, so I writing it here so I know where to find it. Getent will list information about users and groups on a UNIX/Linux system, including NIS and LDAP users, which is crucial networks with multiple nodes. For example to list information about a user named robert_felty, you can do:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">getent</span> <span style="color: #c20cb9; font-weight: bold;">passwd</span> robert_felty<br />
robert_felty:<span style="color: #007800;">$1</span><span style="color: #007800;">$iPJ</span>.svD<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$ce77I</span><span style="color: #000000; font-weight: bold;">/</span>wxh129FLt2Z7UOm.:<span style="color: #000000;">5440</span>:<span style="color: #000000;">112</span>:Robert Felty:<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>robert_felty:<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span></div></div>

<p><a href="http://feedads.g.doubleclick.net/~a/N3u5VYIlEkoaVMnEN68oDlOME1w/0/da"><img src="http://feedads.g.doubleclick.net/~a/N3u5VYIlEkoaVMnEN68oDlOME1w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/N3u5VYIlEkoaVMnEN68oDlOME1w/1/da"><img src="http://feedads.g.doubleclick.net/~a/N3u5VYIlEkoaVMnEN68oDlOME1w/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/iCUDf0MCIMk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/09/06/unixlinux-permissions-and-groups-getent/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://robfelty.com/2011/09/06/unixlinux-permissions-and-groups-getent</feedburner:origLink></item>
		<item>
		<title>Cherry rhubarb pie</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/v4XdVXMgJJs/cherry-rhubarb-pie</link>
		<comments>http://robfelty.com/2011/07/31/cherry-rhubarb-pie#comments</comments>
		<pubDate>Mon, 01 Aug 2011 04:17:07 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1159</guid>
		<description><![CDATA[We joined a CSA this year, taking over Greg and Mekayla&#8217;s fruit share. This week we got 3 lbs of pie cherries and a huge bundle of rhubarb. That sounded like pie to me. I have never made cherry rhubarb pie before, only strawberry rhubarb, but I found some recipes, and decided to give it [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1161" class="wp-caption alignleft" style="width: 260px"><a href="http://robfelty.com/wp-content/uploads/2011/07/IMG_5214.jpg"><img src="http://robfelty.com/wp-content/uploads/2011/07/IMG_5214-250x166.jpg" alt="Slice of cherry rhubarb pie" title="IMG_5214" width="250" height="166" class="size-medium wp-image-1161" /></a><p class="wp-caption-text">Slice of cherry rhubarb pie</p></div> We joined a CSA this year, taking over Greg and Mekayla&#8217;s fruit share. This week we got 3 lbs of pie cherries and a huge bundle of rhubarb. That sounded like pie to me.<br />
 <div id="attachment_1162" class="wp-caption alignleft" style="width: 260px"><a href="http://robfelty.com/wp-content/uploads/2011/07/IMG_5215.jpg"><img src="http://robfelty.com/wp-content/uploads/2011/07/IMG_5215-250x166.jpg" alt="Cherry rhubarb pie" title="IMG_5215" width="250" height="166" class="size-medium wp-image-1162" /></a><p class="wp-caption-text">Cherry rhubarb pie</p></div> I have never made cherry rhubarb pie before, only strawberry rhubarb, but I found some recipes, and decided to give it a go, using mostly <a href='http://www.tasteofhome.com/Recipes/Cherry-Rhubarb-Pie'>this recipe</a>, with my mom&#8217;s crust recipe. I haven&#8217;t made pie in about 10 years, and I know that making the crust is tricky. I knew it wasn&#8217;t going well while I rolled it out. I kept adding more and more water. The fourth ball I rolled was finally about right. I need to get back in practice. In spite of the pie not being super well constructed, it still tasted very good.<br />
 <div id="attachment_1160" class="wp-caption alignleft" style="width: 260px"><a href="http://robfelty.com/wp-content/uploads/2011/07/IMG_5213.jpg"><img src="http://robfelty.com/wp-content/uploads/2011/07/IMG_5213-250x166.jpg" alt="Cherry rhubarb pies" title="IMG_5213" width="250" height="166" class="size-medium wp-image-1160" /></a><p class="wp-caption-text">Cherry rhubarb pies</p></div>

<p><a href="http://feedads.g.doubleclick.net/~a/LdOQZsXnxKmpa_i8QkiUMMvPG9g/0/da"><img src="http://feedads.g.doubleclick.net/~a/LdOQZsXnxKmpa_i8QkiUMMvPG9g/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/LdOQZsXnxKmpa_i8QkiUMMvPG9g/1/da"><img src="http://feedads.g.doubleclick.net/~a/LdOQZsXnxKmpa_i8QkiUMMvPG9g/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/v4XdVXMgJJs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/07/31/cherry-rhubarb-pie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5214-250x166.jpg" />
		<media:content url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5214-250x166.jpg" medium="image">
			<media:title type="html">IMG_5214</media:title>
		</media:content>

		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5215-250x166.jpg" />
		<media:content url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5215-250x166.jpg" medium="image">
			<media:title type="html">IMG_5215</media:title>
		</media:content>

		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5213-250x166.jpg" />
		<media:content url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5213-250x166.jpg" medium="image">
			<media:title type="html">IMG_5213</media:title>
		</media:content>
	<feedburner:origLink>http://robfelty.com/2011/07/31/cherry-rhubarb-pie</feedburner:origLink></item>
		<item>
		<title>Image stabilization in Canon EFS 17-85mm lens</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/lilcgqofWa8/image-stabilization-in-canon-efs-17-85mm-lens</link>
		<comments>http://robfelty.com/2011/07/31/image-stabilization-in-canon-efs-17-85mm-lens#comments</comments>
		<pubDate>Mon, 01 Aug 2011 03:58:36 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[photography]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1156</guid>
		<description><![CDATA[I recently bought a new lens for my Canon Rebel XT. I debated for about 6 months between a new body, and one of three lenses, the 17-85mm f4/5.6 EFS, the 28-135 f 3.5/5.6 EF, and the 17-55 f2.8 USM. I ultimately decided that I&#8217;d rather have a new lens than a new body. My [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_1158" class="wp-caption alignleft" style="width: 260px"><a href="http://robfelty.com/wp-content/uploads/2011/07/IMG_5208.jpg"><img src="http://robfelty.com/wp-content/uploads/2011/07/IMG_5208-250x166.jpg" alt="Canon EFS 17-85mm with image stabilization off" title="IMG_5208" width="250" height="166" class="size-medium wp-image-1158" /></a><p class="wp-caption-text">Canon EFS 17-85mm with image stabilization off</p></div> <div id="attachment_1157" class="wp-caption alignright" style="width: 260px"><a href="http://robfelty.com/wp-content/uploads/2011/07/IMG_5207.jpg"><img src="http://robfelty.com/wp-content/uploads/2011/07/IMG_5207-250x166.jpg" alt="Canon EFS 17-85mm with image stabilization on" title="IMG_5207" width="250" height="166" class="size-medium wp-image-1157" /></a><p class="wp-caption-text">Canon EFS 17-85mm with image stabilization on</p></div><br />
<br style='clear:both' /><br />
I recently bought a new lens for my Canon Rebel XT. I debated for about 6 months between a new body, and one of three lenses, the 17-85mm f4/5.6 EFS, the 28-135 f 3.5/5.6 EF, and the 17-55 f2.8 USM. I ultimately decided that I&#8217;d rather have a new lens than a new body. My body is 5 years old now, but the only major thing I feel like I am missing is video. I also learned that some of my accessories for my current body would not work with a new Rebel, in particular the battery grip, which is probably my most expensive accessory, at about $150. </p>
<p>I have several lenses &#8211; the kit lens for my Rebel, which is an 18-55mm EFS, a 50mm f 1.8 single focal length, and a 28mm f1.8 single focal length. I really like the 28mm, but my wife frequently wants some zoom capability. My 28mm lens has USM focusing though, which is very nice, and I like being able to get good indoor shots without flash. Speaking of focusing, I had noticed recently that my 18-55mm seemed to be having trouble auto-focusing, which is what led to me consider a new lens. I decided that I definitely wanted a USM lens. I had almost decided on the 28-135 lens, which was the cheapest, but ultimately decided that I wanted to be able to go a bit wider than 28mm for my all purpose lens. </p>
<p>So far I am very happy, especially with the image stabilization. It is far better than I had expected. Normally I don&#8217;t take pictures slower than 1/30 of a second, but I was able to capture a pretty decent shot at 1/4 of a second. I took two versions of the picture, one with and one without image stabilization. There is a dramatic difference. </p>

<p><a href="http://feedads.g.doubleclick.net/~a/SHZHpxKI-bViCpAP5scs9Z14BhA/0/da"><img src="http://feedads.g.doubleclick.net/~a/SHZHpxKI-bViCpAP5scs9Z14BhA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SHZHpxKI-bViCpAP5scs9Z14BhA/1/da"><img src="http://feedads.g.doubleclick.net/~a/SHZHpxKI-bViCpAP5scs9Z14BhA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/lilcgqofWa8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/07/31/image-stabilization-in-canon-efs-17-85mm-lens/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5208-250x166.jpg" />
		<media:content url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5208-250x166.jpg" medium="image">
			<media:title type="html">IMG_5208</media:title>
		</media:content>

		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5207-250x166.jpg" />
		<media:content url="http://robfelty.com/wp-content/uploads/2011/07/IMG_5207-250x166.jpg" medium="image">
			<media:title type="html">IMG_5207</media:title>
		</media:content>
	<feedburner:origLink>http://robfelty.com/2011/07/31/image-stabilization-in-canon-efs-17-85mm-lens</feedburner:origLink></item>
		<item>
		<title>Random featured images in wordpress</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/ULPxId7CNzo/random-featured-images-in-wordpress</link>
		<comments>http://robfelty.com/2011/07/29/random-featured-images-in-wordpress#comments</comments>
		<pubDate>Fri, 29 Jul 2011 22:29:21 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1154</guid>
		<description><![CDATA[I&#8217;ve had random header images on the Fedibblety Family blog for quite some time. I originally implemented this by looking for images in a particular directory. However, I had to manually add pictures to this directory, which was a bit cumbersome. I started thinking, why not just select randomly from all the featured images I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had random header images on the <a href='http://blog.fedibblety.com'>Fedibblety Family blog</a> for quite some time. I originally implemented this by looking for images in a particular directory. However, I had to manually add pictures to this directory, which was a bit cumbersome. I started thinking, why not just select randomly from all the featured images I have for my posts? So I hacked up a quick function to do that. Here it is:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> get_random_header_images<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$featured_image_query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;select id from wp_postmeta join wp_posts on wp_postmeta.meta_value=wp_posts.id where meta_key='_thumbnail_id' order by rand() limit 10&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$img1</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$img2</span> &nbsp;<span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$featured_images</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get_results</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$featured_image_query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$featured_images</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$img</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$img_src</span> <span style="color: #339933;">=</span> wp_get_attachment_image_src<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$img</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'medium'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$ratio</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$img_src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">/</span> <span style="color: #000088;">$img_src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ratio</span> <span style="color: #339933;">&gt;</span> <span style="color:#800080;">1.3</span> and <span style="color: #000088;">$ratio</span> <span style="color: #339933;">&lt;</span> <span style="color:#800080;">1.6</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// make sure that the image isn't too big, and that it has been scaled by WordPress</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$img_src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">250</span> or <span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/[0-9]+x[0-9]+/&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$img_src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">continue</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$img1</span><span style="color: #339933;">==</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$img1</span><span style="color: #339933;">=</span><span style="color: #000088;">$img_src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$img2</span><span style="color: #339933;">==</span><span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$img2</span><span style="color: #339933;">=</span><span style="color: #000088;">$img_src</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$img1</span><span style="color: #339933;">,</span><span style="color: #000088;">$img2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>

<p><a href="http://feedads.g.doubleclick.net/~a/hCwHYyOrIECs2GiINyRtq946Xmk/0/da"><img src="http://feedads.g.doubleclick.net/~a/hCwHYyOrIECs2GiINyRtq946Xmk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/hCwHYyOrIECs2GiINyRtq946Xmk/1/da"><img src="http://feedads.g.doubleclick.net/~a/hCwHYyOrIECs2GiINyRtq946Xmk/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/ULPxId7CNzo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/07/29/random-featured-images-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://robfelty.com/2011/07/29/random-featured-images-in-wordpress</feedburner:origLink></item>
		<item>
		<title>Postie 1.4.2 released</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/0DGJXz3Cw3M/postie-1-4-2-released</link>
		<comments>http://robfelty.com/2011/01/30/postie-1-4-2-released#comments</comments>
		<pubDate>Sun, 30 Jan 2011 19:52:39 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://robfelty.com/?p=1149</guid>
		<description><![CDATA[Yesterday I released Postie version 1.4.2, the WordPress plugin which gives you advanced features to post to your blog via e-mail. I haven&#8217;t done much work on Postie in the last several months, so I finally just decided to call the development version stable, since lots of people have been using it. Improvements over 1.4.1 [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://robfelty.com/wp-content/uploads/2009/08/postie_200x200_7-150x150.png" alt="post to your blog via e-mail" title="postie" width="150" height="150" style="float:left;padding-right:20px;" /></a> Yesterday I released <a href='http://wordpress.org/plugins/postie'>Postie</a> version 1.4.2, the WordPress plugin which gives you advanced features to post to your blog via e-mail. I haven&#8217;t done much work on Postie in the last several months, so I finally just decided to call the development version stable, since lots of people have been using it.<br />
<br style="clear:left" /><br />
Improvements over 1.4.1 include:</p>
<ul>
<li>Fixed mailto link bug (thanks to Jason McNeil) </li>
<li>Fixed bug with attachments with non-ascii characters in filename (thanks to<br />
mtakada)</li>
<li>checking for socket errors when checking mail (thanks elysian)</li>
<li>fixed issue with multiple files not being inserted correctly</li>
<li>Added support for ISO 8859-15 (thanks paolog)</li>
<li>fixed sql injection problem (thanks Jose P. Espinal for pointing it out)</li>
<li>Fixed namespace clashing for get_config function</li>
</ul>
<p>Please report any bugs in the <a href='http://forum.robfelty.com/forum/postie'>postie forum</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/xng_HtX8fT0Iim0QVWDJ0KtsP6A/0/da"><img src="http://feedads.g.doubleclick.net/~a/xng_HtX8fT0Iim0QVWDJ0KtsP6A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/xng_HtX8fT0Iim0QVWDJ0KtsP6A/1/da"><img src="http://feedads.g.doubleclick.net/~a/xng_HtX8fT0Iim0QVWDJ0KtsP6A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/0DGJXz3Cw3M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2011/01/30/postie-1-4-2-released/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://robfelty.com/wp-content/uploads/2009/08/postie_200x200_7-150x150.png" />
		<media:content url="http://robfelty.com/wp-content/uploads/2009/08/postie_200x200_7-150x150.png" medium="image">
			<media:title type="html">postie</media:title>
		</media:content>
	<feedburner:origLink>http://robfelty.com/2011/01/30/postie-1-4-2-released</feedburner:origLink></item>
		<item>
		<title>Site redesign</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/WVOcNJy6BT0/website-redesign</link>
		<comments>http://robfelty.com/2010/12/01/website-redesign#comments</comments>
		<pubDate>Wed, 01 Dec 2010 16:50:39 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[(x)html]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://test.robfelty.com/?p=848</guid>
		<description><![CDATA[I started my website in 2003. At the time it was hosted by the University of Michigan, where I was a graduate student. They gave all students some space for a personal website. It was really great, though it did come with some limitations, like no php or cgi allowed. I managed to kludge some [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1104" class="wp-caption aligncenter" style="width: 610px"><a href="http://test.robfelty.com/wp-content/uploads/2010/08/site-redesign1.png"><img src="http://test.robfelty.com/wp-content/uploads/2010/08/site-redesign1-600x393.png" alt="robfelty.com 2.0" title="site-redesign1" width="600" height="393" class="size-large wp-image-1104" /></a><p class="wp-caption-text">robfelty.com 2.0</p></div>
<p>I started my website in 2003. At the time it was hosted by the University of Michigan, where I was a graduate student. They gave all students some space for a personal website. It was really great, though it did come with some limitations, like no php or cgi allowed. I managed to kludge some server side includes and javascript together to get a fairly decent food website. I also had some other stuff on my site like some academic info. In 2006 I started a blog, and started learning wordpress. Since then, most of the new content on my site has been in my blog, and the rest of the site has kind of just been sitting there. I finally decided to try to integrate it all, for several reasons:</p>
<ol>
<li>Consistent style for all pages</li>
<li>Get everything in a database (for better searching among other things)</li>
<li>Learn some new technology</li>
</ol>
<p>For that last reason, I had started to look at learning more about drupal, since I have seen a number of jobs looking for drupal developers recently. I spent a week or so looking at that in June, and got a little bit excited about a recipe module I found. However, I decided that I wasn&#8217;t crazy about drupal. I think WordPress is miles ahead of drupal in many ways. I was very surprised to find out that uploading pictures is not part of the core of drupal, but rather in a module (and not a very good one at that). Of course, up until WordPress 3.0, WP was mostly just a blogging platform. No longer! With version 3.0, WordPress can easily be used as a full-fledged content management system. So I decided to integrate the disparate portions of my website all into WordPress. During the conversion process I got to learn more about the new features in WordPress 3.0, especially custom post types.</p>
<div id="attachment_1137" class="wp-caption aligncenter" style="width: 589px"><a href="http://test.robfelty.com/wp-content/uploads/2010/08/oldrobfelty.png"><img src="http://test.robfelty.com/wp-content/uploads/2010/08/oldrobfelty-579x400.png" alt="robfelty.com 1.0 - food" title="oldrobfelty" width="579" height="400" class="size-large wp-image-1137" /></a><p class="wp-caption-text">robfelty.com 1.0 - food</p></div>
<p>The biggest challenge of the conversion was converting my recipes. Most of the old pages on my site simply became a WordPress page, but the recipes clearly needed special treatment. I thought I might use a custom post type for recipes, but after a little searching around, I quickly stumbled upon <a href='http://recipepress.net'>RecipePress</a>, which basically does everything I was looking for (and does in fact use custom post types). RecipePress will work out of the box with any theme, but, upon my request, it also will let you use your own custom theme, which is the route I chose. One small dilemma I faced was that I had multiple pictures in some of my recipes, but I could not insert them into the post content, since RecipePress uses that for the recipe directions. Instead, what I ended up doing was using one image as a featured image, and then I wrote some custom code to display any additional images below the ingredients and contents, like so:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> &nbsp;<span style="color: #666666; font-style: italic;">/* additional images here */</span><br />
<span style="color: #000088;">$pics</span> <span style="color: #339933;">=</span> <br />
get_children<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_type=attachment&amp;post_mime_type=image&amp;post_parent='</span> <span style="color: #339933;">.</span> <br />
<span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">count</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pics</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &lt;div class='gallery'&gt;<br />
&nbsp; &lt;h4&gt;Additional pictures&lt;/h4&gt;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pics</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$image</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">!=</span><span style="color: #000088;">$thumbnail_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &lt;dl class='gallery-item'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;dt class='gallery-icon'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a href='<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> &nbsp;wp_get_attachment_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_get_attachment_image<span style="color: #009900;">&#40;</span><span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'medium'</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/a&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/dt&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;dd class='gallery-caption'&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$image</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_excerpt</span><span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/dd&gt;<br />
&nbsp; &nbsp; &nbsp; &lt;/dl&gt;<br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endforeach</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &lt;/div&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>As I started to figure out how I wanted the navigation for the site to work, I also realized that I wanted to update some of the WordPress navigation plugins I have written &#8211; <a href='http://wordpress.org/extend/plugins/collapsing-categories'>Collapsing Categories</a>, <a href='http://wordpress.org/extend/plugins/collapsing-archives'>Collapsing Archives</a>, and <a href='http://wordpress.org/extend/plugins/collapsing-pages'>Collapsing Pages</a>. I added support for custom post types for the first two, and added an option for the pages plugin to only list subpages of the current page (this is how the navigation works for the academic, web design, and wordpress plugins portions of the new site). These features are all in the development versions of the respective plugins right now, but I should put out a new stable release soon.</p>
<p>While I was working on importing content from the old site, I also decided to make a new theme as well. I decided to try out the new child theme functionality in WordPress 3.0. It turned out to be quite easy. The only slightly confusing thing for me was how to disable some of the functionality of the parent theme. There are hints on how to to this in the TwentyTen functions.php file, but it took me awhile to actually figure it out. For example, I did not like how TwentyTen handles excerpts, so I wanted to remove the filters for the the except which TwentyTen adds. The way that WordPress handles child themes is that it first looks for the functions.php file in the child theme, and processes it all. Then it looks at the parent theme&#8217;s functions.php file and processes that. This means that if you try to simply remove a filter from the parent theme in your child theme, it won&#8217;t work, since the child theme is processed first. Instead, you have to do all of this in a function which is called in the <tt>after_setup_theme</tt> hook. Here is what I used in child theme functions.php file:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> robfelty_child_theme_setup<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #666666; font-style: italic;">// We are providing our own filter for excerpt_length (or using the unfiltered value)</span><br />
&nbsp; &nbsp; remove_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'excerpt_length'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyten_excerpt_length'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; remove_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'excerpt_more'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyten_auto_excerpt_more'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; remove_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'get_the_excerpt'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyten_custom_excerpt_more'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'after_setup_theme'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'robfelty_child_theme_setup'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>I also added in some CSS3 features, including rounded corners with border-radius, and gradients as well. As always, it is still a work in progress. Feedback is welcome.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/-oy7JOr_-v-aAAZbaSeg2I2KYg4/0/da"><img src="http://feedads.g.doubleclick.net/~a/-oy7JOr_-v-aAAZbaSeg2I2KYg4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-oy7JOr_-v-aAAZbaSeg2I2KYg4/1/da"><img src="http://feedads.g.doubleclick.net/~a/-oy7JOr_-v-aAAZbaSeg2I2KYg4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/WVOcNJy6BT0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2010/12/01/website-redesign/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://test.robfelty.com/wp-content/uploads/2010/08/site-redesign1-600x393.png" />
		<media:content url="http://test.robfelty.com/wp-content/uploads/2010/08/site-redesign1-600x393.png" medium="image">
			<media:title type="html">site-redesign1</media:title>
		</media:content>

		<media:thumbnail url="http://test.robfelty.com/wp-content/uploads/2010/08/oldrobfelty-579x400.png" />
		<media:content url="http://test.robfelty.com/wp-content/uploads/2010/08/oldrobfelty-579x400.png" medium="image">
			<media:title type="html">oldrobfelty</media:title>
		</media:content>
	<feedburner:origLink>http://robfelty.com/2010/12/01/website-redesign</feedburner:origLink></item>
		<item>
		<title>New WordPress plugin – Image Browser</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/AX-3qjWYzlE/new-wordpress-plugin-image-browser</link>
		<comments>http://robfelty.com/2010/08/04/new-wordpress-plugin-image-browser#comments</comments>
		<pubDate>Wed, 04 Aug 2010 21:55:03 +0000</pubDate>
		<dc:creator>robfelty</dc:creator>
				<category><![CDATA[photography]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://test.robfelty.com/?p=687</guid>
		<description><![CDATA[Today I released my 8th wordpress plugin. This one is quite a bit different from all the other plugins I have written. A friend of mine was looking for a way to create a gallery on his family blog. &#8220;No problem!&#8221;, I told him, &#8220;there are lots of plugins for that&#8221;. But I then quickly [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_689" class="wp-caption alignleft" style="width: 260px"><a href="http://test.robfelty.com/2010/08/04/new-wordpress-plugin-image-browser/image-browser-2/" rel="attachment wp-att-689"><img src="http://test.robfelty.com/wp-content/uploads/2010/08/image-browser-2-250x258.png" alt="Screenshot of image browser plugin in action" title="image-browser-2" width="250" height="258" class="size-medium wp-image-689" /></a><p class="wp-caption-text">Screenshot of image browser plugin in action</p></div>
<p>Today I released my 8th wordpress plugin. This one is quite a bit different from all the other plugins I have written. A friend of mine was looking for a way to create a gallery on his family blog. &#8220;No problem!&#8221;, I told him, &#8220;there are lots of plugins for that&#8221;. But I then quickly realized that no plugins were available for what he was looking for. All of the other image gallery plugins for wordpress function by creating galleries manually, say a gallery of wedding photos, or a gallery of a trip to the zoo. My friend was looking for an easy way to browse all pictures he has ever posted on his blog. That is what the <a href='http://wordpress.org/extend/plugins/image-browser/'>Image Browser plugin</a> does. It allows you to browse through all of your pictures on your blog, and also allows you to restrict by year, month, category, and by caption text. It is easy to install and use. Simply install it, then create a new page, and insert the [imagebrowser] shortcode. That&#8217;s it. Options can be set either in the settings page, or by using shortcode parameters. If you would like a demo, please take a spin at my <a href='http://fedibblety.com/gallery'>family blog gallery</a>, or the <a href='/plugins/image-browser'>image browser page</a> on this site.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/v1pBBu6gfzOKT9wFvIJMEwkZ6CM/0/da"><img src="http://feedads.g.doubleclick.net/~a/v1pBBu6gfzOKT9wFvIJMEwkZ6CM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/v1pBBu6gfzOKT9wFvIJMEwkZ6CM/1/da"><img src="http://feedads.g.doubleclick.net/~a/v1pBBu6gfzOKT9wFvIJMEwkZ6CM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/AX-3qjWYzlE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2010/08/04/new-wordpress-plugin-image-browser/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://test.robfelty.com/wp-content/uploads/2010/08/image-browser-2-250x258.png" />
		<media:content url="http://test.robfelty.com/wp-content/uploads/2010/08/image-browser-2-250x258.png" medium="image">
			<media:title type="html">image-browser-2</media:title>
		</media:content>
	<feedburner:origLink>http://robfelty.com/2010/08/04/new-wordpress-plugin-image-browser</feedburner:origLink></item>
		<item>
		<title>New wordpress plugin – Image Meta</title>
		<link>http://feedproxy.google.com/~r/DeepThoughtsByRobertFelty/~3/W_dm1H8r6jA/new-wordpress-plugin-image-meta</link>
		<comments>http://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://test.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[<div id="attachment_681" class="wp-caption alignleft" style="width: 260px"><a href="http://test.robfelty.com/2010/06/22/new-wordpress-plugin-image-meta/image-meta/" rel="attachment wp-att-681"><img src="http://test.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>
<p>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/-EGJ703UuBBWJ7BcE55K3Q6nprs/0/da"><img src="http://feedads.g.doubleclick.net/~a/-EGJ703UuBBWJ7BcE55K3Q6nprs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-EGJ703UuBBWJ7BcE55K3Q6nprs/1/da"><img src="http://feedads.g.doubleclick.net/~a/-EGJ703UuBBWJ7BcE55K3Q6nprs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/DeepThoughtsByRobertFelty/~4/W_dm1H8r6jA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://robfelty.com/2010/06/22/new-wordpress-plugin-image-meta/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://test.robfelty.com/wp-content/uploads/2010/06/image-meta-250x159.png" />
		<media:content url="http://test.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://robfelty.com/2010/06/22/new-wordpress-plugin-image-meta</feedburner:origLink></item>
	</channel>
</rss>

