<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>twodinks.com</title>
	<atom:link href="http://twodinks.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://twodinks.com</link>
	<description>wordpress, expression engine, and nonsense</description>
	<lastBuildDate>Fri, 04 Mar 2011 15:46:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Raping Norm and Beating Elmo</title>
		<link>http://twodinks.com/2011/03/04/raping-norm-and-beating-elmo/</link>
		<comments>http://twodinks.com/2011/03/04/raping-norm-and-beating-elmo/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 15:46:12 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Kvetching]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1172</guid>
		<description><![CDATA[So the Republicans have decided a great way to solve the budget crisis is to completely defund the Corporation for Public Broadcasting, a federal program that provides funding to NPR and PBS. I signed a petition asking them to stop messing with a popular use of public funds (unless you&#8217;re a wingnut, apparently). Here&#8217;s his [...]]]></description>
			<content:encoded><![CDATA[<p>So the Republicans have decided a great way to solve the budget crisis is to completely defund the Corporation for Public Broadcasting, a federal program that provides funding to NPR and PBS. I signed a petition asking them to stop messing with a popular use of public funds (unless you&#8217;re a wingnut, apparently). Here&#8217;s his office&#8217;s canned reply:</p>
<blockquote><p>Thank you for contacting me to express your views on federal funding for public broadcasting.  It is good to hear from you.</p>
<p>You raised some interesting and insightful points regarding federal funds for services like National Public Radio (NPR) and the Public Broadcasting Service (PBS), and I appreciate you sharing them with me.  You may be interested to know that the Corporation for Public Broadcasting (CPB), which provides a small percentage of funding for NPR and PBS, has received $4 billion in taxpayer funding since 2001, including $430 million in FY 2011.  It is important to keep in mind that reductions to CPB do not necessarily bring an end to quality public programming, because over 80 percent of U.S. public broadcasting funding comes from non-federal sources.  Popular public programs can continue without federal taxpayer dollars through the support of and contributions from commercial and charitable funding.</p>
<p>I believe the current federal debt is among the most serious problems facing this and future generations.  This historic failure to control spending directly affects our economy and the ability to create jobs.  It pushes up interest rates and crowds out private investment.  To address this challenge, we must make the difficult decisions to prioritize how taxpayer dollars are spent.</p>
<p>Thank you again for taking the time to write.  I will keep your views in mind as Congress continues to explore ways to address our budget deficits and reduce our debt. I encourage you to visit my website at www.portman.senate.gov. Please keep in touch.</p></blockquote>
<p>Naturally, I agree that the federal debt is a huge problem. But the way he presented his math pissed me off. He tries to make it look &#8220;bad&#8221; by opening with the $4 billion figure. Sounds like a lot of money, wow! Oh, wait. That&#8217;s over the past DECADE. His contention that the shortfall can be covered by support from&#8230;well, here&#8217;s my reply to him:</p>
<blockquote><p>According to a canned message I received from your office, &#8220;the Corporation for Public Broadcasting (CPB), which provides a small percentage of funding for NPR and PBS, has received $4 billion in taxpayer funding since 2001, including $430 million in FY 2011.&#8221; Considering non-security discretionary was slated to be around $496 billon, I can&#8217;t agree with the claim that you and your party are being responsible by aggressively cutting a program that equals less than 1% of that part of the budget. I also don&#8217;t see how 10-20% of a local station&#8217;s budget can be considered a small percentage of funding.</p>
<p>Claiming that their budget shortfalls &#8220;can continue without federal taxpayer dollars through the support of and contributions from commercial and charitable funding&#8221; as was claimed in your email is quite false. I know that&#8217;s the Republican reason for cutting most programs that benefit people instead of corporations or the super-rich. The problem with that contention is that there is only so much charitable money to be spread around. As more programs, services, and safety nets are cut, do you truly believe that those already overburdened private funds are going to be able to make up the difference?</p>
<p>It&#8217;s never a good idea to spend more than you take in. Bush&#8217;s tax cuts were a bad idea a decade ago, as were his unfunded mandates. Your party was completely in step with these decisions, and even fought to keep those cuts in place against all logic and reason. What your party is proposing now would be like me turning down a raise at work, complaining that I can&#8217;t make ends meet, and deciding that my best move would be to cut my toothpaste budget while continuing to make payments on my 7-series.</p>
<p>I&#8217;d like to propose that you cut that minuscule $430 million from the already bloated and skyrocketing military budget? Since their budget approaches $1 TRILLION dollars, CPB funding amounts to nothing more than a rounding error to them. And if we do that, we&#8217;ll still be spending more than the next 15 countries *combined*. That&#8217;s so irresponsible it&#8217;s ludicrous. If your party does not agree to sizable yet sensible cuts to the defense budget, or at least a road map to such, you&#8217;re not at all serious about balancing the budget unless it means only cutting the programs your side doesn&#8217;t like. It would be nice if, for once, someone stood up and admitted this.</p></blockquote>
<p>Ah, intellectual dishonesty. It&#8217;s alive and well and bipartisan in the nation&#8217;s capitol.</p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2011/03/04/raping-norm-and-beating-elmo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Members-Only WordPress menus</title>
		<link>http://twodinks.com/2011/02/17/members-only-wordpress-menus/</link>
		<comments>http://twodinks.com/2011/02/17/members-only-wordpress-menus/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 05:00:43 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1158</guid>
		<description><![CDATA[// register the new sidebar; this will hold a WP custom menu widget, give it a logical name register_sidebars(1,array(&#8216;name&#8217; =&#62; &#8216;Members-Only Menu&#8217;, &#8216;before_widget&#8217; =&#62; &#8216;&#60;li id=&#8221;%1$s&#8221;&#62;&#8217;, &#8216;after_widget&#8217; =&#62; &#8216;&#60;/li&#62;&#8217;, &#8216;before_title&#8217; =&#62; &#8216;&#60;h3&#62;&#8217;, &#8216;after_title&#8217; =&#62; &#8216;&#60;/h3&#62;&#8217; ) ); // create function to display widget // this menu is limited to user levels above &#8220;subscriber&#8221; function widgetized() [...]]]></description>
			<content:encoded><![CDATA[<p>// register the new sidebar; this will hold a WP custom menu widget, give it a logical name<br />
register_sidebars(1,array(&#8216;name&#8217; =&gt; &#8216;Members-Only Menu&#8217;,<br />
&#8216;before_widget&#8217; =&gt; &#8216;&lt;li id=&#8221;%1$s&#8221;&gt;&#8217;,<br />
&#8216;after_widget&#8217; =&gt; &#8216;&lt;/li&gt;&#8217;,<br />
&#8216;before_title&#8217; =&gt; &#8216;&lt;h3&gt;&#8217;,<br />
&#8216;after_title&#8217; =&gt; &#8216;&lt;/h3&gt;&#8217;<br />
)<br />
);</p>
<p>// create function to display widget<br />
// this menu is limited to user levels above &#8220;subscriber&#8221;<br />
function widgetized() {<br />
if (current_user_can(&#8216;level_1&#8242;)){ ?&gt;<br />
&lt;div id=&#8221;membermenu&#8221;&gt;<br />
&lt;ul&gt;<br />
&lt;?php thesis_default_widget(5); ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;?php }<br />
}</p>
<p>// i put the member-exclusive menu above the header, basically the first thing on the page<br />
add_action(&#8216;thesis_hook_before_header&#8217;, &#8216;widgetized&#8217;, &#8217;1&#8242;);</p>
<p>/* user level key<br />
Administrator: level_10<br />
Editor: level_7<br />
Author: level_2<br />
Contributor: level_1<br />
Subscriber: level_0 (you wouldn&#8217;t use this as you&#8217;d just use the is_user_logged_in() function)<br />
*/</p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2011/02/17/members-only-wordpress-menus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>More HDR Adventures</title>
		<link>http://twodinks.com/2011/01/03/more-hdr-adventures/</link>
		<comments>http://twodinks.com/2011/01/03/more-hdr-adventures/#comments</comments>
		<pubDate>Mon, 03 Jan 2011 17:35:55 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Graphics/Photos/Web]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1146</guid>
		<description><![CDATA[This is the original snap shot, captured as a RAW file (thankfully). These photos are cropped so click on each one to load the full photo in its own window. In Adobe Camera RAW I saved out the original exposure as a TIFF, then played with the exposure sliders until I was happy with one [...]]]></description>
			<content:encoded><![CDATA[<p>This is the original snap shot, captured as a RAW file (thankfully). These photos are cropped so click on each one to load the full photo in its own window.</p>
<p><a href="http://twodinks.com/wp-content/uploads/2011/01/Germany0.jpg"><img class="aligncenter size-full wp-image-1147" title="Germany0" src="http://twodinks.com/wp-content/uploads/2011/01/Germany0.jpg" alt="" width="465" /></a></p>
<p>In Adobe Camera RAW I saved out the original exposure as a TIFF, then played with the exposure sliders until I was happy with one exposure that captured shadow detail and another that captured highlight detail. I saved those out as TIFFs and then loaded them into NIKs HDR Efex Pro where I tonemapped them. The final step was to load the tonemapped file into Photoshop with the varying EV TIFFs and used a mask and a soft brush to clean up some of the HDRness. Yes, that&#8217;s a word.</p>
<p><a href="http://twodinks.com/wp-content/uploads/2011/01/Germany0_HDR.jpg"><img class="aligncenter size-full wp-image-1148" title="Germany0_HDR" src="http://twodinks.com/wp-content/uploads/2011/01/Germany0_HDR.jpg" alt="" width="465" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2011/01/03/more-hdr-adventures/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Experimenting With HDR</title>
		<link>http://twodinks.com/2010/12/30/experimenting-with-hdr/</link>
		<comments>http://twodinks.com/2010/12/30/experimenting-with-hdr/#comments</comments>
		<pubDate>Fri, 31 Dec 2010 03:46:48 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Graphics/Photos/Web]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1141</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://twodinks.com/wp-content/uploads/2010/12/DSC_0001.png"><img src="http://twodinks.com/wp-content/uploads/2010/12/DSC_0001.png" alt="" title="DSC_0001" width="465" class="aligncenter size-full wp-image-1142" /></a><br />
<a href="http://twodinks.com/wp-content/uploads/2010/12/DSC_0001_2_3_tonemapped.png"><img src="http://twodinks.com/wp-content/uploads/2010/12/DSC_0001_2_3_tonemapped.png" alt="" title="DSC_0001_2_3_tonemapped" width="465" class="aligncenter size-full wp-image-1143" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/12/30/experimenting-with-hdr/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Specific Javascript and CSS for Headway Theme</title>
		<link>http://twodinks.com/2010/11/27/page-specific-javascript-and-css/</link>
		<comments>http://twodinks.com/2010/11/27/page-specific-javascript-and-css/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 00:01:17 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Graphics/Photos/Web]]></category>
		<category><![CDATA[Headway Theme]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1110</guid>
		<description><![CDATA[Yeah that&#8217;s right. I&#8217;m posting something. What a god awful background this theme has. Over at mortgagesbyjoe.ca, I wanted to load the javascript and css that controls the &#8220;accordion&#8221; feature that appears only on the front page of the site. There is no point to these loading on any other page of the site. Mortgagesbyjoe [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah that&#8217;s right. I&#8217;m posting something. What a god awful background this theme has.</p>
<p>Over at <a href="http://mortgagesbyjoe.ca">mortgagesbyjoe.ca</a>, I wanted to load the javascript and css that controls the &#8220;accordion&#8221; feature that appears only on the front page of the site. There is no point to these loading on any other page of the site. Mortgagesbyjoe is a WordPress powered site that uses the <a href="http://headwaythemes.com/">Headway</a> theme framework.</p>
<p>Here is the code I used in my custom_functions.php:</p>
<pre>
// Load js and css for front page accordion
function load_accordion()
{
    if (is_front_page()) { /* If front page */ ?>
&lt;!-- start load front page accordion -->
    &lt;script type="text/javascript" src="http://mortgagesbyjoe.ca/wp-content/uploads/headway/template-uploads/js/jquery.accordion.js">
    &lt;ink rel="stylesheet" type="text/css" media="screen" href="http://mortgagesbyjoe.ca/wp-content/uploads/headway/template-uploads/css/jquery.accordion.css"  />
&lt;!-- end load front page accordion -->
    < ?php }
}
add_action('wp_head', 'load_accordion');
</pre>
<p>Yes I used absolute links to the files. Bad.  What I should have done, and will do when I'm not feeling lazy is something like: </p>
</pre>
<pre>
script src="'.get_bloginfo('url').'custom/js/jquery.accordion.js/" type="text/javascript"
</pre>
<p>That little .get_bloginfo bit tells the browser to look in the root of your theme folder. You can&#8217;t have this much fun without breaking a law.</p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/11/27/page-specific-javascript-and-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A different way to include stylesheets</title>
		<link>http://twodinks.com/2010/10/15/a-different-way-to-include-stylesheets/</link>
		<comments>http://twodinks.com/2010/10/15/a-different-way-to-include-stylesheets/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 02:47:14 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Thesis]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1105</guid>
		<description><![CDATA[Here&#8217;s another way to link to stylesheets. It may be overkill for some things, but definitely useful for plugin developers. I&#8217;m thinking of sending the link to every plugin author who echoes 50 lines of CSS into my page headers. Thanks alot.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nkuttler.de/post/wordpress-style-version-conditional-comments/">Here&#8217;s another way to link to stylesheets</a>. It may be overkill for some things, but definitely useful for plugin developers. I&#8217;m thinking of sending the link to every plugin author who echoes 50 lines of CSS into my page headers. Thanks alot.</p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/10/15/a-different-way-to-include-stylesheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why limit yourself to Thesis Hooks?</title>
		<link>http://twodinks.com/2010/10/15/why-limit-yourself-to-thesis-hooks/</link>
		<comments>http://twodinks.com/2010/10/15/why-limit-yourself-to-thesis-hooks/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 02:28:00 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Thesis]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1103</guid>
		<description><![CDATA[Nuh uh. Not when you can start using WordPress Action Hooks to get more done!]]></description>
			<content:encoded><![CDATA[<p>Nuh uh. Not when you can start using <a href="http://www.nathanrice.net/blog/an-introduction-to-wordpress-action-hooks/">WordPress Action Hooks</a> to get more done! </p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/10/15/why-limit-yourself-to-thesis-hooks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use hook to add another specialized style sheet</title>
		<link>http://twodinks.com/2010/10/15/use-hook-to-add-another-specialized-style-sheet/</link>
		<comments>http://twodinks.com/2010/10/15/use-hook-to-add-another-specialized-style-sheet/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 22:27:13 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Thesis]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1099</guid>
		<description><![CDATA[As used on Paisley Farm&#8217;s site. function add_recipe_styles() { $sheet = get_bloginfo('template_url') . '/custom/recipes.css'; echo "\n"; echo '&#60;link rel="stylesheet" href="' . $sheet . '" type="text/css" media="screen, projection" /&#62;;'; } add_action('wp_head','add_recipe_styles');]]></description>
			<content:encoded><![CDATA[<p>As used on Paisley Farm&#8217;s site.</p>
<p><code>function add_recipe_styles() {<br />
$sheet = get_bloginfo('template_url') . '/custom/recipes.css';<br />
echo "\n";<br />
echo '&lt;link rel="stylesheet" href="' . $sheet . '" type="text/css" media="screen, projection" /&gt;;';<br />
}</p>
<p>add_action('wp_head','add_recipe_styles');</code></p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/10/15/use-hook-to-add-another-specialized-style-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop shadow with CSS for all web browsers</title>
		<link>http://twodinks.com/2010/10/01/drop-shadow-with-css-for-all-web-browsers/</link>
		<comments>http://twodinks.com/2010/10/01/drop-shadow-with-css-for-all-web-browsers/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 15:40:22 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1095</guid>
		<description><![CDATA[From this site .shadow { -moz-box-shadow: 3px 3px 4px #000; -webkit-box-shadow: 3px 3px 4px #000; box-shadow: 3px 3px 4px #000; /* For IE 8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')"; /* For IE 5.5 - 7 */ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000'); }]]></description>
			<content:encoded><![CDATA[<p><a href="http://robertnyman.com/2010/03/16/drop-shadow-with-css-for-all-web-browsers/">From this site</a></p>
<p><code>.shadow {<br />
-moz-box-shadow: 3px 3px 4px #000;<br />
-webkit-box-shadow: 3px 3px 4px #000;<br />
box-shadow: 3px 3px 4px #000;<br />
/* For IE 8 */<br />
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";<br />
/* For IE 5.5 - 7 */<br />
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');<br />
}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/10/01/drop-shadow-with-css-for-all-web-browsers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>For the fireman in all of us</title>
		<link>http://twodinks.com/2010/09/18/for-the-fireman-in-all-of-us/</link>
		<comments>http://twodinks.com/2010/09/18/for-the-fireman-in-all-of-us/#comments</comments>
		<pubDate>Sun, 19 Sep 2010 03:05:49 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Home & Garden]]></category>

		<guid isPermaLink="false">http://twodinks.com/?p=1077</guid>
		<description><![CDATA[Because I don&#8217;t want to be accused of catering only to the website constructors here (all two of us), I offer this firehose-inspired nozzle (heheh, I said &#8220;nozzle&#8221;) for all of us.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tundraheadquarters.com/blog/2009/04/06/bon-aire-garden-hose-nozzle-home-car-wash/"><img class="size-full wp-image-1078 alignright" title="bikini-car-wash-nozzle" src="http://twodinks.com/wp-content/uploads/2010/09/bikini-car-wash-nozzle.jpg" alt="" width="450" height="300" /></a>Because I don&#8217;t want to be accused of catering only to the website constructors here (all two of us), I offer this f<a href="http://www.tundraheadquarters.com/blog/2009/04/06/bon-aire-garden-hose-nozzle-home-car-wash/">irehose-inspired nozzle</a> (heheh, I said &#8220;nozzle&#8221;) for all of us.</p>
]]></content:encoded>
			<wfw:commentRss>http://twodinks.com/2010/09/18/for-the-fireman-in-all-of-us/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

