<?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>richwklein.com</title>
	<atom:link href="http://richwklein.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://richwklein.com</link>
	<description>A blog about nothing</description>
	<lastBuildDate>Mon, 19 Jul 2010 14:21:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://richwklein.com/?pushpress=hub'/>
		<item>
		<title>Home for Sale</title>
		<link>http://richwklein.com/2010/05/16/home-for-sale/</link>
		<comments>http://richwklein.com/2010/05/16/home-for-sale/#comments</comments>
		<pubDate>Sun, 16 May 2010 18:09:32 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Me]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1712</guid>
		<description><![CDATA[We have recently put our house on the market.  If you are interested in a four bedroom ranch with a walk-out basement that is in a very nice neighborhood, checkout our sale page or craigslit ad.
]]></description>
			<content:encoded><![CDATA[<p>We have recently put our house on the market.  If you are interested in a four bedroom ranch with a walk-out basement that is in a very nice neighborhood, checkout our <a href="/504-n-kenwood-blvd/">sale page</a> or <a href="http://desmoines.craigslist.org/reo/1850843317.html">craigslit ad</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/05/16/home-for-sale/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What Happened to ICP?</title>
		<link>http://richwklein.com/2010/04/07/what-happened-to-icp/</link>
		<comments>http://richwklein.com/2010/04/07/what-happened-to-icp/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 19:46:28 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Media]]></category>
		<category><![CDATA[Clown]]></category>
		<category><![CDATA[Explicit]]></category>
		<category><![CDATA[ICP]]></category>
		<category><![CDATA[Insane]]></category>
		<category><![CDATA[Insane Clown Posse]]></category>
		<category><![CDATA[Posse]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1557</guid>
		<description><![CDATA[I know that I&#8217;ve been posting a lot of videos on the blog lately, but I just caught the video for the Insane Clown Posse&#8217;s song &#8220;Miracles&#8221;.  It leads me to one question.  What happened to ICP?  I haven&#8217;t listened to them in a long time, but over a decade ago when [...]]]></description>
			<content:encoded><![CDATA[<p>I know that I&#8217;ve been posting a lot of videos on the blog lately, but I just caught the video for the Insane Clown Posse&#8217;s song &#8220;Miracles&#8221;.  It leads me to one question.  What happened to ICP?  I haven&#8217;t listened to them in a long time, but over a decade ago when I first started listening it was about being different, one might even say insane.  Maybe it&#8217;s just me, but this last video is just a little to soft for the ICP I use to know.  Below is the new video.  I&#8217;ve also posted a couple of there older songs for comparison.</p>
<p><strong>WARNING!!!  These videos have very explicit lyrics.</strong></p>
<h3>Miracles</h3>
<p><object class="video pad"><param name="movie" value="http://www.youtube.com/v/_-agl0pOQfs&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/_-agl0pOQfs&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<span id="more-1557"></span></p>
<h3>Halls Of Illusions</h3>
<p><object class="video pad"><param name="movie" value="http://www.youtube.com/v/c_V03Vn_evw&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/c_V03Vn_evw&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<h3>Hokus Pokus</h3>
<p><object class="video pad"><param name="movie" value="http://www.youtube.com/v/Ghc19FrHaCU&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Ghc19FrHaCU&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/04/07/what-happened-to-icp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE is Being Mean to Me</title>
		<link>http://richwklein.com/2010/03/26/ie-is-being-mean-to-me/</link>
		<comments>http://richwklein.com/2010/03/26/ie-is-being-mean-to-me/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:14:05 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Media]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Explorer]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mean]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Viral]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1509</guid>
		<description><![CDATA[I so feel this guys pain.  I&#8217;ve been in the situation many times before trying to get javascript/html working cross browser.

]]></description>
			<content:encoded><![CDATA[<p>I so feel this guys pain.  I&#8217;ve been in the situation many times before trying to get javascript/html working cross browser.<br />
<object class="video pad"><param name="movie" value="http://www.youtube.com/v/vTTzwJsHpU8&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/vTTzwJsHpU8&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/03/26/ie-is-being-mean-to-me/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Video Game Bosses’ Lament</title>
		<link>http://richwklein.com/2010/03/15/the-video-game-bosses%e2%80%99-lament/</link>
		<comments>http://richwklein.com/2010/03/15/the-video-game-bosses%e2%80%99-lament/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 16:05:58 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Media]]></category>
		<category><![CDATA[Boss]]></category>
		<category><![CDATA[College]]></category>
		<category><![CDATA[College Humor]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[Lament]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Viral]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1347</guid>
		<description><![CDATA[
See more funny videos and funny pictures at CollegeHumor.
]]></description>
			<content:encoded><![CDATA[<p><object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1930110&#038;fullscreen=1" class="video pad"><param name="allowfullscreen" value="true"/><param name="wmode" value="transparent"/><param name="allowScriptAccess" value="always"/><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1930110&#038;fullscreen=1"/><embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=1930110&#038;fullscreen=1" type="application/x-shockwave-flash" wmode="transparent"  allowScriptAccess="always"></embed></object>
<div class="credits">See more <a href="http://www.collegehumor.com/videos">funny videos</a> and <a href="http://www.collegehumor.com/pictures">funny pictures</a> at <a href="http://www.collegehumor.com/">CollegeHumor</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/03/15/the-video-game-bosses%e2%80%99-lament/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Update</title>
		<link>http://richwklein.com/2010/03/09/blog-update/</link>
		<comments>http://richwklein.com/2010/03/09/blog-update/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 19:42:55 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1309</guid>
		<description><![CDATA[I&#8217;ve had it on my calendar for years to update this site.  It hasn&#8217;t happened in the past because I&#8217;ve modified the theme so heavily that I knew it would take a long time to cleanup.  This week I have started the process.  Over the next week or two things are going [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had it on my calendar for years to update this site.  It hasn&#8217;t happened in the past because I&#8217;ve modified the theme so heavily that I knew it would take a long time to cleanup.  This week I have started the process.  Over the next week or two things are going to change.  All these changes are going to take a couple of weeks to get in place.  So until it&#8217;s all done you might see some strange things on this site.  Bear with me while I do this.  The site will be much better when it&#8217;s completed.</p>
<p><span id="more-1309"></span></p>
<ul>
<li>I&#8217;m removing the tweet digests.  These tweets can be found on <a href="http://twitter.com/richwklein">Twitter</a> and they don&#8217;t really add anything to the site.</li>
<li>I&#8217;m shortening up the list of categories.  The new list of categories will be:
<ul>
<li><a href="/category/me">Me</a>:  About me.</li>
<li><a href="/category/family">Family</a>:  About our family.</li>
<li><a href="/category/work">Work</a>:  About my work.</li>
<li><a href="/category/around">Around</a>:  Issues around the house.</li>
<li><a href="/category/media">Media</a>:  Photos, Videos, Books.</li>
<li><a href="/category/editorial">Editorial</a>:  News, rants, and editorial content.</li>
</ul>
</li>
<li>Each post is getting cleaned up.  I&#8217;m removing any hard coded styles on photos and videos and using classes to size them instead.  Tags are getting added to each post also.</li>
<li>To make things easier to update in the future, I&#8217;m removing my modifications from the theme and using plugins to replace the functionality.  A list of the plugins I&#8217;m using are:
<ul>
<li><a href="http://disqus.com/overview/">Disqus comments</a>: The DISQUS comment system replaces your WordPress comment system with your comments hosted and powered by DISQUS. Head over to the Comments admin page to set up your DISQUS Comment System.</li>
<li><a href="http://wordpress.org/extend/plugins/php-code-widget/">Executable PHP widget</a>:  Like the Text widget, but it will take PHP code as well. Heavily derived from the Text widget code in WordPress.</li>
<li><a href="http://www.arnebrachhold.de/redir/sitemap-home/">Google XML Sitemaps</a>:  This plugin will generate a special XML sitemap which will help search engines like Google, Yahoo, Bing and Ask.com to better index your blog.</li>
<li><a href="http://nikolay.com/projects/wordpress/myopenid/">MyOpenID</a>: MyOpenID plugin allows you to use your blog as your OpenID identity by delegating it to an external provide such as myOpenID, myVidoop, and claimID.</li>
<li>PuSHPress:  PubSubHubbub plugin for WordPress that includes the hub</li>
<li><a href="http://sharethis.com/">ShareThis</a>:  Let your visitors share a post/page with others. Supports e-mail and posting to social bookmarking sites.</li>
<li><a href="http://alexking.org/projects/wordpress">Twitter Tools</a>:  A complete integration between your WordPress blog and Twitter. Bring your tweets into your blog and pass your blog posts to Twitter. Show your tweets in your sidebar, and post tweets from your WordPress admin.</li>
<li><a href="http://www.oratransplant.nl/uga">Ultimate Google Analytics</a>:  Enable Google Analytics on your blog. Has options to also track external links, mailto links and links to downloads on your own site.</li>
<li><a href="http://mnm.uib.es/gallir/wp-cache-2/">wp-cache</a>:  Very fast cache module. It&#8217;s composed of several modules, this plugin can configure and manage the whole system.</li>
<li><a href="http://www.tipsandtricks-hq.com/">WP Simple Adsense Insertion</a>:  A simple Wordpress plugin to insert Google Adsense into posts, pages, sidebars.</li>
</ul>
</li>
<li>Even with these plugins, there are still things on the site that require me to modify the theme.  Instead of modifying my new theme I&#8217;ve picked I&#8217;m going to use <a href="http://www.bloggingtips.com/2009/05/21/wordpress-theme-inheritance/">theme inheritance</a> and put all the modifications in a child theme.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/03/09/blog-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Three the New Two?</title>
		<link>http://richwklein.com/2010/02/25/is-three-the-new-two/</link>
		<comments>http://richwklein.com/2010/02/25/is-three-the-new-two/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 19:46:01 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Children]]></category>
		<category><![CDATA[Kids]]></category>
		<category><![CDATA[Large]]></category>
		<category><![CDATA[Size]]></category>
		<category><![CDATA[Trends]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1022</guid>
		<description><![CDATA[Since it took so long for us to become parents the first time, we had to realize it may never happen for us.  Then shortly after our first son was born we found out that Rachel was pregnant with our second son.  This lead us down the path of determining what the size [...]]]></description>
			<content:encoded><![CDATA[<p>Since it took so long for us to become parents the first time, we had to realize it may never happen for us.  Then shortly after our first son was born we found out that Rachel was pregnant with our second son.  This lead us down the path of determining what the size of our family should be.  We decided that three children would be the correct size for our family.  Which we&#8217;ve recently achieved with the birth of our third son.  We have recently noticed the trend with our friends was to have more than two children also.</p>
<p><span id="more-1022"></span><br />
That made me curious if this was an overall trend or just localized to our immediate group of friends and family.  The most recent data I was able to find on the subject came from a 2007 <a href="http://brain.gallup.com/content/?ci=27973">Gallup Poll</a>.  Different articles I&#8217;ve read that reference this poll and others state that two is still what people believe is the ideal number.  However, there are some interesting trends.</p>
<blockquote><div>Professional moms have twice as many kids at home, on average, than their high-powered counterparts did back in 1977, according to a 2002 report from the Families and Work Institute. And in a 2000 study, sociologist Martin found that college-educated women who put off motherhood until their 30s are suddenly having families almost as big as everyone else&#8217;s. &#8220;That&#8217;s historically unprecedented,&#8221; he says. <cite title="Family size in America: Are large families back?"><a href="http://www.babycenter.com/0_family-size-in-america-are-large-families-back_1503367.bc">babycenter</a></cite></div>
</blockquote>
<blockquote><div>Americans also had different opinions depending on what generation they belonged to. A larger part of Americans (61%) between 35 and 54 years of age responded that having 2 or less children was optimal. Interestingly, less than half (48%) of 18 to 34 year olds agreed with this idea. <cite title="Poll: Over Half of Americans Believe Two Children is Ideal Number"><a href="http://www.associatedcontent.com/article/297295/poll_over_half_of_americans_believe_pg2.html?cat=51">associated content</a></cite></div>
</blockquote>
<p>Since Rachel and I fit into the 18 to 34 year old group it may explain why we are seeing larger families.  </p>
<p>The graph below from the article <a href="http://inductivist.blogspot.com/2009/11/trends-in-ideal-family-size.html">Trends in ideal family size</a> really illustrates these trends.<br />
<a href="http://richwklein.com/wp-content/uploads/2010/02/ideal.jpg"><img src="http://richwklein.com/wp-content/uploads/2010/02/ideal-300x200.jpg" alt="" title="ideal" width="300" height="200" class="alignleft pad size-medium wp-image-1024" /></a></p>
<p>So what do you think.  Is three the new two?  Are large families making a comeback?  Leave a comment and let me know what you think.</p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/02/25/is-three-the-new-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Hidden Cost of Home Entertainment</title>
		<link>http://richwklein.com/2010/01/25/the-hidden-cost-of-home-entertainment/</link>
		<comments>http://richwklein.com/2010/01/25/the-hidden-cost-of-home-entertainment/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 18:15:39 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Around]]></category>
		<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Blue]]></category>
		<category><![CDATA[Blue Ray]]></category>
		<category><![CDATA[Cost]]></category>
		<category><![CDATA[DVR]]></category>
		<category><![CDATA[Hidden]]></category>
		<category><![CDATA[Ray]]></category>
		<category><![CDATA[Tivo]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[WIFI]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=1011</guid>
		<description><![CDATA[At Christmas time we considered buying a new Blue Ray player.  Last week we decided to get a Tivo.  In recent years these devices have come down in price to what I consider reasonable.  
Things like these have all kinds of hidden cost, but here is one you might not think about. [...]]]></description>
			<content:encoded><![CDATA[<p>At Christmas time we considered buying a new <a href="http://www.walmart.com/catalog/product.do?product_id=11080822">Blue Ray player</a>.  Last week we decided to get a <a href="http://www.tivo.com/dvr-products/tivo-series2-dvr/index.html">Tivo</a>.  In recent years these devices have come down in price to what I consider reasonable.  </p>
<p>Things like these have all kinds of hidden cost, but here is one you might not think about.  Most modern equipment needs an internet connection to function properly.  What many people may not know is that lots of Blue Ray players and DVRs do not come with built in WIFI.  You could wire you house for Ethernet to get these online, but who really wants to do that?  That means you have to buy a proprietary USB network adapter.  An adapter you can only get from the manufacturer.  These adapters usually run between $50 and $80 dollars.  </p>
<p>If you do consider getting one of these &quot;Home Entertainment&quot; devices just make sure you know how it connects to the internet and if you will need one of these adapters.</p>
<p>** Update ** <a href="http://efinke.com">Chris Finke</a> suggests purchasing an apple airport express instead of a network adapter.  It doesn&#8217;t cost much more and gives you the opportunity to network some speakers.</p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/01/25/the-hidden-cost-of-home-entertainment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Price of Unrealistic Expectations</title>
		<link>http://richwklein.com/2010/01/20/the-price-of-unrealistic-expectations/</link>
		<comments>http://richwklein.com/2010/01/20/the-price-of-unrealistic-expectations/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 22:07:19 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Editorial]]></category>
		<category><![CDATA[Divorce]]></category>
		<category><![CDATA[Expectations]]></category>
		<category><![CDATA[Married]]></category>
		<category><![CDATA[Princess]]></category>
		<category><![CDATA[Princess Syndrome]]></category>
		<category><![CDATA[Question]]></category>
		<category><![CDATA[Syndrome]]></category>
		<category><![CDATA[Twilight]]></category>
		<category><![CDATA[Twilight Effect]]></category>
		<category><![CDATA[Unrealistic]]></category>
		<category><![CDATA[Wife]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=991</guid>
		<description><![CDATA[About 10 years ago all our friends were getting married.  Five years ago they were all having kids.  Now, many them are getting divorced.  Rachel and I have noticed with this trend that it is the women in the relationship who are unhappy and looking to get out.  We&#8217;ve mused on [...]]]></description>
			<content:encoded><![CDATA[<p>About 10 years ago all our friends were getting married.  Five years ago they were all having kids.  Now, many them are getting divorced.  Rachel and I have noticed with this trend that it is the women in the relationship who are unhappy and looking to get out.  We&#8217;ve mused on the cause of this and how do we improve the sanctity of marriage again.  In these musings, We&#8217;ve come to the conclusion that in many of these cases, the root cause of the problem is unrealistic expectations.  Expectations of what a man is, what a marriage is about, and what women are really looking for.</p>
<p><span id="more-991"></span><br />
Apparently <a href="http://fathersforlife.org/divorce/divmen.htm">two-thirds</a> of all divorces are initiated by women.  With that fact and our musings about divorce I wanted to ask these questions: What shifts in society need to occur so that women are happy in marriage?  What can be done to help combat the <a href="http://news.softpedia.com/news/Robert-Pattinson-Gives-Women-Unrealistic-Expectations-of-Men-119173.shtml">Twilight Effect</a>, <a href="http://www.pkmeco.com/princess.htm">Princess Syndrome</a>, and <a href="http://www.rd.com/living-healthy/unrealistic-expectations-about-marriage/article31753.html">Unrealistic Marriage Expectations</a>?</p>
<p>In an aside.  While researching this post I thought I coined a new term <a href="http://www.urbandictionary.com/define.php?term=princess%20syndrome">&quot;Princess Syndrome&quot;</a>.  A quick <a href="http://www.google.com/search?q=princess+syndrome&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;">search</a> proved me wrong though.</p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/01/20/the-price-of-unrealistic-expectations/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>JavaScript Singletons in Firefox Add-ons</title>
		<link>http://richwklein.com/2010/01/19/javascript-singletons-in-firefox-add-ons/</link>
		<comments>http://richwklein.com/2010/01/19/javascript-singletons-in-firefox-add-ons/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:20:08 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Add-On]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Extension]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Iframe]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[Singleton]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Trick]]></category>
		<category><![CDATA[XPCOM]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=984</guid>
		<description><![CDATA[Occasionally when developing add-ons for Firefox, you want your JavaScript to only run once for the lifetime of the application.  Normally, you would place your code in a browser overlay, but this causes the code to run every time a new window is opened.  There are several ways to get around this.  [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally when developing <a href="http://addons.mozilla.org">add-ons</a> for <a href="http://getfirefox.com">Firefox</a>, you want your JavaScript to only run once for the lifetime of the application.  Normally, you would place your code in a browser overlay, but this causes the code to run every time a new window is opened.  There are several ways to get around this.  You could write an <a href="https://developer.mozilla.org/en/XPCOM">XPCOM service</a> or use a <a href="https://developer.mozilla.org/en/JavaScript_code_modules">JavaScript module</a>.  These are both valid methods and work very well if your code is Firefox specific.  However, if you are also writing your add-on for <a href="http://www.google.com/chrome">Chrome</a>, you might want the code to be able to run in both places.  Here is a nice little hack that uses the hidden window so that you can run your <a href="http://code.google.com/chrome/extensions/background_pages.html">Chrome background page</a> within an iframe in Firefox. </p>
<p><span id="more-984"></span></p>
<pre>

  function getBackgroundPage(id, src) {

    // get the firefox hidden window
    var win = Components.classes["@mozilla.org/appshell/appShellService;1"].
                   getService(Components.interfaces.nsIAppShellService).
                   hiddenDOMWindow;

    // if the iframe was previously loaded store it and callback
    var iframe = win.document.getElementsById(id);
    if (iframe)
      return iframe.contentWindow;

    // create the iframe
    iframe = win.document.createElement("iframe");
    iframe.setAttribute("id", id);
    iframe.setAttribute("style", "display:none;");

    // load the source
    iframe.setAttribute("src", src);
    win.document.documentElement.appendChild(iframe);

    // return the content window
    return iframe.contentWindow;
</pre>
<p>Now you can access your background page by including the script in your overlay and doing:</p>
<pre>
  var bgp = getBackgroundPage("id for background page", "url of the background page");
</pre>
<p>** UPDATE **<br />
instead of setting the style to display:none you should instead set the attribute &#8220;collapsed&#8221; to true.  This causes docshell errors in some cases.</p>
<p><strike>iframe.setAttribute(&#8220;style&#8221;, &#8220;display:none;&#8221;);</strike><br />
iframe.setAttribute(&#8220;collapsed&#8221;, &#8220;true&#8221;);</p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/01/19/javascript-singletons-in-firefox-add-ons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2009 Year in Review</title>
		<link>http://richwklein.com/2010/01/11/2009-year-in-review/</link>
		<comments>http://richwklein.com/2010/01/11/2009-year-in-review/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 22:32:06 +0000</pubDate>
		<dc:creator>Rich</dc:creator>
				<category><![CDATA[Me]]></category>
		<category><![CDATA[2009]]></category>
		<category><![CDATA[AOL]]></category>
		<category><![CDATA[High]]></category>
		<category><![CDATA[High School]]></category>
		<category><![CDATA[I 35]]></category>
		<category><![CDATA[I35]]></category>
		<category><![CDATA[Interstate]]></category>
		<category><![CDATA[Kids]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Year]]></category>
		<category><![CDATA[YIR]]></category>

		<guid isPermaLink="false">http://richwklein.com/?p=975</guid>
		<description><![CDATA[I know I&#8217;m a little late getting this out, but I thought I would put together a &#8220;Holiday Letter&#8221;/&#8221;Year in Review&#8221; for my family.
This was big year for the family.  Back in May we found out we were going to have another child.  In August we found out we were having a boy [...]]]></description>
			<content:encoded><![CDATA[<p>I know I&#8217;m a little late getting this out, but I thought I would put together a &#8220;Holiday Letter&#8221;/&#8221;Year in Review&#8221; for my family.</p>
<p>This was big year for the family.  Back in May we found out we were going to have another child.  In August we found out we were having a boy and at the end of December Jackson was born.  Both Noah and Wyatt are loving being big brothers.  Noah turned four this year and started preschool.  He goes three afternoons a week and he is really loving it.  Wyatt is also enjoying every minute of his brother being gone.  He turned three this year and is getting very big.  Rachel continues to become more involved in the community.  Along with her deaconess duties, she has also become a member of the Warren County Child Abuse Prevention Council.  This year was my fifteen year high school reunion.  Planning was much smoother than the ten year reunion and we had a pretty successful turn out.</p>
<p>Even with the recent layoff announcements by AOL, I am still gainfully employed with them and really enjoying my work.  <a href="http://www.kwiclick.com">KwiClick</a> development continues to go well and has gotten quite a bit of <a href="http://lifehacker.com/5421875/kwiclick-is-a-dedicated-firefox-search-box-on-steroids">good</a> <a href="http://www.readwriteweb.com/archives/kwiclick_wants_to_help_you_do_stuff_faster_in_firefox.php">press</a> <a href="http://videos.sitepronews.com/video/899/Kwiclick-Amazing-new-firefox-extension">recently</a>.  Although <a href="https://addons.mozilla.org/firefox/addon/398">Forecastfox</a> has slipped slightly in it&#8217;s ranking on <a href="http://getfirefox.com">Firefox</a>, we were able to rewrite the code from scratch this year and get a <a href="https://chrome.google.com/extensions/detail/ihffmkcfkejomlfnilnmkokcpgclhfeg">version</a> out for <a href="http://www.google.com/chrome">Chrome</a> (which has been very warmly received).  This new code base should allow us to iterate faster and get versions out for Firefox, Fennec, and others.  I started the company <a href="http://webtechstudios.com">Web Tech Studios</a> this year to cover the contract work I do.  To celebrate the creation of the company I created the <a href="http://webtechstudios.com/products/nearme">&quot;Near Me&quot;</a> add-on and entered it into the Extend Mobile Firefox contest.  It was chosen as one of the winners and I received a Nokia N900 as the prize.</p>
<p>Now with three sons and lots of work to do, 2010 looks like it&#8217;s going to be a very <del datetime="2010-01-11T21:53:18+00:00">exhausting</del> happy year.</p>
]]></content:encoded>
			<wfw:commentRss>http://richwklein.com/2010/01/11/2009-year-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.703 seconds -->
<!-- Cached page served by WP-Cache -->
