<?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>sbeam.dk</title>
	<atom:link href="http://www.sbeam.dk/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.sbeam.dk/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 18 Sep 2010 15:54:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Untangle Deluxe Developer Diary – Part 1: Backgrounds and levels</title>
		<link>http://www.sbeam.dk/blog/?p=139</link>
		<comments>http://www.sbeam.dk/blog/?p=139#comments</comments>
		<pubDate>Thu, 09 Sep 2010 20:59:37 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://www.sbeam.dk/blog/?p=139</guid>
		<description><![CDATA[I&#8217;m porting a game from Flash to Objective C / iPhone, and for the fun of it i wanted to document my headeaches here. The original game can be seen here: Untangle Deluxe Personally i have´nt seen this type of game before, even though i consider myself an old rat in the gaming bussiness. Unfortunally [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sbeam.dk/blog/wp-content/uploads/2010/09/Screen-shot-2010-09-09-at-10.55.28-PM.png"><img class="size-thumbnail wp-image-140 alignright" style="margin-left: 10px; margin-right: 10px;" title="Screen shot 2010-09-09 at 10.55.28 PM" src="http://www.sbeam.dk/blog/wp-content/uploads/2010/09/Screen-shot-2010-09-09-at-10.55.28-PM-150x150.png" alt="" width="150" height="150" /></a>I&#8217;m porting a game from Flash to Objective C / iPhone, and for the fun of it i wanted to document my headeaches here. The original game can be seen here:</p>
<p><a href="http://nonoba.com/club/untangle-deluxe">Untangle Deluxe</a></p>
<p>Personally i have´nt seen this type of game before, even though i consider myself an old rat in the gaming bussiness. Unfortunally after searching the AppStore i found that there was already 4-6 untangle type games. None of them looked as good as the Untangle Deluxe though, so i am still hopefull <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Step 1</strong> <strong>- Backgrounds</strong></p>
<p><a href="http://www.sbeam.dk/blog/wp-content/uploads/2010/09/level1.jpg"><img class="alignleft size-medium wp-image-143" style="margin-left: 10px; margin-right: 10px;" title="Untangle Deluxe - Level 1" src="http://www.sbeam.dk/blog/wp-content/uploads/2010/09/level1-35x300.jpg" alt="" width="35" height="300" /></a>I got all the graphics from Nonoba in a .fla file, so the first step was therefore to manually export every piece of graphic from the Flash file to .png.</p>
<p>The game starts on the ground, where your task is to follow and untangle a string to your kite. The levels are therefore pretty tall, as they progress vertically throughout the game. My first decision was therefore  whether the game should run in landscape or portraitmode. I know you can make a game adaptable to booth, but that is just a road you don´t wanna walk! After looking through some of the levels in the original game i decided to go with the landscape mode. The original game was running in a 600&#215;500 window and had an aspect ratio of 1.2, that meant i had to scale and cut the graphics to fit the 480&#215;320 (1.5) iphone display.</p>
<p>I started with exporting the background graphics for world 1, which when scaled to a width of 480 pixels was still 4480 pixels tall. The maximum OpenGL texture size on the iPhone is 2048&#215;2048, so obviously i had to split the image into several smaller images. Even though a texture that large was acceptable it would still have consumed too much memory for me (and the iPhone) to accept, so splitting it up was the only choice anyway.</p>
<p>There are 16 levels in each world, which leaves a vertical progression of 250 pixels for each level. Which means that everytime you complete a level the view moves 250 pixels up the tree. Instead of manually splitting the PNG file up i of course did i programatically.</p>
<p>( &lt;- The picture to the left is a scaled down version of world 1)</p>
<p><strong>Step 2 &#8211; Loading the leveldata</strong></p>
<p>I got the level data as an actionscript file, which consisted of nothing but pure multidimensional arrays like this:</p>
<pre>$.Init.Levels = [
 [[181,174,0,218,58,0,330,117,0,318,296,0,345,336,0,383,357,0,426,357,0,472,351,0,511,363,0,540,395,0],
  [8,9,0,7,8,0,6,7,0,5,6,0,4,5,0,3,4,0,2,3,0,1,2,0,0,1,0,0,3,0,1,3,0,0,2,0],[],[]],
 [[227,200,0,359,200,0,293,423,0,406,339,0,176,342,0],[2,4,0,2,3,0,3,4,0,1,2,0,1,3,0,0,2,0,0,4,0,1,4,0,0,1,0]
 ,[],[]],[[290,71,0,290,270,0,293,348,0,294,421,0,224,391,0,359,387,0,224,302,0,357,301,0],</pre>
<p>To convert it to something a bit more sane but still save space (i know, it´s only a couple of kilobytes, but i´m from the era where every byte mattered) i converted all the arrays to XML, but conserved the comma seperated strings so it looked a little like this instead:</p>
<pre>&lt;level id="2"&gt;
 &lt;knots&gt;227,200,0,359,200,0,293,423,0,406,339,0,176,342,0&lt;/knots&gt;
 &lt;lines&gt;2,4,0,2,3,0,3,4,0,1,2,0,1,3,0,0,2,0,0,4,0,1,4,0,0,1,0&lt;/lines&gt;
&lt;/level&gt;</pre>
<p>It just felt better.. like sorting your socks; at the end of the day it doesn´t matter, but it just makes you feel good (or am i alone on this one?). It also made it really easy to parse with the SAX based NSXMLParser.</p>
<p>When put together it looks like this running in the iPhone emulator:</p>
<p><img class="size-full wp-image-153 alignnone" title="Screen shot 2010-09-11 at 12.08.24 AM" src="http://www.sbeam.dk/blog/wp-content/uploads/2010/09/Screen-shot-2010-09-11-at-12.08.24-AM.png" alt="" width="743" height="409" /></p>
<p style="text-align: left;">If you didn&#8217;t get it by now the game is about untangling the strings by moving the knots around. I therefore needed to do some basic line intersection detection testing on all the strings. As stubborn as i am i of course HAD to do this manually, without using the internet. So i dug up my math formula collection &#8220;Matematik 112&#8243;, and boiled it down to the following pseudocode (Where A and B are the points of one line, and C and D are the points of the other)</p>
<pre style="text-align: left;">     (Ay-Cy)(Dx-Cx)-(Ax-Cx)(Dy-Cy)
 r = -----------------------------
     (Bx-Ax)(Dy-Cy)-(By-Ay)(Dx-Cx)

     (Ay-Cy)(Bx-Ax)-(Ax-Cx)(By-Ay)
 s = -----------------------------
     (Bx-Ax)(Dy-Cy)-(By-Ay)(Dx-Cx)</pre>
<p>From here  it is only a matter of testing whether r and s are between 0 and 1. The only problem here (which puzzled we for a while) was that the lines that are connected to the same knot of course share a common point, which makes them intersect. I solved this by offsetting the points where the lines are connected to the knots by 0.1 pixels (hey, we are in the 21&#8242;st century, we work with floating points and ride flying cars, right?)</p>
<p>So, after about a week of development the game is actually already playable. Miles from finished, but the basic gameplay mechanics are done.</p>
<p>Next up: implementing the final two level elements, the black unmovable knot and the snapping slot.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=139</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why Ubuntu (and Linux in general) makes my eyes bleed</title>
		<link>http://www.sbeam.dk/blog/?p=88</link>
		<comments>http://www.sbeam.dk/blog/?p=88#comments</comments>
		<pubDate>Sat, 12 Jun 2010 19:25:22 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=88</guid>
		<description><![CDATA[Time after time i hear so much talk about how nice Ubuntu looks nowadays, that i decide to give it a go again. Unfortunately i also get disapointed time after time, by seeing just how much really basic stuff just sucks. Seriously, so many talented people are working on this, and it even has commercial [...]]]></description>
			<content:encoded><![CDATA[<p>Time after time i hear so much talk about how nice Ubuntu looks nowadays, that i decide to give it a go again. Unfortunately i also get disapointed time after time, by seeing just how much really basic stuff just sucks. Seriously, so many talented people are working on this, and it even has commercial funding by Canonical. Can someone explain me then why the GUI and the general graphic presentation of Ubuntu just looks like a cheap dodgy shareware program?</p>
<p>As an example, i took not just a random screenshot, but the very first screen you are presented with when you install Ubuntu. As everyone knows, first impressions last, so this should be a pretty crucial part:</p>
<p style="text-align: center"><img src="http://sbeam.dk/blog/wp-content/uploads/2010/06/ubuntu_wrong.jpg" onmouseout="this.src='http://sbeam.dk/blog/wp-content/uploads/2010/06/ubuntu_wrong.jpg'" onmouseover="this.src='http://sbeam.dk/blog/wp-content/uploads/2010/06/ubuntu_right.jpg'" alt="Ubuntu wrong" /></p>
<p align="center"><em>(Drag mouse over to see my edited version) </em></p>
<p>For everyone with just a tiny sense of layout and margins, this is just a nightmare. Everything is squeezed together, and it just looks messy and amateurish. In general the background, the colors and everything has a really nice look, so i am guessing that some kind of graphic artist must be involved, that knows what he is doing. The question is then, is it just a bunch of long haired hippie open source programmers that is messing everything up afterward? (let the flamewars begin!)</p>
<p>This is an issue not only in the above installation screen, but throughout the entire distribution.</p>
<p>Note: I am not a graphic artist, but i took the liberty of correcting (quite a few) things on the above screenshot. Everything is probably not perfect, but i think most people will agree that i has a much more straight look. It took me ~15mins to make the corrections, why havenÂ´t anyone done this before? Come on, itÂ´s version 10.04? <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  (yes yes, i know, open source, i should do it myself)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=88</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Shadebobs on the Nintendo DS</title>
		<link>http://www.sbeam.dk/blog/?p=80</link>
		<comments>http://www.sbeam.dk/blog/?p=80#comments</comments>
		<pubDate>Mon, 15 Dec 2008 19:43:17 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=80</guid>
		<description><![CDATA[It&#8217;s exam time here at DTU right now, and therefore i have tons of sparetime for coding cool stuff for my consoles (someone might disagree on that statement) Last night while waiting for some old QIC-80 tapes to restore on my 486, i coded this classic shadebobs demo effect for my Nintendo DS. Â  &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s exam time here at DTU right now, and therefore i have tons of sparetime for coding cool stuff for my consoles (someone might disagree on that statement) <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Last night while waiting for some old QIC-80 tapes to restore on my 486, i coded this classic shadebobs demo effect for my Nintendo DS.</p>
<p align="center"><img src="http://sbeam.dk/blog/wp-content/uploads/2008/12/shadebobs2.jpg" alt="shadebobs 2" />Â  <img src="http://sbeam.dk/blog/wp-content/uploads/2008/12/shadebobs1.jpg" alt="shadebobs 1" /></p>
<p align="center">&nbsp;</p>
<p align="center"><img src="http://sbeam.dk/blog/wp-content/uploads/2008/12/shadebobs3.jpg" alt="shadebobs 3" /> Â  <img src="http://sbeam.dk/blog/wp-content/uploads/2008/12/shadebobs4.jpg" alt="shadebobs 4" /></p>
<p align="center">&nbsp;</p>
<p align="center"><small><em>(Screenshots are from the DeSmuME emulator, but of course i tested it on the real thing as well)</em></small></p>
<p align="center">&nbsp;</p>
<p align="center"><img src="http://sbeam.dk/blog/wp-content/uploads/2008/12/img_9581.jpg" alt="Shadebos running" /></p>
<p>I have custom firmware on my DS, and using some custom drivers for my wireless network card on the PC, i can upload the code to the DS directly from visual studio <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>It&#8217;s nothing you have&#8217;nt seen before, but if anyone should want it, here it is:</p>
<p><a href="http://sbeam.dk/blog/wp-content/uploads/2008/12/hello-src.zip" title="Shadebobs DS source">Shadebobs DS source</a><a href="http://sbeam.dk/blog/wp-content/uploads/2008/12/hello-binary.zip" title="Shadebobs DS Binary"></a></p>
<p><a href="http://sbeam.dk/blog/wp-content/uploads/2008/12/hello-binary.zip" title="Shadebobs DS Binary">Shadebobs DS Binary</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=80</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WLA DX 9.5a</title>
		<link>http://www.sbeam.dk/blog/?p=78</link>
		<comments>http://www.sbeam.dk/blog/?p=78#comments</comments>
		<pubDate>Wed, 15 Oct 2008 14:40:15 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=78</guid>
		<description><![CDATA[For those of you who use the WLA DX macro assembler, i have compiled some windows binaries from the latest source v9.5a. (Only the source code is available on the original download site) I have included the original documentation plus two examples. WLA DX v9.5a windows binaries For those who have no clue what i&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who use the WLA DX macro assembler, i have compiled some windows binaries from the latest source v9.5a. (Only the source code is available on the original download site) I have included the original documentation plus two examples.</p>
<p><a href="http://sbeam.dk/blog/wp-content/uploads/2008/10/wla-dx-95a-win32-bin.zip" title="wla-dx-95a-win32-bin.zip">WLA DX v9.5a windows binaries</a></p>
<p>For those who have no clue what i&#8217;m talking about, WLA-DX is a cool assembler which handles 6502 / 6510 / Z80 / etc. processors, and have a lot of special Gameboy, SNES and SMS features. Go check it out at <a href="http://www.villehelin.com/wla.html" title="villehelin.com" target="_blank">www.villehelin.com/wla.html</a> <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=78</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Porting BeamTrons to J2ME</title>
		<link>http://www.sbeam.dk/blog/?p=75</link>
		<comments>http://www.sbeam.dk/blog/?p=75#comments</comments>
		<pubDate>Mon, 24 Mar 2008 13:38:54 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=75</guid>
		<description><![CDATA[It has been quite a while since i quit the IT industry now, to start studying at DTU. Yesterday though, i got tempted to try out the final release of Netbeans 6, and decided to take it for a spin and port my old BeamTrons game to J2ME. I must say iÂ´m really impressed with [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://sbeam.dk/blog/wp-content/uploads/2008/03/beamtrons-shot.gif" title="beamtrons" alt="beamtrons" align="left" />It has been quite a while since i quit the IT industry now, to start studying at <a href="http://www.dtu.dk" target="_blank">DTU</a>. Yesterday though, i got tempted to try out the final release of Netbeans 6, and decided to take it for a spin and port my old <a href="http://sbeam.dk/projects/beamtrons">BeamTrons</a> game to J2ME.</p>
<p>I must say iÂ´m really impressed with Netbeans 6! I have been working professionally with Netbeans since version 3.x, but have never really felt that any of the major versions have been really ground shaking and innovative. This time though, the thing that struck me the most was, everything in the UI is SO polished! I am a real UI nazi <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and there was so many UI things that annoyed me in the previous versions of Netbeans (though it was still far better than eclipse!)</p>
<p>Especially the new deployment options are so cool! There is even an option so i can deploy the midlet directly to my S60 nokia phone directly after building it, using the standard Nokia USB cable that came with my phone. Sony Ericsson has had this for ages with their remote debugging capabilities in their SDK. Correct me if iÂ´m wrong, but i haveÂ´nt seen this on any of my Nokia handsets yet?</p>
<p>Anyway, I renamed the game to Selectrons (actually because of lazyness due to filesystem conflicts hehe), and ported it to J2ME in an evening. ItÂ´s still needs some more functionality etc. to be really fun, but i canÂ´t really think of anything right now. Suggestions are welcome <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Download</strong></p>
<p><a href="http://sbeam.dk/projects/selectrons/selectrons_source-0.1.zip" title="download selectrons source">source</a> (Netbeans 6 project)</p>
<p><a href="http://sbeam.dk/projects/selectrons/selectrons-0.1.zip" title="download selectrons">Binary</a> (.jar)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=75</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dendy – The russian NES clone</title>
		<link>http://www.sbeam.dk/blog/?p=66</link>
		<comments>http://www.sbeam.dk/blog/?p=66#comments</comments>
		<pubDate>Sun, 11 Nov 2007 22:28:28 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=66</guid>
		<description><![CDATA[Some time ago my friend SÃ¸ren brought me back a funny piece of hardware from Russia: A NES clone called Dendy. I wasn&#8217;t able to find much technical info about it, only small bits of history. It seems like Nintendo never released the NES in russia, so instead they made their only clone, which was [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago my friend SÃ¸ren brought me back a funny piece of hardware from Russia: A NES clone called Dendy. I wasn&#8217;t able to find much technical info about it, only small bits of history.</p>
<p>It seems like Nintendo never released the NES in russia, so instead they made their only clone, which was as popular over there as NES was in the rest of the world. It came in all sorts of exotic cabinets, which resembled the looks of various other console. Even today you can still buy dendy clones in new original packages, which looks like PS1, Sega Megadrive, and more! I got the Megadrive look&#8217;a'like:</p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/11/img_4851.JPG" alt="dendy 1" /></p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/11/img_4853.JPG" alt="dendy 2" /></p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/11/img_4845.JPG" alt="dendy 3" /></p>
<p>I got 3 (+116) games with it:</p>
<p>Adventure island 3, Contra 6,  Chip&#8217;n'Dale, and &#8220;116 In 1 Super game&#8221;, which funny enough features a picture of Sonic on the cover!?. The roms are pretty much just copies of the original games, and i couldn&#8217;t spot any particular differences at first sight. The 116-in-1 are as usual just 3-4 games, which has been given to 116 programming monkeys on LSD, which afterwards has changed some colours in the sprites, messed up a couple of backgrounds, and split the various levels in the games, into seperat games!</p>
<p>My favorite is &#8220;Chip&#8217;n'Dale: Rescue rangers&#8221;, which i used to play a lot as a kid, and regularly still listens to <a href="http://www.zophar.net/nsf/chipnd~1.zip" target="_blank">the soundtrack</a> from.</p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/11/img_4846.JPG" alt="dendy 4" /></p>
<p>Tonight i decided to play through some levels, but ended up completing the game within an hour. It has been a while since a completed a game, since all newer games seems to take months to complete, so i was of course pretty excited after completing the last boss: what was the treat, what eye candy did the developers had in hand for a worthy player like me? Well, to my dissapointment the game just showed the following picture with some japanese subtitles, and afterwards just froze the whole damn machine?!</p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/11/img_4841.JPG" alt="dendy 5" /></p>
<p>But anyway i had a good laugh, and i certainly enjoyed the game as much as i did 17 years ago.. Waauu it has been a while&#8230; <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=66</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>M/S Halfmachine</title>
		<link>http://www.sbeam.dk/blog/?p=63</link>
		<comments>http://www.sbeam.dk/blog/?p=63#comments</comments>
		<pubDate>Sat, 11 Aug 2007 16:40:31 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=63</guid>
		<description><![CDATA[Together with my club &#8220;8 Bit klubben&#8221; i was invited to halfmachine, to hack up some old LED displays, and make some kind of digital art out of them. The M/S Halfmachine project Let me quote a description from the halfmachine website: HALF MACHINE is an artist collective based in Copenhagen. HALF MACHINE is interactive [...]]]></description>
			<content:encoded><![CDATA[<p>Together with my club &#8220;<a href="http://8bitklubben.dk/blog/?p=4" target="_blank">8 Bit klubben</a>&#8221; i was invited to halfmachine, to hack up some old LED displays, and make some kind of digital art out of them.</p>
<p><strong>The M/S Halfmachine project</strong></p>
<p>Let me quote a description from the halfmachine website:</p>
<p><em> HALF MACHINE is an artist collective based in Copenhagen. </em><em>HALF MACHINE is interactive art installations, dance performance and concert   event &#8211;  collaborative art experiments involving the audience. </em></p>
<p>And from a review:</p>
<p><em>&#8220;Objects and dancers     are suspended in a giant mobile, robots, video art and live concerts in water     and light &#8211; a crazy and surreal eco system in the midst of an electronic   playground&#8221;</em></p>
<p>The halfmachine project lately bought an old cable tug boat, a really cool old rusty industrial kinda&#8217;looking vehicle. Perfect for a surrealistic cyberpunk high voltage future art event! Somebody was so lucky to get their hands on the old scoreboards from &#8220;Parken&#8221; (the main football stadium in Copenhagen), which we was invited to come and hack.</p>
<p>The display boxes was equipped with a logical 8&#215;16 matrix of 12 LED cells, which could display either red, green, or booth. And the boxes could be daisy chained, so you could shift data onto an infinite number of displays. Mads from halfmachine managed to reverse engineer the control board protocol, so all i had to do was hook up a microcontroller, and start coding! I was really rusty in low-level C coding, but i just felt so nice to fiddle with it again, and i kinda got the hang of it quite fast. We used the <a href="http://www.arduino.cc/" target="_blank">Arduino</a> AVR boards for this, which worked perfectly with the supplied IDE and avr-gcc based compiler.</p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/08/img_3212.JPG" alt="img_3212.JPG" /> <img src="http://sbeam.dk/blog/wp-content/uploads/2007/08/img_3265.JPG" alt="img_3265.JPG" /></p>
<p>The first thing that came into my mind when thinking of what to code, was of course a sinus scroller. The displays wasn&#8217;t quite big enough for that, and i didn&#8217;t have time to make an abstraction layer that made it possible to place any number of displays in arbitrary setup, but only to chain them horizontally. So i decided to make a regular scroller, with a sinus curve behind it <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I took the PC Bios font, which was the only font i could think of which was easy to find, and came in an 8&#215;8 px bitplane, and quickly threw together a php script on my macbook, which printed out the sinus tables i used for the background.</p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/08/img_3274.jpg" alt="img_3274.jpg" /> <img src="http://sbeam.dk/blog/wp-content/uploads/2007/08/img_3302.jpg" alt="img_3302.jpg" /></p>
<p>The text that Pipaluk (the female heart of halfmachine) decided to show on the scroller was:</p>
<p><em>WHAT REALLY COUNTS IN THE HISTORY OF CULTURE AIMS AT THE BOTTOM LINE ONLY TOWARDS THE MOMENT WHEN THE NIGHT OF UNLIMITED DESIRE SOMEHOW IS CHANGING INTO THE BLINDING RADIATING DEMAND FOR MORE CONSCIOUSNESS FLUNG OUT IN EACH DIFFERENT TONE OF VOICE BY ALL PSYCHICS</em></p>
<p><em>L&#8217;ECART ABSOLU, 1965.</em></p>
<p>A cool text for the context, even though i still don&#8217;t quite understand the deeper meaning of it.</p>
<p>I managed to get time to code another little thing, for the displays placed along the main dance floor:</p>
<p><img src="http://sbeam.dk/blog/wp-content/uploads/2007/08/img_3370.jpg" alt="img_3370.jpg" /></p>
<p>A man hanging in chains, above my virtual flowerbed <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The flowers slowly grew up, bloomed, and eventually died out and made a new spore. All in a nice and slow tempo during the entire evening. Jacob the adventurous managed to screw it up all of a sudden though, when he demonstrated for some friends how easy it was to switch microcontroller boards on the displays, which resulted in a &#8220;bug swarm&#8221; randomly flashing in my pretty flowerbed! <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  Funny enough, they spread out to 2 of the flowerbeds, and after about an hour they died out?!</p>
<p>It was a really remarkable and astonishing show, with everything from naked people in a tube of water, to Pipaluk dancing on a submarine, which sailed around in the harbor, and eventually dived with her standing on top. I can really recommend you go see it! the show is open every fri/sat/sun from 21-02 the rest of August. For further info, check:</p>
<p><a href="http://www.halfmachine.dk/" target="_blank">http://www.halfmachine.dk/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TCP/IP Networking in DOS</title>
		<link>http://www.sbeam.dk/blog/?p=35</link>
		<comments>http://www.sbeam.dk/blog/?p=35#comments</comments>
		<pubDate>Sat, 28 Jul 2007 15:19:30 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=35</guid>
		<description><![CDATA[I finally found an ISA ethernet adapter for one of my DOS machines, and last night i decided to try to get it online. Step 1: Installing hardware drivers Under DOS, the lowest layer that communicates with the network card is a &#8220;packet driver&#8221;. This does not include any form of TCP/IP stack, but is [...]]]></description>
			<content:encoded><![CDATA[<p>I finally found an ISA ethernet adapter for one of my DOS machines, and last night i decided to try to get it online.</p>
<p><strong>Step 1: Installing hardware drivers</strong></p>
<p>Under DOS, the lowest layer that communicates with the network card is a &#8220;packet driver&#8221;. This does not include any form of TCP/IP stack, but is merly a physical hardware abstraction layer, for sending raw frames. First you must determine which chipset your network card has:</p>
<p><a href="http://sbeam.dk/blog/wp-content/uploads/2007/07/img_3048.JPG" title="Realtek 8019AS"><img src="http://sbeam.dk/blog/wp-content/uploads/2007/07/img_3048.JPG" alt="Realtek 8019AS" /></a></p>
<p>The biggest chip with the most legs is usually the one we&#8217;re looking for. In this case it&#8217;s a Realtek 8019AS. Luckily realtek has always been very open, and good at supporting their old products, so i was able to find the original driver on their website.</p>
<p>Apart from the vendor, another great place for finding packet drivers is:</p>
<p><a href="http://www.crynwr.com/drivers/" title="Packet drivers for DOS" target="_blank">http://www.crynwr.com/drivers/ </a></p>
<p><a href="http://www.georgpotthast.de/sioux/packet.htm" target="_blank">http://www.georgpotthast.de/sioux/packet.htm</a> (also has a PCI detection utility)</p>
<p>The driver file itself should only be a small .com file, which you can run when needed (preferably run it in autoexec.bat at startup).</p>
<p><strong>Step 2:  A TCP/IP stack</strong></p>
<p>There is no resident TCP/IP stack for DOS (maybe some commercial ones i haven&#8217;t heard of?), so most programs include their own. A popular (and free) TCP/IP stack is WATTCP. It doesn&#8217;t contain any resident daemons, but is more of a socket library you use when compiling network programs. So ping&#8217;ing the DOS machine from another host is not possible, unless a ping aware program is running on the DOS machine.</p>
<p>One thing can be shared system wide with WATTCP thoug, the configuration file, which is called WATTCP.CFG. WATTCP Clients tries to locate this in the PATH, or by looking at the enviroment variable WATTCP.CFG</p>
<p>wattcp.cfg:<br />
<code><br />
my_ip=192.168.1.2    			# ip address of local machine<br />
netmask=255.255.255.0 			# subnet mask<br />
nameserver=192.168.1.1			# nameserver<br />
gateway=192.168.1.1   			# default gateway<br />
hostname=me.foobar.com		# hostname<br />
</code></p>
<p>All programs based on WATTCP will try to locate this file, and use it these settings.</p>
<p>There is also a 32-bit version of WATTCP available called Watt-32, with a lot of utilities etc.:</p>
<p><a href="http://www.bgnett.no/%7Egiva/" target="_blank">http://www.bgnett.no/%7Egiva/</a></p>
<p><strong>Step 3: Applications!</strong></p>
<p>There is some excelent lists of TCP/IP applications for DOS at the following sites:</p>
<p><a href="http://www.dossolutions.pwp.blueyonder.co.uk/wattcp.htm" target="_blank">http://www.dossolutions.pwp.blueyonder.co.uk/wattcp.htm</a></p>
<p><a href="http://www.unet.univie.ac.at/~a0503736/php/drdoswiki/index.php?n=Main.Browsers" target="_blank">http://www.unet.univie.ac.at/~a0503736/php/drdoswiki/index.php?n=Main.Browsers</a></p>
<p><a href="http://www.dendarii.co.uk/FAQs/dos-apps.html" target="_blank">http://www.dendarii.co.uk/FAQs/dos-apps.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=35</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 2000 Theme for K700i</title>
		<link>http://www.sbeam.dk/blog/?p=33</link>
		<comments>http://www.sbeam.dk/blog/?p=33#comments</comments>
		<pubDate>Thu, 16 Nov 2006 14:58:00 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Fun and games]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=33</guid>
		<description><![CDATA[I had a very busy day at work today, and thought i&#8217;d try the Sony Ericsson Theme Creator. Unfortunately it was very limited, and all the icons and text elements could not be moved/changed in any way. But i like like it anyway http://sbeam.dk/projects/themes/]]></description>
			<content:encoded><![CDATA[<p>I had a very busy day at work today, and thought i&#8217;d try the Sony Ericsson Theme Creator. Unfortunately it was very limited, and all the icons and text elements could not be moved/changed in any way. But i like like it anyway <img src='http://www.sbeam.dk/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="k700i Windows 2000 Theme" href="http://sbeam.dk/projects/themes/">http://sbeam.dk/projects/themes/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=33</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New deviantart site</title>
		<link>http://www.sbeam.dk/blog/?p=32</link>
		<comments>http://www.sbeam.dk/blog/?p=32#comments</comments>
		<pubDate>Sat, 26 Aug 2006 11:33:43 +0000</pubDate>
		<dc:creator>sbeam</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sbeam.dk/blog/?p=32</guid>
		<description><![CDATA[I kinda gave up on my own gallery. I kept having problems with file permissions on the server i am hosting sbeam.dk on, and switching to PHPGraphy did&#8217;nt exactly make things easier. I don&#8217;t really feel like wasting hours customizing PHPGraphy to the same look and feel like the rest of my site, so i [...]]]></description>
			<content:encoded><![CDATA[<p>I kinda gave up on my own gallery. I kept having problems with file permissions on the server i am hosting sbeam.dk on, and switching to PHPGraphy did&#8217;nt exactly make things easier. I don&#8217;t really feel like wasting hours customizing PHPGraphy to the same look and feel like the rest of my site, so i decided to start a deviantart site. Partly because of all the maintenance trouble with my own gallery, but also because i thought it could be fun to join an art community and talk to some fellow photographers.</p>
<p>Take a look at: <a href="http://sbeam.deviantart.com">sbeam.deviantart.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sbeam.dk/blog/?feed=rss2&amp;p=32</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

