<?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>Alien Pastures &#187; Fun</title>
	<atom:link href="http://alien.slackbook.org/blog/category/fun/feed/" rel="self" type="application/rss+xml" />
	<link>http://alien.slackbook.org/blog</link>
	<description>My thoughts on Slackware, life and everything</description>
	<lastBuildDate>Mon, 06 Feb 2012 00:27:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Shit happens&#8230; fireworks campaign</title>
		<link>http://alien.slackbook.org/blog/shit-happens-fireworks-campaign/</link>
		<comments>http://alien.slackbook.org/blog/shit-happens-fireworks-campaign/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:35:55 +0000</pubDate>
		<dc:creator>alienbob</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[asshole]]></category>
		<category><![CDATA[fireworks]]></category>
		<category><![CDATA[movie]]></category>
		<category><![CDATA[newyear]]></category>
		<category><![CDATA[victim]]></category>

		<guid isPermaLink="false">http://alien.slackbook.org/blog/?p=194</guid>
		<description><![CDATA[The yearly dutch campaign to prevent fireworks victims among young people has launched today. The campaign has a new site and slogan &#8220;Shit Happens&#8221;. A hilarious video is the centerpiece of the web site, but it can be doubted whether this is actually going to be an effective one&#8230; it is too funny to be [...]]]></description>
			<content:encoded><![CDATA[<p>The yearly dutch campaign to prevent fireworks victims among young people has launched today. The campaign has a <a href="http://shithappens.nl/" target="_blank">new site</a> and slogan &#8220;Shit Happens&#8221;.</p>
<p>A hilarious video is the centerpiece of the web site, but it can be doubted whether this is actually going to be an effective one&#8230; it is too funny to be taken seriously perhaps.</p>
<p><em>&#8220;Most victims suffer from serious damage to their eyes, but yours are completely intact! Unfortunately though, we had to replace another part of your face&#8230;&#8221;</em></p>
<p>See the <a href="http://www.youtube.com/watch?v=79MUABqthuk" target="_blank">youtube copy</a> of the video in case the site itself is not available:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="420" height="255" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/79MUABqthuk&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="420" height="255" src="http://www.youtube.com/v/79MUABqthuk&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Take care this new year&#8217;s eve!<br />
Eric</p>
]]></content:encoded>
			<wfw:commentRss>http://alien.slackbook.org/blog/shit-happens-fireworks-campaign/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using the Wiimote as a pointing device</title>
		<link>http://alien.slackbook.org/blog/using-the-wiimote-as-a-pointing-device/</link>
		<comments>http://alien.slackbook.org/blog/using-the-wiimote-as-a-pointing-device/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 20:57:27 +0000</pubDate>
		<dc:creator>alienbob</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[buetooth]]></category>
		<category><![CDATA[pointer]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[wii]]></category>

		<guid isPermaLink="false">http://alien.slackbook.org/blog/?p=143</guid>
		<description><![CDATA[What does a Nintendo wireless controller have to do with Slackware? Well&#8230; you&#8217;d be surprised! On october 4th I am running a presentation about &#8220;A history of Slackware development&#8221; as part of T-DOSE (fyi: T-DOSE is a free and yearly event held in The Netherlands to promote use and development of Open Source Software). One [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://t-dose.org/" target="_blank"><img class="alignright size-full wp-image-153" style="border: 0pt none;" title="t-dose-square" src="http://alien.slackbook.org/blog/wp-content/uploads/2009/09/t-dose-square.png" alt="t-dose-square" width="131" height="129" /></a></p>
<p style="text-align: left;">What does a Nintendo wireless controller have to do with Slackware?</p>
<p>Well&#8230; you&#8217;d be surprised!</p>
<p>On october 4th I am running a presentation about &#8220;<a href="http://www.t-dose.org/t-dose/2009/talks/slackware" target="_blank">A history of Slackware development</a>&#8221; as part of <a href="http://t-dose.org/" target="_blank">T-DOSE</a> (fyi: T-DOSE is a free and yearly event held in The Netherlands to promote use and development of Open Source Software). One of the other speakers is <a href="http://dag.wieers.com/" target="_blank">Dag Wieers</a>, a former IBM collegue and a big name in the RPM and Redhat world. Dag is going to present his software &#8220;<a href="http://dag.wieers.com/home-made/wiipresent/" target="_blank">wiipresent</a>&#8221; and when I read that, my curiosity was triggered. I own a Nintendo Wii (or rather, my son does) and I am interested in things that you can do with it apart from playing cool games.</p>
<p><em>Wiipresent</em> is a small linux program that connects your computer to a <a href="http://en.wikipedia.org/wiki/Wii_Remote" target="_blank">Wiimote</a> (the Wii&#8217;s wireless controller) over a bluetooth link and enables you to use the controller as a pointing device. Of course Dag is going to bring a Wiimote to the conference, but so am I <img src='http://alien.slackbook.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Wiipresent  turned out to be extremely easy to use and the variety of buttons and the diirectional cross on the controller are all functional. The cool thing is that it uses the <em>tilt function</em> of the Wiimote to move the mouse pointer across your screen. So, by waving the Wiimote I can steer and control my KDE desktop, and the directional cross will be useful when I give my presentation &#8211; it allows me to move forward and backward through the slides.</p>
<p>And since bluetooth is used instead of infrared, I can walk around without the need to point that Wiimote to the big screen.</p>
<p>And this all from a program that was born as a demonstrational hack at another conference. I created some packages for Slackware 13.0 (both 32bit and 64bit) which you can obtain from my repository as usual: <a href="http://slackware.com/~alien/slackbuilds/wiipresent/" target="_blank">wiipresent</a> and <a href="http://slackware.com/~alien/slackbuilds/libwiimote/" target="_blank">libwiimote</a> (a required supporting library).</p>
<p>Have fun trying it out! Eric</p>
<p><em>Edit 09-oct-2009:</em></p>
<p>I have uploaded a <em>PDF</em> of my T-Dose presentation (as well as the original <em>Tex</em> plus bitmap files used to create that <em>PDF</em>). They are available at <a href="http://slackware.com/~alien/tdose2009/" target="_self">http://slackware.com/~alien/tdose2009/</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://alien.slackbook.org/blog/using-the-wiimote-as-a-pointing-device/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Calculating PI</title>
		<link>http://alien.slackbook.org/blog/calculating-pi/</link>
		<comments>http://alien.slackbook.org/blog/calculating-pi/#comments</comments>
		<pubDate>Wed, 18 Mar 2009 16:34:35 +0000</pubDate>
		<dc:creator>alienbob</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[oneliner]]></category>

		<guid isPermaLink="false">http://alien.slackbook.org/blog/?p=105</guid>
		<description><![CDATA[The Internet is full of &#8220;one-liners&#8221; and if you search a bit, you can find many. A one-liner typically means (a chain of) commands that produce useful results quickly. I came across a nice one-liner just now. The &#8220;binary calculator&#8221; or bc is a powerful UNIX tool. Calculating the value of PI with an arbitrary [...]]]></description>
			<content:encoded><![CDATA[<p>The Internet is full of &#8220;one-liners&#8221; and if you search a bit, you can find many. A one-liner typically means (a chain of) commands that produce useful results quickly.</p>
<p>I came across a nice one-liner just now. The &#8220;binary calculator&#8221; or bc is a powerful UNIX tool. Calculating the value of <strong>PI</strong> with an arbitrary number of decimals (the number of decimals only restricted by the power of your OS, available RAM or internal limitations of the program) goes like this:</p>
<blockquote>
<h4 style="text-align: left;"><strong>echo &#8220;scale=XXXX;4*a(1)&#8221; | bc -l<br />
</strong></h4>
</blockquote>
<p>Where &#8220;XXXX&#8221; is the number of digits you want to calculate. Calling bc with the &#8220;<strong>-l</strong>&#8221; parameter causes bc to load it&#8217;s mathematical library. The function &#8220;<strong>a()</strong>&#8221; is the arctangent function.</p>
<p>Let&#8217;s say you need the value of <strong>PI</strong> with an accuracy of a thousand decimals.</p>
<pre><span style="color: #3366ff;">$ echo "scale=1000;4*a(1)" | bc -l</span></pre>
<pre><span style="color: #3366ff;">3.141592653589793238462643383279502884197169399375105820974944592307\</span></pre>
<pre><span style="color: #3366ff;">81640628620899862803482534211706798214808651328230664709384460955058\</span></pre>
<pre><span style="color: #3366ff;">22317253594081284811174502841027019385211055596446229489549303819644\</span></pre>
<pre><span style="color: #3366ff;">28810975665933446128475648233786783165271201909145648566923460348610\</span></pre>
<pre><span style="color: #3366ff;">45432664821339360726024914127372458700660631558817488152092096282925\</span></pre>
<pre><span style="color: #3366ff;">40917153643678925903600113305305488204665213841469519415116094330572\</span></pre>
<pre><span style="color: #3366ff;">70365759591953092186117381932611793105118548074462379962749567351885\</span></pre>
<pre><span style="color: #3366ff;">75272489122793818301194912983367336244065664308602139494639522473719\</span></pre>
<pre><span style="color: #3366ff;">07021798609437027705392171762931767523846748184676694051320005681271\</span></pre>
<pre><span style="color: #3366ff;">45263560827785771342757789609173637178721468440901224953430146549585\</span></pre>
<pre><span style="color: #3366ff;">37105079227968925892354201995611212902196086403441815981362977477130\</span></pre>
<pre><span style="color: #3366ff;">99605187072113499999983729780499510597317328160963185950244594553469\</span></pre>
<pre><span style="color: #3366ff;">08302642522308253344685035261931188171010003137838752886587533208381\</span></pre>
<pre><span style="color: #3366ff;">42061717766914730359825349042875546873115956286388235378759375195778\</span></pre>
<pre><span style="color: #3366ff;">18577805321712268066130019278766111959092164201988</span></pre>
<p>Isn&#8217;t this fun? And on my old dual P2/233MHz server, this took roughly eight seconds.</p>
<p>Now, to compare the usefulness of the Linux platform to good old Solaris, this is what you get on Solaris 8:</p>
<pre><span style="color: #3366ff;">$ echo "scale=1000;4*a(1)" | bc -l
scale factor is too large
3.14159265358979323844</span></pre>
<p>Cheers, Eric</p>
]]></content:encoded>
			<wfw:commentRss>http://alien.slackbook.org/blog/calculating-pi/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

