<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: IM Integration With XMPP4r : Part 2</title>
	<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/</link>
	<description>Because programming should be fun</description>
	<pubDate>Mon, 22 Mar 2010 09:29:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Dan Simard</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-522</link>
		<author>Dan Simard</author>
		<pubDate>Tue, 29 Jan 2008 14:18:56 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-522</guid>
					<description>It was completly clear! I'm glad you write about XMPP4R because nobody wants to talk about it... almost no documentation, no examples and no blog posts. Is XMPP4R taboo?</description>
		<content:encoded><![CDATA[<p>It was completly clear! I&#8217;m glad you write about XMPP4R because nobody wants to talk about it&#8230; almost no documentation, no examples and no blog posts. Is XMPP4R taboo?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: links for 2008-01-30 &#171; Bloggitation</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-523</link>
		<author>links for 2008-01-30 &#171; Bloggitation</author>
		<pubDate>Wed, 30 Jan 2008 00:21:17 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-523</guid>
					<description>[...] IM Integration With XMPP4r : Part 2 (tags: ruby jabber programming) [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] IM Integration With XMPP4r : Part 2 (tags: ruby jabber programming) [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: IceskYsl</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-524</link>
		<author>IceskYsl</author>
		<pubDate>Wed, 30 Jan 2008 01:43:13 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-524</guid>
					<description>so cool~ thx~</description>
		<content:encoded><![CDATA[<p>so cool~ thx~</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Stephane Wirtel</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-525</link>
		<author>Stephane Wirtel</author>
		<pubDate>Wed, 30 Jan 2008 09:02:41 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-525</guid>
					<description>I don't know if XMPP4R is taboo, but I am interrested by this project. A bit of documentation would be welcome.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t know if XMPP4R is taboo, but I am interrested by this project. A bit of documentation would be welcome.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: IceskYsl</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-526</link>
		<author>IceskYsl</author>
		<pubDate>Wed, 30 Jan 2008 10:03:28 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-526</guid>
					<description>A chinese version is here..
http://docs.google.com/View?docid=dhf86kr9_188gmpnw5hf</description>
		<content:encoded><![CDATA[<p>A chinese version is here..<br />
<a href="http://docs.google.com/View?docid=dhf86kr9_188gmpnw5hf" rel="nofollow">http://docs.google.com/View?docid=dhf86kr9_188gmpnw5hf</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Tyler</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-527</link>
		<author>Tyler</author>
		<pubDate>Wed, 30 Jan 2008 19:33:52 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-527</guid>
					<description>Hey, thanks a lot.  I've coincidentally been playing around with this a bunch.  I've been having a problem with status synchronization with Google Talk.  For example, say I want to connect, get my status, message it to a test account, then update it.  I can't seem to get the changes to apply if I login to Google Talk from another client (say GMail)  Any ideas?</description>
		<content:encoded><![CDATA[<p>Hey, thanks a lot.  I&#8217;ve coincidentally been playing around with this a bunch.  I&#8217;ve been having a problem with status synchronization with Google Talk.  For example, say I want to connect, get my status, message it to a test account, then update it.  I can&#8217;t seem to get the changes to apply if I login to Google Talk from another client (say GMail)  Any ideas?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-529</link>
		<author>Frank</author>
		<pubDate>Thu, 31 Jan 2008 13:12:49 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-529</guid>
					<description>@Dan,

Yeah sometimes I wonder if Xmpp4r is taboo too... no one wants to talk about it! I have to say it is not the most actively supported gem around. I'm currently seriously thinking about writing my own for XMPP. Next step is to stop thinking about it and to actually do it :)


@Tyler,

Are you talking about the status itself (busy, available, etc) or the status message? We have experienced problems trying to set the status message with XMPP4r and we have simply stopped investigating on the issue.

If you are speaking about the status itself that doesn't update... well I'm not quite sure about the source of the problem. Maybe it has something to do with the fact that you are trying to set your status manually (technically it should work but there might be a bug in xmpp4r). Could you send me the code you are using to accomplish what you want? I would be more able to help you with your problem.</description>
		<content:encoded><![CDATA[<p>@Dan,</p>
<p>Yeah sometimes I wonder if Xmpp4r is taboo too&#8230; no one wants to talk about it! I have to say it is not the most actively supported gem around. I&#8217;m currently seriously thinking about writing my own for XMPP. Next step is to stop thinking about it and to actually do it <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@Tyler,</p>
<p>Are you talking about the status itself (busy, available, etc) or the status message? We have experienced problems trying to set the status message with XMPP4r and we have simply stopped investigating on the issue.</p>
<p>If you are speaking about the status itself that doesn&#8217;t update&#8230; well I&#8217;m not quite sure about the source of the problem. Maybe it has something to do with the fact that you are trying to set your status manually (technically it should work but there might be a bug in xmpp4r). Could you send me the code you are using to accomplish what you want? I would be more able to help you with your problem.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: roScripts &#45; Webmaster resources and websites</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-530</link>
		<author>roScripts &#45; Webmaster resources and websites</author>
		<pubDate>Thu, 31 Jan 2008 16:15:06 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-530</guid>
					<description>&lt;strong&gt;Ruby Fleebie &#xBB; IM Integration With XMPP4r : Part 2...&lt;/strong&gt;

Ruby Fleebie &#xBB; IM Integration With XMPP4r : Part 2...</description>
		<content:encoded><![CDATA[<p><strong>Ruby Fleebie &#xBB; IM Integration With XMPP4r : Part 2&#8230;</strong></p>
<p>Ruby Fleebie &#xBB; IM Integration With XMPP4r : Part 2&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Mislav</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-533</link>
		<author>Mislav</author>
		<pubDate>Mon, 04 Feb 2008 05:32:25 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-533</guid>
					<description>Frank,

It's great that you're writing about this. Both were excellent articles and I hope you'll keep it up.</description>
		<content:encoded><![CDATA[<p>Frank,</p>
<p>It&#8217;s great that you&#8217;re writing about this. Both were excellent articles and I hope you&#8217;ll keep it up.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-534</link>
		<author>Frank</author>
		<pubDate>Mon, 04 Feb 2008 16:21:25 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-534</guid>
					<description>@Mislav,

I'm glad you like the articles. There will be a 3rd part for sure (that might be the final one, but I'm not sure of yet).

I really think IM integration is not used enough in today web applications. Some people see it as a gimmick, but to me nothing could be farther from the truth.

Thanks for your comment</description>
		<content:encoded><![CDATA[<p>@Mislav,</p>
<p>I&#8217;m glad you like the articles. There will be a 3rd part for sure (that might be the final one, but I&#8217;m not sure of yet).</p>
<p>I really think IM integration is not used enough in today web applications. Some people see it as a gimmick, but to me nothing could be farther from the truth.</p>
<p>Thanks for your comment</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Introduction to XMPP and XMPP4R for Ruby Developers &#124; Computer &#38; Internet</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-538</link>
		<author>Introduction to XMPP and XMPP4R for Ruby Developers &#124; Computer &#38; Internet</author>
		<pubDate>Tue, 12 Feb 2008 00:40:41 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-538</guid>
					<description>[...] XMPP4R to integrate with Instant Messaging systems. The first part is a basic overview, and the second part is a basic demo of creating an XMPP client. Frank expects to continue the series on his [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] XMPP4R to integrate with Instant Messaging systems. The first part is a basic overview, and the second part is a basic demo of creating an XMPP client. Frank expects to continue the series on his [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Don Park</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-550</link>
		<author>Don Park</author>
		<pubDate>Sat, 22 Mar 2008 16:39:42 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-550</guid>
					<description>mangled resource names?
i connect with
jid = JID::new('me@gmail.com/yin')
client = Client::new(jid)
client.connect('talk.google.com')
client.auth(password)
it took a while to figure out how to connect to talk.google.com instead of gmail.com

and send with
    to = "me@gmail.com/yang"
    subject = "from yin to yang"
    body = "help"
    m = Message::new(to, body).set_type(:normal).set_id('1').set_subject(subject)
    puts "sending: #{m.inspect}"
    client.send m

i have a 'yang' version of the same program to receive the message. yang never gets the message and my pidgin IM program pops up with the "help" message from
me@gmail.com/yin04223891

do you know whats with the extra digits in the resource name?</description>
		<content:encoded><![CDATA[<p>mangled resource names?<br />
i connect with<br />
jid = JID::new(&#8217;me@gmail.com/yin&#8217;)<br />
client = Client::new(jid)<br />
client.connect(&#8217;talk.google.com&#8217;)<br />
client.auth(password)<br />
it took a while to figure out how to connect to talk.google.com instead of gmail.com</p>
<p>and send with<br />
    to = &#8220;me@gmail.com/yang&#8221;<br />
    subject = &#8220;from yin to yang&#8221;<br />
    body = &#8220;help&#8221;<br />
    m = Message::new(to, body).set_type(:normal).set_id(&#8217;1&#8242;).set_subject(subject)<br />
    puts &#8220;sending: #{m.inspect}&#8221;<br />
    client.send m</p>
<p>i have a &#8216;yang&#8217; version of the same program to receive the message. yang never gets the message and my pidgin IM program pops up with the &#8220;help&#8221; message from<br />
<a href="mailto:me@gmail.com/yin04223891">me@gmail.com/yin04223891</a></p>
<p>do you know whats with the extra digits in the resource name?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Nilu</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-554</link>
		<author>Nilu</author>
		<pubDate>Thu, 10 Apr 2008 11:09:58 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-554</guid>
					<description>I was trying to implement a chat client using this tutorial but it seems that my messages do not get recieved. I am using a local host for this. The client seems to send the messages (at least it doesn't give me any errors) but when i run an another instance of the program and try to recieve messages, the messages do not show. Any ideas as to why this may be? Thank you in advance for any help</description>
		<content:encoded><![CDATA[<p>I was trying to implement a chat client using this tutorial but it seems that my messages do not get recieved. I am using a local host for this. The client seems to send the messages (at least it doesn&#8217;t give me any errors) but when i run an another instance of the program and try to recieve messages, the messages do not show. Any ideas as to why this may be? Thank you in advance for any help</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-555</link>
		<author>Frank</author>
		<pubDate>Thu, 10 Apr 2008 11:56:11 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-555</guid>
					<description>@Don Park,

Sorry for the late answer. The digits after the resource name is an auto-generated ID... you do not have control over it. I believe it gets assigned by your Jabber server (in this case, talk.google.com). 

Now about the problem you are facing, I realize I forgot to include something important in my article..shame on me. You have to subscribe to the other contact. I update the original post, look above.

@Nilu,

It is probably my fault for that again! I forgot to talk about the subscription part.. look at the end of this post... I wrote an update. I'm sorry about that</description>
		<content:encoded><![CDATA[<p>@Don Park,</p>
<p>Sorry for the late answer. The digits after the resource name is an auto-generated ID&#8230; you do not have control over it. I believe it gets assigned by your Jabber server (in this case, talk.google.com). </p>
<p>Now about the problem you are facing, I realize I forgot to include something important in my article..shame on me. You have to subscribe to the other contact. I update the original post, look above.</p>
<p>@Nilu,</p>
<p>It is probably my fault for that again! I forgot to talk about the subscription part.. look at the end of this post&#8230; I wrote an update. I&#8217;m sorry about that</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Nilu</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-556</link>
		<author>Nilu</author>
		<pubDate>Thu, 10 Apr 2008 23:06:26 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-556</guid>
					<description>Thanks for the update! :D</description>
		<content:encoded><![CDATA[<p>Thanks for the update! <img src='http://www.rubyfleebie.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Nilu</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-557</link>
		<author>Nilu</author>
		<pubDate>Thu, 10 Apr 2008 23:22:56 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-557</guid>
					<description>I also found out that Client class does not contain 'add_update_callback' the Rsoter::Helper class does...</description>
		<content:encoded><![CDATA[<p>I also found out that Client class does not contain &#8216;add_update_callback&#8217; the Rsoter::Helper class does&#8230;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Nilu</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-602</link>
		<author>Nilu</author>
		<pubDate>Thu, 08 May 2008 10:28:34 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-602</guid>
					<description>You said that the callbacks are in a separate thread, so then how will the main thread (which is the client) actually receive the message? How would it communicate with the client? I don't seem to be able to receive messages, although i can send them successfully even when i use the roster.</description>
		<content:encoded><![CDATA[<p>You said that the callbacks are in a separate thread, so then how will the main thread (which is the client) actually receive the message? How would it communicate with the client? I don&#8217;t seem to be able to receive messages, although i can send them successfully even when i use the roster.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Leonardo Boiko</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-628</link>
		<author>Leonardo Boiko</author>
		<pubDate>Wed, 25 Jun 2008 02:08:53 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-628</guid>
					<description>@Nilu: I had the same problem as you.  Looking at the examples that came with the debian package libxmpp4r-ruby-doc, I found this:

  Thread.stop
  client.close

next to the end of the script, after you set your callbacks.  Works for me.  See echo_threaded.rb for more.</description>
		<content:encoded><![CDATA[<p>@Nilu: I had the same problem as you.  Looking at the examples that came with the debian package libxmpp4r-ruby-doc, I found this:</p>
<p>  Thread.stop<br />
  client.close</p>
<p>next to the end of the script, after you set your callbacks.  Works for me.  See echo_threaded.rb for more.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: bino</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-637</link>
		<author>bino</author>
		<pubDate>Wed, 23 Jul 2008 07:43:20 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-637</guid>
					<description>Well ... Sometime a go , I make a dirty jum to ruby ... specialy xmpp4r.
Unfortunately my work is gone, the HD formated. 
But here is the story about it :
Note that I'm a dumb lazy programmer with a bunch of dream.
I want to send the output of ttyctrl (http://ttyctrl.sourceforge.net/) at a station to another remote station, so I :
1. Install ttyctrl
2. Write a XMPP4R script, add a socket (udp) server to it
3. write a ruby script that can talk udp to script #2
4. set ttyctrl to call script#3 with it's as parameter
5. When script#2 receive msg from script#3, it send ttyctrl output to another jabber client , which is me + pidgin.

Note : Script#2 and Script#3 is in the same host

This way, I can use XMPP for 2-way comunication between any application or any embeded device, regardless of excessive bandwidth usage caused by xml overhead.</description>
		<content:encoded><![CDATA[<p>Well &#8230; Sometime a go , I make a dirty jum to ruby &#8230; specialy xmpp4r.<br />
Unfortunately my work is gone, the HD formated.<br />
But here is the story about it :<br />
Note that I&#8217;m a dumb lazy programmer with a bunch of dream.<br />
I want to send the output of ttyctrl (http://ttyctrl.sourceforge.net/) at a station to another remote station, so I :<br />
1. Install ttyctrl<br />
2. Write a XMPP4R script, add a socket (udp) server to it<br />
3. write a ruby script that can talk udp to script #2<br />
4. set ttyctrl to call script#3 with it&#8217;s as parameter<br />
5. When script#2 receive msg from script#3, it send ttyctrl output to another jabber client , which is me + pidgin.</p>
<p>Note : Script#2 and Script#3 is in the same host</p>
<p>This way, I can use XMPP for 2-way comunication between any application or any embeded device, regardless of excessive bandwidth usage caused by xml overhead.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Nakyss</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-640</link>
		<author>Nakyss</author>
		<pubDate>Sun, 03 Aug 2008 20:57:47 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-640</guid>
					<description>Thanks for this article, this is so nice to read some good documentation about xmpp4r.

However, there are some little mistakes that i wanted to point out here.
Well I pasted the codes right from the web site and here was the persisting error that kept coming at me when trying to execute the script:

       Jabber_test_ruby.rb:81: syntax error, unexpected '}', expecting kEND
       Jabber_test_ruby.rb:92: syntax error, unexpected $end, expecting kEND
           Tk.mainloop
                     ^
it's just because you forget to write the "end"s closing block of the callback methods(not all of them).

Anyway keep up the good work, I'll come back here.</description>
		<content:encoded><![CDATA[<p>Thanks for this article, this is so nice to read some good documentation about xmpp4r.</p>
<p>However, there are some little mistakes that i wanted to point out here.<br />
Well I pasted the codes right from the web site and here was the persisting error that kept coming at me when trying to execute the script:</p>
<p>       Jabber_test_ruby.rb:81: syntax error, unexpected &#8216;}&#8217;, expecting kEND<br />
       Jabber_test_ruby.rb:92: syntax error, unexpected $end, expecting kEND<br />
           Tk.mainloop<br />
                     ^<br />
it&#8217;s just because you forget to write the &#8220;end&#8221;s closing block of the callback methods(not all of them).</p>
<p>Anyway keep up the good work, I&#8217;ll come back here.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-719</link>
		<author>Frank</author>
		<pubDate>Tue, 21 Oct 2008 20:40:20 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-719</guid>
					<description>Nilu, 

I'm sure you have your answer already, but let me explain the "running in their own thread" thing :

The callbacks are invoked in the context of the "parser thread" which is the one doing the actual "listening" of the the XML stream. When something happens in the parser thread (e.g. message stanza received), callbacks are invoked from there. So the code you have in your various callbacks are effectively executed in another thread context.

Like Leonardo wrote, you have to write Thread.stop in your main thread when you have set all your callbacks and other initialization stuff.

It might sound confusing, but you have to write Thread.stop to keep the current thread alive. Thread.stop simply put the current thread into sleep mode and leave all the scheduling time to the other threads (the parser thread in our case). If you don't write Thread.stop, everything ends when the main thread has nothing left to do.

I have updated the original post.</description>
		<content:encoded><![CDATA[<p>Nilu, </p>
<p>I&#8217;m sure you have your answer already, but let me explain the &#8220;running in their own thread&#8221; thing :</p>
<p>The callbacks are invoked in the context of the &#8220;parser thread&#8221; which is the one doing the actual &#8220;listening&#8221; of the the XML stream. When something happens in the parser thread (e.g. message stanza received), callbacks are invoked from there. So the code you have in your various callbacks are effectively executed in another thread context.</p>
<p>Like Leonardo wrote, you have to write Thread.stop in your main thread when you have set all your callbacks and other initialization stuff.</p>
<p>It might sound confusing, but you have to write Thread.stop to keep the current thread alive. Thread.stop simply put the current thread into sleep mode and leave all the scheduling time to the other threads (the parser thread in our case). If you don&#8217;t write Thread.stop, everything ends when the main thread has nothing left to do.</p>
<p>I have updated the original post.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: vinibaggio &#187; Distributed Ruby (DRb) + XMPP4R</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-792</link>
		<author>vinibaggio &#187; Distributed Ruby (DRb) + XMPP4R</author>
		<pubDate>Sat, 15 Nov 2008 16:35:56 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-792</guid>
					<description>[...] isso recomendo algumas leituras prévias sobre XMPP4R (a documentação oficial, este tutorial, e sua segunda parte) e de Rails (recomendo os tutoriais e screencasts do Fábio Akita, no seu blog, o AkitaOnRails). [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] isso recomendo algumas leituras prévias sobre XMPP4R (a documentação oficial, este tutorial, e sua segunda parte) e de Rails (recomendo os tutoriais e screencasts do Fábio Akita, no seu blog, o AkitaOnRails). [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Hooopo</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-831</link>
		<author>Hooopo</author>
		<pubDate>Thu, 26 Feb 2009 08:41:02 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-831</guid>
					<description>Thanks,it's so powerful!</description>
		<content:encoded><![CDATA[<p>Thanks,it&#8217;s so powerful!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: bishkekblog</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-836</link>
		<author>bishkekblog</author>
		<pubDate>Fri, 03 Apr 2009 14:36:34 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-836</guid>
					<description>Thanks for the useful site.Keep up the good work.God bless you and keep you.</description>
		<content:encoded><![CDATA[<p>Thanks for the useful site.Keep up the good work.God bless you and keep you.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: worldround</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-837</link>
		<author>worldround</author>
		<pubDate>Fri, 03 Apr 2009 23:51:45 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-837</guid>
					<description>Thanks for the interesting and informative site. That’s definitely what I’ve been looking for.</description>
		<content:encoded><![CDATA[<p>Thanks for the interesting and informative site. That’s definitely what I’ve been looking for.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ruby beginner</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-845</link>
		<author>ruby beginner</author>
		<pubDate>Tue, 16 Jun 2009 07:30:07 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-845</guid>
					<description>So how would one change the port on which this example connects on ie for communications with a TCP proxy or socks proxy.(-L or -D options in openssh) or say port 9050 for operation as a tor hidden server with OTR support added by otr-proxy www.cypherpunks.ca/otr/</description>
		<content:encoded><![CDATA[<p>So how would one change the port on which this example connects on ie for communications with a TCP proxy or socks proxy.(-L or -D options in openssh) or say port 9050 for operation as a tor hidden server with OTR support added by otr-proxy <a href="http://www.cypherpunks.ca/otr/" rel="nofollow">www.cypherpunks.ca/otr/</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ryan</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-849</link>
		<author>ryan</author>
		<pubDate>Sun, 05 Jul 2009 17:49:15 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-849</guid>
					<description>how do you send messages to the jabber chatroom using xmpp4r</description>
		<content:encoded><![CDATA[<p>how do you send messages to the jabber chatroom using xmpp4r</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Art</title>
		<link>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-850</link>
		<author>Art</author>
		<pubDate>Mon, 06 Jul 2009 03:07:57 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/im-integration-with-xmpp4r-part-2/#comment-850</guid>
					<description>Presence seems to be mostly empty when getting a roster.  Any ideas on how to get all the presence with the roster call?</description>
		<content:encoded><![CDATA[<p>Presence seems to be mostly empty when getting a roster.  Any ideas on how to get all the presence with the roster call?</p>
]]></content:encoded>
				</item>
</channel>
</rss>
