<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Algorithm-Forge</title>
	<atom:link href="http://www.algorithm-forge.com/techblog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.algorithm-forge.com/techblog</link>
	<description>Java, R, Statistics, Algorithms and other stuff</description>
	<lastBuildDate>Thu, 20 Oct 2011 18:02:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Using JavaGD in Java applications by Zoe</title>
		<link>http://www.algorithm-forge.com/techblog/2010/07/using-javagd-in-java-applications/comment-page-1/#comment-3717</link>
		<dc:creator>Zoe</dc:creator>
		<pubDate>Thu, 20 Oct 2011 18:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=316#comment-3717</guid>
		<description>Thanks for the helpful post. 
I am not very familar with R. I have just tried your example, it doesn&#039;t work on my PC (Windows). I am wondering if it is because of the way to environment variable in Windows should be different than the code in your example as following:
engine.eval(&quot;.setenv &lt;- if (exists(\&quot;Sys.setenv\&quot;)) Sys.setenv else Sys.putenv&quot;);
engine.eval(&quot;.setenv(\&quot;JAVAGD_CLASS_NAME\&quot;=\&quot;JavaGDExample\&quot;)&quot;);

How could I set the environment variable in PC?

Thanks a lot,
Zoe</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful post.<br />
I am not very familar with R. I have just tried your example, it doesn&#8217;t work on my PC (Windows). I am wondering if it is because of the way to environment variable in Windows should be different than the code in your example as following:<br />
engine.eval(&#8220;.setenv &lt;- if (exists(\&quot;Sys.setenv\&quot;)) Sys.setenv else Sys.putenv&quot;);<br />
engine.eval(&quot;.setenv(\&quot;JAVAGD_CLASS_NAME\&quot;=\&quot;JavaGDExample\&quot;)&quot;);</p>
<p>How could I set the environment variable in PC?</p>
<p>Thanks a lot,<br />
Zoe</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using JavaGD in Java applications by Kornelius Rohmeyer</title>
		<link>http://www.algorithm-forge.com/techblog/2010/07/using-javagd-in-java-applications/comment-page-1/#comment-3379</link>
		<dc:creator>Kornelius Rohmeyer</dc:creator>
		<pubDate>Thu, 08 Sep 2011 21:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=316#comment-3379</guid>
		<description>Hi Michael, 
yes of course the extensibility is the goal! Of course you can just write a main method with the following lines and nothing else in the class:

&lt;code&gt;
Rengine engine = new Rengine(new String[] {&quot;--vanilla&quot;}, true, null);      
engine.eval(&quot;library(JavaGD)&quot;);
engine.eval(&quot;JavaGD()&quot;);
engine.eval(&quot;plot(rnorm(100))&quot;);
&lt;/code&gt;

But that&#039;s not the point.

Best regards, Kornelius.</description>
		<content:encoded><![CDATA[<p>Hi Michael,<br />
yes of course the extensibility is the goal! Of course you can just write a main method with the following lines and nothing else in the class:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Rengine engine = new Rengine(new String[] {&quot;--vanilla&quot;}, true, null); &nbsp; &nbsp; &nbsp;<br />
engine.eval(&quot;library(JavaGD)&quot;);<br />
engine.eval(&quot;JavaGD()&quot;);<br />
engine.eval(&quot;plot(rnorm(100))&quot;);</div></div>
<p>But that&#8217;s not the point.</p>
<p>Best regards, Kornelius.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using JavaGD in Java applications by Michael Theobald</title>
		<link>http://www.algorithm-forge.com/techblog/2010/07/using-javagd-in-java-applications/comment-page-1/#comment-3376</link>
		<dc:creator>Michael Theobald</dc:creator>
		<pubDate>Thu, 08 Sep 2011 19:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=316#comment-3376</guid>
		<description>Eliminating the import statements for the java.awt and javax.swing classes as well as the doOpen() and doClose() methods and the WindowListener code makes no difference in the function of this class as published.  Only the code in the main() method appears to be used.  Therefore, in my opinion, the code example could either be made more complete or made shorter.

It does work!
Michael</description>
		<content:encoded><![CDATA[<p>Eliminating the import statements for the java.awt and javax.swing classes as well as the doOpen() and doClose() methods and the WindowListener code makes no difference in the function of this class as published.  Only the code in the main() method appears to be used.  Therefore, in my opinion, the code example could either be made more complete or made shorter.</p>
<p>It does work!<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using JavaGD in Java applications by Kornelius Rohmeyer</title>
		<link>http://www.algorithm-forge.com/techblog/2010/07/using-javagd-in-java-applications/comment-page-1/#comment-2893</link>
		<dc:creator>Kornelius Rohmeyer</dc:creator>
		<pubDate>Thu, 14 Jul 2011 10:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=316#comment-2893</guid>
		<description>Dear Michelle, please try to add the directory where the file &lt;tt&gt;JavaGDExample.class&lt;/tt&gt; is found to the CLASSPATH. If you call &lt;tt&gt;java&lt;/tt&gt; directly in the directory, it is simply the following in the bash on unix machines:
&lt;tt&gt;export CLASSPATH=\$CLASSPATH:.&lt;/tt&gt;</description>
		<content:encoded><![CDATA[<p>Dear Michelle, please try to add the directory where the file <tt>JavaGDExample.class</tt> is found to the CLASSPATH. If you call <tt>java</tt> directly in the directory, it is simply the following in the bash on unix machines:<br />
<tt>export CLASSPATH=$CLASSPATH:.</tt></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Using JavaGD in Java applications by Michelle</title>
		<link>http://www.algorithm-forge.com/techblog/2010/07/using-javagd-in-java-applications/comment-page-1/#comment-2887</link>
		<dc:creator>Michelle</dc:creator>
		<pubDate>Wed, 13 Jul 2011 20:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=316#comment-2887</guid>
		<description>Hi there,

Thanks for the helpful post.  When I run your example, I get this error:

Exception in thread &quot;Thread-1&quot; java.lang.NoClassDefFoundError: JavaGDExample
	at org.rosuda.JRI.Rengine.rniEval(Native Method)
	at org.rosuda.JRI.Rengine.eval(Rengine.java:549)
	at org.rosuda.JRI.Rengine.eval(Rengine.java:527)
	at gov.pnl.mpv.views.JavaGDExample.main(JavaGDExample.java:42)
Caused by: java.lang.ClassNotFoundException: JavaGDExample
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
	... 4 more

Do you have any suggestions?</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Thanks for the helpful post.  When I run your example, I get this error:</p>
<p>Exception in thread &#8220;Thread-1&#8243; java.lang.NoClassDefFoundError: JavaGDExample<br />
	at org.rosuda.JRI.Rengine.rniEval(Native Method)<br />
	at org.rosuda.JRI.Rengine.eval(Rengine.java:549)<br />
	at org.rosuda.JRI.Rengine.eval(Rengine.java:527)<br />
	at gov.pnl.mpv.views.JavaGDExample.main(JavaGDExample.java:42)<br />
Caused by: java.lang.ClassNotFoundException: JavaGDExample<br />
	at java.net.URLClassLoader[latex cssclass="latex-inline"]1.run(URLClassLoader.java:202)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br />
	at sun.misc.Launcher[/latex]AppClassLoader.loadClass(Launcher.java:301)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)<br />
	&#8230; 4 more</p>
<p>Do you have any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux USB driver for the Arexx TL-500 – Part II by David</title>
		<link>http://www.algorithm-forge.com/techblog/2010/01/linux-usb-driver-for-the-arexx-tl-500-%e2%80%93-part-ii/comment-page-1/#comment-2087</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 23 Apr 2011 19:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=259#comment-2087</guid>
		<description>Hi

I have recently got a TL-300 and using this code as a base I have integrated it into my monitoring system. I use a combination of hardware - 1-wire, X10, power monitoring, UPS and now Arexx.

The code has been modded to send the values from the sensors using TCP/IP to a server process which holds all the values.

This is then interrogated to produce web based graphs. See the &lt;a href=&quot;www.while.org.uk/index.php/stats.html&quot; title=&quot;stats&quot; rel=&quot;nofollow&quot;&gt;website&lt;/a&gt; for more details. The temperature link shows 4 temperatures. Outside temp is from a 1-wire sensor, study is from the energy monitor and teh other two are the Arexx sensors.</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I have recently got a TL-300 and using this code as a base I have integrated it into my monitoring system. I use a combination of hardware &#8211; 1-wire, X10, power monitoring, UPS and now Arexx.</p>
<p>The code has been modded to send the values from the sensors using TCP/IP to a server process which holds all the values.</p>
<p>This is then interrogated to produce web based graphs. See the <a href="www.while.org.uk/index.php/stats.html" title="stats" rel="nofollow">website</a> for more details. The temperature link shows 4 temperatures. Outside temp is from a 1-wire sensor, study is from the energy monitor and teh other two are the Arexx sensors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux USB driver for the Arexx TL-500 – Part II by John</title>
		<link>http://www.algorithm-forge.com/techblog/2010/01/linux-usb-driver-for-the-arexx-tl-500-%e2%80%93-part-ii/comment-page-1/#comment-1937</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 12 Apr 2011 08:56:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=259#comment-1937</guid>
		<description>Thanks for the Arexx decoding and information. It has formed the basis of a kernel module which can be downloaded from &lt;a href=&quot;https://github.com/drystone/tlx00&quot; rel=&quot;nofollow&quot;&gt;git@github.com:drystone/tlx00.git&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the Arexx decoding and information. It has formed the basis of a kernel module which can be downloaded from <a href="https://github.com/drystone/tlx00" rel="nofollow"></a><a href="mailto:git@github.com">git@github.com</a>:drystone/tlx00.git</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux USB driver for the Arexx TL-500 – Part II by Sven Velt</title>
		<link>http://www.algorithm-forge.com/techblog/2010/01/linux-usb-driver-for-the-arexx-tl-500-%e2%80%93-part-ii/comment-page-1/#comment-1322</link>
		<dc:creator>Sven Velt</dc:creator>
		<pubDate>Sat, 19 Feb 2011 16:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=259#comment-1322</guid>
		<description>Hi!

Negative temperatures are working now. See m68k&#039;s post.

But there&#039;s another problem: Humidity over 60%. See http://www.arexx.com/forum/viewtopic.php?f=43&amp;t=1324 (german) for a longer post.

Solution: Change formula for humidity.

Replace

0.6 + value * 0.03328

with

0.698847572766711 + 0.0322868348833273*value + 0.00000175838509577984*value*value - 0.000000000764068120532725*value*value*value

Bye

Sven</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Negative temperatures are working now. See m68k&#8217;s post.</p>
<p>But there&#8217;s another problem: Humidity over 60%. See <a href="http://www.arexx.com/forum/viewtopic.php?f=43&#038;t=1324" rel="nofollow">http://www.arexx.com/forum/viewtopic.php?f=43&#038;t=1324</a> (german) for a longer post.</p>
<p>Solution: Change formula for humidity.</p>
<p>Replace</p>
<p>0.6 + value * 0.03328</p>
<p>with</p>
<p>0.698847572766711 + 0.0322868348833273*value + 0.00000175838509577984*value*value &#8211; 0.000000000764068120532725*value*value*value</p>
<p>Bye</p>
<p>Sven</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux USB driver for the Arexx TL-500 – Part II by m68k</title>
		<link>http://www.algorithm-forge.com/techblog/2010/01/linux-usb-driver-for-the-arexx-tl-500-%e2%80%93-part-ii/comment-page-1/#comment-755</link>
		<dc:creator>m68k</dc:creator>
		<pubDate>Tue, 07 Dec 2010 16:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=259#comment-755</guid>
		<description>According to http://www.arexx.com/forum/viewtopic.php?f=43&amp;t=1060 the conversion from raw value to degrees Celsius is supposed to be T = ((short int)(raw_value)) * 0.0078125. 

The cast to a signed 16 bit int is important for handling temperatures below zero.

Sensor type can be detected as (0xf000 &amp; sensor_id) which gives 0x2000 for temperature and 0x4000 for humidity sensors.

The simple logging application described at http://rndhax.blogspot.com/ has been updated with these changes.</description>
		<content:encoded><![CDATA[<p>According to <a href="http://www.arexx.com/forum/viewtopic.php?f=43&#038;t=1060" rel="nofollow">http://www.arexx.com/forum/viewtopic.php?f=43&#038;t=1060</a> the conversion from raw value to degrees Celsius is supposed to be T = ((short int)(raw_value)) * 0.0078125. </p>
<p>The cast to a signed 16 bit int is important for handling temperatures below zero.</p>
<p>Sensor type can be detected as (0xf000 &amp; sensor_id) which gives 0&#215;2000 for temperature and 0&#215;4000 for humidity sensors.</p>
<p>The simple logging application described at <a href="http://rndhax.blogspot.com/" rel="nofollow">http://rndhax.blogspot.com/</a> has been updated with these changes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Linux USB driver for the Arexx TL-500 – Part II by Sven Velt</title>
		<link>http://www.algorithm-forge.com/techblog/2010/01/linux-usb-driver-for-the-arexx-tl-500-%e2%80%93-part-ii/comment-page-1/#comment-692</link>
		<dc:creator>Sven Velt</dc:creator>
		<pubDate>Fri, 26 Nov 2010 08:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=259#comment-692</guid>
		<description>First: Thank you for your great work!

&quot;Further investigation shows us that we can calculate the measurements [...]  temperature sensors TL-3TSN by (Rawdata * 0.0078) °C. &quot;

Well, that seems to be true for positive values - but not for negative. This night my TL-3TSN recorded a stalled raw value of &quot;7&quot; for about 5 hours. Other temperature sensors got a temperature of -2.0C.

The specs of TL-3TSN tell us that they work from -30C to +80C... so there must be an other bit/byte which indicates negative temperatures. I&#039;ll now active a dump data file in my daemon - maybe it could help finding the missing informations. :)

Bye &amp; THX again for your work so far!

Sven</description>
		<content:encoded><![CDATA[<p>First: Thank you for your great work!</p>
<p>&#8220;Further investigation shows us that we can calculate the measurements [...]  temperature sensors TL-3TSN by (Rawdata * 0.0078) °C. &#8221;</p>
<p>Well, that seems to be true for positive values &#8211; but not for negative. This night my TL-3TSN recorded a stalled raw value of &#8220;7&#8243; for about 5 hours. Other temperature sensors got a temperature of -2.0C.</p>
<p>The specs of TL-3TSN tell us that they work from -30C to +80C&#8230; so there must be an other bit/byte which indicates negative temperatures. I&#8217;ll now active a dump data file in my daemon &#8211; maybe it could help finding the missing informations. <img src='http://www.algorithm-forge.com/techblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Bye &amp; THX again for your work so far!</p>
<p>Sven</p>
]]></content:encoded>
	</item>
</channel>
</rss>

