<?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; English</title>
	<atom:link href="http://blog.melvinrook.nl/category/english/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>New Google design&#8230; buggy?!</title>
		<link>http://blog.melvinrook.nl/2010/04/08/new-google-design-buggy/</link>
		<comments>http://blog.melvinrook.nl/2010/04/08/new-google-design-buggy/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 17:29:46 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=156</guid>
		<description><![CDATA[Update (April 13, 2010): I asked myself how to file a bug report. It seems blogging is a way to file a bug report. The new design is part of &#8220;the many, many experiments that Google runs&#8221; Jon Wiley commented. On my workstation Google supplied their new design to me. I didn&#8217;t really liked this [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update (April 13, 2010):</strong> I asked myself how to file a bug report. It seems blogging is a way to file a bug report. The new design is part of &#8220;the many, many experiments that Google runs&#8221; Jon Wiley <a href="#comments">commented</a>.</p>
<p>On my workstation Google supplied their new design to me. I didn&#8217;t really liked this new design at first and that feeling became worse when I noticed some bugs. Also, the new design feels slower than before.</p>
<p>The first picture shows a flaw in the text field. &#8216;Taller&#8217; letters will be cut at the bottom:</p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2010/04/google_buggy1.png"><img class="alignnone size-medium wp-image-157" title="google_buggy1" src="http://blog.melvinrook.nl/wp-content/uploads/2010/04/google_buggy1-300x177.png" alt="google_buggy1" width="300" height="177" /></a></p>
<p>The second picture shows a more serious bug. Typing a search phrase and pressing enter results in the page with results and the suggestion dropdown from the previous page still visible.</p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2010/04/google_buggy2.png"><img class="alignnone size-medium wp-image-160" title="google_buggy2" src="http://blog.melvinrook.nl/wp-content/uploads/2010/04/google_buggy2-300x186.png" alt="google_buggy2" width="300" height="186" /></a></p>
<p>I have tried to file a bug report, but it seems impossible to contact them directly.</p>
<p>Would like to try the new Google interface? Perform the following steps to make it so:</p>
<ul>
<li>Visit Google</li>
<li>Clear out the contents in your address bar</li>
<li>Enter the following: javascript:void(document.cookie=”PREF=ID=20b6e4c2f44943bb:U=4bf292d46faad806:TM=1249677602:LM=1257919388:S=odm0Ys-53ZueXfZG;path=/; domain=.google.com”);</li>
<li>Press the Enter key</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2010/04/08/new-google-design-buggy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Lightning storm Arnhem</title>
		<link>http://blog.melvinrook.nl/2009/07/01/lightning-arnhem/</link>
		<comments>http://blog.melvinrook.nl/2009/07/01/lightning-arnhem/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 08:41:58 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Weather]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=151</guid>
		<description><![CDATA[In the weekend a lightning storm passed Arnhem. It was too hot to sleep, so I decided to film it and put a compilation together. Watch it and enjoy!]]></description>
			<content:encoded><![CDATA[<p>In the weekend a lightning storm passed Arnhem. It was too hot to sleep, so I decided to film it and put a compilation together. Watch it and enjoy! <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/En-mHhOk9lg&#038;hl=nl&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/En-mHhOk9lg&#038;hl=nl&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2009/07/01/lightning-arnhem/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>Solar powered mini car</title>
		<link>http://blog.melvinrook.nl/2009/01/08/solar-powered-mini-car/</link>
		<comments>http://blog.melvinrook.nl/2009/01/08/solar-powered-mini-car/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 19:12:24 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Science]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=93</guid>
		<description><![CDATA[Somehow I was reminded of an old project of mine. After a little search in my archive I found all the information of the project, which I never published on the internet yet. So now is the time. In the summer of 2003 I build this solar powered mini car with a friend as a [...]]]></description>
			<content:encoded><![CDATA[<p>Somehow I was reminded of an old project of mine. After a little search in my archive I found all the information of the project, which I never published on the internet yet. So now is the time. <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>In the summer of 2003 I build this solar powered mini car with a friend as a school project:</p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/car.jpg"><img class="alignnone size-medium wp-image-95" title="car" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/car-300x124.jpg" alt="" width="300" height="124" /></a></p>
<h3>Specifications</h3>
<p>Weight: 200 grams<br />
Length: 260 mm<br />
Width: 120 mm<br />
Average speed: 0,051 m/s (0.18 km/h)</p>
<h3>Parts used</h3>
<p>-<strong>Body made of balsa wood</strong></p>
<p>-<strong>A few Meccano pieces</strong></p>
<p>-<strong>Wheels</strong><br />
Two rear wheels<br />
One front wheel</p>
<p>-<strong>Solar panels</strong>, 4 pieces:<br />
Net voltage 0,55 &#8211; 0,6 V<br />
Short-circuit current 650 mA<br />
Size. (lxb) 50 x 50mm.</p>
<p>-<strong>Motor</strong>, designed for solar panels:<br />
Net voltage 0,4 V/10 mA<br />
Size. (Æxh) 35,4 x 26 mm · Axis-Æ 2 mm<br />
Suitable for use with solar panels with a return of more than 10 mA.</p>
<p>-<strong>Crocodile clips</strong>, 4 pieces</p>
<p>-<strong>Wires</strong>, lot&#8217;s of wires <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>-<strong>(Hot) glue</strong></p>
<p>-<strong>A rubber band</strong></p>
<h3>Building the car</h3>
<p>We started with (hot)glueing the body of balsa wood together.</p>
<p>The solar panels are put on a bigger panel and are connected in parallel. The solar panels are connected with crocodile clips and will be wired to the engine. As you can see in the pictures, I broke one of the panels. Oops.. They are very fragile&#8230; Though, the most interesting was that it still worked. <img src='http://blog.melvinrook.nl/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>We demolished some old toys and as a result we had a nice set of wheels. For the rear we used a nice pair of wheels which already were connected with an axis. The front wheel came from some other toy. With the help of some Meccano elements the wheels were mounted to the body.</p>
<p>The motor is placed in a special engine compartment. We used a rubber band to transmit the power from the engine to the wheels.</p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto_0050.jpg"><img class="alignnone size-medium wp-image-96" title="foto_0050" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto_0050-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/2panelenaf.jpg"><img class="alignnone size-medium wp-image-97" title="2panelenaf" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/2panelenaf-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto2_0053.jpg"><img class="alignnone size-medium wp-image-99" title="foto2_0053" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto2_0053-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto2_0054.jpg"><img class="alignnone size-medium wp-image-100" title="foto2_0054" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto2_0054-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/3panelenaf.jpg"><img class="alignnone size-medium wp-image-98" title="3panelenaf" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/3panelenaf-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto_0051.jpg"><img class="alignnone size-medium wp-image-101" title="foto_0051" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/foto_0051-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0064.jpg"><img class="alignnone size-medium wp-image-102" title="sany0064" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0064-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0066.jpg"><img class="alignnone size-medium wp-image-103" title="sany0066" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0066-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0067.jpg"><img class="alignnone size-medium wp-image-104" title="sany0067" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0067-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0068.jpg"><img class="alignnone size-medium wp-image-105" title="sany0068" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0068-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0069.jpg"><img class="alignnone size-medium wp-image-106" title="sany0069" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0069-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/naamloos.jpg"><img class="alignnone size-medium wp-image-111" title="car" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/naamloos-300x231.jpg" alt="" width="300" height="231" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0084.jpg"><img class="alignnone size-medium wp-image-107" title="sany0084" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0084-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0086.jpg"><img class="alignnone size-medium wp-image-108" title="sany0086" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0086-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0087.jpg"><img class="alignnone size-medium wp-image-110" title="sany0087" src="http://blog.melvinrook.nl/wp-content/uploads/2009/01/sany0087-300x225.jpg" alt="" width="300" height="225" /></a></p>
<h3>Testing the car</h3>
<p>In the begin of the progress we tested the motor and the solar panels under a halogen light. Later on, in an outside test the cars&#8217; average speed was 0,051 m/s (0.18 km/h). The tests can be viewed in the video at the bottom of this post.</p>
<h3>Video</h3>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" 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/DcXvXjhnOdU&amp;hl=nl&amp;fs=1" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/DcXvXjhnOdU&amp;hl=nl&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2009/01/08/solar-powered-mini-car/feed/</wfw:commentRss>
		<slash:comments>0</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>Pirates of the Amazon</title>
		<link>http://blog.melvinrook.nl/2008/12/02/pirates-of-the-amazon/</link>
		<comments>http://blog.melvinrook.nl/2008/12/02/pirates-of-the-amazon/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 20:05:58 +0000</pubDate>
		<dc:creator>Melvin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://blog.melvinrook.nl/?p=68</guid>
		<description><![CDATA[Yet another brilliant firefox extension: Pirates of the Amazon Add-on &#8220;How can you compete with free? You cant!&#8221; &#8211; Lawrence Lessig The Firefox add-on &#8220;Pirates of the Amazon&#8221; inserts a &#8220;download 4 free&#8221; button on Amazon, which links to corresponding Piratebay BitTorrents. The add-on lowers the technical barrier to enable anyone to choose between &#8220;add [...]]]></description>
			<content:encoded><![CDATA[<p>Yet another brilliant firefox extension:<br />
<a href="http://blog.melvinrook.nl/wp-content/uploads/2008/12/pirate_logo2.png"><img class="size-medium wp-image-73 alignleft" style="margin-top: 2px; margin-bottom: 2px;" title="pirate_logo2" src="http://blog.melvinrook.nl/wp-content/uploads/2008/12/pirate_logo2-230x300.png" alt="" width="83" height="108" /></a></p>
<h2>Pirates of the Amazon Add-on</h2>
<p>&#8220;How can you compete with free? You cant!&#8221; &#8211; Lawrence Lessig</p>
<p>The Firefox add-on &#8220;Pirates of the Amazon&#8221; inserts a &#8220;download 4 free&#8221; button on Amazon, which links to corresponding Piratebay BitTorrents. The add-on lowers the technical barrier to enable anyone to choose between &#8220;add to shopping cart&#8221; or &#8220;download 4 free&#8221;. Are you a pirate?</p>
<h2>What&#8217;s this all about?</h2>
<p>This add-on provides a simple interface to torrent files, combining a torrent search engine with the information features offered by amazon. It also shows that <a href="http://en.wikipedia.org/wiki/Pirate_bay"> there is an alternative to buying overpriced media-products</a> from companies relying on outdated distribution techniques.</p>
<p>&#8220;Pirates of the Amazon&#8221; offers to be a counterpart to the current models of media distribution. &#8220;Redistribute the wealth&#8221; by bringing together one of the world&#8217;s biggest e-commerce platforms with the world&#8217;s largest BitTorrent tracker.</p>
<p>Established media distributors claim that peer-to-peer networks are the death for entertainment media itself. These claims sound quite similar to the ones about the printing press or the invention of VCRs or CDR-Drives. The truth is that the possibility of information sharing inspires people to start creating, remixing and enriching the media landscape.</p>
<p>&#8220;Lets build a world we are proud of, not just a profitable world for a few very large media companies. &#8221; (Brewster Kahle, founder of the <a href="http://archive.org/">internet archive</a> )</p>
<p>For more information on piracy and the BitTorrent protocol follow these links:</p>
<p>- <a href="http://jamie.com/2008/10/11/after-the-crash-or-how-we-stopped-worrying-and-learned-to-love-p2p/">&#8220;After the crash, or how we stopped worrying and learned to love P2P&#8221;</a> by Jamie King<br />
- <a href="http://kop.fact.co.uk/DIVE/cd/text/pirate.html">Piratology</a> by Armin Medosch<br />
- <a href="http://en.wikipedia.org/wiki/Peer-to-peer">Peer-to-Peer on Wikipedia</a><br />
- <a href="http://wikipedia.com/Pirate_bay">The Pirate Bay on Wikipedia</a></p>
<p>Source: <a href="http://pirates-of-the-amazon.com/">http://pirates-of-the-amazon.com/</a></p>
<p><sub>Note: If you download content through a torrent link, provided by the Piratebay, you might violate current copyright laws.</sub></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.melvinrook.nl/2008/12/02/pirates-of-the-amazon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

