Railsters: Having become a total expert on Ajax over the last couple weeks, the time has come to graduate to Juggernaut. (Did you know 95% of everyone in the world has Flash installed?;) So I install Juggernaut, just like http://juggernaut.rubyforge.org/install.html sez to, and the first problem is script/push_server can''t see the json that I just gem-ed in. So I edit it and require the complete path. Then I edit config/juggernaut_config.yml like this: PUSH_PORT: "4430" PUSH_HOST: "0.0.0.0" PUSH_HELPER_HOST: "192.168.1.103" PUSH_SECRET: "4815162342change_me" CROSSDOMAIN: "http://192.168.1.103:3000/crossdomain.xml" And I add the chat example to my site. The command flash_plugin generates HTML that doesn''t reflect the values in the configuration file, so I copy the generated HTML back into the index.rhtml file, comment out the flash_plugin line, and edit the fields manually. Then I get the following results. The browser (Firefox on Kubuntu, or IE7 on you-know-what) sez "You have been connected". I write a little chat into the chat edit field, and tap Enter or click the Add button, and the chat just disappears. It doesn''t go into the ul#chat_data that it''s supposed to. It also doesn''t go into log/push_server.log. That only contains lines like: Unsubscribed from channels: Closed listen request from ip: So how to turn up the logging level to something relevant? And how to, uh, chat with the sample application? (No, I read the FAQ, and no firewall blocks my server and client, etc...) -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Friday 16 February 2007, Phlip wrote:> So how to turn up the logging level to something relevant? And how > to, uh, chat with the sample application? (No, I read the FAQ, and no > firewall blocks my server and client, etc...)Hi Phlip, I''ll have a look, but first I have to go to sleep, it''s almost 7am over here. In the meantime feel free to read the source, there are surprisingly few lines of code involved. Michael -- Michael Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Schuerig wrote:> Phlip wrote: > > So how to turn up the logging level to something relevant? And how > > to, uh, chat with the sample application? (No, I read the FAQ, and no > > firewall blocks my server and client, etc...)> I''ll have a look, but first I have to go to sleep, it''s almost 7am overHonest thanks for sleeping on it! That''s quite the valid programming technique...> here. In the meantime feel free to read the source, there areI replaced the new Insertion.Top with just an ''alert("yo");'', and that didn''t work either!> surprisingly few lines of code involved.Not surprising ;-) -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Friday 16 February 2007, Phlip wrote:> Michael Schuerig wrote: > > Phlip wrote: > > > So how to turn up the logging level to something relevant? And > > > how to, uh, chat with the sample application? (No, I read the > > > FAQ, and no firewall blocks my server and client, etc...) > > > > I''ll have a look, but first I have to go to sleep, it''s almost 7am > > over > > Honest thanks for sleeping on it! That''s quite the valid programming > technique...(1) Don''t use the zip, install from SVN. The available zips are utterly outdated. (2) rake juggernaut:reinstall (3) Re-read the JUGGERNAUT-README, I''ve updated the chat example to reflect the state of the code. Ignore the example on the web site, it''s outdated :-( (4) There was a real bug, in that {...}.to_json produced a string that JSON.parse would not parse (the keys were not quoted). Require''ing ''json'' before calling #to_json cured it, however I''ve not tried to track down the ultimate cause. I hope it works now. If not, complain to Alex ;-) Michael -- Michael Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
[Why are we on rails-spinoffs now? Is that the common practice?] Michael Schuerig wrote:> (1) Don''t use the zip, install from SVN. The available zips are utterly > outdated.Ouch. I couldn''t vendor/plugin, so I just grabbed the zip.> (2) rake juggernaut:reinstall> (4) There was a real bug, in that {...}.to_json produced a string that > JSON.parseAnd that''s what it was; I diagnosed it on the train ride to work. Yet more evidence I should get one of those wireless net connectors; reading your mail would have saved all that productivity!! ;-) -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> And I add the chat example to my site. The command flash_plugin generates > HTML that doesn''t reflect the values in the configuration fileThat happened because I''m using Webrick, and it doesn''t reload plugin thingies when they change. Total server restarts solve the problem... -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Friday 16 February 2007, Phlip wrote:> [Why are we on rails-spinoffs now? Is that the common practice?]Sorry, you''ve lost me here. Where did you expect to be? I saw your messages on rubyonrails-spinoffs and replied in the same place.> > (4) There was a real bug, in that {...}.to_json produced a string > > that JSON.parse > > And that''s what it was; I diagnosed it on the train ride to work.Do you have an idea *why* this happens? Michael -- Michael Schuerig mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org http://www.schuerig.de/michael/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Michael Schuerig wrote:> Sorry, you''ve lost me here. Where did you expect to be? I saw your > messages on rubyonrails-spinoffs and replied in the same place.It seems I was trying for rubyonrails-talk but hit -spinoffs by mistake. So the first time "-spinoffs" registered was in your mail.> > > (4) There was a real bug, in that {...}.to_json produced a string > > > that JSON.parse > > > > And that''s what it was; I diagnosed it on the train ride to work. > > Do you have an idea *why* this happens?My mental lapses? They seem to run in the family. I get them from my wife. The JSON.parse bug? I didn''t go in after it. But it might be happening again, when I run the latest version remotely (but still thru Firefox). I will diagnose this one presently. Oh, and another thing to look at is why Jug puts a syntax error (undefined method `delete'' for :update:Symbol) into all my functional tests... -- Phlip http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---