<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>One Hit Wonder &#187; Uncategorized</title>
	<atom:link href="http://blog.digitalbias.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digitalbias.com</link>
	<description>Exploring, Innovating, Playing</description>
	<lastBuildDate>Fri, 20 Aug 2010 19:41:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<!-- podcast_generator="podPress/8.8" - maintenance_release="8.8.6" -->
	<copyright>Copyright &#38;#xA9; 2010 One Hit Wonder </copyright>
	<managingEditor>mitchelld@acm.org</managingEditor>
	<webMaster>mitchelld@acm.org</webMaster>
	<category>posts</category>
	<image>
		<url>http://blog.digitalbias.com/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
		<title>One Hit Wonder &#187; Uncategorized</title>
		<link>http://blog.digitalbias.com</link>
		<width>144</width>
		<height>144</height>
	</image>
	<itunes:subtitle></itunes:subtitle>
	<itunes:summary>Exploring, Innovating, Playing</itunes:summary>
	<itunes:keywords></itunes:keywords>
	<itunes:category text="Society &amp; Culture" />
	<itunes:author></itunes:author>
	<itunes:owner>
		<itunes:name></itunes:name>
		<itunes:email>mitchelld@acm.org</itunes:email>
	</itunes:owner>
	<itunes:block>no</itunes:block>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://blog.digitalbias.com/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<item>
		<title>A linguistic experiment</title>
		<link>http://blog.digitalbias.com/2010/05/10/a-linguistic-experiment/</link>
		<comments>http://blog.digitalbias.com/2010/05/10/a-linguistic-experiment/#comments</comments>
		<pubDate>Mon, 10 May 2010 20:39:46 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=280</guid>
		<description><![CDATA[A friend of mine sent me this email and hopes to see what happens with this new word he has created. Not that I believe that the creation of a word will bring a unique event in the future, but I think word&#8217;s propagation on the net is an interesting experiment to say the least. His email follows: I [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine sent me this email and hopes to see what happens with this new word he has created. Not that I believe that the creation of a word will bring a unique event in the future, but I think word&#8217;s propagation on the net is an interesting experiment to say the least.</p>
<p>His email follows:</p>
<blockquote><p>I would like each of you to participate in a linguistics experiment.<br />
I propose creating a new word, one which hits on a Google search of less than 20, mainly due to random letter arrangements.</p>
<p>The purpose of this experiment will be to create a global awareness of a new word in as little time as possible.</p>
<p>We will create a new word, create a definition of this new word, and then release it into the wilds of the infospace, rather like a semantic virus.</p>
<p>Then we will each use this word, at least once in a blog post or email or comment on an article or blog on the web. The spread of the use of the the term is the intent so a high frequency of usage is suggested. The simple reposting of this email will suffice.</p>
<p>We will then watch how quickly, or not, the word becomes prevalent in the linguistic maze that is the web.</p>
<p>Each week I will send a Google search count update to this list.</p>
<p>~~~</p>
<p>* The first word I propose is &#8220;leximize&#8221; which is to maximize the lexical exposure of a word.</p>
<p>As of this moment (5/10/2010 8:30 AM PST) there are 5 hits on the quoted word &#8220;leximize&#8221;, none of which have legitimate meaning.</p>
<p>~~~</p>
<p>I would also like to attach a future event to this word. The concept of this event will infiltrate the consciousness of the netmind bleeding out into the memespeak of the mainstream media. The purpose of attaching a fabricated event is to determine if we have any influence, to any degree possible, on the event and date in question; if in nothing more than the escalation of anticipation of the proposed date and event, simply through awareness.</p>
<p>* The spring equinox 2013 (March 21, 2013) will mark this event&#8217;s horizon.<br />
* This event will entail the the joining of hands of multiple, long time national rivals and the collapse of physical, political and cultural barriers.<br />
* At this point in time not only will these nations build a neoleague but newly constructed terms to describe the event will have been leximized.</p>
<p>~~~</p>
<p>Your participation is welcome in this experiment.</p>
<p>I urge you to reformulate the content in this email, to create a names to commemorate this event, to create your own neoleague terms and to send this email on to whomever you believe will find this experiment entertaining.</p>
<p>This experiment has officially begun!</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2010/05/10/a-linguistic-experiment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Fun Theory</title>
		<link>http://blog.digitalbias.com/2010/03/11/the-fun-theory/</link>
		<comments>http://blog.digitalbias.com/2010/03/11/the-fun-theory/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 14:10:44 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=278</guid>
		<description><![CDATA[The Fun Theory has some great videos on ways to make ordinary stuff fun.]]></description>
			<content:encoded><![CDATA[<p><a href="http://thefuntheory.com/">The Fun Theory</a> has some great videos on ways to make ordinary stuff fun.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2010/03/11/the-fun-theory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Martin Jet Pack</title>
		<link>http://blog.digitalbias.com/2009/08/05/the-martin-jet-pack/</link>
		<comments>http://blog.digitalbias.com/2009/08/05/the-martin-jet-pack/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 06:07:54 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=259</guid>
		<description><![CDATA[The Martin Jet Pack looks cool, but I think I&#8217;ll wait for the smaller, quieter version to come out.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.martinjetpack.com/video-gallery.aspx">The Martin Jet Pack</a> looks cool, but I think I&#8217;ll wait for the smaller, quieter version to come out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2009/08/05/the-martin-jet-pack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prawn and Scribd in the same controller action</title>
		<link>http://blog.digitalbias.com/2009/01/22/prawn-and-scribd-in-the-same-controller-action/</link>
		<comments>http://blog.digitalbias.com/2009/01/22/prawn-and-scribd-in-the-same-controller-action/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 18:15:31 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=212</guid>
		<description><![CDATA[I realized that I solved a problem that others may have encountered before. I&#8217;m not using ruport, but just using prawn and prawnto to generate pdfs for my application. In the process I wanted to have the ability to generate the PDF and either send it back as a response to the user or put [...]]]></description>
			<content:encoded><![CDATA[<p>I realized that I solved a problem that others may have encountered before. I&#8217;m not using <a href="http://rubyreports.org/">ruport</a>, but just using <a href="http://prawn.majesticseacreature.com/">prawn</a> and <a href="http://www.cracklabs.com/prawnto">prawnto</a> to generate pdfs for my application. In the process I wanted to have the ability to generate the PDF and either send it back as a response to the user or put it up on <a href="http://www.scribd.com/">scribd</a> to display embedded within a webpage within the application. I had to hack a little bit of code to get it to work, but overall, I&#8217;m pleased with the final solution.</p>
<p>Here&#8217;s what the key part of the controller looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">    respond_to <span style="color:#9966CC; font-weight:bold;">do</span> <span style="color:#006600; font-weight:bold;">|</span>format<span style="color:#006600; font-weight:bold;">|</span>
      <span style="color:#CC0066; font-weight:bold;">format</span>.<span style="color:#9900CC;">html</span> <span style="color:#006600; font-weight:bold;">&#123;</span>
        source_filename = <span style="color:#996600;">&quot;#{RAILS_ROOT}/app/views/management/employees/print_ids.pdf.prawn&quot;</span>
        prawn_params = <span style="color:#006600; font-weight:bold;">&#123;</span>:employees <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0066ff; font-weight:bold;">@employees</span><span style="color:#006600; font-weight:bold;">&#125;</span>
        print_scribd<span style="color:#006600; font-weight:bold;">&#40;</span>source_filename, prawn_params, <span style="color:#996600;">&quot;globaltrack,<span style="color:#000099;">\&quot;</span>employee ids<span style="color:#000099;">\&quot;</span>,#{RAILS_ENV}&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
      <span style="color:#006600; font-weight:bold;">&#125;</span>
      <span style="color:#CC0066; font-weight:bold;">format</span>.<span style="color:#9900CC;">pdf</span> <span style="color:#006600; font-weight:bold;">&#123;</span>
        prawnto <span style="color:#ff3333; font-weight:bold;">:dsl_pdf</span><span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">'@employees'</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0066ff; font-weight:bold;">@employees</span><span style="color:#006600; font-weight:bold;">&#125;</span>, <span style="color:#ff3333; font-weight:bold;">:inline</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span>
        render <span style="color:#ff3333; font-weight:bold;">:layout</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#0000FF; font-weight:bold;">false</span>
      <span style="color:#006600; font-weight:bold;">&#125;</span>
    <span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Then I can do whatever I want with the template and not worry about really different code in the template because it either is or isn&#8217;t running in prawn or prawnto.</p>
<p>So, my alteration (see hack) to make this all work happened in the prawnto library code. I added the :dsl_pdf option in the render method of the Base template handler. So, the final render method looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">      <span style="color:#9966CC; font-weight:bold;">def</span> render<span style="color:#006600; font-weight:bold;">&#40;</span>template<span style="color:#006600; font-weight:bold;">&#41;</span>
        pull_prawnto_options
        build_headers
&nbsp;
        source = build_source_to_establish_locals<span style="color:#006600; font-weight:bold;">&#40;</span>template<span style="color:#006600; font-weight:bold;">&#41;</span>
        <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#0066ff; font-weight:bold;">@prawnto_options</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:dsl</span><span style="color:#006600; font-weight:bold;">&#93;</span> <span style="color:#006600; font-weight:bold;">||</span> <span style="color:#0066ff; font-weight:bold;">@prawnto_options</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:dsl_pdf</span><span style="color:#006600; font-weight:bold;">&#93;</span>
          source <span style="color:#006600; font-weight:bold;">+</span>= <span style="color:#996600;">&quot;pdf.instance_eval do<span style="color:#000099;">\n</span>#{template.source}<span style="color:#000099;">\n</span>end&quot;</span>
        <span style="color:#9966CC; font-weight:bold;">else</span>
          source <span style="color:#006600; font-weight:bold;">+</span>= <span style="color:#996600;">&quot;<span style="color:#000099;">\n</span>#{template.source}&quot;</span>
        <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
        pdf = <span style="color:#6666ff; font-weight:bold;">Prawn::Document</span>.<span style="color:#9900CC;">new</span><span style="color:#006600; font-weight:bold;">&#40;</span>@prawnto_options<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:prawn</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
        <span style="color:#9966CC; font-weight:bold;">if</span> <span style="color:#0066ff; font-weight:bold;">@prawnto_options</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:dsl_pdf</span><span style="color:#006600; font-weight:bold;">&#93;</span>
          <span style="color:#0066ff; font-weight:bold;">@prawnto_options</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#ff3333; font-weight:bold;">:dsl_pdf</span><span style="color:#006600; font-weight:bold;">&#93;</span>.<span style="color:#9900CC;">each</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>key,value<span style="color:#006600; font-weight:bold;">|</span>
            pdf.<span style="color:#9900CC;">instance_variable_set</span><span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#996600;">&quot;#{key}&quot;</span>, value<span style="color:#006600; font-weight:bold;">&#41;</span>
          <span style="color:#006600; font-weight:bold;">&#125;</span>
        <span style="color:#9966CC; font-weight:bold;">end</span>
        <span style="color:#0066ff; font-weight:bold;">@view</span>.<span style="color:#9900CC;">instance_eval</span> source, template.<span style="color:#9900CC;">filename</span>, <span style="color:#006666;">1</span>
        pdf.<span style="color:#9900CC;">render</span>
      <span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2009/01/22/prawn-and-scribd-in-the-same-controller-action/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scriptures 0.2.4</title>
		<link>http://blog.digitalbias.com/2008/11/01/scriptures-024/</link>
		<comments>http://blog.digitalbias.com/2008/11/01/scriptures-024/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 06:25:50 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=122</guid>
		<description><![CDATA[Scriptures 0.2.4 is out and has the following changes. You can download it here or on the Market Fixed the forward button bug]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.digitalbias.com/wp-content/uploads/2008/11/androidscriptures1.apk">Scriptures 0.2.4</a> is out and has the following changes. You can download it <a href="http://blog.digitalbias.com/wp-content/uploads/2008/11/androidscriptures1.apk">here</a> or on the Market</p>
<ul>
<li>Fixed the <a href="http://blog.digitalbias.com/?p=118#comment-232">forward button bug</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2008/11/01/scriptures-024/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android Scriptures 0.2.3 Published</title>
		<link>http://blog.digitalbias.com/2008/11/01/android-scriptures-023-published/</link>
		<comments>http://blog.digitalbias.com/2008/11/01/android-scriptures-023-published/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 04:11:39 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=118</guid>
		<description><![CDATA[The 0.2.3 version has been published to the Android Marketplace. Only one change and it was cosmetic: Icon for &#8220;Preferences&#8221; menu item changed.]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://blog.digitalbias.com/wp-content/uploads/2008/11/androidscriptures.apk">0.2.3 version</a> has been published to the Android Marketplace. Only one change and it was cosmetic:</p>
<ul>
<li>Icon for &#8220;Preferences&#8221; menu item changed.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2008/11/01/android-scriptures-023-published/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fake Restaurant</title>
		<link>http://blog.digitalbias.com/2008/10/21/fake-restaurant/</link>
		<comments>http://blog.digitalbias.com/2008/10/21/fake-restaurant/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 15:23:19 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[fun]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=57</guid>
		<description><![CDATA[Fake Restaurant has some really funny Carl&#8217;s Jr. commercials.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.fakerestaurant.com/">Fake Restaurant</a> has some really funny Carl&#8217;s Jr. commercials.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2008/10/21/fake-restaurant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Chrome</title>
		<link>http://blog.digitalbias.com/2008/10/03/using-chrome/</link>
		<comments>http://blog.digitalbias.com/2008/10/03/using-chrome/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 16:42:43 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=39</guid>
		<description><![CDATA[I&#8217;ve been using Google&#8217;s Chrome since it came out and like most software it has it&#8217;s good and bad points. Here is just a brief list of what I like and don&#8217;t like. Interface. I like the tabs at the top, the (+) to create tabs and the very small size of all the controls [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Google&#8217;s <a href="http://www.google.com/chrome">Chrome</a> since it came out and like most software it has it&#8217;s good and bad points. Here is just a brief list of what I like and don&#8217;t like.</p>
<ul>
<li>Interface. I like the tabs at the top, the (+) to create tabs and the very small size of all the controls and other window elements. I feel that I can see more of the webpage instead of all the other window parts that come with any window you open.</li>
<li>Home page. They stole the whole &#8217;tiles of some of your favorite windows&#8217; idea from Opera, but it doesn&#8217;t mean it&#8217;s a bad thing. I like having the default page be an overview with the webpages tiled there, as well as a list of some of the pages I closed to the right. I rarely have to use my bookmarks for anything now.</li>
</ul>
<div></div>
<div>Some of the stuff that annoys me:</div>
<div>
<ul>
<li>As a development platform, it still isn&#8217;t there yet. Firefox with the Firebug plugin still rocks. Some of the built in features in Chrome are great, and much better than Firefox alone, but with Firebug&#8230;There is nothing better.</li>
<li>Options. The options you can tweek are just so limited I feel locked in with nothing I can do.</li>
<li>Plugins: They don&#8217;t exist. Big minus there. No chance for a Firebug in Chrome.</li>
</ul>
</div>
<div></div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2008/10/03/using-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Application Launcher</title>
		<link>http://blog.digitalbias.com/2008/09/25/windows-application-launcher/</link>
		<comments>http://blog.digitalbias.com/2008/09/25/windows-application-launcher/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 16:56:55 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.digitalbias.com/?p=37</guid>
		<description><![CDATA[I&#8217;ve been using RunIt! for a number of years now, but apparently it&#8217;s done a developer-fade and for some reason it stopped working on my system this week. It&#8217;s been a great little tool, but I&#8217;ve found a new love: Launchy. I really liked RunIt!, but it did require me to make a shortcut for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.tucows.com/preview/501699">RunIt!</a> for a number of years now, but apparently it&#8217;s done a developer-fade and for some reason it stopped working on my system this week. It&#8217;s been a great little tool, but I&#8217;ve found a new love: <a href="http://www.launchy.net/">Launchy</a>.  I really liked RunIt!, but it did require me to make a shortcut for each and every application I wanted to run with it. With Launch I don&#8217;t have to do that problem. I tell it what directories to use and what extensions I want it to look for in those directories and poof! It does an incremental search for the application I want to run. Slick. I just installed it today and I&#8217;m liking it so far, but we&#8217;ll see how to handles my day to day desires and expectations.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalbias.com/2008/09/25/windows-application-launcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
