<?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 on: GNL.tv</title>
	<atom:link href="http://www.dikant.de/gnltv/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dikant.de</link>
	<description>Personal blog of Peter Dikant</description>
	<lastBuildDate>Sat, 04 Feb 2012 13:19:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Brian</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-19818</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Mon, 10 Oct 2011 06:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-19818</guid>
		<description>The proxy is an executable file and needs to be placed on your server, if you are on shared hosting you most likely will not be able to do this.</description>
		<content:encoded><![CDATA[<p>The proxy is an executable file and needs to be placed on your server, if you are on shared hosting you most likely will not be able to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raz Rips 24</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-18872</link>
		<dc:creator>Raz Rips 24</dc:creator>
		<pubDate>Tue, 30 Aug 2011 07:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-18872</guid>
		<description>Hello guys ive been trying to read all this info on the program...i have a php nuke evo 2.0.7 and a nascar racing 2003 server...could some one point me in the right direction to get this running...my opinion the best thing to happen to nr2003 and i would love to have this for our league...ty in advance...you can email me or jump on our teamspeak 2 if you would like...thank you all....god bless</description>
		<content:encoded><![CDATA[<p>Hello guys ive been trying to read all this info on the program&#8230;i have a php nuke evo 2.0.7 and a nascar racing 2003 server&#8230;could some one point me in the right direction to get this running&#8230;my opinion the best thing to happen to nr2003 and i would love to have this for our league&#8230;ty in advance&#8230;you can email me or jump on our teamspeak 2 if you would like&#8230;thank you all&#8230;.god bless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bret</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17899</link>
		<dc:creator>Bret</dc:creator>
		<pubDate>Sun, 17 Jul 2011 05:33:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17899</guid>
		<description>How do I get a proxy on a web server. I have very little knowledge of this.</description>
		<content:encoded><![CDATA[<p>How do I get a proxy on a web server. I have very little knowledge of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17459</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 19 Jun 2011 01:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17459</guid>
		<description>You must follow the instructions to fix the xmlrpc.php for PHP 5.

You must add tracks to the config.inc.php properly, this is one that takes some trial and error, the applet gets the track name from the data coming from GNLtv.exe which is read from NR2003.exe, so whatever the track maker put in the track.ini file as the track name, that gets fed through and the applet looks for an entry in the config.inc.php that matches that name in the $tracks array, then looks for the svg filename in that array.

My entry for Five Flags is this:
&lt;code&gt;$tracks[&#039;Five Flags J9&#039;]			= array(&#039;name&#039; =&gt; &#039;Five Flags Speedway&#039;, &#039;file&#039; =&gt; &#039;five_flags_j9.svg&#039;, &#039;length&#039; =&gt; 0.500);&lt;/code&gt;

Note that the array key is different than the track name in the &quot;name&quot; field of that array.

Probably the easiest way to get that right is look at the error when it fails to load a track, it will say that it can&#039;t find a track named whatever it is looking for.

Also I think you may want to start things in this order:
1) start GNLtv.exe on the PC that will run the NR2003.exe that will be providing the race data.
2) start NR2003.exe
3) start the gnltvproxy on the web server

If the proxy is started but GNLtv.exe is not running on the PC that the proxy is trying to find it on, I believe it is supposed to wait 5 minutes and then try again.

I am not sure if it does try again successfully or not, but if you were to start the proxy without having GNLtv.exe running on the PC that the proxy is connecting to, and then you try to open the Java web applet and get an error, then you remember that you need to start up GNLtv.exe and NR2003, then you go back to the applet and it still doesn&#039;t work because you haven&#039;t waited 5 minutes for the proxy to try again, and you think nothing works.

Make sure you have the IP addresses and port numbers correct, if you use the proxy you must change the streaming port setting in config.inc.php to 9000 instead of the default 8001 and you must specify when starting the proxy what port to listen on(9000) and what IP and port to get it&#039;s data from(the PC that GNLtv.exe is running on)

My command to start the proxy on my Linux web server is:
&lt;code&gt;./gnltvproxy -p 9000 192.168.33.96:8001&lt;/code&gt;

That tells the proxy to accept connections coming in on port 9000 and that the GNLtv.exe is running on the PC at IP address 192.168.33.96 port 8001.

You must also make sure that firewalls on the PC running the GNLtv.exe will accept connections coming in on ports 8000 and 8001, and you must make sure that your web server will allow incoming connections on port 9000 for the streaming data to the applet.

And finally on the networking side of things, if there is a router involved, you will want to make sure the router is forwarding the proper ports to the proper computer.

For example my Windows PC that runs the NR2003.exe and GNLtv.exe, and my Linux web server that serves the stats pages and the Java web app are both behind my router, so if I want to allow someone from the internet to view the race stats on my web server I must be forwarding incoming port 80 traffic to my web server, and if I want them to be able to use the java web app, then my router must also forward incoming port 9000 traffic to my web server, where it will connect to the proxy, the gnltvproxy application running on the web server.


End user on internet  ---&gt;  (port 9000)web server running proxy  ---&gt; (port 8001) PC running GNLtv.exe/NR2003

OR

End user on internet  ---&gt;  (port 8001)PC running GNLtv.exe and NR2003 and web server

Remember to think of the race stats web pages as a completely different thing than the Java web applet, it is!

It uses different data and different methods to retrieve it, the GNLtv.exe application creates two servers:
1) tvserver on port 8000 accepts HTTP requests from the race stats php application and returns an XLM document to the php applications running on the web server.
2) streaming data port on port 8001 which is either read by the Java web app OR by the gnltvproxy application running on the web server.

It&#039;s important to understand that when the end user loads the Java web app from a web server, that Java app can ONLY make a connection back TO that same web server, so if GNLtv.exe is NOT running ON that web server, then the proxy MUST be used.

And if you use the proxy, your Java web app must then be directed via settings in the config.inc.php to connect to port 9000 instead of port 8001 (assuming you started the proxy with 9000 as the listening port)

Hope that helps.</description>
		<content:encoded><![CDATA[<p>You must follow the instructions to fix the xmlrpc.php for PHP 5.</p>
<p>You must add tracks to the config.inc.php properly, this is one that takes some trial and error, the applet gets the track name from the data coming from GNLtv.exe which is read from NR2003.exe, so whatever the track maker put in the track.ini file as the track name, that gets fed through and the applet looks for an entry in the config.inc.php that matches that name in the $tracks array, then looks for the svg filename in that array.</p>
<p>My entry for Five Flags is this:<br />
<code>$tracks['Five Flags J9']			= array('name' =&gt; 'Five Flags Speedway', 'file' =&gt; 'five_flags_j9.svg', 'length' =&gt; 0.500);</code></p>
<p>Note that the array key is different than the track name in the &#8220;name&#8221; field of that array.</p>
<p>Probably the easiest way to get that right is look at the error when it fails to load a track, it will say that it can&#8217;t find a track named whatever it is looking for.</p>
<p>Also I think you may want to start things in this order:<br />
1) start GNLtv.exe on the PC that will run the NR2003.exe that will be providing the race data.<br />
2) start NR2003.exe<br />
3) start the gnltvproxy on the web server</p>
<p>If the proxy is started but GNLtv.exe is not running on the PC that the proxy is trying to find it on, I believe it is supposed to wait 5 minutes and then try again.</p>
<p>I am not sure if it does try again successfully or not, but if you were to start the proxy without having GNLtv.exe running on the PC that the proxy is connecting to, and then you try to open the Java web applet and get an error, then you remember that you need to start up GNLtv.exe and NR2003, then you go back to the applet and it still doesn&#8217;t work because you haven&#8217;t waited 5 minutes for the proxy to try again, and you think nothing works.</p>
<p>Make sure you have the IP addresses and port numbers correct, if you use the proxy you must change the streaming port setting in config.inc.php to 9000 instead of the default 8001 and you must specify when starting the proxy what port to listen on(9000) and what IP and port to get it&#8217;s data from(the PC that GNLtv.exe is running on)</p>
<p>My command to start the proxy on my Linux web server is:<br />
<code>./gnltvproxy -p 9000 192.168.33.96:8001</code></p>
<p>That tells the proxy to accept connections coming in on port 9000 and that the GNLtv.exe is running on the PC at IP address 192.168.33.96 port 8001.</p>
<p>You must also make sure that firewalls on the PC running the GNLtv.exe will accept connections coming in on ports 8000 and 8001, and you must make sure that your web server will allow incoming connections on port 9000 for the streaming data to the applet.</p>
<p>And finally on the networking side of things, if there is a router involved, you will want to make sure the router is forwarding the proper ports to the proper computer.</p>
<p>For example my Windows PC that runs the NR2003.exe and GNLtv.exe, and my Linux web server that serves the stats pages and the Java web app are both behind my router, so if I want to allow someone from the internet to view the race stats on my web server I must be forwarding incoming port 80 traffic to my web server, and if I want them to be able to use the java web app, then my router must also forward incoming port 9000 traffic to my web server, where it will connect to the proxy, the gnltvproxy application running on the web server.</p>
<p>End user on internet  &#8212;&gt;  (port 9000)web server running proxy  &#8212;&gt; (port 8001) PC running GNLtv.exe/NR2003</p>
<p>OR</p>
<p>End user on internet  &#8212;&gt;  (port 8001)PC running GNLtv.exe and NR2003 and web server</p>
<p>Remember to think of the race stats web pages as a completely different thing than the Java web applet, it is!</p>
<p>It uses different data and different methods to retrieve it, the GNLtv.exe application creates two servers:<br />
1) tvserver on port 8000 accepts HTTP requests from the race stats php application and returns an XLM document to the php applications running on the web server.<br />
2) streaming data port on port 8001 which is either read by the Java web app OR by the gnltvproxy application running on the web server.</p>
<p>It&#8217;s important to understand that when the end user loads the Java web app from a web server, that Java app can ONLY make a connection back TO that same web server, so if GNLtv.exe is NOT running ON that web server, then the proxy MUST be used.</p>
<p>And if you use the proxy, your Java web app must then be directed via settings in the config.inc.php to connect to port 9000 instead of port 8001 (assuming you started the proxy with 9000 as the listening port)</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17268</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Sat, 04 Jun 2011 20:05:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17268</guid>
		<description>A step by step guide would be really nice for this. I can honestly say I have spent a ton of time trying to figure this stuff out, but nothing. =( If anyone has any guides I could use that would be great!</description>
		<content:encoded><![CDATA[<p>A step by step guide would be really nice for this. I can honestly say I have spent a ton of time trying to figure this stuff out, but nothing. =( If anyone has any guides I could use that would be great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17082</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 29 May 2011 08:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17082</guid>
		<description>Figured it out, was focused on the input to the decoder not the output, had charset set all over the place except when I converted the decoded bytes into a Java string... 

Now it works...</description>
		<content:encoded><![CDATA[<p>Figured it out, was focused on the input to the decoder not the output, had charset set all over the place except when I converted the decoded bytes into a Java string&#8230; </p>
<p>Now it works&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17081</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sun, 29 May 2011 08:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17081</guid>
		<description>Base64decode just isn&#039;t working for me in Java.

The data I get from the server is fine, I can decode it in PHP...

tvserver-&gt;Java-&gt;print to Java console-&gt;copy/paste to PHP-&gt;base64decode-&gt;write to file-&gt;read file in Java-&gt;gunzip works

tvserver-&gt;Java-&gt;Java base64decode-&gt;gunzip no work because the decode isn&#039;t right, when comparing the PHP decoded and Java decoded, the Java decoded string has a whole bunch of extra ? characters in it, and ? in place of other chars.

Figured I would have this done this weekend but Google has been no help :(</description>
		<content:encoded><![CDATA[<p>Base64decode just isn&#8217;t working for me in Java.</p>
<p>The data I get from the server is fine, I can decode it in PHP&#8230;</p>
<p>tvserver-&gt;Java-&gt;print to Java console-&gt;copy/paste to PHP-&gt;base64decode-&gt;write to file-&gt;read file in Java-&gt;gunzip works</p>
<p>tvserver-&gt;Java-&gt;Java base64decode-&gt;gunzip no work because the decode isn&#8217;t right, when comparing the PHP decoded and Java decoded, the Java decoded string has a whole bunch of extra ? characters in it, and ? in place of other chars.</p>
<p>Figured I would have this done this weekend but Google has been no help <img src='http://www.dikant.de/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17076</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sat, 28 May 2011 14:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17076</guid>
		<description>I think you are on the right track. Using the XMLRPC data is a good choice.

Send me a note once your application is finished and I will put a link to your website on this page.</description>
		<content:encoded><![CDATA[<p>I think you are on the right track. Using the XMLRPC data is a good choice.</p>
<p>Send me a note once your application is finished and I will put a link to your website on this page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17072</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Sat, 28 May 2011 07:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17072</guid>
		<description>I am not a trained programmer, never taken a class, anything I know is self taught reading books and programming as a hobby so some simple things are not so simple for me :)

I could see in your source where the messages are built and it looks like it would be easy enough to add the last lap value to the end of that message and additionally add the read in the Java DataCollector, but then I have to find my Visual Studio Express 2005 and get it installed on my current PC so I can compile the new executable.

I thought it might just be easier to send a request to tvserver port since it already contains that data and I wouldn&#039;t have to mess with the main GNLtv app.

It took me a while to realize the encoding needed but I do now have a Java app that can successfully make the same request the PHP function XMLRPC_request makes, and I get back an intact xml response =)

Now I just need to parse out the &quot;compressedData&quot; element, decode, unzip, and parse the result and I have all my data.

Kind of the long way around the barn, but I think if I want to share this with others when I am done then I think sticking with Java is the best way for me to go.

It will be a standalone Java desktop app, and actually thinking about it now it will be a completely new Java app since I won&#039;t be using the data collector or any of the animation and track overlay drawing, I will use the xml parser classes of course but other than displaying the data in a frame I just need to make a simple driver class to store the driver data in and make a few calculations.

=)</description>
		<content:encoded><![CDATA[<p>I am not a trained programmer, never taken a class, anything I know is self taught reading books and programming as a hobby so some simple things are not so simple for me <img src='http://www.dikant.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I could see in your source where the messages are built and it looks like it would be easy enough to add the last lap value to the end of that message and additionally add the read in the Java DataCollector, but then I have to find my Visual Studio Express 2005 and get it installed on my current PC so I can compile the new executable.</p>
<p>I thought it might just be easier to send a request to tvserver port since it already contains that data and I wouldn&#8217;t have to mess with the main GNLtv app.</p>
<p>It took me a while to realize the encoding needed but I do now have a Java app that can successfully make the same request the PHP function XMLRPC_request makes, and I get back an intact xml response =)</p>
<p>Now I just need to parse out the &#8220;compressedData&#8221; element, decode, unzip, and parse the result and I have all my data.</p>
<p>Kind of the long way around the barn, but I think if I want to share this with others when I am done then I think sticking with Java is the best way for me to go.</p>
<p>It will be a standalone Java desktop app, and actually thinking about it now it will be a completely new Java app since I won&#8217;t be using the data collector or any of the animation and track overlay drawing, I will use the xml parser classes of course but other than displaying the data in a frame I just need to make a simple driver class to store the driver data in and make a few calculations.</p>
<p>=)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.dikant.de/gnltv/comment-page-7/#comment-17056</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Fri, 27 May 2011 09:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dikant.de/gnltv/#comment-17056</guid>
		<description>I guess you are right. This kind of data is not sent via the stream. You would need to modify the GNLtv application itself to include it in the data stream.</description>
		<content:encoded><![CDATA[<p>I guess you are right. This kind of data is not sent via the stream. You would need to modify the GNLtv application itself to include it in the data stream.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

