<?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>Melvin's tech blog &#187; Open source</title>
	<atom:link href="http://blog.melvinrook.nl/category/opensource/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.melvinrook.nl</link>
	<description></description>
	<lastBuildDate>Sat, 31 Jul 2010 11:31:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Printing to a matrix printer from PostgreSQL</title>
		<link>http://blog.melvinrook.nl/2010/07/31/printing-to-a-matrix-printer-from-postgresql/</link>
		<comments>http://blog.melvinrook.nl/2010/07/31/printing-to-a-matrix-printer-from-postgresql/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 11:29:19 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=188</guid>
		<description><![CDATA[Recently I found an interesting piece of code again which I would like to share with you. I produced the code about a year ago for a project which needed offline data logging. I used the piece of code to print a line to a matrix printer from PostgreSQL. The matrix printer was connected to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I found an interesting piece of code again which I would like to share with you. <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  I produced the code about a year ago for a project which needed offline data logging.</p>
<p>I used the piece of code to print a line to a matrix printer from PostgreSQL. The matrix printer was connected to the database server and supplied with endless paper. I used a matrix printer, because you can print directly to the device.</p>
<p>With the method, described below, it&#8217;s possible to print with a SQL query or print something initiated by a trigger. Using this method you can log specific data &#8216;offline&#8217;.</p>
<p>The print_line method consists of three files; print_line.c which contains the code to address the printer, a Makefile to compile the print_line.c file and a print_line.sql file which creates the function in SQL.</p>
<p><strong>print_line.c</strong><br />
<a href="http://blog.melvinrook.nl/wp-content/uploads/2010/07/print_line.png"><img src="http://blog.melvinrook.nl/wp-content/uploads/2010/07/print_line.png" alt="" title="print_line" width="660" height="523" class="alignnone size-full wp-image-193" /></a></p>
<p><strong>Makefile</strong><br />
<code>MODULES = printhash<br />
PGXS := $(shell pg_config --pgxs)<br />
include $(PGXS)</code></p>
<p><strong>print_line.sql</strong><br />
<code>CREATE FUNCTION print_line(text) RETURNS integer<br />
AS '/usr/local/libexec/print_line.so', 'print_line'<br />
LANGUAGE C STRICT;</code></p>
<p><strong>Installation:</strong><br />
<code>mkdir /home/user/print_line<br />
cd /home/user/print_line<br />
unzip print_line.zip<br />
make<br />
cp print_line.so /usr/local/libexec/<br />
// open postgresql command line client and execute:<br />
# \i /home/user/print_line/print_line.sql</code></p>
<p><strong>Usage:</strong><br />
<code>SELECT print_line('Hello World!');</code></p>
<p><strong>Download:</strong><br />
<a href='http://blog.melvinrook.nl/wp-content/uploads/2010/07/print_line.zip'>Download print_line.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2010/07/31/printing-to-a-matrix-printer-from-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synology DS1010+ NAS</title>
		<link>http://blog.melvinrook.nl/2010/04/10/synology-ds1010-nas/</link>
		<comments>http://blog.melvinrook.nl/2010/04/10/synology-ds1010-nas/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 07:12:05 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=168</guid>
		<description><![CDATA[A while ago I decided to buy a Synology DS1010+ to backup my data. People keep me asking why I bought a Synology. Well, next to the fact it runs on open source software, Linux and has wide variety of features, I guess the following video explains everything. More information on Synology NAS systems can [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I decided to buy a Synology DS1010+ to backup my data. People keep me asking why I bought a Synology. Well, next to the fact it runs on open source software, Linux and has wide variety of features, I guess the following video explains everything.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="Flash_1270549906408" width="384" height="240"><param name="src" value="http://ukdl.synology.com/ftp/marketing/master_your_data/flowplayer-3.1.5.swf"><param name="wmode" value="opaque"><param name="flashvars" value='config={"key": "#$257dac17b9558a4de91","plugins":{"controls":{"url":"http://ukdl.synology.com/ftp/marketing/master_your_data/flowplayer.controls-3.1.5.swf","backgroundColor":"#FFFFFF","autoHide":"always"}},"clip":{"scaling":"scale","autoPlay":"false","url":"http://ukdl.synology.com/ftp/marketing/master_your_data/mydc_enu_low.mp4","bufferLength":"1"},"canvas":{"backgroundColor":"#FFFFFF"}}' /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" src="http://ukdl.synology.com/ftp/marketing/master_your_data/flowplayer-3.1.5.swf" wmode="opaque" flashvars='config={"key": "#$257dac17b9558a4de91","plugins":{"controls":{"url":"http://ukdl.synology.com/ftp/marketing/master_your_data/flowplayer.controls-3.1.5.swf","backgroundColor":"#FFFFFF","autoHide":"always"}},"clip":{"scaling":"scale","autoPlay":"false","url":"http://ukdl.synology.com/ftp/marketing/master_your_data/mydc_enu_low.mp4","bufferLength":"1"},"canvas":{"backgroundColor":"#FFFFFF"}}' width="384" height="240" wmode="transparent" allowFullScreen="true"></embed></object> </p>
<p>More information on Synology NAS systems can be found at <a href="http://www.synology.com">www.synology.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2010/04/10/synology-ds1010-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://ukdl.synology.com/ftp/marketing/master_your_data/mydc_enu_low.mp4" length="5517535" type="video/mp4" />
		</item>
		<item>
		<title>Diversia ported to FreeBSD</title>
		<link>http://blog.melvinrook.nl/2010/04/08/diversia-ported-to-freebsd/</link>
		<comments>http://blog.melvinrook.nl/2010/04/08/diversia-ported-to-freebsd/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 17:54:58 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Diversia]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=163</guid>
		<description><![CDATA[This week I finished the FreeBSD port of Diversia. The information about the FreeBSD port can be found in the blogpost I wrote at the Diversia blog: http://diversia.org/2010/04/08/diversia-ports-server-to-freebsd/]]></description>
			<content:encoded><![CDATA[<p>This week I finished the FreeBSD port of <a href="http://diversia.org">Diversia</a>. The information about the FreeBSD port can be found in the blogpost I wrote at the Diversia blog: <a href="http://diversia.org/2010/04/08/diversia-ports-server-to-freebsd/">http://diversia.org/2010/04/08/diversia-ports-server-to-freebsd/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2010/04/08/diversia-ported-to-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using wxFormBuilder with Code::Blocks on Mandriva 2009</title>
		<link>http://blog.melvinrook.nl/2009/02/20/using-wxformbuilder-with-codeblocks-on-mandriva-2009/</link>
		<comments>http://blog.melvinrook.nl/2009/02/20/using-wxformbuilder-with-codeblocks-on-mandriva-2009/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 14:16:22 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=137</guid>
		<description><![CDATA[After some puzzling I found out how to setup a nice development environment with wxFormBuilder and Code::Blocks on Mandriva Linux 2009. How to do this is described below. Packages Download and install the following packages and it&#8217;s dependencies: Code::Blocks libwxgtku2.8 libwxgtku2.8-devel wxGTK2.8 wxFormBuilder Download the wxFormBuilder 3.0 linux source including the pre-generated Makefiles. Now unpack [...]]]></description>
			<content:encoded><![CDATA[<p>After some puzzling I found out how to setup a nice development environment with wxFormBuilder and Code::Blocks on Mandriva Linux 2009. How to do this is described below.</p>
<p><strong>Packages</strong></p>
<p>Download and install the following packages and it&#8217;s dependencies:</p>
<ul>
<li> Code::Blocks</li>
<li>libwxgtku2.8</li>
<li>libwxgtku2.8-devel</li>
<li>wxGTK2.8</li>
</ul>
<p><strong>wxFormBuilder</strong></p>
<p>Download the wxFormBuilder 3.0 linux source including the pre-generated Makefiles. Now unpack the tarball, build and install wxFormBuilder:</p>
<ul>
<li>cd /usr/local/src/</li>
<li>wget or fetch wxformbuilder-3.0.57.tar.gz</li>
<li>tar -zxvf wxformbuilder-3.0.57.tar.gz</li>
<li>cd wxformbuilder_3.0.57</li>
<li>make CONFIG=Release</li>
<li>./install/linux/wxfb_export.sh /usr</li>
</ul>
<p><strong>Code::Blocks</strong></p>
<ul>
<li>Start Code::Blocks and open the menu Tools -&gt; Configure tools&#8230;</li>
<li>Click on Add.</li>
<li>The following picture shows how to setup the tool:</li>
</ul>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/02/cb_edit_tool.png"><img class="alignnone size-medium wp-image-138" title="cb_edit_tool" src="http://blog.melvinrook.nl/wp-content/uploads/2009/02/cb_edit_tool-300x259.png" alt="" width="300" height="259" /></a></p>
<ul>
<li>Save the settings and open the menu File -&gt; New -&gt; Project</li>
<li>Choose wxWidgets project</li>
<li>Walk trough the wizard</li>
<li>Use wxWidgets 2.8.x</li>
<li>Preferred GUI Builder: wxFormBuilder</li>
<li>Application type: Frame Based</li>
<li>Use the default widgets configuration</li>
</ul>
<p>When you would like to modify your GUI you can open the following menu: Tools -&gt; wxFB. Which will launch wxFormBuilder with your GUI. When it asks for conversion, click yes.</p>
<p>Don&#8217;t forget to generate the code (press F8) before you switch back to Code::Blocks. Otherwise you changes won&#8217;t be visible. You also need to build your project in Code::Blocks before your changes are visible.</p>
<p>In certain versions and combinations of the software the following compile error could occur: <em>&#8220;wxMessageBox was not declared in this scope&#8221;</em>. There are two solutions to this problem:</p>
<p>1) I noticed wxFormBuilder changed a bit. All headers where included in the generated code, even when the headers were not necessary. Now not all the headers are included. When you use other wxWidgets methods just add the proper header. In this case you can use the following include:</p>
<pre>#include &lt;wx/msgdlg.h&gt;</pre>
<p>2) Do not use the Code::Blocks wxWidgets template and just setup a clean C::B project. Then also setup a clean wxFormBuilder project by using the inherited class tutorial (*). Finally add the code manually to the project.</p>
<p><strong>Links</strong></p>
<ul>
<li><a href="http://www.codeblocks.org">Code::Blocks</a></li>
<li><a href="http://wxformbuilder.org">wxFormBuilder</a></li>
<li><a href="http://wiki.wxformbuilder.org/Tutorials/UsingWxFormBuilder">Inherited class tutorial</a> (*)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2009/02/20/using-wxformbuilder-with-codeblocks-on-mandriva-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Texas Instruments TMP421 / 422 / 423 Linux Device Driver</title>
		<link>http://blog.melvinrook.nl/2009/01/14/texas-instruments-tmp421-422-423-linux-device-driver/</link>
		<comments>http://blog.melvinrook.nl/2009/01/14/texas-instruments-tmp421-422-423-linux-device-driver/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 17:36:06 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=116</guid>
		<description><![CDATA[Last week Raymond and me finished the Linux device driver for the Texas Instruments TMP421, TMP422 and TMP423 temperature sensors. At this moment the driver is undergoing an code audit and will be available soon. If you can&#8217;t wait, or are in a desperate need of the driver, then take a look at the bottom [...]]]></description>
			<content:encoded><![CDATA[<p>Last week Raymond and me finished the Linux device driver for the Texas Instruments TMP421, TMP422 and TMP423 temperature sensors. At this moment the driver is undergoing an code audit and will be available soon. If you can&#8217;t wait, or are in a desperate need of the driver, then take a look at the bottom of this post for the pre-release.</p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/tmp421.jpg"><img class="alignnone size-medium wp-image-117" title="tmp421" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/tmp421.jpg" alt="" width="250" height="200" /></a></p>
<p>The TMP421, TMP422 and TMP423 are the industry&#8217;s smallest remote junction temperature sensors with a built-in local temperature sensor. The single remote channel TMP421, dual remote channel TMP422 and triple remote channel TMP423 provide a remote sensor accuracy of +/-1C (maximum) and a local temperature sensor range of +/-1.5C (maximum). Both sensors are RoHS compliant and can be used in numerous applications including LCD/DLP®/LCOS projectors, servers, central office telecom equipment, and laptop computers. They are also suitable for industrial controllers, processor/FPGA temperature monitoring and storage area networks.</p>
<p>The TMP421, TMP422 and TMP423 feature a two-wire/SMBus serial interface as well as multiple addresses. The remote temperature sensor diode-connected transistors are typically low-cost NPN- or PNP-type transistors or diodes that are an integral part of microprocessors, microcontrollers and FPGAs. The TMP421, TMP422 and TMP423 also include series resistance cancellation, programmable non-ideality factor and diode fault detection.</p>
<p>The sensors operate on a standard I2C/SMBus compatible, two-wire interface over a temperature range of -40°C to 125°C, with a remote temperature range of up to 150C. For maximum power savings, the device circuitry (other than the serial interface) can be shut down, thereby reducing current consumption to typically less than 3uA.</p>
<p>More information can be found on the following URL: <a href="http://www.ti.com/tmp421-pr">http://www.ti.com/tmp421-pr</a></p>
<p>Driver pre-release download (no warranties!): <a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/tmp421-srctar.gz">tmp421-src.tar.gz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2009/01/14/texas-instruments-tmp421-422-423-linux-device-driver/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Game development &#8211; how to begin?</title>
		<link>http://blog.melvinrook.nl/2008/12/11/game-development-how-to-begin/</link>
		<comments>http://blog.melvinrook.nl/2008/12/11/game-development-how-to-begin/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 20:21:33 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Phyzle]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=87</guid>
		<description><![CDATA[How to begin with game development? That&#8217;s the very same question I asked myself a few years ago. I think, that&#8217;s is the most difficult step in the process of learning. How should I start? Where should I start? With what should I start? First of all you need to ask the following question: Can [...]]]></description>
			<content:encoded><![CDATA[<h1>How to begin with game development?</h1>
<p>That&#8217;s the very same question I asked myself a few years ago. I think, that&#8217;s is the most difficult step in the process of learning. How should I start? Where should I start? With what should I start?</p>
<p>First of all you need to ask the following question: Can I start? The most simple answer is: yes you can! Everyone can start with game development, but on what time frame? Perhaps you need to learn a bit more of other topics before you actually can begin, because you can&#8217;t really program for example.</p>
<p>When developing games, a good knowledge of programming is a real advantage. It will be a lot easier to understand what&#8217;s going on. So when you are reading my post and you can&#8217;t even program, I would suggest to begin with learning C, C++ or PHP for example. You can take the course on your own by reading books and playing around a bit with simple console based applications or by taking the proper education in a school.</p>
<p>If you can program, then it&#8217;s a lot easier to start with game programming. Now we come to the answers on the questions how, where and with what to start. I think it&#8217;s the best to cover something I have experience with. When I tried to learn game programming, I personally started with a purchase of a GP2X game console.</p>
<p><a href="http://www.gp2x.com/"><img class="alignnone size-medium wp-image-88" title="gp2x" src="http://blog.melvinrook.nl/wp-content/uploads/2008/12/gp2x-300x198.jpg" alt="" width="300" height="198" /></a></p>
<p>The GP2X is a portable device running a modified version of Linux. At the time I started to program for the GP2X, it was possible to create games with C or C++ combined with SDL for the graphics, controls and sounds. I started with loads of projects, but actually I never really finished a project yet. I learned a lot of it though. So when you are really up to a challange, buy a GP2X and start to create games! /* Will post sample code, IDE and games in near future. */</p>
<p>A few months later I started with a project on the Rijswijk university of professional technical education. The goal was to design and create a game from scratch. However, for the university it was important to have an insight on the process of designing and creating a game, because they wanted to start a new programming theme: &#8220;Game development&#8221;. The game programming theme will cover the most important aspects of game development. So there where a few extra requirements. An opensource engine should be used for example. This is important, because then the university is allowed to change some things &#8220;under the hood&#8221;, there is no problem with licensing costs and games can easily be published by students. Also, our projectteam was required to make use of physics simulation. Which, by the way, makes games really more interesting. <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>One of the steps in the process was picking the best game engine. We decided to make our own &#8220;package&#8221; which consisted of the following parts:</p>
<ul>
<li>Ogre3D (render engine)</li>
<li>PhysX (physics engine)</li>
<li>NxOgre (wrapper between Ogre3D and PhysX)</li>
<li>FMOD (sound manager)</li>
</ul>
<p>I started learning developing games by following the tutorials for Ogre3D. I also played around with the Ogre3D samples by modifying code and playing around with it. After we had setup a test environment with the help of a NxOgre tutorial named &#8216;Cake&#8217;. <em>&#8220;Cake is a small sandbox type application to quickly prototype or play with any feature of NxOgre. It’s designed to work within two functions; createScene and onFrame, so that all of the Ogre, GUI and Input code is hidden away from direct view and the developer can concentrate on the NxOgre code only.&#8221;</em> (Source: <a href="http://nxogre.org/cake ">cake</a>)</p>
<p>After we played around a lot with cake we decided to start on the game development of the real game. Phyzle, our concept, is an open source puzzle game using physics as its main game play element. The goal is to bring a ball from point A to B as fast as possible using physics elements like magnets, springs and more.</p>
<p>In a level your goal consists of bringing your ball from A to B as fast as possible, without losing or destroying your ball. The faster you finish, the more points you will earn. The ball can be destroyed by elements like fire, hammers or explosions. Besides the destroying elements there are also helping elements. You can use these elements to improve your finishing time. For example you can make use of elements like fans or magnets.</p>
<h2>Making a game concept</h2>
<p>/* Will post this topic in the near future */</p>
<p>In general, I can&#8217;t cover every topic about game development. However, the internet does cover almost every topic. Please make use of it! <sub>And, of course, make use of the following URLs:</sub></p>
<ul>
<li><a href="http://www.gamedev.net/">http://www.gamedev.net/</a></li>
<li><a href="http://www.gamasutra.com/">http://www.gamasutra.com/</a></li>
<li><a href="http://www.gdmag.com">http://www.gdmag.com</a></li>
<li><a href="http://www.devmaster.net/">http://www.devmaster.net/</a></li>
</ul>
<p>/* Disclaimer: This post is still a draft. More topics will be added in the near future. When you need specific information, please ask for it by replying to this post! */</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2008/12/11/game-development-how-to-begin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing a Call of Duty 4 server on FreeBSD</title>
		<link>http://blog.melvinrook.nl/2008/11/25/installing-a-call-of-duty-4-server-on-freebsd/</link>
		<comments>http://blog.melvinrook.nl/2008/11/25/installing-a-call-of-duty-4-server-on-freebsd/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 18:51:35 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=49</guid>
		<description><![CDATA[One of the reasons why I write this post is that I always forget how I managed to install the COD4 server on FreeBSD. Another reason is that people keep asking on how I did it, so I will try to provide a complete manual. This post will most likely receive a few updates in [...]]]></description>
			<content:encoded><![CDATA[<p>One of the reasons why I write this post is that I always forget how I managed to install the COD4 server on FreeBSD. Another reason is that people keep asking on how I did it, so I will try to provide a complete manual. This post will most likely receive a few updates in the future. Please post your requests for help by commenting on this post.</p>
<h1>Requirements</h1>
<ul>
<li>FreeBSD (jail) installation</li>
<li>Port/package linux_base-fc4 installed</li>
<li>Enabled linux emulation</li>
<li>COD4 DVD</li>
</ul>
<h1>Creating your server release</h1>
<ul>
<li>First of all you need a MS windows installation or emulation to install/unpack your COD4 DVD. For example you could install/unpack to &#8216;C:\Games\cod4\&#8217;. The reason that you need to do this on windows is because Activision/Infinity Ward doesn&#8217;t provide a serverpackage or unix installation of cod4.</li>
<li>Now patch your installation to the latest version (current version is: 1.7568)</li>
<li>Create a directory &#8216;C:\Games\cod4srv\&#8217;.</li>
<li>Copy the all the files and directories from cod4 to cod4srv.</li>
<li>Go to &#8216;C:\Games\cod4srv\&#8217; and delete the following files as this will save some space on your server:
<ul>
<li>Docs\</li>
<li>main\videos\* (all but keep zakhaev_escape.bik)</li>
<li>players\</li>
</ul>
</li>
<li>Get the cod4 linux binaries from the following URL: http://treefort.icculus.org/cod/ (most recent: cod4-linux-server-06282008.tar.bz2)</li>
<li>Unpack cod4-linux-server-06282008.tar.bz2 to &#8216;C:\Games\cod4srv\&#8217;.</li>
<li>Now pack &#8216;C:\Games\cod4srv\&#8217;</li>
<li>Transfer the pack to your server</li>
<li>Unpack (to the directory &#8216;/home/cod4/cod4srv&#8217; for example)</li>
<li>Keep your original (C:\Games\cod4\) directory for future patching</li>
</ul>
<h1>Running your COD4 server</h1>
<ul>
<li>Create a server.cfg file (an example server.cfg file can be found here)</li>
<li>Put the server.cfg file in the &#8216;/home/cod4/cod4srv/main&#8217; directory</li>
<li>Now we can run the server:
</ul>
<pre>
cod4srv# cd /home/cod4/cod4srv
cod4srv# ./cod4_lnxded +set dedicated 2 +set net_port 28960 sv_maxclients 20 +exec server.cfg +map_rotate &#038;
</pre>
<p>This command will start a dedicated server on port 28960 with 20 slots, map rotation enabled and will load the options from the server.cfg file. The server will run in the background. Optionally you can run the server in a screen session and detach from it.</p>
<h1>Patching your server release</h1>
<p>/* Coming soon */</p>
<h1>Installing anti-cheat mechanisms</h1>
<h2>PunkBuster</h2>
<p>First shutdown or kill your running cod4 server. Now run the following commands:</p>
<pre>
cod4srv# cd /home/cod4/cod4srv
cod4srv# ./pbsetup.run -e
cod4srv# ./pbsetup.run --add-game=cod4 --add-game-path=/home/cod4/cod4srv/
cod4srv# ./pbsetup.run -u
</pre>
<p>While running the PunkBuster setup it will ask you to agree to a license and possibly ask you a few other questions. The PB setup will download and install the most recent files. Now you can run your server again!</p>
<h2>Dmw Pro</h2>
<p>/* Coming soon */</p>
<h1>FAQ</h1>
<p><strong>Why don&#8217;t you play cod4?</strong> Oh, I forgot to tell&#8230; I don&#8217;t really play cod4, I just installed a cod4 server for a couple of friends. And yes, I have an official license key. <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2008/11/25/installing-a-call-of-duty-4-server-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking at Random</title>
		<link>http://blog.melvinrook.nl/2008/11/18/hacking-at-random/</link>
		<comments>http://blog.melvinrook.nl/2008/11/18/hacking-at-random/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 17:31:09 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=43</guid>
		<description><![CDATA[Fresh from the HAR2009 mailinglist: Hacking at Random International technology &#38; security conference. Four days of technology, ideological debates and hands-on tinkering. On August 13-16, 2009 the 20th anniversary event edition of the four-yearly Dutch outdoor technology-conference will take place near Vierhouten, NL. What is HAR? Since 1989 the international community that builds the internet [...]]]></description>
			<content:encoded><![CDATA[<p>Fresh from the HAR2009 mailinglist:</p>
<h1>Hacking at Random</h1>
<p>International technology &amp; security conference. Four days of<br />
technology, ideological debates and hands-on tinkering.</p>
<p>On August 13-16, 2009 the 20th anniversary event edition of the<br />
four-yearly Dutch outdoor technology-conference will take place near<br />
Vierhouten, NL.</p>
<h2>What is HAR?</h2>
<p>Since 1989 the international community that builds the internet has<br />
been getting together on a series of conferences to discuss the state<br />
of contemporary technology, the future of it and the sociological and<br />
political consequences of their work. The participants vary from<br />
students and people with personal interests to researchers, scientists<br />
and entrepreneurs who are widely recognized as the best in their field.</p>
<p>The atmosphere is friendly and relaxed, the average level of knowledge<br />
is high and outside of the official lectures the site is buzzing with<br />
energy, ideas and projects. The New York Times likened the 1997 edition<br />
to a &#8220;Woodstock for Hackers&#8221;. We do our best to keep that atmosphere.</p>
<p>When these conferences first happened twenty years ago, the internet<br />
was like the Wild West, a new frontier to explore. That has changed,<br />
virtually every household in the Western world has access to the<br />
internet and, just as happened in the Wild West, new questions have<br />
risen. Questions of governance, sustainability, integration with<br />
existing power structures, shortage of IP space and energy, censorship,<br />
security, etc. The notion of hacking, to use a system in a creative way<br />
that was not thought of when it was invented, has also shown to be<br />
applicable to fields outside of ICT technology.</p>
<h2>Where is HAR?</h2>
<p>The location (+52 19&#8242; 50.02&#8243;, +5 49&#8242; 27.98&#8243;) is near Vierhouten, a<br />
small settlement in the beautiful Veluwe area renowned for its culinary<br />
industry. The former socialist youth-camp [1]de Paasheuvel provides<br />
some good old-fashioned Dutch [2]gezelligheid. A variety of camping<br />
areas will cater to our broad range of camping and non-camping<br />
audience: varying from secluded spots in the foliage to larger fields<br />
for those of you who want to cluster together to form a village.</p>
<p>There is a train-station nearby, in Nunspeet. From there it is a<br />
10-minute drive to the festival terrain. Some form of transport from<br />
the station to the terrain will be arranged, but the truly adventurous<br />
among you may choose to take a hike: it is definetely within walking<br />
distance and the surroundings will not disappoint.</p>
<h2>Who is HAR?</h2>
<p>You, me and some hundreds (if not thousands) of other like-minded<br />
folks. In true spirit, there will be no visitors but only volunteers.<br />
In order to keep costs low, expect to lend a hand here and there. You<br />
might be operating the A/V-equipment in one of the lecture tents, sweep<br />
the floor in the bar tent, check in visitors at the entrance or pour<br />
drinks at the bar. A great way to discover new talents, or develop<br />
those hidden ones you never suspected you had!</p>
<p>Of course, there is a somewhat smaller group of madmen and women that<br />
will lay (and have been laying) the groundwork for another great<br />
edition in the year leading up to the event. This event could easily be<br />
dubbed &#8220;the next generation&#8221;. Because, yes, the original crew that has<br />
been working hard on these conferences have earned a relaxing holiday<br />
by organising the four preceeding events. A new generation is eager to<br />
take over, and continue their legacy. Not to say that the old farts are<br />
not interested, au contraire my friends. There is a healthy mix of new<br />
blood and experienced hands currently working on the necesarry<br />
preparations.</p>
<p>In fact, this is reflected nicely in the foundation that was set up to<br />
handle all the paperwork and other legal requirements: [3]the Hxx<br />
foundation. Its board is a 50/50 mix of old and new: Aldert Hazenberg<br />
and Mischa Peters have been involved to a great extent in all past<br />
events, Koen Martens made his organising debut 3 years ago on WTH and<br />
Mathijs Schmittmann is our new kid on the block.</p>
<p>In case you are wondering &#8220;but where is Rop Gonggrijp&#8221;, no fears: he is<br />
right around the corner and [4]believes we &#8220;pesky new-generation<br />
event-hackers&#8221; are going to do just fine. He will help out where<br />
possible, but more on that below.</p>
<p>Of course, HAR will not be happen without huge sums of money. We have<br />
tried to keep ticket prices low, even in these times of financial<br />
crisis, so we are attracting a number of sponsors and donors. But don&#8217;t<br />
worry, HAR will not be called &#8220;Yoyodyne Inc. HAR2009&#8243; even if Yoyodyne<br />
coughs up millions of euro&#8217;s.</p>
<h2>And more..</h2>
<p>As this is being written, the last work is undertaken on the<br />
ticket-webshop, which we hope to have online early december. At the<br />
same time, the program committee, led by the more than qualified Rop<br />
Gonggrijp, is preparing the call for papers and otherwise developing a<br />
solid lecture program that&#8217;ll make your mouth water (even if you have<br />
visited every single conference between WTH and now and seen em all).</p>
<p>Of course, planning has started on an in-promptu power infrastructure<br />
and intranet, with uplink to the interwebs. And naturally, there will<br />
be various foods and beverages.</p>
<h2>Subscribe</h2>
<p>If you want to receive the latest news on HAR2009 as it happens, be<br />
sure to subscribe to the relatively low-volume announcement list. Send<br />
an email to [5]announce-subscribe@har2009.org or visit<br />
[6]www.har2009.org and enter your email in the subscribe form.</p>
<p>Perhaps you&#8217;re thinking &#8220;hey, I want to help!&#8221;. If you have some time<br />
in the next months and are prepared to make a commitment, send an email<br />
to [7]help@har2009.org.</p>
<p>The wiki is available at [8]http://wiki.har2009.org/.</p>
<p>Potential sponsors can mail directly to [9]sponsoring@har2009.org.</p>
<p>Press inquiries can be sent to [10]press@har2009.org.</p>
<h2>References</h2>
<p>1. <a href="http://www.paasheuvel.nl/">http://www.paasheuvel.nl/</a><br />
2. <a href="http://en.wikipedia.org/wiki/Gezelligheid#Similar_words_in_other_languages">http://en.wikipedia.org/wiki/Gezelligheid</a><br />
3. <a href="http://www.stichtinghxx.nl/">http://www.stichtinghxx.nl/</a><br />
4. <a href="http://har2009.org/index.php?p=66">http://har2009.org/index.php?p=66</a><br />
5. <a href="mailto:announce-subscribe@har2009.org">announce-subscribe@har2009.org</a><br />
6. <a href="http://www.har2009.org/">http://www.har2009.org/</a><br />
7. <a href="mailto:help@har2009.org">help@har2009.org</a><br />
8. <a href="http://wiki.har2009.org/">http://wiki.har2009.org/</a><br />
9. <a href="mailto:sponsoring@har2009.org">sponsoring@har2009.org</a><br />
10. <a href="mailto:press@har2009.org">press@har2009.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2008/11/18/hacking-at-random/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Weerstation</title>
		<link>http://blog.melvinrook.nl/2008/11/06/weerstation/</link>
		<comments>http://blog.melvinrook.nl/2008/11/06/weerstation/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 14:34:15 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[Open source]]></category>
		<category><![CDATA[Weather]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=29</guid>
		<description><![CDATA[Enige tijd geleden heb ik voor mijn oom een weerstation op Linux geïnstalleerd. Op zijn desktop PC heb ik het OS Ubuntu gezet. Ubuntu is niet mijn eerste keuze overigens, maar dat was op zijn verzoek. Ikzelf kies na mijn ervaring met SuSE en RedHat liever voor Mandriva Linux voor clients en FreeBSD voor servers. [...]]]></description>
			<content:encoded><![CDATA[<p>Enige tijd geleden heb ik voor mijn oom een weerstation op Linux geïnstalleerd. Op zijn desktop PC heb ik het OS Ubuntu gezet. Ubuntu is niet mijn eerste keuze overigens, maar dat was op zijn verzoek. Ikzelf kies na mijn ervaring met SuSE en RedHat liever voor Mandriva Linux voor clients en FreeBSD voor servers. Maarja.. nu ga ik met mijn verhaal een hele andere richting dan dat ik eigenlijk wil, dus back to the point.</p>
<p>Het weersysteem werkt erg goed, maar een desktop PC slurpt 24/7 natuurlijk veel energie, dus hebben we besloten om het weerstation op een <a href="http://en.wikipedia.org/wiki/NSLU2">Linksys NSLU2</a> te installeren. Een desktop trekt idle al snel 100 watt, de NSLU2 trekt volledig actief niet meer dan 10 watt.</p>
<p>Qua stroomverbruik levert de NSLU2 een hoop besparing op. Daarnaast kan ik de NSLU2 meteen inrichten als webserver en het weerstation zijn resultaten op het internet laten publiceren. Verder is het apparaat fanless en dus ook erg stil ten opzichte van een desktop. Op het moment ben ik bezig met het inrichten van de NSLU2 met een speciale Linux distributie, namelijk: <a href="http://www.nslu2-linux.org/">NSLU2-Linux</a>. De software die ik voor het weerstation gebruik is <a href="http://www.wviewweather.com/">wview weather</a>. Daarnaast een MySQL database en een apache webserver voor de publicatie van de resultaten.</p>
<p>Op het moment verloopt de installatie vlekkeloos. Wanneer ik tegen problemen aanloop zal ik deze zeker bloggen. Daarnaast zal ik de algehele voortgang bloggen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2008/11/06/weerstation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TWiki dood? -&gt; NextWiki, twikifork</title>
		<link>http://blog.melvinrook.nl/2008/10/29/twiki-dood-nextwiki-twikifork/</link>
		<comments>http://blog.melvinrook.nl/2008/10/29/twiki-dood-nextwiki-twikifork/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 17:48:58 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[Open source]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=22</guid>
		<description><![CDATA[Enige tijd geleden schreef Koen al dat het de verkeerde kant opging met TWiki. Vandaag blijkt zijn voorspelling uit te komen. Alle huidige ontwikkelaars zijn buitengesloten van twiki.org onder het mom van &#8220;twiki.org website relaunch&#8221;. De meeste ontwikkelaars zijn opgestapt en gaan nu aan de slag met de fork &#8216;NextWiki&#8217; of &#8216;twikifork&#8217;. Daarnaast zijn er [...]]]></description>
			<content:encoded><![CDATA[<p>Enige tijd geleden <a href="http://wordpress.metro.cx/2008/07/08/open-source-en-commercie-hoe-het-mis-kan-gaan/">schreef</a> Koen al dat het de verkeerde kant opging met TWiki. <a href="http://tech.slashdot.org/article.pl?sid=08/10/29/146201">Vandaag</a> blijkt zijn voorspelling uit te komen. Alle huidige ontwikkelaars zijn buitengesloten van twiki.org onder het mom van &#8220;twiki.org website relaunch&#8221;. De meeste ontwikkelaars zijn opgestapt en gaan nu aan de slag met de <a href="http://nextwiki.org/">fork</a> &#8216;NextWiki&#8217; of &#8216;twikifork&#8217;.</p>
<p>Daarnaast zijn er nog een aantal andere zaken die spelen. Zo is er bijvoorbeeld door SUN een sponsoring van servers gedaan aan het twiki open source project, maar omdat twiki.org geen legal entity heeft zijn deze op naam van twiki.net komen te staan. Dan komen er bij mij de volgende vragen naar boven: Zal twiki.net ethisch handelen en de servers overdragen aan de fork? En hoe zal SUN hier tegenover staan?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2008/10/29/twiki-dood-nextwiki-twikifork/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

