<?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>quixotic project blog &#187; sleepless nights debugging</title>
	<atom:link href="http://michi.ist.inspirationslos.de/lang/en/tag/sleepless-nights-debugging/feed/" rel="self" type="application/rss+xml" />
	<link>http://michi.ist.inspirationslos.de</link>
	<description></description>
	<lastBuildDate>Sat, 06 Feb 2010 10:11:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Trouble with Vertex Buffer Objects solved</title>
		<link>http://michi.ist.inspirationslos.de/lang/en/2009/10/25/trouble-with-vertex-buffer-objects-solved</link>
		<comments>http://michi.ist.inspirationslos.de/lang/en/2009/10/25/trouble-with-vertex-buffer-objects-solved#comments</comments>
		<pubDate>Sun, 25 Oct 2009 17:29:59 +0000</pubDate>
		<dc:creator>michi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[lwjgl]]></category>
		<category><![CDATA[sleepless nights debugging]]></category>

		<guid isPermaLink="false">http://michi.ist.inspirationslos.de/?p=162</guid>
		<description><![CDATA[It has been a while since I last used Vertex Buffer Objects (VBO) with LWJGL. It seemed as if they had changed some of the method signatures since I used them last time. I couldn&#8217;t even get the simplest example running. After experimenting for a while I finally figured it out. Have a look at [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a while since I last used Vertex Buffer Objects (VBO) with <a href="http://www.lwjgl.org" target="_self">LWJGL</a>. It seemed as if they had changed some of the method signatures since I used them last time. I couldn&#8217;t even get the simplest example running. After experimenting for a while I finally figured it out. Have a look at the signature of the VertexPointer method:</p>

<div class="wp_syntax"><div class="code"><pre class="java java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> glVertexPointer<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> size, <span style="color: #000066; font-weight: bold;">int</span> type,
  <span style="color: #000066; font-weight: bold;">int</span> stride, <span style="color: #000066; font-weight: bold;">long</span> pointer_buffer_offset<span style="color: #009900;">&#41;</span>;</pre></div></div>

<p>With the last offset one can specify where the vertex information starts in the buffer given to the VBO management. Well, I could/should have guessed that this offset has to be in <strong>bytes</strong> since I am dealing with a buffer here but instead I used the number of <strong>floats</strong>.. So next time I see an operation dealing with buffers that takes a long argument I&#8217;ll try the byte-count from the beginning..</p>
]]></content:encoded>
			<wfw:commentRss>http://michi.ist.inspirationslos.de/lang/en/2009/10/25/trouble-with-vertex-buffer-objects-solved/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino/Meggy Jr Upload Error</title>
		<link>http://michi.ist.inspirationslos.de/lang/en/2009/04/07/arduinomeggy-jr-upload-fehler</link>
		<comments>http://michi.ist.inspirationslos.de/lang/en/2009/04/07/arduinomeggy-jr-upload-fehler#comments</comments>
		<pubDate>Tue, 07 Apr 2009 19:32:41 +0000</pubDate>
		<dc:creator>michi</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[meggy]]></category>
		<category><![CDATA[meggy jr rgb]]></category>
		<category><![CDATA[sleepless nights debugging]]></category>

		<guid isPermaLink="false">http://michi.ist.inspirationslos.de/?p=120</guid>
		<description><![CDATA[
If you are using Meggy Jr with the Serial-to-USB Cable provided in the Evil Mad Scientist shop you might encounter the following error:
avrdude: stk500_getsync(): not in sync: resp=0&#215;00
avrdude: stk500_disable(): protocol error, expect=0&#215;14, resp=0&#215;51
The error manifest while uploading a new sketch to Meggy. If you pull out the USB cable and plug it in again you [...]]]></description>
			<content:encoded><![CDATA[
<p>If you are using Meggy Jr with the Serial-to-USB Cable provided in the Evil Mad Scientist shop you might encounter the following error:</p>
<blockquote><p><em>avrdude: stk500_getsync(): not in sync: resp=0&#215;00<br />
avrdude: stk500_disable(): protocol error, expect=0&#215;14, resp=0&#215;51</em></p></blockquote>
<p>The error manifest while uploading a new sketch to Meggy. If you pull out the USB cable and plug it in again you can upload a sketch successful. But on the next time you try you&#8217;ll get the error again. Luckily there is a pretty simple solution. I found it while digging through the Evil Mad Scientist Forums. It involves setting the &#8220;Set RTS on close&#8221; flag of the COM Port. You can do this in the Device Manager. Find the COM Port that was installed when you first plugged in the USB-to-Serial cable. For me it&#8217;s COM3. In the connection settings click on details and mark the flag selected. That&#8217;s it. I tried this on Windows XP with Service Pack 3, but it should work similiarily on other Windows versions.</p>
<div id="attachment_121" class="wp-caption alignnone" style="width: 310px"><a href="http://michi.ist.inspirationslos.de/files/2009/04/comeinstellungen02.jpg"><img class="size-medium wp-image-121" title="COMPortEinstellungenMeggyJr" src="http://michi.ist.inspirationslos.de/files/2009/04/comeinstellungen02-300x214.jpg" alt="RTS Flag" width="300" height="214" /></a><p class="wp-caption-text">RTS Flag</p></div>
]]></content:encoded>
			<wfw:commentRss>http://michi.ist.inspirationslos.de/lang/en/2009/04/07/arduinomeggy-jr-upload-fehler/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
