<?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: A Simple Experiment with Hookbox</title>
	<atom:link href="http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/</link>
	<description>I am (the other) Shaq and these are my two bits ;)</description>
	<lastBuildDate>Sun, 13 May 2012 01:50:49 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: javascript</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-645</link>
		<dc:creator>javascript</dc:creator>
		<pubDate>Sun, 10 Apr 2011 09:26:04 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-645</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;A Simple Experiment with Hookbox:  http://bit.ly/gLWZlp&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">A Simple Experiment with Hookbox:  <a href="http://bit.ly/gLWZlp" rel="nofollow">http://bit.ly/gLWZlp</a></span></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salman Haq</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-177</link>
		<dc:creator>Salman Haq</dc:creator>
		<pubDate>Wed, 10 Nov 2010 19:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-177</guid>
		<description>The git repo has the most up to date code for the examples. My post has not been updated since the &#039;rest/publish&#039; -&gt; &#039;web/publish&#039; change was made.</description>
		<content:encoded><![CDATA[<p>The git repo has the most up to date code for the examples. My post has not been updated since the &#8216;rest/publish&#8217; -> &#8216;web/publish&#8217; change was made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Ganapolsky</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-176</link>
		<dc:creator>Igor Ganapolsky</dc:creator>
		<pubDate>Wed, 10 Nov 2010 19:33:34 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-176</guid>
		<description>Here is the fix:
in producer.py instead of &#039;rest/publish&#039; use &#039;web/publish&#039;, and instead of &#039;secret&#039; use &#039;security_token&#039;.  The latest hookbox api has differences from the one that this tutorial was written off of.</description>
		<content:encoded><![CDATA[<p>Here is the fix:<br />
in producer.py instead of &#8216;rest/publish&#8217; use &#8216;web/publish&#8217;, and instead of &#8216;secret&#8217; use &#8216;security_token&#8217;.  The latest hookbox api has differences from the one that this tutorial was written off of.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Igor Ganapolsky</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-175</link>
		<dc:creator>Igor Ganapolsky</dc:creator>
		<pubDate>Wed, 10 Nov 2010 18:21:49 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-175</guid>
		<description>I am having the same issue as Steve Hermes, except I am running mine on Ubuntu Linux.  I tried running hookbox on ports 2974 and 2975, and getting the same errors.  However, when I do netstat -nltp, I see that python processes (i.e. hookbox) are listening on those ports.  So that means that there is something else going on...</description>
		<content:encoded><![CDATA[<p>I am having the same issue as Steve Hermes, except I am running mine on Ubuntu Linux.  I tried running hookbox on ports 2974 and 2975, and getting the same errors.  However, when I do netstat -nltp, I see that python processes (i.e. hookbox) are listening on those ports.  So that means that there is something else going on&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-125</link>
		<dc:creator>Lance</dc:creator>
		<pubDate>Mon, 23 Aug 2010 02:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-125</guid>
		<description>Hi Salman,

That worked great adding the js_src file!

Thanks,

lance</description>
		<content:encoded><![CDATA[<p>Hi Salman,</p>
<p>That worked great adding the js_src file!</p>
<p>Thanks,</p>
<p>lance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salman Haq</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-121</link>
		<dc:creator>Salman Haq</dc:creator>
		<pubDate>Mon, 16 Aug 2010 15:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-121</guid>
		<description>Yes, that traceback is consistent with Hookbox not listening on the port it is supposed to. I&#039;ve never encountered this issue before and wouldn&#039;t know how to go about debugging this on Windows. However, I suspect that it&#039;s a firewall issue and you may have to white list hookbox on port 2974. Try the hookbox mailing list on google groups so that you can get better feedback.</description>
		<content:encoded><![CDATA[<p>Yes, that traceback is consistent with Hookbox not listening on the port it is supposed to. I&#8217;ve never encountered this issue before and wouldn&#8217;t know how to go about debugging this on Windows. However, I suspect that it&#8217;s a firewall issue and you may have to white list hookbox on port 2974. Try the hookbox mailing list on google groups so that you can get better feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve hermes</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-120</link>
		<dc:creator>steve hermes</dc:creator>
		<pubDate>Mon, 16 Aug 2010 15:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-120</guid>
		<description>Nice work (I think once I get it running)
I&#039;m running Win 7 (evil I know)

I did the hookbox install and had the js_src issue. I just copied it into place.

Seems hb is not listening on 2974, but netstat shows it is. So rest/publish does not exist. I&#039;m stuck.

Ran hookbox:  I get nothing in the error or access log
 (even if I paste http://localhost:8080/rest/publish into the browser, just get broken link)

hookbox -E err.txt -A access.txt -d -r altoids -p 2974 --cbh
ost=127.0.0.1 --cbport=8080 --cbpath=
2010-08-16 09:35:49,454 - hookbox - INFO - Listening to hookbox on http://0.0.0.
0:2974

When I access http://localhost:8080 from Chrome (from FF 200 response) I get:
Just displays   &quot;Scope Demo  Frames Per Second:&quot;
python webapp.py
hazelt.no-ip.org - - [16/Aug/2010 09:06:28] &quot;GET / HTTP/1.1&quot; 304 -

Run producer and ......
python producer.py
You said the url is:   http://127.0.0.1:2974/rest/publish (I added print)
Traceback (most recent call last):
  File &quot;producer.py&quot;, line 77, in 
    main()
  File &quot;producer.py&quot;, line 68, in main
    resp = urllib2.urlopen(req)
  File &quot;Z:\Python26\lib\urllib2.py&quot;, line 124, in urlopen
    return _opener.open(url, data, timeout)
  File &quot;Z:\Python26\lib\urllib2.py&quot;, line 395, in open
    response = meth(req, response)
  File &quot;Z:\Python26\lib\urllib2.py&quot;, line 508, in http_response
    &#039;http&#039;, request, response, code, msg, hdrs)
  File &quot;Z:\Python26\lib\urllib2.py&quot;, line 433, in error
    return self._call_chain(*args)
  File &quot;Z:\Python26\lib\urllib2.py&quot;, line 367, in _call_chain
    result = func(*args)
  File &quot;Z:\Python26\lib\urllib2.py&quot;, line 516, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found</description>
		<content:encoded><![CDATA[<p>Nice work (I think once I get it running)<br />
I&#8217;m running Win 7 (evil I know)</p>
<p>I did the hookbox install and had the js_src issue. I just copied it into place.</p>
<p>Seems hb is not listening on 2974, but netstat shows it is. So rest/publish does not exist. I&#8217;m stuck.</p>
<p>Ran hookbox:  I get nothing in the error or access log<br />
 (even if I paste <a href="http://localhost:8080/rest/publish" rel="nofollow">http://localhost:8080/rest/publish</a> into the browser, just get broken link)</p>
<p>hookbox -E err.txt -A access.txt -d -r altoids -p 2974 &#8211;cbh<br />
ost=127.0.0.1 &#8211;cbport=8080 &#8211;cbpath=<br />
2010-08-16 09:35:49,454 &#8211; hookbox &#8211; INFO &#8211; Listening to hookbox on <a href="http://0.0.0" rel="nofollow">http://0.0.0</a>.<br />
0:2974</p>
<p>When I access <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a> from Chrome (from FF 200 response) I get:<br />
Just displays   &#8220;Scope Demo  Frames Per Second:&#8221;<br />
python webapp.py<br />
hazelt.no-ip.org &#8211; - [16/Aug/2010 09:06:28] &#8220;GET / HTTP/1.1&#8243; 304 -</p>
<p>Run producer and &#8230;&#8230;<br />
python producer.py<br />
You said the url is:   <a href="http://127.0.0.1:2974/rest/publish" rel="nofollow">http://127.0.0.1:2974/rest/publish</a> (I added print)<br />
Traceback (most recent call last):<br />
  File &#8220;producer.py&#8221;, line 77, in<br />
    main()<br />
  File &#8220;producer.py&#8221;, line 68, in main<br />
    resp = urllib2.urlopen(req)<br />
  File &#8220;Z:\Python26\lib\urllib2.py&#8221;, line 124, in urlopen<br />
    return _opener.open(url, data, timeout)<br />
  File &#8220;Z:\Python26\lib\urllib2.py&#8221;, line 395, in open<br />
    response = meth(req, response)<br />
  File &#8220;Z:\Python26\lib\urllib2.py&#8221;, line 508, in http_response<br />
    &#8216;http&#8217;, request, response, code, msg, hdrs)<br />
  File &#8220;Z:\Python26\lib\urllib2.py&#8221;, line 433, in error<br />
    return self._call_chain(*args)<br />
  File &#8220;Z:\Python26\lib\urllib2.py&#8221;, line 367, in _call_chain<br />
    result = func(*args)<br />
  File &#8220;Z:\Python26\lib\urllib2.py&#8221;, line 516, in http_error_default<br />
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)<br />
urllib2.HTTPError: HTTP Error 404: Not Found</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salman Haq</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-116</link>
		<dc:creator>Salman Haq</dc:creator>
		<pubDate>Thu, 12 Aug 2010 04:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-116</guid>
		<description>Hi Lance,

I think this is a known bug with the installation code in Hookbox. It does not install the js_src directory even thought it is in the git source. You should check with Michael Carter on the mailing list to see if this issue has been fixed and you just need to re-install hookbox. If not, the work-around is quite simple... just copy the &#039;js_src&#039; directory from the git source to &#039;/Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/&#039;</description>
		<content:encoded><![CDATA[<p>Hi Lance,</p>
<p>I think this is a known bug with the installation code in Hookbox. It does not install the js_src directory even thought it is in the git source. You should check with Michael Carter on the mailing list to see if this issue has been fixed and you just need to re-install hookbox. If not, the work-around is quite simple&#8230; just copy the &#8216;js_src&#8217; directory from the git source to &#8216;/Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lance</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-114</link>
		<dc:creator>Lance</dc:creator>
		<pubDate>Tue, 10 Aug 2010 22:52:56 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-114</guid>
		<description>Hi Salman,

Thanks for the help. (I am very new to this so my questions are pretty basic I know) I have tried the following terminal command:

sudo /usr/local/bin/hookbox  -d -r altoids -p 2974 --cbhost=127.0.0.1 --cbport=8000 --cbpath=

Which gets me this:


Traceback (most recent call last):
  File &quot;/Library/Python/2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/hubs/hub.py&quot;, line 285, in fire_timers
    timer()
  File &quot;/Library/Python/2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/hubs/timer.py&quot;, line 56, in __call__
    cb(*args, **kw)
  File &quot;/Library/Python/2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/greenthread.py&quot;, line 202, in main
    result = function(*args, **kwargs)
  File &quot;/Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/start.py&quot;, line 43, in debugloop
    files[f] = os.stat(os.path.join(os.path.dirname(__file__), &#039;js_src&#039;, f))[7]
OSError: [Errno 2] No such file or directory: &#039;/Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/js_src/hookbox.pkg&#039;

From your source page I am using the second command first, which I was assuming would start Hookbox as per your post?  If I try the first command I get error as previous post.  I traced the file path for  /Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/js_src/hookbox.pkg.  There is no js_src/ or hookbox.pkg

 Thanks for your help ;)</description>
		<content:encoded><![CDATA[<p>Hi Salman,</p>
<p>Thanks for the help. (I am very new to this so my questions are pretty basic I know) I have tried the following terminal command:</p>
<p>sudo /usr/local/bin/hookbox  -d -r altoids -p 2974 &#8211;cbhost=127.0.0.1 &#8211;cbport=8000 &#8211;cbpath=</p>
<p>Which gets me this:</p>
<p>Traceback (most recent call last):<br />
  File &#8220;/Library/Python/2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/hubs/hub.py&#8221;, line 285, in fire_timers<br />
    timer()<br />
  File &#8220;/Library/Python/2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/hubs/timer.py&#8221;, line 56, in __call__<br />
    cb(*args, **kw)<br />
  File &#8220;/Library/Python/2.6/site-packages/eventlet-0.9.9-py2.6.egg/eventlet/greenthread.py&#8221;, line 202, in main<br />
    result = function(*args, **kwargs)<br />
  File &#8220;/Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/start.py&#8221;, line 43, in debugloop<br />
    files[f] = os.stat(os.path.join(os.path.dirname(__file__), &#8216;js_src&#8217;, f))[7]<br />
OSError: [Errno 2] No such file or directory: &#8216;/Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/js_src/hookbox.pkg&#8217;</p>
<p>From your source page I am using the second command first, which I was assuming would start Hookbox as per your post?  If I try the first command I get error as previous post.  I traced the file path for  /Library/Python/2.6/site-packages/hookbox-0.3.3-py2.6.egg/hookbox/js_src/hookbox.pkg.  There is no js_src/ or hookbox.pkg</p>
<p> Thanks for your help <img src='http://bitshaq.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: guillaume sempe</title>
		<link>http://bitshaq.com/2010/07/30/a-simple-experiment-with-hookbox/comment-page-1/#comment-112</link>
		<dc:creator>guillaume sempe</dc:creator>
		<pubDate>Thu, 05 Aug 2010 05:57:09 +0000</pubDate>
		<guid isPermaLink="false">http://bitshaq.com/?p=499#comment-112</guid>
		<description>&lt;span class=&quot;topsy_trackback_comment&quot;&gt;&lt;span class=&quot;topsy_twitter_username&quot;&gt;&lt;span class=&quot;topsy_trackback_content&quot;&gt;A simple experiment with hookbox  a new python-based comet server with support for Websockets http://j.mp/bj4IyW /by @slmnhq&lt;/span&gt;&lt;/span&gt;</description>
		<content:encoded><![CDATA[<p><span class="topsy_trackback_comment"><span class="topsy_twitter_username"><span class="topsy_trackback_content">A simple experiment with hookbox  a new python-based comet server with support for Websockets <a href="http://j.mp/bj4IyW" rel="nofollow">http://j.mp/bj4IyW</a> /by @slmnhq</span></span></span></p>
]]></content:encoded>
	</item>
</channel>
</rss>

