<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Programming stuff: Bash, Linux, SQL and Java</title>
	<link>http://bash.editia.info</link>
	<description>Programming Linux Java Bash Perl performance SQL</description>
	<pubDate>Sat, 22 Nov 2008 07:23:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>Comment on bomberman javascript multiplayer by gmunteanu</title>
		<link>http://bash.editia.info/bomberman-javascript-multiplayer~bash-shell~24.html#comment-932</link>
		<pubDate>Wed, 19 Nov 2008 08:24:33 +0000</pubDate>
		<guid>http://bash.editia.info/bomberman-javascript-multiplayer~bash-shell~24.html#comment-932</guid>
					<description>alex, thanks for the questions.
here are the responses:
1. no, not all the rules, only the important ones. for now it plays the role of transmitting info from player to player, and that's it. it will also keep the history of the games played, so you can re-play an old game [view only mode].
2. yes, the server disemminates that info by PUSHING this info to the others. when the clients receive that key event, the js code takes control and moves/stops the respective player accordingly.
3. no, i do not. there is a paper here related to carmack's network code. i try to follow that. it is based suited for web-based multiplayer games in my opinion. here is the link http://trac.bookofhook.com/bookofhook/trac.cgi/wiki/Quake3Networking. there is much to do on this issue, i intend to make it as a separate lib so i/others can use it in other game projects too.
4. right now it jumps, but yes , what you say is the way to go.</description>
		<content:encoded><![CDATA[<p>alex, thanks for the questions.<br />
here are the responses:<br />
1. no, not all the rules, only the important ones. for now it plays the role of transmitting info from player to player, and that&#8217;s it. it will also keep the history of the games played, so you can re-play an old game [view only mode].<br />
2. yes, the server disemminates that info by PUSHING this info to the others. when the clients receive that key event, the js code takes control and moves/stops the respective player accordingly.<br />
3. no, i do not. there is a paper here related to carmack&#8217;s network code. i try to follow that. it is based suited for web-based multiplayer games in my opinion. here is the link <a href='http://trac.bookofhook.com/bookofhook/trac.cgi/wiki/Quake3Networking.' rel='nofollow'>http://trac.bookofhook.com/bookofhook/trac.cgi/wiki/Quake3Networking.</a> there is much to do on this issue, i intend to make it as a separate lib so i/others can use it in other game projects too.<br />
4. right now it jumps, but yes , what you say is the way to go.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on my first gnu/gpl project - a game in javascript by gmunteanu</title>
		<link>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-931</link>
		<pubDate>Wed, 19 Nov 2008 08:14:29 +0000</pubDate>
		<guid>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-931</guid>
					<description>well, i will email you about this, and if i see it is ok, i will add it.
also , if you would like to get into the project i will give you svn commit access to the server.</description>
		<content:encoded><![CDATA[<p>well, i will email you about this, and if i see it is ok, i will add it.<br />
also , if you would like to get into the project i will give you svn commit access to the server.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on my first gnu/gpl project - a game in javascript by Alex Gladwell</title>
		<link>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-930</link>
		<pubDate>Wed, 19 Nov 2008 00:08:10 +0000</pubDate>
		<guid>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-930</guid>
					<description>I've got a quick code fix for the hero.js which will make the wall collision a bit more smoother when you walk around walls.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve got a quick code fix for the hero.js which will make the wall collision a bit more smoother when you walk around walls.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on bomberman javascript multiplayer by Alex Gladwell</title>
		<link>http://bash.editia.info/bomberman-javascript-multiplayer~bash-shell~24.html#comment-929</link>
		<pubDate>Tue, 18 Nov 2008 23:43:30 +0000</pubDate>
		<guid>http://bash.editia.info/bomberman-javascript-multiplayer~bash-shell~24.html#comment-929</guid>
					<description>Very interesting project. Keep updating the progress and good job so far!!

Few queries, 
1. the server will be handling all the rules? (player 1 died etc)
2. when client sends keydown/keyrelease events (and grid co-ords/valocity) to the server, the server then disemminates these to all the other clients. I presume the clients would then trigger that player to continously walk until it received a key released command.
3. Are you using 'messaged received' notes backs to the server (overhead in traffic but ensures the server that the message was received).
4. oh and finally when a client looses connection will they just jump to their new location or will you blend the transittion in (e.g. make the client move the character at x2 rate until they're fully synced with the server again)</description>
		<content:encoded><![CDATA[<p>Very interesting project. Keep updating the progress and good job so far!!</p>
<p>Few queries,<br />
1. the server will be handling all the rules? (player 1 died etc)<br />
2. when client sends keydown/keyrelease events (and grid co-ords/valocity) to the server, the server then disemminates these to all the other clients. I presume the clients would then trigger that player to continously walk until it received a key released command.<br />
3. Are you using &#8216;messaged received&#8217; notes backs to the server (overhead in traffic but ensures the server that the message was received).<br />
4. oh and finally when a client looses connection will they just jump to their new location or will you blend the transittion in (e.g. make the client move the character at x2 rate until they&#8217;re fully synced with the server again)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on my first gnu/gpl project - a game in javascript by Mihai Brehar</title>
		<link>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-925</link>
		<pubDate>Mon, 29 Sep 2008 19:08:00 +0000</pubDate>
		<guid>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-925</guid>
					<description>Interesting project. Everyday I'm surprized by the power of JS.
Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Interesting project. Everyday I&#8217;m surprized by the power of JS.<br />
Keep up the good work.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on my first gnu/gpl project - a game in javascript by gmunteanu</title>
		<link>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-767</link>
		<pubDate>Fri, 04 Jul 2008 18:38:56 +0000</pubDate>
		<guid>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-767</guid>
					<description>for the moment no, but i take this into consideration and add an issue to the project so we can solve this.
thanks for reporting the first "bug" .</description>
		<content:encoded><![CDATA[<p>for the moment no, but i take this into consideration and add an issue to the project so we can solve this.<br />
thanks for reporting the first &#8220;bug&#8221; .
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on my first gnu/gpl project - a game in javascript by Cosmin</title>
		<link>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-759</link>
		<pubDate>Fri, 04 Jul 2008 17:02:37 +0000</pubDate>
		<guid>http://bash.editia.info/my-first-gnugpl-project-a-game-in-javascript~javascript~23.html#comment-759</guid>
					<description>Is there another key besides space for planting a bomb? At least in Firefox, space also scrolls down.</description>
		<content:encoded><![CDATA[<p>Is there another key besides space for planting a bomb? At least in Firefox, space also scrolls down.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on struts and continuations in  jetty by gmunteanu</title>
		<link>http://bash.editia.info/struts-and-continuations-in-jetty~java~22.html#comment-468</link>
		<pubDate>Sat, 28 Jun 2008 09:14:06 +0000</pubDate>
		<guid>http://bash.editia.info/struts-and-continuations-in-jetty~java~22.html#comment-468</guid>
					<description>&lt;p&gt;after a post on jetty-users' mailinglist: http://www.nabble.com/struts-and-jetty-continuations-td17536862.html , a bug report was posted : http://jira.codehaus.org/browse/JETTY-588 , and they say this has been fixed. so no need to do this hack any more.&lt;br /&gt; another framework that needs a little hack in order to make jetty's continuations work is RIFE.&lt;br /&gt; you need to put this line in their config.xml file:&lt;/p&gt;
&#60;param name=&#34;PRETTY_ENGINE_EXCEPTIONS&#34; &#62;false&#60;/param&#62; &lt;br /&gt;
&lt;p&gt;and it will work &lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>after a post on jetty-users&#8217; mailinglist: <a href='http://www.nabble.com/struts-and-jetty-continuations-td17536862.html' rel='nofollow'>http://www.nabble.com/struts-and-jetty-continuations-td17536862.html</a> , a bug report was posted : <a href='http://jira.codehaus.org/browse/JETTY-588' rel='nofollow'>http://jira.codehaus.org/browse/JETTY-588</a> , and they say this has been fixed. so no need to do this hack any more.<br /> another framework that needs a little hack in order to make jetty&#8217;s continuations work is RIFE.<br /> you need to put this line in their config.xml file:</p>
<p>&lt;param name=&quot;PRETTY_ENGINE_EXCEPTIONS&quot; &gt;false&lt;/param&gt; </p>
<p>and it will work </p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on mysql analyze and optimize from bash by jgabios</title>
		<link>http://bash.editia.info/mysql-analyze-and-optimize-from-bash~bash-shell~9.html#comment-437</link>
		<pubDate>Wed, 16 Apr 2008 12:57:51 +0000</pubDate>
		<guid>http://bash.editia.info/mysql-analyze-and-optimize-from-bash~bash-shell~9.html#comment-437</guid>
					<description>&lt;p&gt;a better one , actually a more complete one is:&lt;/p&gt;
&lt;p&gt;#!/bin/sh&lt;/p&gt;
&lt;p&gt;for db in $(mysql -u root -pPASS -e 'show databases' &#124; awk '!/Database/ {print $1}'); do&lt;br /&gt;         echo &#34;Mysql DB: $db is optimizing ...&#34;&lt;br /&gt;         for table in $(mysql -u root -pPASS -D $db -e 'show tables' &#124; awk '!/Tables/ {print $1}'); do&lt;br /&gt;                 mysql -s -s -u root -pPASS -D $db -e &#34;analyze table $table&#34;&lt;br /&gt;                 mysql -s -s -u root -pPASS -D $db -e &#34;optimize table $table&#34;&lt;br /&gt;                 echo &#34; $table -&#62; optimized&#34;&lt;br /&gt;         done&lt;br /&gt;         echo &#34;Mysql DB $db optimization over!&#34;&lt;br /&gt;         echo &#34;-------------------------------&#34;&lt;br /&gt;         echo &#34;-------------------------------&#34;&lt;br /&gt; done&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>a better one , actually a more complete one is:</p>
<p>#!/bin/sh</p>
<p>for db in $(mysql -u root -pPASS -e &#8217;show databases&#8217; | awk &#8216;!/Database/ {print $1}&#8217;); do<br />         echo &quot;Mysql DB: $db is optimizing &#8230;&quot;<br />         for table in $(mysql -u root -pPASS -D $db -e &#8217;show tables&#8217; | awk &#8216;!/Tables/ {print $1}&#8217;); do<br />                 mysql -s -s -u root -pPASS -D $db -e &quot;analyze table $table&quot;<br />                 mysql -s -s -u root -pPASS -D $db -e &quot;optimize table $table&quot;<br />                 echo &quot; $table -&gt; optimized&quot;<br />         done<br />         echo &quot;Mysql DB $db optimization over!&quot;<br />         echo &quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&quot;<br />         echo &quot;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&quot;<br /> done</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on OR SQL operator in mysql and slow query by BlackNight</title>
		<link>http://bash.editia.info/or-sql-opertaor-in-mysql-and-slow-query~sql~17.html#comment-429</link>
		<pubDate>Tue, 29 Jan 2008 17:21:35 +0000</pubDate>
		<guid>http://bash.editia.info/or-sql-opertaor-in-mysql-and-slow-query~sql~17.html#comment-429</guid>
					<description>Cool, I'll try this out.</description>
		<content:encoded><![CDATA[<p>Cool, I&#8217;ll try this out.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
