<?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>Jetyho blog</title>
	<atom:link href="http://jetensky.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://jetensky.net/blog</link>
	<description>O mém světě a práci - (nejen) pro sebe, pro Lenku, pro kamarády starý brachy</description>
	<lastBuildDate>Sat, 24 Mar 2012 18:37:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Touchtable Multitouch Device With Rear Projection Ala Microsoft Surface</title>
		<link>http://jetensky.net/blog/2012/03/03/touchtable-with-rear-project-ala-microsoft-surface-multitouch-device/</link>
		<comments>http://jetensky.net/blog/2012/03/03/touchtable-with-rear-project-ala-microsoft-surface-multitouch-device/#comments</comments>
		<pubDate>Sat, 03 Mar 2012 18:51:30 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA["Crayon deluxe"]]></category>
		<category><![CDATA["human computer interraction"]]></category>
		<category><![CDATA["rear projection"]]></category>
		<category><![CDATA[callibration]]></category>
		<category><![CDATA[HCI]]></category>
		<category><![CDATA[kinect]]></category>
		<category><![CDATA[multitouch]]></category>
		<category><![CDATA[Sketchup]]></category>
		<category><![CDATA[TouchTable]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2012/03/03/touchtable-with-rear-project-ala-microsoft-surface-multitouch-device/</guid>
		<description><![CDATA[This weekend I have joined my touchtable project with rear projection screen table made by Ivan Habrun. This posts introduces a result of our joined effort - Touchtable with rear project ala Microsoft Surface multitouch device. By combining these technlogies we have created a working prototype of multitouch interface that has similar features as Microsoft Surface [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I have joined my touchtable project with rear projection screen table made by Ivan Habrun.</p>
<p>This posts introduces a result of our joined effort - Touchtable with rear project ala Microsoft Surface multitouch device. By combining these technlogies we have created a working prototype of multitouch interface that has similar features as Microsoft Surface but just fraction of costs.<br />
The projector used is BenQ MP776ST with buying price approximately 1200€, depth camera tracking my fingers is Microsoft Kinect.</p>
<h2 id="toc-video">Video</h2>
<p>Video shows whole hardware assembly and how the BenQ projector and Microsoft Kinect are placed. First I use my Sketchup plugin to show multitouch properties of the interface and at the and I control Crayone Deluxe game with my fingertip, drawing objects that immediately appear on the table.</p>
<p><iframe src="http://www.youtube.com/embed/AK6PZbXHO7U" width="420" height="315" frameborder="0"></iframe></p>
<p>More information about TouchTable project and how to download and install it can be found here: <a href="http://jetensky.net/blog/2011/12/18/touchtable/" title="http://jetensky.net/blog/2011/12/18/touchtable/" target="_blank">http://jetensky.net/blog/2011/12/18/touchtable/</a></p>
<p>If you are interested in using this table for your project, please contact Ivan Habrun (ifko5&lt;..put..roller..here..&gt;hotmail.com)  for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2012/03/03/touchtable-with-rear-project-ala-microsoft-surface-multitouch-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get OpenCV (EmguCV) Image from Primesense Kinect RGB camera</title>
		<link>http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-rgb-camera/</link>
		<comments>http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-rgb-camera/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 17:19:41 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA[SW development]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[EmguCV]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[image generator]]></category>
		<category><![CDATA[OpenCV]]></category>
		<category><![CDATA[primesense]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-rgb-camera/</guid>
		<description><![CDATA[Previous article shows how to  construct OpenCV Image from data comming from Kinect Depth camera using Primesense drivers. This article shows the same for Kinect RGB camera. Instead of constructing Image we will construct RGB Image . Solution The code  takes RGB map from _rgbGenerator (OpenNI.ImageGenerator) and calculates RGB image (new Image&#60;Bgr, Byte&#62;(width, height)). Code presented [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-depth-generator/">Previous article</a> shows how to  construct OpenCV Image from data comming from Kinect Depth camera using Primesense drivers. This article shows the same for Kinect RGB camera. Instead of constructing Image<gray,byte> we will construct RGB Image <bgr,>.</bgr,></gray,byte></p>
<h2 id="toc-solution">Solution</h2>
<p>The code  takes RGB map from _rgbGenerator (OpenNI.ImageGenerator) and calculates RGB image (new Image&lt;Bgr, Byte&gt;(width, height)). Code presented uses unsafe sequences and array pointers to maximize the speed (you need to set up compiler with unsafe option).</p>
<p><span id="more-149"></span></p>
<h3 id="toc-working-c-code-sample">Working C# code sample</h3>
<p>This code is part of <a href="http://jetensky.net/blog/2011/12/18/touchtable/">TouchTable</a> project.</p>
<p>private unsafe void processDepthFrame()<br />
{<br />
var depthMd = new DepthMetaData();<br />
// process pDepth<br />
_depthGenerator.GetMetaData(depthMd);<br />
var pDepth = (ushort*)_depthGenerator.DepthMapPtr.ToPointer();<br />
ushort* pCurrentDepth = pDepth;<br />
var width = depthMd.XRes;<br />
var height = depthMd.YRes;<br />
depthImage = new Image&lt;Gray, Byte&gt;(width, height);<br />
var data = depthImage.Data;<br />
var minimalFingerHeight = Config.MinimalFingerHeight;<br />
fixed (int* pEnvDistances = _envDistances)<br />
{<br />
fixed (int* pTableDistances = TableDistancesYX)<br />
{<br />
fixed (byte* pImageData = data)<br />
{<br />
var pCurrEnvDistance = pEnvDistances;<br />
var pCurrTableDistance = pTableDistances;<br />
var pCurrImageData = pImageData;<br />
for (int y = 0; y &lt; height; y++)<br />
{<br />
for (int x = 0; x &lt; width; x++, pCurrentDepth += 1, pCurrEnvDistance++, pCurrTableDistance++, pCurrImageData++)<br />
{<br />
var distFromKinect = *pCurrentDepth;<br />
// Remember values<br />
if (saveEnvDistances)<br />
{<br />
*pCurrEnvDistance = distFromKinect;<br />
}<br />
int distFromTable = (*pCurrEnvDistance &#8211; distFromKinect);<br />
*pCurrTableDistance = distFromTable;<br />
if (distFromTable &gt; minimalFingerHeight)<br />
{<br />
// We will make pixel gray if it is considered a hand pixel<br />
*pCurrImageData = 128;<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-rgb-camera/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to get OpenCV (EmguCV) Image from Primesense Kinect depth generator</title>
		<link>http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-depth-generator/</link>
		<comments>http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-depth-generator/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 12:27:25 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA[SW development]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[depth generator]]></category>
		<category><![CDATA[EmguCV]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[OpenCV]]></category>
		<category><![CDATA[primesense]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-depth-generator/</guid>
		<description><![CDATA[This article shows how to  construct OpenCV Image from data comming from PrimeSense Kinect drivers. Problem OpenCV and its C# wrapper are great tools in your SW toolkit that helps processing of collected data from Kinect. To start using its power, you first need to instantiate an OpenCV Image class from  Kinect Depth. Solution The [...]]]></description>
			<content:encoded><![CDATA[<p>This article shows how to  construct OpenCV Image from data comming from PrimeSense Kinect drivers.</p>
<h2 id="toc-problem">Problem</h2>
<p>OpenCV and its C# wrapper are great tools in your SW toolkit that helps processing of collected data from Kinect. To start using its power, you first need to instantiate an OpenCV Image class from  Kinect Depth.</p>
<h2 id="toc-solution">Solution</h2>
<p>The code  takes depth map from _depthGenerator (OpenNI.DepthGenerator) and calculates gray image (new Image&lt;Gray, Byte&gt;(width, height)). It works in a situation where Kinect is placed above some solid desk.</p>
<p><span id="more-146"></span></p>
<ul>
<li>When first depth frame is processed, distances from Kinect are remembered in array TableDistancesYX. This should happen when no object is on the desk.</li>
<li>When succeeding depth frames are processed (imagine a hand is placed on the table), whenever depth differs more than minimalFingerHeight, it is marked as gray in result depthImage.</li>
<li>Code presented uses unsafe sequences and array pointers to maximize the speed (you need to set up compiler with unsafe option).</li>
</ul>
<p>The result EmguCV image has only black or gray pixels:</p>
<p><img src="http://jetensky.net/blog/wp-content/uploads/2012/02/shape-of-the-hand.thumbnail.gif" alt="Shape of the hand - EmguCV img" align="left" /></p>
<h3 id="toc-"></h3>
<h3 id="toc-working-c-code-sample">Working C# code sample</h3>
<p>This code is part of <a href="http://jetensky.net/blog/2011/12/18/touchtable/">TouchTable</a> project.</p>
<p><strong>Note:</strong>  Sorry guys for the poor quality of code formatting, please copy paste it to Visual Studio and reformat it. Hopefully I will upgrade soon to new version of WordPress to get nicer code samples but I am waiting for the migration of my MySQL database to version 5.</p>
<p>private unsafe void processDepthFrame()<br />
{<br />
var depthMd = new DepthMetaData();<br />
// process pDepth<br />
_depthGenerator.GetMetaData(depthMd);<br />
var pDepth = (ushort*)_depthGenerator.DepthMapPtr.ToPointer();<br />
ushort* pCurrentDepth = pDepth;<br />
var width = depthMd.XRes;<br />
var height = depthMd.YRes;<br />
depthImage = new Image&lt;Gray, Byte&gt;(width, height);<br />
var data = depthImage.Data;<br />
var minimalFingerHeight = Config.MinimalFingerHeight;<br />
fixed (int* pEnvDistances = _envDistances) {<br />
fixed (int* pTableDistances = TableDistancesYX) {<br />
fixed (byte* pImageData = data) {<br />
var pCurrEnvDistance = pEnvDistances;<br />
var pCurrTableDistance = pTableDistances;<br />
var pCurrImageData = pImageData;<br />
for (int y = 0; y &lt; height; y++) {<br />
for (int x = 0; x &lt; width; x++, pCurrentDepth += 1, pCurrEnvDistance++, pCurrTableDistance++, pCurrImageData++){<br />
var distFromKinect = *pCurrentDepth;<br />
// Remember values<br />
if (saveEnvDistances){<br />
*pCurrEnvDistance = distFromKinect;<br />
}<br />
int distFromTable = (*pCurrEnvDistance &#8211; distFromKinect);<br />
*pCurrTableDistance = distFromTable;<br />
if (distFromTable &gt; minimalFingerHeight) {<br />
// We will make pixel gray if it is considered a hand pixel<br />
*pCurrImageData = 128;<br />
}<br />
}}<br />
}<br />
}<br />
}<br />
}</p>
<h2 id="toc-how-to-improve-the-solution">How to improve the solution</h2>
<p>Possible there is a way how to copy whole block of memory from the Kinect depth map to EmguCV gray Image. This can be even faster than iterating through all rows and columns, however I was not able to find a way. If you have some better code sample please share in the comments and I will be happy to publish in this article.</p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2012/02/24/how-to-get-opencv-emgucv-image-from-primesense-kinect-depth-generator/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Use your desk as mouse-free multitouch interface with MS Kinect</title>
		<link>http://jetensky.net/blog/2011/12/18/touchtable/</link>
		<comments>http://jetensky.net/blog/2011/12/18/touchtable/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 12:08:14 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA[SW development]]></category>
		<category><![CDATA[browsing internet]]></category>
		<category><![CDATA[CHI]]></category>
		<category><![CDATA[computer human interaction]]></category>
		<category><![CDATA[Drawing]]></category>
		<category><![CDATA[FireGestures]]></category>
		<category><![CDATA[gestures]]></category>
		<category><![CDATA[Microsoft Kinect]]></category>
		<category><![CDATA[Sketchup]]></category>
		<category><![CDATA[Touch desk]]></category>
		<category><![CDATA[TouchTable]]></category>
		<category><![CDATA[User interface]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/12/18/touchtable/</guid>
		<description><![CDATA[TouchTable is is Kinect powered application I am developing as part of my PhD research. It enables one to use bare hand laying on a regular office desk to control computer instead of mouse. User can also move the cursor without any clicking. This can be used i.e. to hover over icons to display hint [...]]]></description>
			<content:encoded><![CDATA[<p>TouchTable is is Kinect powered application I am developing as part of my PhD research. It enables one to use bare  hand laying on a regular office desk to control computer instead of  mouse.</p>
<p>User can also move the cursor without any clicking. This can be used i.e. to hover over icons to display hint texts, which is possible for mouse but not for regular multi-touch screens.</p>
<p><span style="font-size: 24px; font-weight: bold" class="Apple-style-span">TouchTable application features </span></p>
<p>Following operations are possible:</p>
<ul>
<li>Mouse cursor movement and hover events &#8211; by moving index finger on the surface of the office desk</li>
<li>Left mouse click &#8211; by touching the table with index finger (or by lifting the finger from a desk in reverse mode), while thumb is hidden in palm</li>
<li>Right mouse click &#8211; by touching the desk with index finger, while thumb is sticking out</li>
<li>Drag and drop &#8211; by placing index finger on the desk and dragging it across the surface</li>
</ul>
<h2 id="toc-demo-applications">Demo applications</h2>
<p>To get a better idea, please watch following videos:</p>
<ul>
<li>Painting with finger in Microsoft Paint</li>
<li>Rotate &amp; zoom using multitouch in Google Sketchup</li>
<li>Web browsing  with fingertip in Firefox with FireGestures</li>
</ul>
<h3 id="toc-painting-with-finger-in-microsoft-paint">Painting with finger in Microsoft Paint</h3>
<p>Finger is used as a natural drawing device. Even small children who cannot yet handle a pencil are able to draw pictures with finger into sand. Painting with TouchTable is more natural for them then with a mouse.<iframe src="http://www.youtube.com/embed/7ci6bMjwvfE" frameborder="0" height="315" width="420"></iframe><br />
<span id="more-140"></span></p>
<h3 id="toc-rotate-zoom-using-multitouch-in-google-sketchup">Rotate &amp; zoom using multitouch in Google Sketchup</h3>
<p>User rotates view by using left and right fingertips together (in the same way as on other multi-touch devices). Zooming is controlled by distance of fingers being dragged over the desk surface.  <iframe src="http://www.youtube.com/embed/487QS3yyJ5M" frameborder="0" height="315" width="420"></iframe><br />
<strong>Note: </strong>To install the sketchup part, copy SketchUpPlugin\Plugins from distribution ZIP to Sketchup plugins dir, choose View&gt;Toolbars&gt;nudgeOrbit and than enable it by clicking on the button with &#8222;nudgeOrbit:dialog&#8220; hint.</p>
<h3 id="toc-web-browsing-with-fingertip-in-firefox-with-firegestures">Web browsing  with fingertip in Firefox with FireGestures</h3>
<p>This plugin integrates TouchTable with FireGestures plugin in FireFox. Index finger is used  to perform gestures to go back, forward, open or close new tab. It thumb  is extended, finger can open links like by using left mouse click. Double click mouse operation is possible if &#8222;thumb up flag&#8220; is on (thumb is extended and lifted from table).</p>
<p>If user is reading the page, whole hand can rest on the table which minimizes the strain in the finger muscles.<br />
<iframe src="http://www.youtube.com/embed/cu5qVfgpwbA" frameborder="0" height="315" width="420"></iframe></p>
<h2 id="toc-why-is-kinect-placed-above-the-table">Why is Kinect placed above the table</h2>
<p>There are other solutions utilizing Kinect for user interface, but most of them require to hold one&#8217;s arm in the air. This is quite uncomfortable after a while. Also precision of such movements is not great. In my solution, I have placed Kinect facing down approximately 1m above the table. I have mounted it on the arm of an adjustable table lamp. Thanks to it user does not need to be far away from screen but can sit as usually in the easy reach of his keyboard. If Kinect is placed facing the user, minimum distance of 50cm from device must be guaranteed for proper device operation.</p>
<h2 id="toc-how-does-it-work">How does it work?</h2>
<p>Application processed data from Kinect in these simple steps:</p>
<ol>
<li>When first frame is processed, the depth map is stored as &#8222;environment depth map&#8220;. Basically, I remember the distance of each pixel in the view of Kinect as table pixel distance</li>
<li>When a frame with a hand on it is processed, hand&#8217;s pixels are recognized based on comparing the actual distance of a pixel with the table pixel distance from previous step. If the distance is bigger than a threshold (f.e. 1cm), pixel is regarded as a hand pixel</li>
<li>From the pixels of hand I extract hand contour (using OpenCV library)</li>
<li>From hand contour I calculate the fingertips, based on the angle between neighboring pixels. If the angle is sharp, it is a hint that the pixel is at the fingertip sharp arc.</li>
<li>I apply some heuristic to match detected fingertips to finger indexes. In this process, I try to first match fingers detected in previous frame based on their distance from the newly detected fingertips. I try to minimize the distance.</li>
<li>I apply also some smoothing by mean averaging the fingertip coordinates from last few frames.</li>
</ol>
<h2 id="toc-can-i-use-touchtable-in-my-application">Can I use TouchTable in my application?</h2>
<h3 id="toc-non-commercial-use">Non-commercial use</h3>
<p>Please feel free to <a href="http://jetensky.net/download/files/TouchTableToShare.zip">download</a> and use this prototype for non-commercial purposes. If you create your own plugins, please share the code with the others. As this is an early release of the TouchTable library, it is very likely that the API will change in the future.</p>
<p>The download package contains:</p>
<ul>
<li>Application binaries for Windows 64-bit and 32-bit</li>
<li>Presented plugins source codes</li>
</ul>
<p>Writing TouchTable plugins is pretty simple, but if you can&#8217;t do that yourself, e-mail me and I can possibly write one for you. If you are NGO or non-profit organization, I&#8217;ll do it free of charge if I like the idea.</p>
<h3 id="toc-commercial-use">Commercial use</h3>
<p>If you have some ideas how TouchTable can be used in real commercial  usecase, please feel free to contact me at mail[AT]jetensky.net.</p>
<h2 id="toc-how-to-run-it">How to run it?</h2>
<p>You need to install PrimeSense Kinect drivers and libraries first, before you attempt to run TouchTable. Plea<a href="http://jetensky.net/blog/wp-content/uploads/2011/12/kinect-placement-thumb.jpg" title="Kinect placement for TouchTable to work properly"><img src="http://jetensky.net/blog/wp-content/uploads/2011/12/kinect-placement-thumb.thumbnail.jpg" alt="Kinect placement for TouchTable to work properly" align="right" /></a>se follow instructions in <a href="http://www.codeproject.com/Articles/148251/How-to-Successfully-Install-Kinect-on-Windows-Open.aspx">this post</a>. Try running SimpleViewer application from Primesense OpenNI distribution to check your Kinect related settings. If you have any problems running it, you can post it in the discussion for this blog post and I will try to address it.</p>
<p>For proper operation, place your Kinect at least 70cm above table &#8211; see picture.  When started, listeners will be automatically activated based on the substring in the current exe path (f.e. Firefox plugin will be active if firefox.exe is present in the path). You need only to uncheck Disable listener checkbox on the application screen to start sending events to the listeners.</p>
<h3 id="toc-support-development-of-future-versions">Support development of future versions</h3>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">  If you enjoy using this or find this work useful, it will be great if you can support development of future versions by donating.<br />
<input src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image" /> <img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" border="0" height="1" width="1" /></form>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/12/18/touchtable/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Jak zprovoznit android mobil jako USB web kameru pro Skype</title>
		<link>http://jetensky.net/blog/2011/09/17/jak-zprovoznit-android-mobil-jako-usb-web-kameru-pro-skype/</link>
		<comments>http://jetensky.net/blog/2011/09/17/jak-zprovoznit-android-mobil-jako-usb-web-kameru-pro-skype/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 10:32:25 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[Užitečné]]></category>
		<category><![CDATA[ADB]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[DroidCam]]></category>
		<category><![CDATA[HTC Desire HD]]></category>
		<category><![CDATA[Skype]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Webcam]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/09/17/jak-zprovoznit-android-mobil-jako-usb-web-kameru-pro-skype/</guid>
		<description><![CDATA[V tomto článku naleznete informaci o tom, co nainstalovat, abyste mohli používat svoji kameru integrovanou v Android mobilním telefonu v počítači jako normální USB web kamerku. Tzn. třeba pro video chat v programu Skype. Než jsem našel fungující verzi, vyzkoušel jsem řadu jiných prográmků (Wo Webcam Lite, IP Webcam,  SmartCam, USB Webcam), ale tohle byla [...]]]></description>
			<content:encoded><![CDATA[<p>V tomto článku naleznete informaci o tom, co nainstalovat, abyste mohli používat svoji kameru integrovanou v Android mobilním telefonu v počítači jako normální USB web kamerku. Tzn. třeba pro video chat v programu Skype.</p>
<p>Než jsem našel fungující verzi, vyzkoušel jsem řadu jiných prográmků (Wo Webcam Lite, IP Webcam,  SmartCam, USB Webcam), ale tohle byla první varianta, u níž jsem uspěl. Navíc bez nutnosti mít zapnutou Wifi nebo Blootooth, což je mi blízké, k provozu stačí připojení přes USB kabel.<br />
<a href="http://jetensky.net/blog/wp-content/uploads/2011/09/droidcaminskype.gif"><br />
<img src="http://jetensky.net/blog/wp-content/uploads/2011/09/droidcaminskype.gif" alt="DroidCam in Skype" width="300" align="right" /><br />
</a><br />
Postup jsem vyzkoušel a funguje s následujícím HW a SW, ale není důvod, proč by nefungoval i s jinou podobnou konfigurací:</p>
<ul>
<li>Mobilní telefon HTC Desire HD</li>
<li>Notebook ThinkPad R61</li>
<li>Windows 7 64-bit</li>
<li>Skype verze 5.1.0.112</li>
</ul>
<h2 id="toc-postup-instalace">Postup instalace</h2>
<ol>
<li>Do mobilu si stáhněte a nainstalujte aplikaci DroidCam</li>
<li>Do počítače si stáhněte a nainstalujte AndroidSDK<br />
Pokud se instalace nedaří kvůli tomu, že instalační program nemůže najít vaši nainstalovanou Javu, v dialogu klepněte Back a pak zase Next a už ji najde. Divné, co <img src='http://jetensky.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ? Ale mě to zafungovalo.</li>
<li>Spusťte android-sdk\SDK Manager.exe a doinstalujte si Android SDK platform tools, čehož součástí je i ADB (<a href="http://android-dls.com/wiki/index.php?title=ADB">Android Debug Bridge</a>).</li>
<li>Připojte mobilní telefon a v menu Nastavení -&gt; Aplikace -&gt; Vývoj zaškrtněte Ladění USB. V tomto okamžiku se vám doinstalují ovladače pro USB připojení k mobilu.</li>
<li>Spusťte DroidCam klienta na počítači a DroidCam aplikaci na mobilu</li>
<li>Ověřte, že ADB rozpoznal váš telefon a připojte se
<ol>
<li>Spusťte příkazovou řádku cmd.exe a vní android-sdk\platform-tools\adb.exe</li>
<li>Spusťte příkaz adb devices &#8211; váš mobil se tam musí objevit<br />
<span class="Apple-style-span" style="font-family: 'Courier New', fixed; font-size: 11px; line-height: 13px; white-space: pre">android-sdk\platform-tools&gt;adb devices </span><span class="Apple-style-span" style="font-family: 'Courier New', fixed; font-size: 11px; line-height: 13px; white-space: pre">List of devices attached </span><span class="Apple-style-span" style="font-family: 'Courier New', fixed; font-size: 11px; line-height: 13px; white-space: pre">SH0CWRX00742    device</span></li>
<li>Spusťte příkaz <span class="Apple-style-span" style="font-family: 'Courier New', fixed; font-size: 11px; line-height: 13px; white-space: pre">android-sdk\platform-tools&gt;adb forward tcp:4747 tcp:4747</span></li>
<li>V spuštěné aplikaci na počítači klepněte na Connect<br />
Pokud se objeví hlášení, že spojení je již využíváno nebo že se nelze připojit, tak restartujte adb server spuštěním nějakého příkazu (třeba adb devices) a znovu spusťte forward příkaz z předchozího kroku, případně zkuste restartovat aplikaci jak na mobilu, tak na počítači</li>
</ol>
</li>
<li>Použití kamery ve Skypu &#8211; spusťte Skype a v menu zvolte <em>Call &gt; Video &gt; Video settings</em>. V rozbalovací nabídce <em>Select Webcam</em> vyberte DroidCam. Video z mobilní kamery by se mělo zobrazit v náhledu &#8211; viz. obrázek.</li>
</ol>
<h2 id="toc-odkazy">Odkazy</h2>
<ul>
<li>Postup instalace, podle nějž jsem postupoval, na stránkách DroidCam - <a href="http://www.dev47apps.com/droidcam/windows/">Windows verze</a> (existuje i <a href="http://www.dev47apps.com/droidcam/linuxx/">Unix verze</a>)</li>
<li><a href="http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/">How To Set Up <strong>ADB</strong>/USB Drivers for Android Devices | TheUnlockr</a></li>
</ul>
<p><a href="http://jetensky.net/blog/wp-content/uploads/2011/09/droidcaminskype.gif" title="DroidCam in Skype"> </a></p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/09/17/jak-zprovoznit-android-mobil-jako-usb-web-kameru-pro-skype/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>O démonech a stínech v nás &#8211; část první</title>
		<link>http://jetensky.net/blog/2011/07/22/o-demonech-a-stinech-v-nas-cast-prvni/</link>
		<comments>http://jetensky.net/blog/2011/07/22/o-demonech-a-stinech-v-nas-cast-prvni/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 08:31:15 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[Jóga a osobní růst]]></category>
		<category><![CDATA[Užitečné]]></category>
		<category><![CDATA[Ze života]]></category>
		<category><![CDATA[archetypy]]></category>
		<category><![CDATA[červená kniha]]></category>
		<category><![CDATA[chamtivost]]></category>
		<category><![CDATA[démoni]]></category>
		<category><![CDATA[hamižnost]]></category>
		<category><![CDATA[Jung]]></category>
		<category><![CDATA[Kabala]]></category>
		<category><![CDATA[Karika]]></category>
		<category><![CDATA[lenost]]></category>
		<category><![CDATA[píle]]></category>
		<category><![CDATA[stíny]]></category>
		<category><![CDATA[workoholismus]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/07/22/o-demonech-a-stinech-v-nas-cast-prvni/</guid>
		<description><![CDATA[V poslední době jsem nasbíral spoustu podnětů o tématu démonů v člověku. Možná jim někdo říká také stíny, já s Lenkou jsme je nazvali černé puntíky na naší zářící duši. V tomto článku se s vámi o tyto myšlenky podělím. Jsem přesvědčený, že je dobré se o démonech něco dozvědět, protože to může hodně přispět [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jetensky.net/blog/2008/02/14/jak-bylo-na-10ti-denni-meditaci/meditacni-zvonek/" rel="attachment wp-att-28" title="Meditační zvonek"><img src="http://jetensky.net/blog/wp-content/uploads/2008/02/meditacnizvonek.thumbnail.gif" alt="Meditační zvonek" align="left" width="82" /></a>V poslední době jsem nasbíral spoustu podnětů o tématu démonů v člověku. Možná jim někdo říká také stíny, já s Lenkou jsme je nazvali <em>černé puntíky na naší zářící duši</em>. V tomto článku se s vámi o tyto myšlenky podělím. Jsem přesvědčený, že je dobré se o démonech něco dozvědět, protože to může hodně přispět ke zlepšení našeho života.</p>
<h2 id="toc-co-jsou-tedy-tito-dmoni-jak-maj-vlastnosti"> Co jsou tedy tito démoni, jaké mají vlastnosti?</h2>
<p>Démony vnímám jako archetypy, programy lidského chování, které původně sloužily k nějakému praktickému účelu, ale došlo k jejich nezdravému přebujení. V mysli člověka jako živočišného druhu se tyto programy mohly vyvíjet po tisíciletí a v nepřebujelé verzi mu usnadňovaly přežití, v té přebujelé mu však už škodí. Mají tyto vlastnosti:</p>
<ul>
<li>Jedná se o  součásti osobnosti, které se mohou za určitých okolností aktivovat a  vedou k negativnímu jednání osoby (k něčemu, o čem by se řeklo &#8222;Ten se  nezachoval dobře, to bylo od něj hnusné (hloupé)&#8220;. Toto chování může  vést k ubližování sobě nebo druhým.</li>
<li>Když člověk jedná podle démona, nerozhoduje se podle své svobodné vůle, ale jen podle toho naprogramování. V té chvíli není svobodný, ale neuvědomuje si to. Např. lakotný člověk si svoji lakotu nepřipouští, nepřizná, lakota je uhnízděná v temném koutě jeho duše. Přitom právě přiznat si vlastního démona je prvním krokem k tomu, aby se negativní vliv démona zmenšil nebo přímo eliminoval. O tom bych rád napsal více v pokračování tohoto seriálu, kde bude psát o průběhu situace, kdy nás <em>posedne démon</em> a uvedu nápady, jak to rozpoznat a jak s tím pracovat.</li>
<li>
<p class="MsoListBullet"><span style="font-family: Symbol" lang="EN-IE"><span><span style="font: 7pt 'Times New Roman'"></span></span></span><span lang="EN-IE">Pokud člověk jedná podle démona, posiluje ho tím. To je v souladu s vlastností neuronových spojů (synapsí) v mozku. Pokud se v mozku nějaká dráha aktivuje často, zesiluje se a mozek má v budoucnu tendenci (jakýsi magnetismus) tuto silnou dráhu využívat daleko častěji než nějaká méně často používaná spojení. To je také důvod, proč se člověk špatně zbavuje zlozvyku a proč ritualizace pomáhá udržet nějakou aktivitu (např. pravidelné cvičení jógy nebo běhání).</span></p>
</li>
</ul>
<p>Alegorie démonů jako <em>černých puntíků na naší duši</em> se mi moc líbí, protože je z toho patrné, že nejsou naší součástí, jen jsou na nás třeba právě nalepení. Zastiňují pak naši osobnost, berou nám energii a negativně ovlivňují naše chování. Snižují naši kapacitu štěstí.</p>
<h2 id="toc-"></h2>
<h2 id="toc-seznam-rozpoznanch-dmon">Seznam rozpoznaných démonů</h2>
<p>Abych vnesl do tématu více světla, uvedu několik rozpoznaných typů  démonů.<span id="more-137"></span></p>
<table border="1" height="142">
<tr>
<td bgcolor="#ccffcc" height="61"><strong>Užitečný vzorec chování</strong></td>
<td bgcolor="#ccffcc" height="61"><strong>Kladné projevy chování a cíle</strong></td>
<td bgcolor="#ffcccc" height="61"><strong>Přebujelá varianta &#8211; démon</strong></td>
<td bgcolor="#ffcccc" height="61"><strong>Příklady posednutí démonem</strong></td>
</tr>
<tr>
<td bgcolor="#ccffcc" height="71">Spořivost, šetrnost</td>
<td bgcolor="#ccffcc" height="71">Vytváření zásob na zimu, rezerv na těžké časy, nehýření a neplýtvání zdroji.</td>
<td bgcolor="#ffcccc" height="71">Hamižnost, lakota, strádání s cílem hamounit</td>
<td bgcolor="#ffcccc" height="71">
<ul>
<li>Lakomá barka (J. Werich)</li>
<li>Pán v důchodu, který bydlel na sídlišti v Brně a vybíral<br />
popelnice, žil v otrhaných šatech a zapáchal. Říkalo se o něm, že má<br />
doma ukrytý milión korun a po jeho smrti se skutečně našel (zdroj<br />
příběhu &#8211; zahradník Tom, který ho v Brně potkával)</li>
</ul>
</td>
</tr>
<tr>
<td bgcolor="#ccffcc" height="71">Touha poznávat daleké kraje, cestovat</td>
<td bgcolor="#ccffcc" height="71">Rozšíření obzorů a možností, vidění věcí z nových úhlů, překročení vlastních hranic, obohacení jinými kulturami</td>
<td bgcolor="#ffcccc" height="71">Neschopnost se usadit, nutkání se pořád stěhovat a nikde nezapustit kořeny.</td>
<td bgcolor="#ffcccc" height="71">V krásném filmu <a href="http://www.kfilmu.net/filmy.php?sekce=informace&amp;film=cokolada"> Čokoláda</a> (i když tam šlo jen o vedlejší motiv filmu).</td>
</tr>
<tr>
<td bgcolor="#ccffcc" height="71">Umění odpočívat, relaxovat a doplňovat tak energii</td>
<td bgcolor="#ccffcc" height="71">Udržování duševní i tělesné kapacity na maximu vyváženým poměrem zátěže a odpočinku</td>
<td bgcolor="#ffcccc" height="71">Lenost, mrhání životním potenciálem a tendence prožít život v zábavách a pohodlí.</td>
<td bgcolor="#ffcccc" height="71">Přehnané uživání drog a<br />
alkoholu, posedlost sexem nebo počítačovými hrami. Z vlastní zkušenosti<br />
znám situace, kdy se člověk při hraní hry neudrží, hraje ji třeba do 4<br />
hodin do rána a druhý den je úplně vyřízený.</td>
</tr>
<tr>
<td bgcolor="#ccffcc" height="71">Píle (v rovnováze s uměním odpočívat)</td>
<td bgcolor="#ccffcc" height="71">Činorodá aktivita, dělání věcí na 100%, stanovování si přiměřeně náročných cílů</td>
<td bgcolor="#ffcccc" height="71">Démon workoholismu. Řídí se heslem  “Největší zlo je lenost”. Vede k těmto neduhům:</p>
<ul>
<li>Nedostatečná nebo žádná relaxace, práce na dluh duševního i fyzického zdraví</li>
<li>Omezená sociální interakce až izolace (hospoda, kolektivní a stolní hry atp. jsou vnímány jako ztráta času).</li>
<li>Potlačení ženské Jin složky osobnosti, pravé hemisféry (tj.<br />
bezcílných, ale šťastných chvil, jako je např. procházka lesem, ležení v<br />
trávě, lezení na stromy atp.)</li>
</ul>
</td>
<td bgcolor="#ffcccc" height="71">Osoba z rodiny, paní XY.<br />
Její maminka žila do 15 let na statku se sestrou a rodiči, pak tragicky<br />
osiřely a musely se o statek postarat. Proto paní XY pravděpodobně bylo<br />
vštěpováno, že nejdůležitější je pořád pracovat a ani na chvilku se<br />
nezastavit. Výsledkem je, že si paní XY i k televizi bere pletení, <em>aby se neflákala</em><br />
a na dovolenou nikam nejezdí, jen na zahrádku pracovat na záhoncích. Má stálý pracovní poměr hlídače a k tomu občasnou brigádu jako prodavačka.</td>
</tr>
<tr>
<td bgcolor="#ccffcc" height="71">Rozmnožovací pud</td>
<td bgcolor="#ccffcc" height="71">Zachování rodu, posvátné spojení dvou bytostí</td>
<td bgcolor="#ffcccc" height="71">Démon posedlosti sexem</td>
<td bgcolor="#ffcccc" height="71">Osoba, která nežije ničím<br />
jiným než touho na sex a aktivitami k sexu směřujícími.</p>
<ul>
<li>Pěkně je to<br />
popsáno v knížce Malý strom (nejde o citaci, jen formulaci té myšlenky):<br />
<em>“Jsou lidé, kteří mají vlastní duši scrklou na velikost hikorového<br />
oříšku. Třeba nějaký člověk když se podívá na libovolnou ženu, hned si<br />
okamžitě začne představovat, jak se s ní vyspí a jak by ji dostal do<br />
postele.”</em></li>
<li>Jiným příkladem je člověk, který stráví spoustu času a peněz sledování porna na Internetu nebo v televizi.</li>
</ul>
</td>
</tr>
</table>
<h2 id="toc-dmoni-v-lidsk-kultue">Démoni v lidské kultuře</h2>
<h3 id="toc-idovsk-kabala">Židovská Kabala</h3>
<p>O démonech se vyučuje v židovské kabale. Tato část není nijak magická, spíš je to psychologie osobnosti.</p>
<p class="MsoNormal"><span lang="EN-IE">&#8222;<em>From the year 1540 and onward, the basic levels of Kabbalah must be taught publicly to everyone, young and old. Only through Kabbalah will we forever eliminate war, destruction, and man&#8217;s inhumanity to his fellow man.</em>&#8220; </span></p>
<p class="MsoNormal">&#8222;<em>Od roku 1540 a dál, základy Kabaly musí být veřejně vyučovány a dostupné všem, mladým i starým. Pouze skrz Kabalu dokážeme navždy eliminovat válku, ničení a vzájemnou lidskou nehumánnost.</em>&#8222;</p>
<p class="MsoNormal"><span lang="EN-IE">(zdroj: </span><a href="https://www.kabbalah.com/k/index.php/p=about/histmakers/13&amp;page=1"><span style="font-size: 12pt; line-height: 115%; font-family: 'Times New Roman','serif'; color: blue" lang="EN-IE">The Kabbalah Centre)</span></a><span style="font-size: 12pt; line-height: 115%; font-family: 'Times New Roman','serif'" lang="EN-IE"></span></p>
<h3 id="toc-erven-kniha-k-g-junga"> Červená kniha K. G. Junga</h3>
<p>Démony se zabýval i Gustav Jung, kamarád Míra mi vyprávěl o jeho z Jungova pohledu velmi důležitém díle &#8211; Červené knize (viz. rozhovor o knize v <a href="http://www.ceskatelevize.cz/porady/10322816274-televizni-akademie/211563237930001-televizni-akademie-planeta-zeme/">Televizní akademii</a> s vydavatelem jejího českého vydání Zdeňkem Jančaříkem). Tuto knihu jsem však ještě nečetl, takže víc k tomu teď říct nemůžu. Velkou měrou se démony zabývá i kniha Jozefa Kariky Zóny stínů (viz. detail knihy na <a href="http://www.kosmas.cz/knihy/126233/zony-stinu/">kosmas.cz</a>).</p>
<p>Uvítám vaše připomínky i osobní zkušenosti s démony v diskuzi pod článkem.</p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/07/22/o-demonech-a-stinech-v-nas-cast-prvni/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Informace o MMR vakcíně, spalničkách, příušnicích a zarděnkách</title>
		<link>http://jetensky.net/blog/2011/03/12/informace-o-mmr-vakcine-spalnickach-priusnicich-a-zardenkach/</link>
		<comments>http://jetensky.net/blog/2011/03/12/informace-o-mmr-vakcine-spalnickach-priusnicich-a-zardenkach/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 17:43:40 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[Problémy s očkováním]]></category>
		<category><![CDATA[alergie]]></category>
		<category><![CDATA[encefalitida]]></category>
		<category><![CDATA[lupénka]]></category>
		<category><![CDATA[MMR vakcína]]></category>
		<category><![CDATA[nežádoucí účinky]]></category>
		<category><![CDATA[neurodermatitida]]></category>
		<category><![CDATA[příušnice]]></category>
		<category><![CDATA[spalničky]]></category>
		<category><![CDATA[zarděnky]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/03/12/informace-o-mmr-vakcine-spalnickach-priusnicich-a-zardenkach/</guid>
		<description><![CDATA[Tato kapitola vznikla na základě dotazu Katky k článku Kniha Problémy s očkováním, aneb kde hledat informace o jednotlivých očkováních používaných v ČR- viz. komentáře pod článkem, děkuji Katko. Původně jsem chtěl odpovědět jenom v komentáři, ale tam by se to všechno nevešlo. Všechny informace zde jsou v podstatě opisem z knihy Martina Hirteho Očkování [...]]]></description>
			<content:encoded><![CDATA[<p>Tato kapitola vznikla na základě dotazu Katky k článku <a href="http://jetensky.net/blog/2010/01/24/kniha-problemy-s-ockovanim-aneb-kde-hledat-informace-o-jednotlivych-ockovanich-pouzivanych-v-cr/">Kniha Problémy s očkováním, aneb kde hledat informace o jednotlivých očkováních používaných v ČR</a>- viz. komentáře pod  článkem, děkuji Katko. Původně jsem chtěl odpovědět jenom v komentáři, ale tam by se to všechno nevešlo.</p>
<p>Všechny informace zde jsou v podstatě opisem z  knihy Martina Hirteho <a href="http://www.outdooring.cz/cze/Outdoor-clanky/Martin-Hirte-Ockovani-pro-a-proti">Očkování &#8211; pro a proti.</a></p>
<h2 id="toc-spalniky">Spalničky</h2>
<ul>
<li>Léčba
<ul>
<li>Nejsou známé žádné léky, které by je vyléčily</li>
<li>Nedostatek vitamínu A může přispět k závažnému průběhu. Podání  vysoké dávky vit. A lze redukovat počet komplikací a úmrtí až o 80%.</li>
<li>Typicky doporučované snižování horečky během onemocnění pomocí léků je diskutabilní, protože zvyšuje úmrtnost 7x</li>
</ul>
</li>
<li>Onemocnění může být nebezpečné výskytem encefalitidy (zánět mozku)
<ul>
<li>šance je 1:15000 ve věku do 4 let, 1:5000 ve věku 5 &#8211; 9 let a 1:2500 nad 10 let</li>
<li>15 % na následky zemře, 35% má trvalé následky, 60% bez následků</li>
</ul>
</li>
<li>Prodělání nemoci v dětském věku má prokazatelně pozitivní vliv na zralost imunitního systému
<ul>
<li>Snižuje riziko vzniku rakoviny prsu a uzlin, sklerózy multiplex, alergie na prach, neurodermatitidy</li>
<li>Může vyléčit některé chronické nemoci, např. lupénku, epilepsii nebo neurodermatititu způsobenou potravinovou alergií</li>
</ul>
</li>
<li>Očkování
<ul>
<li>posouvá výskyt onemocnění do pozdějšího věku (jedinec je neprodělá v &#8222;ideálním&#8220; věku, tj. mezi 1. a 9. rokem)</li>
<li>očkování matky může způsobit, že dítě onemocní v 1. roku života (neochrání ho matčiny protilátky), což je riziková skupina</li>
<li>vede k častějšímu výskytu senné rýmy, může vést k nervovým  onemocněním, jako je poškození zrakového nervu, ochrnutí lícního nervu  nebo svalů oka a hluchotě (ta může být způsobena očkovací složkou proti  příušnicím).</li>
<li>zvyšuje riziko atopického exému do věku 15 let 2x a chronického zánětu střeva (MMR vakcína)</li>
</ul>
</li>
</ul>
<h2 id="toc-punice"><span id="more-136"></span>Příušnice</h2>
<ul>
<li>Příušnice probíhají u dětí typicky bez problémů, spontánně odezní a  ve většině případů proběhnou dokonce skrytě. Velmi zřídka může  onemocnění vyvolat poškození sluchu.</li>
<li>Jsou na pokraji vymizení. Děti dnes téměř nemajé možnost prodělat tuto nemoc v dětském věku a tím získat doživotní imunitu.</li>
<li>Očkovací látka je v současnosti pouze v rámci MMR-vakcíny, není  dostatečně prozkoumaná z hlediska bezpečnosti a možných dlouhodobých  následků.</li>
</ul>
<h2 id="toc-zardnky">Zarděnky</h2>
<ul>
<li>Zarděnky jsou bezproblémovým onemocněním dětského věku, které i bez léčby probíhá bez následků.</li>
<li>Pokud se zarděnky objeví během těhotenství, hrozí riziko potratu  případně poškození plodu. Proto nejpozději na začátku puberty by měla  být děvčata, která zarděnky  neprodělala, proti nim očkovaná. Pro  optimální hladinu protilátek jsou  potřebná dvě očkování.</li>
<li>Očkováním se zarděnky posouvají do dospělého věku spolu s rizikem  přibývání případů embryopatie. Zabránit tomuto vývoji by měla co  nejvyšší míra proočkovanosti, případně úplné vymýcení zarděnek.  Neočkovaní nemají za těchto okolností téměř šanci prodělat zarděnky a  tím získat doživotní imunitu.</li>
<li>Očkování proti zarděnkám může vyvolat chronické onemocnění svalů nebo kloubů.</li>
</ul>
<h2 id="toc-o-mmr-vakcn">O MMR vakcíně</h2>
<ul>
<li>MMR vakcína je sdružená vakcína proti spalničkám, příušnicím a zarděnkám.</li>
<li>V USA bylo v letech 1990 &#8211; 2000 zaznamenáno přes 40 000 hlášení  nežádoucích účinků. Mezi ně patří encefalitida, chronická artritida.  Riziko závažných nežádoucích účinků bylo vypočítáno na 1:13000, studie v  Rusku (vakcína MMR Triplovax) v roce 1996 zjistila 1,3% výskutu  &#8222;závažných nežádoucích účinků po očkování&#8220;. Větší šance na nežádoucí  účinky je u ženského pohlaví.</li>
<li>U 5 až 15 % očkovaných se objeví několikadenní horečka, tpypicky  mezi 7. &#8211; 15. dnem po očkování. U 3 &#8211; 5% se tak0 může objevitmalátnost,  zánět spojivek, kašel, fibrilní křeče (ty však nemívají pozdější  následky na zdraví) nebo spalničková vyrážka.</li>
<li>V raném dětském věku při očkování MMR-vakcínou hrozí riziko poškození neurologického vývoje</li>
</ul>
<h2 id="toc-odkazy">Odkazy</h2>
<ul>
<li>Detail knihy Martina Hirteho <a href="http://www.outdooring.cz/cze/Outdoor-clanky/Martin-Hirte-Ockovani-pro-a-proti">Očkování &#8211; pro a proti</a> v e-shopu outdooring.cz &#8211; zdroj informací o MMR vakcíně</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/03/12/informace-o-mmr-vakcine-spalnickach-priusnicich-a-zardenkach/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Finding points in 3D space using point quad tree &#8211; java sources</title>
		<link>http://jetensky.net/blog/2011/03/07/finding-points-in-3d-space-using-point-quad-tree-java-sources/</link>
		<comments>http://jetensky.net/blog/2011/03/07/finding-points-in-3d-space-using-point-quad-tree-java-sources/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 18:42:24 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA[SW development]]></category>
		<category><![CDATA[Užitečné]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[multidimensional data structures]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[point region quadtree]]></category>
		<category><![CDATA[PR quadtree]]></category>
		<category><![CDATA[samet]]></category>
		<category><![CDATA[University of Pardubice]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/03/07/finding-points-in-3d-space-using-point-quad-tree-java-sources/</guid>
		<description><![CDATA[Solved problem This post introduces an working algoritm that can be used for searching through a 3D space filled with 3D points. Each point is represented by its x, y, z coordinates. Search is performed using search rectangular box, specified by its left bottom back and right top front corners. As a result, all points [...]]]></description>
			<content:encoded><![CDATA[<h2 id="toc-solved-problem">Solved problem</h2>
<p>This post introduces an working algoritm that can be used for searching through a 3D space filled with 3D points. Each point is represented by its x, y, z coordinates. Search is performed using search rectangular box, specified by its left bottom back and right top front corners.</p>
<p>As a result, all points from 3D space that belong to the search box are returned. See this demo live:</p>
<p>See video of the demo:<br />
<iframe src="http://www.youtube.com/embed/klP6FbxvmRA" title="YouTube video player" frameborder="0" height="390" width="480"></iframe></p>
<p>Work on it is done as part of my Phd studies at <a href="http://www.upce.cz/en/index.html">University of Pardubice</a> under supervision of my teacher, <strong><a href="http://www.upce.cz/lideUPa.html?id=75238F59-A6E3-4F27-81F3-188E204193D2">Kavička Antonín, prof. Ing. Ph.D.                    </a></strong>.</p>
<h2 id="toc-demo-demonstrating-the-algoritm-implementation">Demo demonstrating the algoritm implementation</h2>
<ul>
<li>Demo first generates fixed number of 3D points in the working area between -100,-100,-100 and 100, 100, 100. These points are added to the QuadTree3D instance using add method. This is the part when quad tree is built in memory:</li>
</ul>
<p><span id="more-133"></span></p>
<pre>for (int i=0;i&lt; numberOfPoints;i++) {

    int x = random.nextInt(quadrantWidth+1) - quadrantWidth/2;

    int y = random.nextInt(quadrantWidth+1) - quadrantWidth/2;

    int z = random.nextInt(quadrantWidth+1) - quadrantWidth/2;

    quad.addPoint(new Point(x,y,z));

}</pre>
<ul>
<li>Next step is performing a search in this 3D space, using search method. It accepts two arguments defining a search box, leftBottomBack and rightTopFront points:</li>
</ul>
<pre>Point searchFrom = new Point(fromX, fromY, fromZ);

Point searchTo = new Point(toX, toY, toZ);

List&lt;Point&gt; found = quad.search(searchFrom, searchTo);</pre>
<ul>
<li> Finally, 3D space is rendered on the OpenGL canvas. Found points are displayed as white, other points are green. Quadrant&#8217;s cubes are rendered as cyan and search box is transparent purple.</li>
</ul>
<h3 id="toc-how-to-execute-demo">How to execute demo</h3>
<p>If you are running Windows, just download and extract the zip file, execute bin/go.bat from  command line. On other OS you can run is as standard java application:</p>
<pre>java -Djava.library.path=. -DnumberOfPoints=%POINTS% -DfromX=%fromX% -DfromY=%fromY% -DfromZ=%fromZ% -DtoX=%toX% -DtoY=%toY% -DtoZ=%toZ% -DshowQuadCubes=%showQuadCubes% -classpath quadtree3ddemo.jar;timer.jar;jogl.jar net.jetensky.quadtree3d.QuadTree3DDemo</pre>
<p>Just replace the %% variables with desired values. You can use the default settings:</p>
<pre>SET POINTS=30
# Whole searchable region is from -100,-100,-100 to 100,100,100, FROM and TO search window should be subset of this
SET fromX=-100
SET fromY=-50
SET fromZ=-0
SET toX=-50
SET toY=110
SET toZ=70
SET showQuadCubes=false</pre>
<h2 id="toc-technical-background-region-point-quad-tree">Technical background &#8211; Region Point Quad Tree</h2>
<p>At the core of the demo is implementation of PR Quadtree (Point Region Quad Tree), as defined by Hanan Samet in Foundations of Multidimensional and Metric Data Structures in chapter 1.4.2.2 PR Quadtrees. There is a slight difference in the implementation of logic behind choosing, wheter actual quadrant should be searched:</p>
<ul>
<li>Samet (in figure 1.27) suggests to  compare the root of the quadrant to the position of the search box and enumerates all the options.</li>
<li>My implementation simplifies the solution to answering, whether the search box and actual quadrant intersects. If there is no intersection, whole quadrant can be skipped as it is completely outside the search box
<pre>    public boolean intersects(Point leftBottomBack, Point rightTopFront) {</pre>
<pre>        return !(</pre>
<pre>                center.getX() - halfWidth &gt; rightTopFront.getX() ||</pre>
<pre>                center.getX() + halfWidth &lt; leftBottomBack.getX() ||</pre>
<pre>                center.getY() - halfWidth &gt; rightTopFront.getY() ||</pre>
<pre>                center.getY() + halfWidth &lt; leftBottomBack.getY() ||</pre>
<pre>                center.getZ() - halfWidth &gt; rightTopFront.getZ() ||</pre>
<pre>                center.getZ() + halfWidth &lt; leftBottomBack.getZ()</pre>
<pre>        );</pre>
<pre>    }</pre>
</li>
</ul>
<h2 id="toc-used-technologies"> Used technologies</h2>
<p>Algoritm and demo is implemented in Java. Graphical representation of points is rendered using Java OpenGL library (jogl). Whole demo, including sources and working executable, can be downloaded:</p>
<ul>
<li><a href="http://jetensky.net/download/files/quadtree3d.zip" title="3DQuadTree.zip">3DQuadTree.zip</a></li>
</ul>
<p>Please feel free to use the source code for your needs, however I would be glad if you let me know how you use it by writing a comment to this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/03/07/finding-points-in-3d-space-using-point-quad-tree-java-sources/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>3DKeyboard project</title>
		<link>http://jetensky.net/blog/2011/02/03/3dkeyboard-project/</link>
		<comments>http://jetensky.net/blog/2011/02/03/3dkeyboard-project/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 14:32:30 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA[RSI What Helps]]></category>
		<category><![CDATA[ergonomical]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[kinect]]></category>
		<category><![CDATA[nite]]></category>
		<category><![CDATA[primesense]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/02/03/3dkeyboard-project/</guid>
		<description><![CDATA[About 3DKeyboard Recently, after some research and solving some problems with C++ code, I have finished initial version of 3DKeyboard. Work on it is done as part of my Phd studies at University of Pardubice. 3DKeyboard is an application utilizing Microsoft Kinect, that enables you to type text with moving one of your hands in [...]]]></description>
			<content:encoded><![CDATA[<h1><a href="http://jetensky.net/blog/wp-content/images/3dkeyboard/3DKeyboard_front.jpg"><br />
<img src="http://jetensky.net/blog/wp-content/images/3dkeyboard/3DKeyboard_front_thumb.jpg" align="left" border="2" /></a></h1>
<h2 id="toc-about-3dkeyboard">About 3DKeyboard</h2>
<p>Recently, after some research and solving <a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/">some problems</a> with C++ code, I have finished initial version of 3DKeyboard. Work on it is done as part of my Phd studies at <a href="http://www.upce.cz/en/index.html">University of Pardubice</a>.</p>
<p>3DKeyboard is an application utilizing Microsoft Kinect, that enables you to type<br />
text with moving one of your hands in the air. It&#8217;s purpose is to minimize need<br />
of a real keyboard in situations, when you want to control computer in a touchless<br />
manner.</p>
<p>See video of 3DKeyboard in action:<br />
<iframe src="http://www.youtube.com/embed/TxlbFKG4IqY" title="YouTube video player" frameborder="0" height="390" width="480"></iframe></p>
<p>Note: The application is in prototype stage and has not been properly tested. However, if you really want to try it, you can download the Windows version <a href="http://jetensky.net/blog/wp-content/uploads/2011/02/3dkeyboard-v001.zip" title="3DKeyboard v0.0.1.zip">3DKeyboard v0.0.1.zip</a> (please read readme.txt in the package for instructions).</p>
<p><span id="more-131"></span></p>
<h2 id="toc-keyboard-layout">Keyboard layout</h2>
<p>Keyboard consists of 7 cubes in a cross-like pattern. Crosses are parallel to<br />
user screen, so normally you see only front cube (blue) and middle layer (green)<br />
cubes.</p>
<table border="1" width="68%">
<tr>
<td align="center"><img src="http://jetensky.net/blog/wp-content/images/3dkeyboard/3DKeyboard_side.jpg" border="0" width="250" /></td>
<td align="center"><img src="http://jetensky.net/blog/wp-content/images/3dkeyboard/3DKeyboard_front.jpg" border="0" width="250" /></td>
</tr>
<tr>
<td align="center">Side view of 3D Keyboard</td>
<td align="center">Front view of 3DKeyboard</td>
</tr>
</table>
<h2 id="toc-how-to-type-letters">How to type letters</h2>
<ul>
<li>Start with waving <span>your hand in front of kinect &#8211; white sphere appears<br />
at the position of your hand</span></li>
<li><span>Place the sphere in the central green cube, so that it highlights<br />
- this is starting position for typing</span></li>
<li><span>Move your hand to some other cube(s) and back to the center &#8211; this<br />
writes a letter and adds it to the text displayed at the top of the screen</span></li>
</ul>
<p><span>This table shows the movements to be done so that particular letter is<br />
typed:</span></p>
<table>
<tr>
<th height="20">Key</th>
<th>1. move</th>
<th>2. move</th>
<th>3. move</th>
<th>4. move</th>
</tr>
<tr>
<td height="20">[Space]</td>
<td>BACK</td>
<td>CENTER</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">!</td>
<td>RIGHT</td>
<td>DOWN</td>
<td>LEFT</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">&#8216;</td>
<td>UP</td>
<td>LEFT</td>
<td>DOWN</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">,</td>
<td>LEFT</td>
<td>DOWN</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">.</td>
<td>LEFT</td>
<td>UP</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">?</td>
<td>RIGHT</td>
<td>UP</td>
<td>LEFT</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">@</td>
<td>DOWN</td>
<td>RIGHT</td>
<td>UP</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">a</td>
<td>RIGHT</td>
<td>UP</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">b</td>
<td>FRONT</td>
<td>RIGHT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">[Backspace]</td>
<td>LEFT</td>
<td>CENTER</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">c</td>
<td>LEFT</td>
<td>BACK</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">d</td>
<td>UP</td>
<td>FRONT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">e</td>
<td>DOWN</td>
<td>LEFT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">f</td>
<td>RIGHT</td>
<td>BACK</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">g</td>
<td>BACK</td>
<td>RIGHT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">h</td>
<td>DOWN</td>
<td>FRONT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">i</td>
<td>UP</td>
<td>RIGHT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">j</td>
<td>LEFT</td>
<td>DOWN</td>
<td>RIGHT</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">k</td>
<td>BACK</td>
<td>LEFT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">l</td>
<td>DOWN</td>
<td>BACK</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">m</td>
<td>LEFT</td>
<td>FRONT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">n</td>
<td>BACK</td>
<td>DOWN</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">o</td>
<td>RIGHT</td>
<td>DOWN</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">p</td>
<td>FRONT</td>
<td>LEFT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">q</td>
<td>DOWN</td>
<td>LEFT</td>
<td>UP</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">r</td>
<td>FRONT</td>
<td>UP</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">s</td>
<td>BACK</td>
<td>UP</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">t</td>
<td>DOWN</td>
<td>RIGHT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">u</td>
<td>FRONT</td>
<td>DOWN</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">v</td>
<td>LEFT</td>
<td>UP</td>
<td>RIGHT</td>
<td>CENTER</td>
</tr>
<tr>
<td height="20">w</td>
<td>RIGHT</td>
<td>FRONT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">x</td>
<td>UP</td>
<td>BACK</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">y</td>
<td>UP</td>
<td>LEFT</td>
<td>CENTER</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="20">z</td>
<td>UP</td>
<td>RIGHT</td>
<td>DOWN</td>
<td>CENTER</td>
</tr>
</table>
<h3 id="toc-logic-behind-the-letters-and-their-typing-movements">Logic behind the letters and their typing movements</h3>
<p>You may have noticed, that pattern how the letters are distributed in the<br />
keyboard is similar to that of <a href="http://www.the8pen.com/">8pen</a>, which<br />
can be used on smart phones. That is right. This picture shows 8pen keyboard, which<br />
can be thought as a 2D version of 3DKeyboard.</p>
<p><strong>To type letter y using 8pen, you need to:</strong><img src="http://jetensky.net/blog/wp-content/images/3dkeyboard/8pen.jpg" align="right" border="0" /></p>
<ul>
<li>Put your finger to the central circle</li>
<li>Move your finger up</li>
<li>Move your finger left and down (crossing the blue line)</li>
<li>Move your finger back to the center</li>
</ul>
<p><strong>To type letter y using 3DKeyboard:</strong></p>
<ul>
<li>Put the hand to the central green cube</li>
<li>Move your hand up to the top cube</li>
<li>Move your hand left and down to left cube</li>
<li>Move your hand back to center</li>
</ul>
<p>If you study the movements table for 3DKeyboard, you will realise that:</p>
<ul>
<li>Letters closest to the 8pen circle (i, y, dot, comma, e, t, o, a) are typed<br />
the same way as using 8pen <strong>in a plane parallel to the screen</strong><em>Imagine that you place your right palm in front of your face (thumb up)<br />
and draw on it 8pen diagram. Then type letters using this diagram, f.e. &#8222;a&#8220;<br />
you would type moving your hand right, up and little left and than down to the<br />
middle cube.</em></li>
<li>Letters with distance of 2 from the 8pen circle (d, x, s, n, l, h, u, r)<br />
are typed the same way as using 8pen, but <strong>in a vertical plane orthogonal<br />
to the screen</strong><em>Imagine that you place your right palm in front of your face (thumb up),<br />
draw 8pen diagram on it and rotate the hand in the elbow right. Then type letters<br />
using this diagram, f.e. &#8222;r&#8220; you would type moving your hand close to your body<br />
(forth), then up and back closer to the screen and than down to the middle cube.</em></li>
<li>Letters with distance of 3 from the 8pen circle (g, k, c, m, p, b, w, f)<br />
are typed the same way as using 8pen, but <strong>in a horizontal plane orthogonal<br />
to the screen</strong><em>Imagine that you place your right palm in front of your face (thumb up),<br />
draw 8pen diagram on it and rotate the palm facing up. Then type letters using<br />
this diagram, f.e. &#8222;f&#8220; you would type moving your hand left, than back closer<br />
to the screen and forth to the middle cube.</em></li>
<li>Letters with distance of 4 from the 8pen circle (z, apos, v, j, q, @, !<br />
and ?)  have no relation to the 8pen layout, just see the movements table<strong><br />
</strong>how to type them.</li>
</ul>
<h2 id="toc-used-technologies">Used technologies</h2>
<p>3DKeyboard was created using these technologies:</p>
<ul>
<li>Microsoft Kinect device for XBox 360</li>
<li> <a href="http://www.openni.org/">Openni Kinect drivers</a></li>
<li><a href="http://www.primesense.com/?p=515">Primesense Nite</a> middleware</li>
</ul>
<h2 id="toc-what-next">What next?</h2>
<p>To improve the application, I have several thinks in mind:</p>
<ul>
<li>Render letters in some sensible way above the sides of the cubes, so that<br />
it is clear without reference table, how to write different characters</li>
<li>Instead of inputting text on the top of screen, which is good for prototype<br />
but actually useless for real needs, type them to different active window (f.e.<br />
search box in browser)</li>
<li>Introduce calibration of the cube cross, so that user can choose, where<br />
in his real space his keyboard resides. This would help to work naturally perpendicular<br />
to screen even if kinect is not centered to the screen (f.e. placed to the right<br />
of the screen).</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/02/03/3dkeyboard-project/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to compile and run Kinect related samples</title>
		<link>http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/</link>
		<comments>http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 13:45:57 +0000</pubDate>
		<dc:creator>Jety</dc:creator>
				<category><![CDATA[3D User interfaces]]></category>
		<category><![CDATA[cluni]]></category>
		<category><![CDATA[cluni4j]]></category>
		<category><![CDATA[getting started]]></category>
		<category><![CDATA[kinect]]></category>
		<category><![CDATA[nite]]></category>
		<category><![CDATA[openni]]></category>
		<category><![CDATA[problém]]></category>
		<category><![CDATA[samples]]></category>

		<guid isPermaLink="false">http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/</guid>
		<description><![CDATA[Recently, I bought Microsoft Kinect motion sensor, keen on starting developing cute applications with that. If you are in the same situation, this post is here for you to made thinks easier. Currently, I have managed to run some sample demos and compile them in Microsoft Visual Studio 2010. As it turned out, thinks are [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I bought <a href="http://en.wikipedia.org/wiki/Kinect">Microsoft Kinect</a> motion sensor, keen on starting developing cute applications with that. If you are in the same situation, this post is here for you to made thinks easier. Currently, I have managed to run some sample demos and compile them in Microsoft Visual Studio 2010. As it turned out, thinks are not that easy.</p>
<p>This post describes problems I needed to solve to make run Kinect examples. These examples are part of distribution of <a href="http://www.openni.org/">OpenNI</a> and <a href="http://www.primesense.com/?p=515">Nite</a> libraries. As I am utter newbie in C++ and MS Visual Studio, please consider these as &#8222;work for me&#8220; and &#8222;may not be best&#8220; solutions. However I hope they may be helpful to someone. If you encounter these or different problems related to running the samples, please share with us your experience (and possibly solution) in the comments.</p>
<p>My environment is Windows Vista 32 bit SP1, Intel Core Duo 2GHz, JDK 1.6.0_03.</p>
<h2 id="toc-content">Content</h2>
<div class="toc">
<ol>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-content">Content</a></li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-problems-debugging-openni-and-nite-in-ms-visual-studio">Problems debugging OpenNI and Nite in MS Visual Studio</a>
<ol>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-failed-to-save-the-updated-manifest-to-the-file">Failed to save the updated manifest to the file</a></li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-fatal-error-rc1015-cannot-open-include-file-afxres-h">fatal error RC1015: cannot open include file &#8216;afxres.h&#8217;</a></li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-the-program-pointviewer-has-exited-with-code-131076">The program PointViewer has exited with code 131076</a></li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-the-system-cannot-find-the-file-specified">The system cannot find the file specified</a></li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-the-program-5540-sample-stickfigure-exe-native-has-exited-with-code-131076-0x20004">The program &#8216;[5540] Sample-StickFigure.exe: Native&#8217; has exited with code 131076 (0&#215;20004)</a></li>
</ol>
</li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-running-openkinect-org-samples">Running OpenKinect.org samples</a>
<ol>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-download-compiled-library-freenect-dll-and-freenect_sync-dll">Download compiled library freenect.dll and freenect_sync.dll</a></p>
<ol>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-new-release-of-windows-libfreenect-port-addresses-compilation-issues-updated-on-26012011">New release of windows libfreenect port addresses compilation issues (updated on 26/01/2011)</a></li>
</ol>
</li>
</ol>
</li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-problems-running-clnui-and-cluni4j-sample-new">Problems running CLNUI and CLUNI4J sample <font color="#ff0000">(new)</font></a>
<ol>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-unable-to-load-library-clnuidevice-dll">Unable to load library &#8216;CLNUIDevice.dll&#8217;</a></li>
<li><a href="http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/#toc-cluni4j-kinectdevice-couldnt-start-camera"> CLUNI4J &#8211; (KinectDevice)  Couldn&#8217;t start camera</a></li>
</ol>
</li>
</ol>
</div>
<p><span id="more-128"></span></p>
<h2 id="toc-problems-debugging-openni-and-nite-in-ms-visual-studio">Problems debugging OpenNI and Nite in MS Visual Studio</h2>
<p><strong>Note:</strong> The fix procedures described here are valid for Debug configuration profile, but they work as well for Release, just swap <em>Debug</em> in the instructions for <em>Release</em>.</p>
<h3 id="toc-failed-to-save-the-updated-manifest-to-the-file">Failed to save the updated manifest to the file</h3>
<p>This is a build time error. It appeared, when I converted project to newer format and tried to built it. Oddly enough, this error disappears if you close MS Studio and reopen the project using *.sln file.</p>
<p>This is the full text of the error:</p>
<pre>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\NiSimpleRead.exe.embed.manifest". The parameter is incorrect.</pre>
<h3 id="toc-fatal-error-rc1015-cannot-open-include-file-afxres-h">fatal error RC1015: cannot open include file &#8216;afxres.h&#8217;</h3>
<p>This is a build time error. If this happens to you, it is related to difference between your development environment to those used in distribution, as suggested in <a href="http://social.msdn.microsoft.com/Forums/eu/Vsexpressvc/thread/d3480ee3-d880-4431-9264-b110a69c8a07">this discussion</a>. To fix it, replace afxres.h with windows.h in NITE.rc file.</p>
<h3 id="toc-the-program-pointviewer-has-exited-with-code-131076">The program PointViewer has exited with code 131076</h3>
<p>This is happens if you try to run sample and have incorrectly set working directory. To fix it:</p>
<ul>
<li>Right click  your project in Solution Explorer and choose Properties</li>
<li>Go to <em>Configuration properties\Debugging\Working Directory</em> and change $(ProjectDir) to ..\Bin\Debug<br />
Note: I have changed <em>Intermediate Directory</em> as well, but I am not sure, if it was necessary.</li>
</ul>
<h3 id="toc-the-system-cannot-find-the-file-specified">The system cannot find the file specified</h3>
<p>This may happen if you run sample from Visual Studio, even if it runs all right from Windows Explorer. I believe this is caused by mess in output folders and project name settings, as they are distributed in Nite samples&#8217; vcproj files. Project name is f.e. PointViewer, but output file is set to Sample-PointViewer. Also, the default build path is set to ..\Bin\Debug, but settings point to Debug folder. To fix this:</p>
<ul>
<li>Right click  your project in Solution Explorer and choose Properties</li>
<li>Go to <em>Configuration properties\Target Name</em> and replace variable $(ProjectName) with Sample-PointViewer (for different samples it will be similar, f.e. Sample-SimpleRead)</li>
<li>Go to <em>Configuration properties\General\OutputDirectory</em> and change Debug\ to ..\Bin\Debug\</li>
</ul>
<h3 id="toc-the-program-5540-sample-stickfigure-exe-native-has-exited-with-code-131076-0x20004">The program &#8216;[5540] Sample-StickFigure.exe: Native&#8217; has exited with code 131076 (0&#215;20004)</h3>
<p>Alternative symptoms of this error is that if you run the application exe file from command line, following error appears:</p>
<pre>InitFromXml failed: Device Protocol: Bad Parameter sent!</pre>
<p>This is caused by Kinect not accepting resolution 320&#215;240.  To solve it:</p>
<ul>
<li>In all 3 XML files under directory Change Nite unstable 1.3.0.18\Data\ change &lt;MapOutputMode xRes=&#8220;320&#8243; yRes=&#8220;240&#8243; FPS=&#8220;30&#8243;/&gt; to &lt;MapOutputMode xRes=&#8220;640&#8243; yRes=&#8220;480&#8243; FPS=&#8220;30&#8243;/&gt;</li>
</ul>
<h2 id="toc-running-openkinect-org-samples">Running OpenKinect.org samples</h2>
<h3 id="toc-download-compiled-library-freenect-dll-and-freenect_sync-dll">Download compiled library freenect.dll and freenect_sync.dll</h3>
<p>I spent a lot of time getting FreenectTest.java to run. One of the steps required and described at OpenKinect getting started Windows page was to build freenect.dll. First I tried to download it somewhere, but only found that lot of people in the discussions are looking for it too. So I went through the compile process &#8211; here are steps I needed to do (to name a few):</p>
<ol>
<li>Install proper kinect drivers</li>
<li>Install and use cmake.exe to generated MS Visual Studio project files</li>
<li>Compile these files and generate freenect.dll</li>
</ol>
<p>If you want to skip these steps, download my compiled version of <a href="http://jetensky.net/blog/wp-content/uploads/2011/01/freenect.dll" title="freenect.dll">freenect.dll</a> and <a href="http://jetensky.net/blog/wp-content/uploads/2011/01/freenect_sync.dll" title="freenect_sync.dll">freenect_sync.dll</a>. Hopefully it will work for you, I was compiling using MS Visual Studio 10 on Windows Vista.</p>
<p><strong>Note:</strong> If using java wrapper as me, place it in the lib folder alongside libusb0_x86.dll and run with <em>-Djava.library.path=lib</em>, when I did so I was able to run <em>OpenKinect-libfreenect-2ea3ebb\wrappers\java\src\test\java\org\openkinect\freenect\FreenectTest.java</em>.</p>
<h4 id="toc-new-release-of-windows-libfreenect-port-addresses-compilation-issues-updated-on-26012011">New release of windows libfreenect port addresses compilation issues (updated on 26/01/2011)</h4>
<p>Since this post has  been published, Marcos Slomp and libfreenect team released new version of windows port, that adresses compilation issues I was facing. Fortunatelly, building your own version of libfreenect.dll on Windows should be easier. See <a href="https://github.com/slomp/libfreenect/blob/unstable/platform/windows/README.TXT">readme.txt</a> for Windows port.</p>
<h2 id="toc-problems-running-clnui-and-cluni4j-sample-new">Problems running CLNUI and CLUNI4J sample <font color="#ff0000">(new)</font></h2>
<h3 id="toc-unable-to-load-library-clnuidevice-dll">Unable to load library &#8216;CLNUIDevice.dll&#8217;</h3>
<p>There can be multiple causes for this problem, like missing dll file in java.library.path. Even if you have library there, the error can still pop up. To fix this, I needed to following:</p>
<ul>
<li>Fix wrong DLL identifier in CLUNI4J distribution<br />
On line 11 in CLNUI.java remove .dll from libraryFilename pointer and rebuild project.</p>
<pre>    public static String libraryFilename = "CLNUIDevice";</pre>
</li>
<li> Always start the project in Debug mode<br />
To be honest, I do not understand this one. However, when I run PointCloudApp using Run mode in my IntelliJ Idea, it fails with the UnsatisfiedLinkError. If I run it using Debug mode, it does not fails (however fails with Couldn&#8217;t start camera problem described later in this post).</li>
</ul>
<p>Full error message is:</p>
<pre>Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'CLNUIDevice.dll': The specified module could not be found.

    at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)</pre>
<h3 id="toc-cluni4j-kinectdevice-couldnt-start-camera"> CLUNI4J &#8211; (KinectDevice)  Couldn&#8217;t start camera</h3>
<p>This happens, when I try to run PointCloudApp. It happens at line 185 of cl.nui.KinectDevice class. Then follows this error:</p>
<pre>Exception in thread "Animation Thread" java.lang.NullPointerException

    at cl.nui.KinectDevice.getDepthAt(KinectDevice.java:776)</pre>
<p>Up till now, I was unfortunatelly unable to find reason for this error and this is the reason I am abondoning my experiments with CLUNI4J library. If you have any ideas I will be gratefull if you give me a hint in the comments section.</p>
]]></content:encoded>
			<wfw:commentRss>http://jetensky.net/blog/2011/01/20/how-to-compile-and-run-kinect-related-samples/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

