<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Fun on Werner&#39;s home on the Web</title>
    <link>https://wstoop.co.za/tags/fun/</link>
    <description>Recent content in Fun on Werner&#39;s home on the Web</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 06 Apr 2012 00:00:00 +0000</lastBuildDate><atom:link href="https://wstoop.co.za/tags/fun/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Buzzword Bingo 2.0</title>
      <link>https://wstoop.co.za/posts/bsbingo/</link>
      <pubDate>Fri, 06 Apr 2012 00:00:00 +0000</pubDate>
      
      <guid>https://wstoop.co.za/posts/bsbingo/</guid>
      <description>&lt;p&gt;An exciting game for 2 or more players that is guaranteed to increase
meeting participation.&lt;/p&gt;
&lt;p&gt;It was inspired by &lt;a href=&#34;http://dilbert.com/fast/1994-02-22/&#34;&gt;this old Dilbert strip&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Click here: &lt;a href=&#34;https://wstoop.co.za/files/bsbingo.html&#34;&gt;bsbingo.html&lt;/a&gt;&lt;/p&gt;
</description>
    </item>
    
    <item>
      <title>Xlator: A Futurama Translator</title>
      <link>https://wstoop.co.za/posts/xlator/</link>
      <pubDate>Fri, 06 Apr 2012 00:00:00 +0000</pubDate>
      
      <guid>https://wstoop.co.za/posts/xlator/</guid>
      <description>&lt;p&gt;&lt;img src=&#34;https://wstoop.co.za/images/250px-GoodNewsEveryone.jpg&#34; alt=&#34;good news&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Good news, everyone!&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Thanks to the power of modern computers we can now easily transcribe our Earthican language into Alien Alphabet 1 (AA1) and Alien Alphabet 2 (AA2) from &lt;a href=&#34;http://tvtropes.org/pmwiki/pmwiki.php/WesternAnimation/Futurama&#34;&gt;Futurama&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;AA1 is a simple substitution cipher. AA2 is a bit more complex, but it does not have all the characters from AA1. You can find more information here:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://bbrp.atwebpages.com/alien_1_eng.html&#34;&gt;Alien Alphabet 1&lt;/a&gt; (aka &lt;a href=&#34;http://futurama.wikia.com/wiki/Alienese&#34;&gt;Alienese&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://wstoop.co.za/images/xlator-friends.png&#34; alt=&#34;Alien Alphabet 1&#34;&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://bbrp.atwebpages.com/alien_2_eng.html&#34;&gt;Alien Alphabet 2&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://wstoop.co.za/images/hypnotoad.png&#34; alt=&#34;Alien Alphabet 2&#34;&gt;&lt;/p&gt;
&lt;p&gt;You may notice that I made the XBMs containing the alien fonts by taking screenshots on the above pages. Be sure to checkout his links section as well.&lt;/p&gt;
&lt;h1 id=&#34;source-code&#34;&gt;Source Code &lt;a href=&#34;#source-code&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;You can find the source code here as a &lt;a href=&#34;https://wstoop.co.za/files/xlator.tgz&#34;&gt;.tgz archive&lt;/a&gt; or as a &lt;a href=&#34;https://wstoop.co.za/files/xlator.zip&#34;&gt;.zip archive&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The code is written in platform independent C, so you should be able to compile it by typing &lt;code&gt;make&lt;/code&gt; on the command prompt if you&amp;rsquo;re using Linux. It also works if you use &lt;a href=&#34;http://www.mingw.org/&#34;&gt;MinGW&lt;/a&gt; on Windows.&lt;/p&gt;
&lt;h2 id=&#34;internals&#34;&gt;Internals &lt;a href=&#34;#internals&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h2&gt;&lt;p&gt;&lt;a href=&#34;http://futurama.wikia.com/wiki/Universal_Translator&#34;&gt;&lt;img src=&#34;https://wstoop.co.za/images/200px-Universal_Translator.jpg&#34; alt=&#34;universal translator&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;While the program may seem a bit pointless if you&amp;rsquo;re a serious programmer, it does have some technical features that are worth mentioning:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The fonts are stored as XBM images and compiled into the code.&lt;/li&gt;
&lt;li&gt;The files bmp.c and bmp.h implements a basic API for manipulating &lt;a href=&#34;http://en.wikipedia.org/wiki/BMP_file_format&#34;&gt;.BMP bitmap files&lt;/a&gt; centred around the &lt;code&gt;struct bitmap&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;There are functions for converting the XBMs to a &lt;code&gt;struct bitmap&lt;/code&gt; and to blit between &lt;code&gt;struct bitmap&lt;/code&gt; objects.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The result is that the program does not have any external dependencies, it is portable across platforms (I know it works on Windows and Linux), and once you&amp;rsquo;ve compiled it can be distributed as a single executable without any additional files.&lt;/p&gt;
&lt;h1 id=&#34;usage&#34;&gt;Usage &lt;a href=&#34;#usage&#34; class=&#34;anchor&#34;&gt;🔗&lt;/a&gt;&lt;/h1&gt;&lt;p&gt;The program can be run from the shell as follows:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;usage: ./xlator [options] (-t &amp;#34;string&amp;#34; | infile)
where options are a combination of:
	 -t string      Translate the string, otherwise infile must be given
	 -1             Use Alien Language One (Default)
	 -2             Use Alien Language Two
	 -o outfile     Specifies the output file, default output.bmp
	 -f RRGGBB      Specifies the foreground colour, default FFFFFF
	 -b RRGGBB      Specifies the background colour, default 000000
		  Colours are specified in hexadecimal, eg FF00FF
	 -d             Outputs the cipher instead of translating the string
	 -s size        Resizes the image to &amp;#39;size&amp;#39; times
	 -M             Disables smoothing on the output
	 -v             Enables verbose mode
	 -h             Displays the help message
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    
  </channel>
</rss>
